Native Linux server (with management scripts)

I will try that. Are there any changes I need to make to the config.xml ?
Copy the map folder into the client Worlds folder. /home/sdtd/engine/Data/Worlds

Then in the Config you will want to change line 25 from "RWG" to the name of the folder.

This is how we've been doing ours since a18 due to the server taking forever to make the maps.  This is something that is being worked on, and reminds me I need to go try a few gens in a20.

 
I'm reposting this from a thread that was more based on performance, but I may get a better response here: 

The Steam forum did mention that 7DTD is heavily dependent on single threaded performance, if I remember correctly.

 I am running a 12core Threadripper 1920X overclocked to 3.7Ghz (instead of the base 3.5Ghx) with a gob of RAM, but I'm not getting very respectable performance so far (perhaps due to an older video card).

Just a thought: Would it be worth while trying to run a 7DTD server instance separate, as well as a client instance on the same system to offload the ...offloadable tasks to different threads on the CPU? ...thus making the game more multi-threaded at the expense of other resources?


...I'm running on Kubuntu 21.04 (Early Adopter)

 
Hi there,

as it was suggested to me I open a new thread on my management scripts and native Linux server support. This is basically following up on the thread Dedicated Server without hacky workarounds though this is in Linux Bugs where it might be overlooked.

I created a full set of management scripts for a Linux based 7dtd server. This allows basic operations like starting/stopping as well as advanced things like a few event hooks.

(This also includes native Linux engine files so you do not have to use workarounds like Wine to run 7dtd. Unfortunately these files are 32 Bit only so far but at least they can be run on 64 Bit hosts without any problems.) No longer valid, 7dtd provides "built in" 32 bit and 64 bit Linux support since A14

For the full documentation on the management scripts go to https://7dtd.illy.bz/.

Regards,

Alloc
thanks brother

 
I may have missed this somewhere somehow, but I am trying to have 2 instances running at the same time on my machine, one with 7 day bloodmoon and one with a daily bloodmoon. I can't seem to find where i can set the daily instance to 1day though. I know I can do this with a local game on my computer, but I was wanting to run both instances on my server that is using Alloc's linux installation scripts.

 
I may have missed this somewhere somehow, but I am trying to have 2 instances running at the same time on my machine, one with 7 day bloodmoon and one with a daily bloodmoon. I can't seem to find where i can set the daily instance to 1day though. I know I can do this with a local game on my computer, but I was wanting to run both instances on my server that is using Alloc's linux installation scripts.


