Config File Edits
After you have compiled your client you will need to make some changes to the network settings, this can be accomplished in 3 ways.
...
Warning |
---|
title | Edit Defaults in the Code (For Advanced Users) |
---|
|
Don't forget to change the paths used below to match where your source is checked out! |
config located in client_default.cfg
Panel |
---|
///////////// // NETWORK // ///////////// Application = { "ryzom_open", "./client_ryzom_r.exe", "./" }; BackgroundDownloader = 0; PatchServer = ""; PatchWanted = 0; SignUpURL = ""; StartupHost = "shard.ryzomcore.org:40916"; StartupPage = "/login/r2_login.php"; InstallStatsUrl = "http://open.ryzom.com:50000/stats/stats.php"; CreateAccountURL = "http://shard.ryzomcore.org/ams/?page=register"; EditAccountURL = "http://shard.ryzomcore.org/ams/?page=settings"; ConditionsTermsURL = "http://www.gnu.org/licenses/agpl-3.0.html"; ForgetPwdURL = "http://shard.ryzomcore.org/ams/?page=forgot_password"; LoginSupportURL = "https://plus.google.com/u/0/communities/103798956862568269036"; InstallWebPage Edit the config in the cpp code located in "code/ryzom/client/src/client_cfg.cpp"
You will want to edit the configuration based on the values you want to change for example to hardset the CreateAccountURL you will edit the following line:
CreateAccountURL = "https://secure.ryzom.com/signup/from_client.php";
Then you will set which versions of the client you want to read from the config.cfg file this is useful so developers can use a "dev" version and edit values in the cfg for testing without having to recompile.
To read from the cfg file always you would use READ_STRING( CreateAccountURL)
To only read when compiled in "dev" mode you would add READ_STRING_DEV( CreateAccountURL)
To read the cfg only when compiled in "Final Version" mode you would add READ_STRING_FV(CreateAccountURL)
Advantages of this method: - The client will always use these settings even if the client.cfg is erased
- A malicious application cant change your settings
- You are able to have users remove the client.cfg to fix bad settings
Disadvantages of this method: - Requires recompiling the client to make edits
- Required editing code
- May cause merge issues when Ryzom Core code is updated
|
Patch Server
Panel |
---|
PatchServer = ""; PatchWanted = 0; SignUpURL = "";
|