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
  [NEED HELP] I can't create my server. Kotangens 0 393 06-14-2020, 01:45 AM
Last Post: Kotangens
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 2 241 06-01-2020, 07:11 AM
Last Post: Jewel
  Server Hosting Issue Saevus 2 331 04-30-2020, 06:16 PM
Last Post: Saevus
  Server error "Weapon stats writing failed: -404" FlufyBuny 2 837 04-08-2020, 02:41 PM
Last Post: jwabbitt
  Docker Xonotic Dedicated Server ich777 13 1,710 04-02-2020, 02:59 PM
Last Post: FAF
  [NEED HELP] Server dont appear in server browser abslimit 0 390 03-15-2020, 04:13 AM
Last Post: abslimit
  How To Open Server? Lyviq 0 383 03-11-2020, 05:19 PM
Last Post: Lyviq
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 3 689 08-01-2019, 02:52 PM
Last Post: ldegroot
  LAN server console commands dbl 1 1,626 06-13-2019, 04:55 AM
Last Post: martin-t
  Dedicated server setup Rec0d 5 1,714 04-03-2019, 02:00 PM
Last Post: Rec0d

Forum Jump:


Users browsing this thread:
1 Guest(s)

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