imbalimba420 Posted March 11, 2020 Share Posted March 11, 2020 Hello everyone, is there a way to use a port from the startup script? As an example, this is my startscript right now: ./startserver.sh -configfile=serverconfig.xml startserver.sh looks like this: ./7DaysToDieServer.x86_64 -logfile $SERVERDIR/7DaysToDieServer_Data/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated $PARAMS Is there a way to add a port, so it does not use the one in the config file? Like this? ./7DaysToDieServer.x86_64 -serverport 55480 -logfile $SERVERDIR/7DaysToDieServer_Data/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated $PARAMS I've tried that one allready, but its still using the default port. Can someone tell me, if there is a way, how to use a different port from the startscript directly? Regards Link to comment Share on other sites More sharing options...
meganoth Posted March 11, 2020 Share Posted March 11, 2020 Make two or more copies of your serverconfig.xml with different port numbers (and add the port number to the name of the config file). Select serverconfig55480.xml on the command line or in your startscript to get port 55480 You might also try "./7DaysToDieServer.x86_64 -help", maybe it lists acceptable parameters. Link to comment Share on other sites More sharing options...
imbalimba420 Posted March 11, 2020 Author Share Posted March 11, 2020 I'm using the first method. But the server does not want to start correctly. https://pastebin.com/6GwdzGNb Is this the issue? UnauthorizedAccessException: Access to the path "/home/webinterface/.local" is denied. Link to comment Share on other sites More sharing options...
Beelzybub Posted March 11, 2020 Share Posted March 11, 2020 Is this the issue? UnauthorizedAccessException: Access to the path "/home/webinterface/.local" is denied. That's an issue. The server can't access the saves folder. You can change permissions on that folder, or, I generally put the saves folder in the same directory as the game to insure that it can be accessed. And 'cause it's easier to find. The absolute path is set in the serverconfig file, here: <!-- <property name="UserDataFolder" value="absolute path" /> --> <!-- Use this to override where the server stores all generated data, including RWG generated worlds. Do not forget to uncomment the entry! --> So, in your case, if you were to create a folder named "333" for saves and user data the line would be: <property name="UserDataFolder" value="/home/KD10004/gameserver/7DAYS_27015_131/7DaysToDieServer_Data/333/" /> Link to comment Share on other sites More sharing options...
imbalimba420 Posted March 12, 2020 Author Share Posted March 12, 2020 I will try that real soon. Thanks for helping me out. Mutch appreciated. Link to comment Share on other sites More sharing options...
imbalimba420 Posted March 12, 2020 Author Share Posted March 12, 2020 OK, so changing the save folder worked out perfectly and fixed the problem. Now I'm planning on running my own startup script. But then it gives me some other errors: Unable to preload the following plugins: libMouseLib.so libeac_server.so libeasyanticheat.so libgetrss.so libsteam_api.so steamclient.so libMouseLib.so https://pastebin.com/jSLpxwy8 Link to comment Share on other sites More sharing options...
SylenThunder Posted March 12, 2020 Share Posted March 12, 2020 Those are normal. Not an issue. Link to comment Share on other sites More sharing options...
imbalimba420 Posted March 12, 2020 Author Share Posted March 12, 2020 Ok, but the server still does not start correctly. I execute the start script, the server starts for maybe 5 to 10 seconds and then it closes. https://pastebin.com/LP7f36Gc Make two or more copies of your serverconfig.xml with different port numbers (and add the port number to the name of the config file). Select serverconfig55480.xml on the command line or in your startscript to get port 55480 You might also try "./7DaysToDieServer.x86_64 -help", maybe it lists acceptable parameters. "./7DaysToDieServer.x86_64 -help" does not help much. So it does not show any other startoptions. 2020-03-12T12:12:02 1.586 INF [MODS] No mods folder found 2020-03-12T12:12:02 1.612 INF Loading permissions file at '/root/.local/share/7DaysToDie/Saves/serveradmin.xml' 2020-03-12T12:12:02 1.773 INF Loading permissions file done. 2020-03-12T12:12:07 6.206 INF UMA Overlay loading took 3267 ms 2020-03-12T12:12:07 6.212 INF UMA Slot loading took 5 ms WARNING: Shader Unsupported: 'Autodesk Interactive' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Autodesk Interactive' - Pass 'FORWARD_DELTA' has no vertex shader WARNING: Shader Unsupported: 'Autodesk Interactive' - Pass 'ShadowCaster' has no vertex shader WARNING: Shader Unsupported: 'Autodesk Interactive' - All passes removed 2020-03-12T12:12:11 10.850 INF WorldStaticData.Init() needed 4.626s 2020-03-12T12:12:12 10.885 INF Started Telnet on 8081 2020-03-12T12:12:12 10.887 INF Awake done in 10777 ms One or more DSPGraph's still exists on shutdown, destroy all graphs before program shutdown (Filename: ./Modules/Audio/Public/csas/DSPGraphFactory.cpp Line: 36) Receiving unhandled NULL exception #0 0x005610530e2c2d in (Unknown) #1 0x005610530e3a89 in (Unknown) #2 0x005610530e3d48 in (Unknown) #3 0x005610530e0885 in (Unknown) #4 0x00561052e36fd1 in (Unknown) #5 0x005610530cb27c in (Unknown) #6 0x005610529efca5 in (Unknown) #7 0x007f0d6df40830 in __libc_start_main #8 0x00561052a00403 in (Unknown) Aborted Link to comment Share on other sites More sharing options...
Beelzybub Posted March 12, 2020 Share Posted March 12, 2020 The user running the game doesn't have wx rights to this folder: /home/webinterface/.config, and it seems to want them. You need to tell the game what serverconfig.xml file to use. Link to comment Share on other sites More sharing options...
imbalimba420 Posted March 12, 2020 Author Share Posted March 12, 2020 I'm so sorry, I can't believe I missed that. It was not loading the serverconfig.xml just like you said. I got it working now. Thanks for the amazing support! Much appeciated. Have a nice day everone Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.