Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change server cfg on modified server

#1
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?
Reply

#2
./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).
Reply

#3
(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. 
What's the normal process for doing this?

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
.xonotic/data.bfgfun
.xonotic/data.bfgfun/data/
.xonotic/data.bfgfun/data/........... omit .......
.xonotic/data.bfgfun/curl_urls.txt
.xonotic/data.bfgfun/post-config.cfg
.xonotic/data.bfgfun/server.cfg
.xonotic/data.bfgfun/cvars_servername.txt
.xonotic/data.bfgfun/darkplaces_history.txt
.xonotic/key_0-public-fp.bfgfun.txt
.xonotic/key_0.d0si.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.
Reply

#4
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
I got the error 

Code:
Quake Error: Nasty -game name rejected: /home/veecho/.xonotic/data 
Any clue what that means? I've tried changing the directory but it always pops up. Is there some sort of preferred location/naming scheme?
Reply

#5
(04-23-2019, 05:02 PM)veecho Wrote: 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
I got the error 

Code:
Quake Error: Nasty -game name rejected: /home/veecho/.xonotic/data 
Any clue what that means? I've tried changing the directory but it always pops up. Is there some sort of preferred location/naming scheme?

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.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Xonotic server running behind UDP proxy not working doombringeroperator 3 3,139 11-21-2022, 11:00 AM
Last Post: Zaphod
Big Grin Is it possible to change bot names from console, without changing bots.txt? YottaMxt 0 406 11-12-2022, 07:57 PM
Last Post: YottaMxt
  Xonotic server monitoring Sl@va 6 4,300 09-16-2022, 04:46 AM
Last Post: Sl@va
  Docker Xonotic Dedicated Server ich777 18 7,897 08-15-2022, 12:44 AM
Last Post: FAF
  A certain server seems to manipulate stats of it's players by not listing some games nj 7 1,423 08-14-2022, 02:48 AM
Last Post: FAF
  Unjust ban on the only active DM server, what can be done? nj 30 6,791 08-02-2022, 07:04 AM
Last Post: nj
  BaI server | South American Xonotic server (located in Chile) z411 0 1,256 01-02-2022, 11:36 PM
Last Post: z411
  Lost server key, can't hold new key FlufyBuny 0 1,782 09-09-2021, 07:05 PM
Last Post: FlufyBuny
  How to tweak teams on my server? AndK 3 2,478 09-07-2021, 02:55 PM
Last Post: AndK
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 3,252 09-03-2021, 10:21 AM
Last Post: ballerburg9005

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-