How to change server cfg on modified server - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3) +--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16) +--- Thread: How to change server cfg on modified server (/showthread.php?tid=8034) |
How to change server cfg on modified server - veecho - 04-16-2019 I'm trying to host a server that I've modified from the gitlabs repo, and though I know you run it using ./all run dedicated how do I specify my server config? I've tried changing the server.cfg that's in the server folder, and I've tried moving it to data as you would with a regular server. What's the normal process for doing this? RE: How to change server cfg on modified server - morosophos - 04-17-2019 ./all run dedicated expects server config in the same directory as release or autobuild (~/.xonotic/data/server.cfg on linux). It's generally not a good idea to change config files inside the source directory (data/xonotic-data.pk3dir). RE: How to change server cfg on modified server - BuddyFriendGuy - 04-17-2019 (04-16-2019, 10:56 AM)veecho Wrote: I'm trying to host a server that I've modified from the gitlabs repo, and though I know you run it using ./all run dedicated how do I specify my server config? I've tried changing the server.cfg that's in the server folder, and I've tried moving it to data as you would with a regular server. You can assign your data folder with "-game data_directory". Mine looks somewhat like this: Code: ./all run dedicated -sessionid bfgfun -game /home/xonotic/.xonotic/data.bfgfun -game /home/xonotic/additional_maps So my /home/xonotic/.xonotic looks like this: Code: .xonotic/lock.bfgfun My actual setup is a bit more complicated since I run more than one server (one public, one for testing and private games), but with the "-game" option, you can easily assign which folder to find your cfg files. RE: How to change server cfg on modified server - veecho - 04-23-2019 Thanks for taking the time to help me out! Right now I'm keeping my server.cfg file in ~/.xonotic/data. When I ran Code: ./all run dedicated -game ~/.xonotic/data Code: Quake Error: Nasty -game name rejected: /home/veecho/.xonotic/data RE: How to change server cfg on modified server - BuddyFriendGuy - 04-24-2019 (04-23-2019, 05:02 PM)veecho Wrote: Thanks for taking the time to help me out! Sorry -- I wrote that from my memory. The game directories should be under ~/.xonotic and you only give relative path, i.e. in your case: Code: ./all run dedicated -game data ~/.xonotic is the default parent folder, and is assumed. I believe you can change it but I never bothered with changing it. |