Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed to read CFG file

#1
I have been trying to set up a dedicated server but it refuses to read the server.cfg file. I have tried putting it in every location i could think of, but to no avail. Is there any thing I could do to fix this?

Also I'm wondering if the server poses a threat to network security
Reply

#2
By default, if the server.cfg isn't placed right, you should get an explicit message:
Server Console Wrote:You have not written any server.cfg file yet.
The server will therefore run at default settings.

For information on how to set up a dedicated server,
look at the files in the server/ subdirectory of your
Xonotic install.

Is this the message you get? How do you start your dedicated server?
More importantly, have you read the readme in the server directory?
Reply

#3
You need to put the server.cfg into your $userdir/data.
For linux that's something like /home/griff/.xonotic/data/
On windows it should be at My Documents/My Games/Xonotic/data
Then start the dedicated.bin or exe with +serverconfig server.cfg
I can provide you some simple scripts to manage servers on linux using the screen app if you like.
Reply

#4
Start the dedicated server using the shell script. server_windows.bat for windows. And read the readme.
Reply

#5
I don't know much about windows batch files but if I read it correctly he has to place the server.cfg into his installdir's data for server_windows.bat to work. So forget about what I said earlier about userdirs if you go that way.
Reply

#6
Yes, exactly. server.cfg should be modified and placed into a data root directory, and the dedicated server should be launched using the script (or at least using the commandline parameters from the script)
Reply

#7
Would "which server.cfg" show if the server is actually reading a server.cfg?

>Also I'm wondering if the server poses a threat to network security
Which network - clients, the servers, or even the servers hosts network? How would Xonotic threaten anybody's security? (maybe if they overdose on lines of coke Tongue)
Reply

#8
Read the console log, if you get the message that I copied above it means that the server loaded the placeholder server.cfg from the data pk3, which means you need to override that with a proper configuration in the data dir.
Reply

#9
overwrite the server.cfg from the data and use the right startparameter .. here an linux examble.
./xonotic-linux32-dedicated case "$(uname -m)" in x86_64) executable="xonotic-linux64-dedicated" ;; *) executable="xonotic-linux32-dedicated" ;; esac +serverconfig server.cfg
[Image: a_ones.de-logo.png]
Gameservers by a-ones.de | [email=gameservers@a-ones.de]E-Mail[/email] | Forum | Twitter | Facebook
Reply

#10
Why would he overwrite it? It's in the data pk3, isn't it? He just needs to put a server.cfg in a data directory and it will take priority over the one in the data pk3.
Reply

#11
(03-23-2012, 02:14 AM)Mr. Bougo Wrote: Why would he overwrite it? It's in the data pk3, isn't it? He just needs to put a server.cfg in a data directory and it will take priority over the one in the data pk3.
* Spaceman agrees with SexyBougo Heart
Reply

#12
It ends up that windows was installed on my laptop after it was repaired. In windows a command line window opens for dedicated server so I don't need to change CFG anymore. Thanks for taking time to answer though Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  server_linux.sh can't find executable file. idk 4 1,245 05-22-2024, 03:27 PM
Last Post: idk
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 2,795 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server error "Weapon stats writing failed: -404" FlufyBuny 2 3,301 04-08-2020, 02:41 PM
Last Post: jwabbitt
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 2 2,976 08-01-2019, 02:52 PM
Last Post: ldegroot
  How to change server cfg on modified server veecho 4 4,921 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  One cause of empty map file BuddyFriendGuy 0 2,199 07-06-2015, 01:45 AM
Last Post: BuddyFriendGuy
  [How to] Linux map file server end user 8 8,725 10-21-2014, 04:13 PM
Last Post: Smilecythe
  When using ./all run dedicated multiple instance different cfg file end user 1 3,289 04-29-2013, 01:19 AM
Last Post: Mr. Bougo
  [SOLVED] server.cfg: bind returned error: Address already in use nonenone 10 14,597 04-12-2012, 05:19 PM
Last Post: nonenone
  [SOLVED] How can I changethe lock file location? nonenone 2 4,424 04-12-2012, 06:39 AM
Last Post: nonenone

Forum Jump:


Users browsing this thread:
4 Guest(s)

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