Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Xonotic be made portable?

#1
Me and a group of friends often like to play Xonotic matches during lessons in College. We all have it runnin from our USB sticks no problem, however...

Any changes we make to settings are only saved to that machine, that account. Is there a way to get Xonotic to save settings (Player info, effects, keyboard layout) directly to the USB stick, and load from there as well?
Post received signal SIGSEGV, Segmentation Fault
Reply

#2
Sure! You simply need to start the executable with the -nohome flag. I'm not sure if this specific method can be done portably, but you can use shortcuts to pass arguments. A better way follows, with a batch file calling the .exe from the .exe's original directory, with an added -nohome.

You can use the server's server_windows.bat file as a base for this. Replace "set executable=xonotic.exe" by "set executable=bin\xonotic.exe", create a "bin" directory, put the .exe in there, and remove the server.cfg file. You can also remove the "if ... goto bad" and "if ... goto halfgood" lines as well as the ":halfgood" line an the "cd" line that follows. And customize the warning message too, in case it can't find the .exe. Then, customize the last line to call xonotic.exe with -nohome.

Result:

Code:
@echo off

setlocal
set executable=bin\xonotic.exe

%~d0
cd "%~p0"

if exist %executable% goto good
goto bad

:bad
echo xonotic.exe could not be found
pause
exit

:good
.\%executable% -nohome
Reply

#3
Okay, so remove server.cfg from the server folder itself?

I have the batch file working and running Xonotic now. Thanks.
Post received signal SIGSEGV, Segmentation Fault
Reply

#4
No no, don't touch server.cfg, it has nothing to do with this script above. I just based my batch script off server_windows.bat, that is all.
Reply

#5
Okay. Thanks for the help!
Post received signal SIGSEGV, Segmentation Fault
Reply

#6
Please help. Now where i need to put the bin folder?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Solved] Make Xonotic Truly Portable? WizardFait 1 5,576 01-08-2016, 07:14 AM
Last Post: Halogene
  Can anyone help me understand player model lod? W4RP1G 7 7,359 04-23-2012, 04:48 AM
Last Post: divVerent

Forum Jump:


Users browsing this thread:
1 Guest(s)

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