Native Linux server (with management scripts)

I've been battling for the passed few days to get my servers running. Everything is up to date, instance is created, but when i go to connect to the server, It tells me to enter the password and then just hangs at "Connection to server ......"
Log from client and server?

Any possibility to get PHP support for Hooks?
Well, even though the files currently require to have .sh extension you can use them for PHP by just placing the php-shebang in the first line as you said. PHP doesn't care for the extension. Having a fixed extension was to make sure that no backups are executed (e.g. joe creates <origName>~ backups). (See http://php.net/manual/en/features.commandline.usage.php, Example #1)

As you said you could not easily use the telnetCommand function (or any other provided by the scripts) but well, as long as I don't write everything in PHP (which obviously won't happen as that language isn't made for the given tasks ;) ) there's no way around that if you want to use the functions. But you should be able to relatively easily set up a connection to the Telnet port with the PHP sockets stuff.

 
Essentially the server is yelling at me that my level0 and level1 file are corrupt. I've replaced them with ones I know aren't and it still says they are corrupt.

 
You can ignore those, I get those messages all the time too... just warnings ;)

But what's the rest of the log?

 
Hello,

made a fresh installation on my Ubunto 10.04 LTS which worked fine.

But I already got a message while installing which was saying that the engine is newer than the management script.

I still tried the install and got the server "running".

Sadly it shows not game information in the server list (added manually) and a connection attempt runs endless.

Now my questions is, is there anything I can do on my end, or do I just have to wait for a new script.

If anyhting else is needed (logs, etc), just let me know.

Thank in advance.

PS: status from console:

Code:
root@lvpsxxx-xxx-xxx-xxx:/etc/init.d# 7dtd.sh status mainworld
Instance: mainworld

Status: Running
Open ports:
   25000 (udp)
   25001 (udp)
   27036 (udp)
   59109 (tcp)
Players:

Game info:
   Server name:
   Password:
   Max players:
   World:

Network info:
   Port:
   Public:
   Control Panel:  Port , Pass
   Telnet:         Port , Pass
 
Last edited by a moderator:
Here is the log for the server: http://pastebin.com/WBhVLapa
Ugh, this looks weird ... looks like it can't find the classes of the server fixes. Could you run "7dtd.sh updatescripts" and check if that helps?

But I already got a message while installing which was saying that the engine is newer than the management script.
I think that's ok, the bootstrapper just isn't aware of that new part ... Gotta rework that one anyway ;)

Now my questions is, is there anything I can do on my end, or do I just have to wait for a new script.
Just to make sure everything is up to date please run both "7dtd.sh updatescripts" and "7dtd.sh updateengine".

Also paste the log (by default this should be in /home/sdtd/instance/mainworld/log/current_output.log) to pastebin.com and post the link here. You might want to blank the passwords in the log where the server prints all the GamePrefs (just search the log for "password").

 
Just to make sure everything is up to date please run both "7dtd.sh updatescripts" and "7dtd.sh updateengine".
Sorry forgot to mention I already did that.

Also paste the log (by default this should be in /home/sdtd/instance/mainworld/log/current_output.log) to pastebin.com and post the link here. You might want to blank the passwords in the log where the server prints all the GamePrefs (just search the log for "password").
Thats the problem, the log you mentioned is pretty empty:

Code:
Starting instance mainworld at 2014.08.22 01:00:21
I've uploaded the output_log.txt on pastebin, since this has more entries:

http://pastebin.com/g4izRsGh

I noticed a few things which irritate me:

- Error in Log: "The file '/home/sdtd/engine/7DaysToDie_Data/mainData' is corrupted! Remove it and launch unity again!"

- While searching the file for the password, all settings where empty.

- Settings for GameLevel and GameName are "My Game" but I set it to Random Gen on setup (might had to type it in as "Random Gen" not just Random Gen)

- While trying to kill the instance, it always forces it to quit, meaning it can't shut it down properly.

Question on a sidenode: Can I import my current mp world which I used to host on my pc to the server?


Meaning copying it over to: /home/sdtd/Documents/7 Days To Die/Saves


Thanks for the help.

- - - Updated - - -

Just noticed, most of the settings metioned here differ from what I set while creating the instance.

Are those the "default" values?

 
I think I found another problem, or maybe the mainproblem:

Thats my config.xml in the instance:

Code:
<ServerSettings/>
Seems like it didn't write anything.

 
I think I found another problem, or maybe the mainproblem:Thats my config.xml in the instance:

Code:
<ServerSettings/>
Seems like it didn't write anything.
And exactly that was the problem.

I've noticed he posted the settings in the console.

I just copied it over, removed the double parent nodes and it started and I can connect.

Yay, thanks :tickled_pink:

 
Glad it works. Should have noticed earlier that you are running 10.04. The XMLStarlet shipped in U10.04 is just too old to have the XML stuff in the scripts working.

Regarding using your existing save: Should be fine, but the destination is /home/sdtd/instances/<name>/<World Name>

 
Glad it works. Should have noticed earlier that you are running 10.04. The XMLStarlet shipped in U10.04 is just too old to have the XML stuff in the scripts working.
Regarding using your existing save: Should be fine, but the destination is /home/sdtd/instances/<name>/<World Name>
I'm uploading my old world now.

Since the new one only generated a wasteland map.

I might be missing a configuration (http://pastebin.com/4KetRnxV).

But its set to Random Gen which should include all bioms ain't it?

Thanks again for the help.

 
Last edited by a moderator:
I attempt to update the scripts but they are already up to date. Am I just at a loss? lol
That's really weird ... The only things I can think of right now is doing forced updates on both engine and scripts:

Code:
7dtd.sh updatescripts --force
7dtd.sh updateengine --force
But I don't think that will help. Will try to come up with better ideas though ;)

I might be missing a configuration (http://pastebin.com/4KetRnxV).But its set to Random Gen which should include all bioms ain't it?
Uhm, how did you create that config? "Random Gen" is the GameWorld, GameName can be anything. You put it just the other way round ;)

 
I am getting quite irritated with Steamcmd and this stupid Steam Guard Nonsense. I have verified my server over 50 times yet I always have to enter in the steam guard code. Thats half the battle because every time I go to update the engine, It asks for the steam guard code, logs me in okay, but never retrieves the license info, thus killing the script.

I ended up installing the game manually to /home/sdtd/engine instead of using your scripts because of this reason, could that be a problem?

I've been contacting Steam support for the past 4 days but not a single response except for an automated "Here follow this guide."

 
Uhm, how did you create that config? "Random Gen" is the GameWorld, GameName can be anything. You put it just the other way round ;)
Yeah I already noticed that, and switched those.

Still if I use a blank save (meaning none) it always creates a wasteland world.

Can't connect to my saved game, always tells me that I'm not logged in. :/

 
I ended up installing the game manually to /home/sdtd/engine instead of using your scripts because of this reason, could that be a problem?
Erm, yeah, this would explain it ... you probably didn't use the dedicated server build then but the normal client build. That won't work ;)

But downloading the dedi build somewhere else and then upload it to engine will work.

Yeah I already noticed that, and switched those.Still if I use a blank save (meaning none) it always creates a wasteland world.

Can't connect to my saved game, always tells me that I'm not logged in. :/
Still sounds weird ... logs?

 
hmm i did update engine and scripts.. redid a new instance.. but when i connect I get outdated server version of 9.0 when my client is 9.1

 
Back
Top