Including this in the client?

Added by TomH about 5 years ago

Is it possible to place the code below inside the client.exe and not in a configuration file?

@/////////////
// NETWORK //
/////////////

Application = { "ryzom_open", "./client_ryzom_r.exe", "./" };
BackgroundDownloader = 0;
PatchServer = "";
PatchWanted = 0;
SignUpURL = "";
StartupHost = "iphere:40916";
StartupPage = "/login/r2_login.php";
InstallStatsUrl = "http://iphere:50000/stats/stats.php";
CreateAccountURL = "";
InstallWebPage = "";@

If yes, how would I change that and to what file?

Thank you.


Replies (4)

RE: Including this in the client? - Added by sfb about 5 years ago

I don't see why you would but search for getVar("PatchServer") for example and replace that code.

Thanks,
sfb
/s

RE: Including this in the client? - Added by TomH about 5 years ago

There's nothing in the client source that shows getVar("PatchServer").

Are you sure that's on the client source code? :O

RE: Including this in the client? - Added by Speedz about 5 years ago

I'm kinda guessing here as I am not an advanced coder but wouldn't it be effective to search the name of the config file in the client source and then pick arapt that section adding the config info in that section in some form.

Like where the code goes to access the file name, instead just hard enter the data it would be looking for in that file.

If this makes any sense at all.

RE: Including this in the client? - Added by vl about 5 years ago

All variable in the cfg has a default value in the exe.

Check code\ryzom\client\src\client_cfg.cpp.

For example, for BackgroundDownloader, search "BackgroundDownloader" in the file and line 654, you ll see:

BackgroundDownloader = false;

(1-4/4)