1. Axy

    Axy

    Hello all.

    I've learned how to setup a server through batch commands like -server.hostname "My New Server" however it would be good if there is a way to save the configurations made during the game (or rcon console) to the existing server.


    for instance, through the rcon console I write this:
    server.hostname "My Amazing Server"
    then when I do server.hostname, I can see that server name is changed. But when the server is restarted, it gets the old name.
    I've tried doing server.savecfg but it doens't seem to work. Server.save also doesn't work for this condition, no matter what I tried when the server is restarted id gets a different name then what I set.


    So my question is: is it possible to make it work in the way I am trying? It would be really handy for quick changes, without the need ot login to the server and change batch commands every signel time.

    Looking for a solution, thanks!
     
  2. Wulf

    Wulf Community Admin

    Both Rust and Rust Legacy use a server.cfg file. You can add commands to this and they will be loaded on server startup. The server.cfg file is located (or can be created) in your cfg folder.
     
  3. Axy

    Axy

    Hm, I've tried that actually, for some reason it's not "reading" (or applying) the details.
    Where should I create the file? Here like this? http://i.imgur.com/Qj5dfw7.png

    Tried placing the file into various different places, does not look like it's being read or applied any way.
     
    Last edited by a moderator: Apr 20, 2015
  4. Wulf

    Wulf Community Admin

    That's where it goes. You may need to call it with -cfg server.cfg in your command-line too, but you shouldn't have to.
     
  5. Axy

    Axy

    oh. on nitrous-networks you can't set custom -commands when starting a server (their configuration only allows ticking and unticking things). For some reason it's not auto-loaded.
     
  6. Wulf

    Wulf Community Admin

    What does your server.cfg look like?
     
  7. Axy

    Axy

    it has a single line:
    server.secure false
     
  8. Wulf

    Wulf Community Admin

    Have you tried adding more lines to it?
     
  9. Axy

    Axy

    Yes, I've tried anıther single line:

    server.hostname "my test hostname"

    also didn't work.
     
  10. Wulf

    Wulf Community Admin

    My only thought is that the file didn't actually save on the server, so you may want to contact your host to verify.
     
  11. Axy

    Axy

    I can download/upload using ftp, everything seems correct :/
     
  12. Wulf

    Wulf Community Admin

    Have you tried serverauto.cfg? That might actually be the one used by it.