Jump to content
mkhzaleh

Generate .atr from client

Recommended Posts

this small function built in inside client to generate .atr file for server side from client itself

as yammi had warring says

image.png

 

so better do it from client maybe?

go for client source/src/main.cpp
 include in header :

#include "TerrainAttrib.h"

 

Search for :

Quote

if (strParam.find("pack") != -1) {

below or above that function add:

		if (strParam.find("attr") != -1) {
			char* pszPos = lpCmdLine;
			pszPos += 4;
			while (*pszPos == ' ') {
				pszPos++;
			}
			if (createAttribFile(pszPos, 0, 0))
				LG("ok", "Generated %s.atr Successfully ", pszPos);
			else
				LG("ok", "Failed to Create %s.atr", pszPos);
		
			return 0;
		}

now call it like this:

start system/Game.exe attr garner

.atr will be generated inside map/

 

p.s: if someone want to do something for .blk would be good

guess its come from zrblock tile

but as loading the class inside util2.h
or maybe i will do later:

&done&

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

I heard that the client can generate .atr back in ~2010, but did not know how to use this feature :D

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...