Would need to verify with @Alloc, but I think multi-instance support was removed a while back. Can probably still do it with some tinkering though.

 
Last edited by a moderator:
Sorry, was not aware I was no longer following this thread until today ... Probably from the last forum update :(

I'm reposting this from a thread that was more based on performance, but I may get a better response here: 

...I'm running on Kubuntu 21.04 (Early Adopter)
Yeah, running dedi + your client separately might help with performance vs running a listen server from the game (assuming the system has good enough specs in terms of cores + especially RAM, which seems to be the case for you).

I may have missed this somewhere somehow, but I am trying to have 2 instances running at the same time on my machine, one with 7 day bloodmoon and one with a daily bloodmoon. I can't seem to find where i can set the daily instance to 1day though. I know I can do this with a local game on my computer, but I was wanting to run both instances on my server that is using Alloc's linux installation scripts.
Just edit the config.xml for that one instance to say BloodMoonFrequency=1. I don't see what the issue would be without further info :)

 
I may have missed this somewhere somehow, but I am trying to have 2 instances running at the same time on my machine, one with 7 day bloodmoon and one with a daily bloodmoon. I can't seem to find where i can set the daily instance to 1day though. I know I can do this with a local game on my computer, but I was wanting to run both instances on my server that is using Alloc's linux installation scripts.
You may already know this but I just wanted to throw out that you should separate the running ports a bit .. don't put them to close together in sequence.  As an example I like to put my servers at least 10 port numbers apart. 

<property name="ServerPort" value="29243"/>

 on the second one do 

<property name="ServerPort" value="29253"/>

 
Thank you for efforts on this project and sharing with the community.  I have this setup on a ubuntu 20.04 server and it works great.  I was wondering if there is information that could be shared on restoring from backup?

 
Sorry for the delayed response.

Basicalyl there's nothing special about restoring: Copy the folder of the save from the backup to the original location. Either overwriting files or even better delete the active version first to make sure all files will be in a consistent state of the backup. Afterwards only fix up ownership (default: "chown -R sdtd.sdtd <savefolder>").

 
Good afternoon. Perhaps this helps somebody. I'm a systems engineer dabbling for the first time into the world of game hosting. Set up two servers for 7dtd on linux.
When I set up my 2nd server, I got a SIGILL error and the server wouldn't start no matter what. I tried many configurations, reinstalled steamCMD, tried different operating systems (Linux Redhat 8.5 and Debian 11) and the error persisted.. The only difference between these two servers is that the one that ran without issues is an intel proc and the one with issues is AMD.

Finally after reinstalling RHEL 8.5 and reading and looking for answers I found out that the (temporary?) solution was to disable EOS from the config and now it works flawesly on my AMD dedicated server.

Hope this helps somebdy with a similar issue as I read somebody was having the same problem trying to run the gameserver under ubuntu server.

 
Curious, what's the exact CPU model you use?
The one with issues as both client AND server ON LINUX is AMD Phenom II X4 3400Mhz 4 cores, 4 logicla processes. 

The problem has to do with the implementation of the EOS crossplatform service. 

Up to A20.3 the workaround was, for linux dedicated server, to remove EOS from platform.cfg

Now in a20.4 removing this line gets you two types of problems: 
As a server, your server starts but is unable to acquire an IP in the server browser. People are only able to connect via direct ip connection.

As a client (steam linux) the game doesn't start, removing the line crossplatform=EOS helps because the game starts but you are unable to join any active games. 


This doesn't affect the windows game client. I booted this system with a windows 10 hard disk installed steam and the game client and was able to join servers normally. Perhaps it has to do with mono? You probably are able to tell more than I do. 

If there's anything I can do to help, please message me. 

Alexia. 

Curious, what's the exact CPU model you use?
Someone replicated the error by attempting to run a dedicated linux server on the same type of hardware and got the same type of error. 

Output log here: 

https://pastebin.com/PWM6wXa5

 
Someone replicated the error by attempting to run a dedicated linux server on the same type of hardware and got the same type of error. 

Output log here: 

https://pastebin.com/PWM6wXa5
That's me. @AllocI'd used this machine when we were testing A20, up to experimental and it had worked as a server. Was going to recycle it, but saw the posts about a20.4 on AMD and decided to test it. If you want any more testing done on it, I'm open to that. I'd just figured, it's so old, just ditch it if it doesn't run your software anymore.

 
Talking to the EOS team, but nothing that we could fix. They are not sure yet if they will (be able to) fix it, definitely would take a bit. After all the Phenom II is over 10 years old by now ... :D  

 
@Alloc just out of curiosity, is there a fix planned for Allocs_WebAndMapRendering?  or is TFP_MapRendering the replacement for it?  Should I remove Allocs_WebAndMapRendering?  The Allocs map launches but it never gets updated and walking the map doesn't do anything.  I suspect it's because in the server config all the "ControlPanelEnabled" bits were replaced with "WebDashboardEnabled" bits.  

Actually, now that I take a closer look at it, it appears all 3 of the Allocs_* now have a TFP_ equivalent.  I'm just going to assume this is the case and del the Allocs_* from Mods.  See how it turns out I guess.

 
Last edited by a moderator:
You probably didn't enabled MapRendering in the config.

Legacy mod still works and provides some stuff the new vanilla version can not serve yet. If you only need the map but no offline players / inventories the new version should serve you well.

Also, wrong thread ;)

 
Back
Top