Quick Tips - Kyoril/mmo GitHub Wiki
This page should offer some quick tips which might be useful for development and testing.
While developing, you often restart the client and need to first log in to start testing things in the actual game world or on the game servers. This is time consuming, but there is a handy shortcut:
In your client's working directory (usually where the executable lies), create (if not existing) a folder named "Config" and create (if not existing) a new file called "RunOnce.cfg". This file is executed exactly once when the client launches and is just a console command batch file.
In there, you can use the "login" console command. So insert a new line in RunOnce.cfg:
login <username> <password>
This will make your client automatically try to log in with the credentials put there whenever you start the client. Additionally, you should also save your config when you are at the character list to also save the realm you are currently connected to. To do so, open the console in the game client and type the following command:
saveconfig
This will save a file called Config.cfg
in your clients Config
folder which contains a number of SET key value
commands (one for each known console variable up to the point of saving the config). If you did this, your client will not only log in at the login server whenever you launch it, but also log in at the realm you were connected when saving the config file, which should make development and testing much more enjoyable!