Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] Dedicated Server prompt starts, remains blank for a few seconds then closes.

#1
Hello, I've been trying to start a Dedicated Server on Xonotic for a bit now.
Ran into a strange issue, though I've copied the batch file from the 'server' directory to where the executables' main directory is, as well as the CFG one to it's own. All it does upon starting up is as described above: runs, for a little bit anyways, but outputs nothing on the window, then suddenly closes by itself.
No messages as far as I can see on each startup, thought it was a permissions issue, moving the installation to my C: drive did nothing to mitigate that.
Didn't find anything close to this for the time I looked around, I'm not even through the first test despite having the necessary port forwarded.
Reply

#2
Closing after a few seconds means it can't find your server.cfg, that should be created/copied in C:\Users\<yourusername>\Saved Games\xonotic\data

I don't know why there'd be no text visible, there should always be a bunch (and in this case a message about creating server.cfg). It just uses the standard windows command terminal so maybe there's something wrong with that on your machine.
Reply

#3
(10-31-2026, 12:24 PM)bones_was_here Wrote: Closing after a few seconds means it can't find your server.cfg, that should be created/copied in C:\Users\<yourusername>\Saved Games\xonotic\data

I don't know why there'd be no text visible, there should always be a bunch (and in this case a message about creating server.cfg). It just uses the standard windows command terminal so maybe there's something wrong with that on your machine.

If I'm not mistaken, had there been issues with Command Prompt, I'd have been able to fish them out a long time ago, since I've hosted dedicated servers for other games before and had to use it on those occasions. I do not doubt the claim, but at the same time, I have no idea where to begin looking if the issue really is on my end.
Reply

#4
Well I tried the 0.8.6 and current beta dedicated servers in a VM running an older version of windows and the text is all appearing and looks normal. When I try it without a server.cfg I can see the message about that before it closes.

Here's a few links about issues like this on windows, maybe they help
https://superuser.com/questions/1517887/...nk-no-text
https://superuser.com/questions/1869010/...ble-window
Reply

#5
(11-01-2026, 02:19 AM)bones_was_here Wrote: Well I tried the 0.8.6 and current beta dedicated servers in a VM running an older version of windows and the text is all appearing and looks normal. When I try it without a server.cfg I can see the message about that before it closes. 

Here's a few links about issues like this on windows, maybe they help
https://superuser.com/questions/1517887/...nk-no-text
https://superuser.com/questions/1869010/...ble-window

Strangest part to me is that it's very clearly capable of running .bat files anywhere else on Windows just fine, regardless of directory. 
I can see the CMD prompt's cursor blipping, but no script execution is in progress whatsoever.
Forgot to mention that if it does run out of the game's directory file, it will output the 'Improper Configuration' part of said script, probably should've been better with describing it in detail, I apologize for the confusion. First solution suggested changing the colors, that had no effect, second link assumes it runs in the background, but when keeping an eye on Task Manager, it just stops instead of running in the background. Executing with or without Administrator privilege, deleting Xonotic then extracting it somewhere, all measures have yielded the same result so far.
Is there something that Windows 10 in particular does to obstruct this game's services which I'm not aware of?
Reply

#6
Ah I hadn't noticed you were using a .bat file rather than just running the `xonotic-dedicated.exe`, the `server/server_windows.bat` looks buggy to me - it's using `xonotic.exe` instead of `xonotic-dedicated.exe` (the `-dedicated` argument to the graphical binary works on linux and mac but IIRC on windows you'll get no console if you do that). IMO those scripts aren't really needed, if you set the working directory before starting (eg by `cd` or by setting it in a shortcut's properties) then it'll find its data files there. Or just double click on `xonotic-dedicated.exe`.
Reply

#7
Oh, I see. So it DOES work not through the starter scripts, I did not think of launching straight through the dedicated server executable.
Did not expect that at all, bad habits from older titles must've carried over, my mistake. The program indeed gave me the quick closure after the lack of any 'server.cfg' was detected, all that remained was just bringing server.cfg to the same 'Saved Games' path necessary plus specifying a different 'sessionid' so that Xonotic can run with the server at the same time.
Now it finally shows up on browser, most of what necessitated being uncommented within the file has now come as such. Once again, excuse the prior miscommunications, I had no idea that they would not be reliable for this. Your help on this is greatly appreciated, and I cannot thank you enough for sparing the time to clear up the process.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Dedicated server setup Rec0d 6 14,950 10-19-2025, 12:10 AM
Last Post: Legend_Uprising
  I can't see my listen server on server list fnmain 1 4,660 10-07-2023, 07:28 AM
Last Post: Grimnack
  Server not visible on the server browser for others or me DankoLord 1 5,107 02-21-2023, 08:02 PM
Last Post: ballerburg9005
  Docker Xonotic Dedicated Server ich777 18 24,577 08-15-2022, 12:44 AM
Last Post: FAF
  BaI server | South American Xonotic server (located in Chile) z411 0 5,526 01-02-2022, 11:36 PM
Last Post: z411
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 13,835 09-03-2021, 10:21 AM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 8,548 08-19-2020, 10:17 PM
Last Post: ballerburg9005
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 1 3,838 06-01-2020, 07:11 AM
Last Post: Jewel
  [NEED HELP] Server dont appear in server browser abslimit 0 4,588 03-15-2020, 04:13 AM
Last Post: abslimit
  How to change server cfg on modified server veecho 4 8,420 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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