I was trying to get two worlds going at the same time. so on my new one, i changed the port setting in server config. But nada, so i tried my other server, nothing..... I searched here for anyone else with this prob. Nothing.
find:
public static readonly int Port = Config.Get("Server.Port", 2593);
change:
Config.Get("Server.Port", 2593)
to the port you want
ex.
public static readonly int Port = 2000;
note: This will bypass the .cfg file.
I have to agree with Voxpire and Tasanar. So I'm putting this back. If it weren't for having to find these types of things when I was setting up my first servers I wouldn't have learned to do much of anything...
See the post below if you want to see the other way to do it.
There may be Config files, but it's also good to know the roots of the options people are setting, else people lose sight of how their shard actually works and we end up with a lack of competent developers.
I'd suggest both explaining the Config option and the way it works, or the value it sets.
while I see your point Voxpire, there were cases where people then just changed the default / fallback value and wondered why it didnt work. Or they then later on tried to change the config and since they removed the reading part of the config it too was useless after that.
The ones that would go and script / programm would probably find out how to change these settings without the config files too.
Also some of the config Specially for port does not actually work as it is suppost to, i have used the config MANY times and it still auto-defaults back to 2593 untill i change the port in the code itself, for some odd reason it is not reading from the config file but from the script instead.