Jump to content

2 Questions from Source


Recommended Posts

Hi all I have 2 questions for you guys:

1º How can I see all config comands like, because I have allwip source but I dont know all config he have.

eb40fb979a7dd9ec9024a945a85a5455.png

2º How can I change the revision when I compile the game.

P.D: I am new in this soo all help is good :D. Thanks for all

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi all I have 2 questions for you guys:

1º How can I see all config comands like, because I have allwip source but I dont know all config he have.

eb40fb979a7dd9ec9024a945a85a5455.png

2º How can I change the revision when I compile the game.

P.D: I am new in this soo all help is good :D. Thanks for all

1. open config.cpp and find config_load() or sth like that with "load" in name. You will see TOKEN("x") where x is a config input (in ex., START_LEVEL as shown on image)

2. version.cpp file

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

Hi all I have 2 questions for you guys:

1º How can I see all config comands like, because I have allwip source but I dont know all config he have.

eb40fb979a7dd9ec9024a945a85a5455.png

2º How can I change the revision when I compile the game.

P.D: I am new in this soo all help is good :D. Thanks for all

1. open config.cpp and find config_load() or sth like that with "load" in name. You will see TOKEN("x") where x is a config input (in ex., START_LEVEL as shown on image)

2. version.cpp file

 

2º 

fprintf(fp, "game perforce revision: %sn", __P4_VERSION__);
fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__);
fclose(fp);
 
If i delet p4_version and put hm some numbers is ok?
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

 

Hi all I have 2 questions for you guys:

1º How can I see all config comands like, because I have allwip source but I dont know all config he have.

eb40fb979a7dd9ec9024a945a85a5455.png

2º How can I change the revision when I compile the game.

P.D: I am new in this soo all help is good :D. Thanks for all

1. open config.cpp and find config_load() or sth like that with "load" in name. You will see TOKEN("x") where x is a config input (in ex., START_LEVEL as shown on image)

2. version.cpp file

 

2º 

fprintf(fp, "game perforce revision: %sn", __P4_VERSION__);
fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__);
fclose(fp);
 
If i delet p4_version and put hm some numbers is ok?

 

It's ok, but as string. If you'll need to write an integer change

game perforce revision: %sn

to

game perforce revision: %dn
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.