STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
35
IN-GAME
459
ONLINE
Founded
February 9, 2015
CrazyC Apr 17, 2015 @ 12:57pm
7 Days to Die stop script
First.... awesome job on the Server Managers! I use one for Insurgency and for 7 Days to Die. Since the recent update of 7DTD, we've been playing quite a bit, but there's been a few bugs causing me to stop and restart the server a bunch of times.
In doing so, I went on a quest to change the stop script so that it does a normal/graceful shutdown of the server which will save the Day # and Time, rather than causing the server to revert to Day 1 and 8am by using the kill command.

What I did was create another quick script file using "Expect" to connect and login to the local telnet server of 7DTD and send the "shutdown" command which performs the graceful shutdown as described. Once I verified that worked, I modified the fn_stop function to call my new script in place of the tmux kill command. So I changed one line in the stop function.

As I'm typing, I'm wondering if the telnet shutdown command is part of Alloc's Server fixes that I have installed or if it's a command of the stock telnet console for 7DTD.

I would be glad to pass my expect script code along if anyone is interested or if Daniel would like to integrate it into the server manager.... The only thing I didn't do was set it up to use variables for the IP, telnet password. Would probably be good to add those to the main script file and pass them on to the shutdown script.
< >
Showing 1-3 of 3 comments
[LGSM] KnightLife Apr 17, 2015 @ 4:17pm 
I am very interested in this code. I will happily integrate this into LGSM. Head over to Github. I recommend forking the project and have a go at integrating this into LGSM yourself if you fancy having ago (you will probably learn some useful new stuff and I can help you out as well), if not please submit an issue on GitHub and I can look at intergrating.

https://github.com/dgibbs64/linuxgsm/issues

I look forward to seeing the code and what you have done.
CrazyC Apr 18, 2015 @ 4:49am 
We'll see how my spare time goes. Been kind of busy lately and when I'm not busy, I'm playing. Of course..... tweaking things to suit is a pet pieve of mine, so maybe. Leter today or tomorrow, I'll look at Git Hub. If nothing else, I will definitely create a new issue and post the code for you to add.

I did also add code to the validate function to download and install Alloc's server fixes too. A lot of server admins use his addons because they add so many extra admin features and controls in addition to a full map of the explored regions by all players. This patch definitely isn't for everyone, so it should probably get a setting in the main script to allow you to select whether you want to use it or not and then the code needs to check the setting before installing.
[LGSM] KnightLife Apr 18, 2015 @ 3:55pm 
Your knowledge is very useful to me as I dont run many of these servers myself and I don't know what admins require. My main goal is getting a vanilla server up and running. So having people like you tell me about the most specific features for each server is useful to the project.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Apr 17, 2015 @ 12:57pm
Posts: 3