Some Questions

My server problems are dissapearing but some stuff is bothering me.

1. Is the server meant to restart when I leave if I was the only one on it? Like if its empty when the last person leaves, is it suppsed to reset?

2. How do I change the default config? Because when the server does restart, on when I launch up the dedicated, I have to go through the options and change it all again. So if im the only one on it if I leave it no one can play because the settings will be messed up.

3. If anyone sees my server up, its a official construct one with the *EU Hosted* in the info, please join it so I can see that other people outside my local network can join.

Thx

Comments

  • My server problems are dissapearing but some stuff is bothering me.

    1. Is the server meant to restart when I leave if I was the only one on it? Like if its empty when the last person leaves, is it suppsed to reset?

    2. How do I change the default config? Because when the server does restart, on when I launch up the dedicated, I have to go through the options and change it all again. So if im the only one on it if I leave it no one can play because the settings will be messed up.

    3. If anyone sees my server up, its a official construct one with the *EU Hosted* in the info, please join it so I can see that other people outside my local network can join.

    Thx


    1. Yes, by default the server will reset when all clients have dropped. If you want to remove this you can open up server.cs and find
    "function GameConnection::onDrop"
    Around the end of this function you'll see
    schedule(0, 0, "resetServerDefaults");
    Comment it out (with two forward slashes) so it looks like this:
    // schedule(0, 0, "resetServerDefaults");
    

    2. Most of the config should be able to be modified in prefs/serverprefs.cs and should usually export the settings when the server resets. If it's loading and replacing it with an older config you need to find and delete serverprefs.cs.dso

    You can also use the command below to export your serverprefs after you set them ingame:
    export( "$Host::*", "prefs/ServerPrefs.cs", false );
Sign In or Register to comment.