Native Linux server (with management scripts)

i've been a day-one user of your scripts and initially only used parts of them in my own linux setup.

with 8.7 i finally took the plunge and did a reinstall via the full wiki instructions. and i'm very glad i did! it's seems very polished and well put together: nice countdown when i shutdown, clean XML reader which outputs sane files, self explanatory folder names,... so thanks for all that! i appreciate it.

 
i get this error on shutdown (but shutdown still works):

# /etc/init.d/7dtd.sh stopStopping all instances:

nekapuzer:

Trying to gracefully shutdown...

Waiting for server to shut down...

1/5

2/5

3/5

/usr/local/lib/7dtd/commands/stop.sh: line 52: setAllPlayersOffline: command not found

Done
i see that this function is defined in playerlog.sh but i don't see it "imported" (...i'm a bash noob) in stop.sh

 
Hi smono,

always happy to hear when people like it :)

i get this error on shutdown (but shutdown still works):...

i see that this function is defined in playerlog.sh but i don't see it "imported" (...i'm a bash noob) in stop.sh
Thanks for reporting, missed that one when working on v.25. In v.26 this error is fixed (though it's only cosmetical, it does not do anything bad or wrong ;) ).

Regards,

Chris

 
First of all: Great work on these server management scripts and Linux support!

Is there any news on when the players.xml logging (f.ex. online-status) will be functional again?

Also, my hooks no longer seem to work since upgrading to 8.7, anyone else running into this problem?

 
Is there any news on when the players.xml logging (f.ex. online-status) will be functional again? Also, my hooks no longer seem to work since upgrading to 8.7, anyone else running into this problem?

Just uploaded v.25. See the release notes for more info on changes ;)
So, since v.25 logging is working again ;)

Should also fix your hooks, if not we have to check what's causing this for you.

 
Oh, well.. something isnt right then :D It was working before 8.7 though.

I created the hooks folder and placed a script for player-connection which I then marked executable (/home/sdtd/hooks/playerConnect/playerConMsg.sh)

#!/bin/sh

. /usr/local/lib/7dtd/common.sh

telnetCommand $1 "say Welcome $4!"
Regarding log output, I just created a new instance and even after joining the resulting logfile "2014-07-12_09-44-16_output.log" only contains one line (Starting instance).

 
Ohhhh shi... My fault, should be fixed in v.27 now ;)

Regarding hooks: Don't forget to use Bash, the scripts rely on some functions of that one. I.e. make the first line "#!/bin/bash".

 
Well I changed the script to use bin/bash

#!/bin/bash. /usr/local/lib/7dtd/common.sh

telnetCommand $1 "say Welcome $4!"
It still didnt work though :(
Also restarted my test-instance, but the log file still only gets created with one line (Instance created) and the players.xml file for logging is still empty after I joined the server :/

Any suggestions? :D

 
One instance was running while updating the scripts. I did restart it after though.

The test-instance however wasnt running while updating the scripts.

 
Better :D

Im now getting data in the /logs directory (2014-07-12_15-39-43_output.log and output_log.txt) so that seems to be solved.

However the logging in players.xml still isnt adding an entry on my test instance and my hook still refuses to fire the welcoming message :o

Btw, should I always be stopping the instances before updating scripts?

 
Updating the scripts while instances are running shouldn't hurt but if there are changes to the logging stuff those won't affect running instances but only after the next start of an instance.

Regarding the player logging: Gotta test this again, thought it was working by now ;)

 
Non-existant :D

I only have the old players.log in the instance-directory. In /logs I only have the <date>_output.log, stdout.log and output_log.txt.

The only Error Message I see popping up in the log is the following btw:

2014.07.13 11:35:12: Fallback handler could not load library /home/sdtd/engine/7DaysToDie_Data/Mono/x86/SteamworksNative

 
Back
Top