Native Linux server (with management scripts)

Alloc, I'm not sure if I'm doing something wrong here or not, but we're not seeing the map generate at all on our dedicated server. I go and load it up in a browser, and I can see trackers for all players, animals (if I look closely) and hostiles, but there's no actual map drawn. I just updated to the latest fixes to see if that made a difference, and it did not.

I will state that I did put an old webpermissions.xml into the folder, but that was after loading the unaltered one first. The older one was to see if it made a difference.

EDIT: In the process of making sure player info and log still work, I see this in the log (and yes they all work except map):

2019-10-08T16:49:36 2074.202 INF Error in Web.HandleRequest(): System.NullReferenceException: Object reference not set to an instance of an object at System.Net.HttpConnection.get_RemoteEndPoint () [0x00000] in <c9226b2f33b7421e85bb391f94075e49>:0 at System.Net.HttpListenerRequest.get_RemoteEndPoint () [0x0000b] in <c9226b2f33b7421e85bb391f94075e49>:0 at AllocsFixes.NetConnections.Servers.Web.Web.DoAuthentication (System.Net.HttpListenerRequest _req, AllocsFixes.NetConnections.Servers.Web.WebConnection& _con) [0x0003b] in <563c14ed088347ba9435fd8ab8c282fe>:0 at AllocsFixes.NetConnections.Servers.Web.Web.HandleRequest (System.IAsyncResult _result) [0x00073] in <563c14ed088347ba9435fd8ab8c282fe>:0

Not sure if that actually has any relevance to the issue, but figured I'd include it. Timestamp coincided with the access to the web page originally, rather than checking logs/players.

 
Last edited by a moderator:
Hi alloc,

ich habe folgende Einstellungen getroffen:

<permission module="web.map" permission_level="2000" />
<!-- <permission module="webapi.getlog" permission_level="0" /> -->

<!-- <permission module="webapi.executeconsolecommand" permission_level="0" /> -->

<permission module="webapi.getplayerlist" permission_level="2000" />

<permission module="webapi.getstats" permission_level="2000" />

<permission module="webapi.getplayersonline" permission_level="2000" />

<permission module="webapi.getplayerslocation" permission_level="2000" />

<permission module="webapi.viewallplayers" permission_level="2000" />

<permission module="webapi.getlandclaims" permission_level="2000" />

<permission module="webapi.viewallclaims" permission_level="20000" />

<permission module="webapi.getplayerinventory" permission_level="2000" />
Leider zeigt er mir die map nicht an,

die map bleibt einfach schwarz.

Hi alloc,

I have made the following settings:

<permission module="web.map" permission_level="2000" />
<!-- <permission module="webapi.getlog" permission_level="0" /> -->

<!-- <permission module="webapi.executeconsolecommand" permission_level="0" /> -->

<permission module="webapi.getplayerlist" permission_level="2000" />

<permission module="webapi.getstats" permission_level="2000" />

<permission module="webapi.getplayersonline" permission_level="2000" />

<permission module="webapi.getplayerslocation" permission_level="2000" />

<permission module="webapi.viewallplayers" permission_level="2000" />

<permission module="webapi.getlandclaims" permission_level="2000" />

<permission module="webapi.viewallclaims" permission_level="20000" />

<permission module="webapi.getplayerinventory" permission_level="2000" />
Unfortunately he does not show me the map,

the map just stays black.

 
So, suddenly the map IS working for me, after ignoring the browser tab for four hours and then refreshing. No restarts on the server.

 
So were certain options removed?
Only whatever's noted in the release notes.

... but we're not seeing the map generate at all on our dedicated server...
Sounds like this was pre-update of the server mods. That would be an issue for the other thread though.

Unfortunately he does not show me the map,the map just stays black.
Most likely the same issue, i.e. not running the latest server fixes mod that I released yesterday. Should be versions 20, 23, 33.

 
  • Like
Reactions: Tin
My Linux server is working like a champ. I just generate a map with Nitrogen and upload it using WinSCP into /home/sdtd/engine/Data/Worlds

then sudo chown sdtd:sdtd mapnamehere

then in your /home/sdtd/instances/mapnamehere/config.xml change this line to the map you created.

<!-- World -->

<property name="GameWorld" value="mapnamehere"/>

 
Is there a method I can use to make Traders show up on the web map after they have been uncovered? Also, I know that when maps are generated each town has a name (I have seen town/city names while watching generation happen). Is there a way to show the town names on the web map?

 
Last edited by a moderator:
I used to use virtual servers but found it more beneficial and economical to just outright purchase a server. I bought a Dell R710 with 64 gigs of RAM and then put a 500 Gig SSD in it and installed Ubuntu 14.04 on it. Then took the monthly payment I sent to a server rental place and used it to upgrade my internet connection to 100MB. Now I host my own server out of my house in Tacoma on Enterprise-class server hardware over the Click-Cable fiber network. Linux 7dtd server runs excellent on it.

 
Last edited by a moderator:
Is there a method I can use to make Traders show up on the web map after they have been uncovered?
Yes, if you modify the mod ( :D ) to support this this can be achieved. The easier part here is showing traders, the harder is only showing them when uncovered.

Also, I know that when maps are generated each town has a name (I have seen town/city names while watching generation happen). Is there a way to show the town names on the web map?
Pretty sure this information isn't stored anyway, so that would be a no.

 
Thanks, Alloc. On another note is the web map data stored in /instances/<map>/<save name>/<mapname>/<gamename>/Regions?

I have a 12288 x 12288 map and I tried to use "visitmap -12288 -12288 12288 12288" from the in-game console but ended up with some strange artifacts on the web map. If I delete the contents of Regions, will I just be able to run "rendermap" to restore it to a full map?

I tried deleting the specific region files for the affected areas but they are still showing up. I may have to clear my cache and reload the page.

mapmess11-4-2019.jpg

 
Last edited by a moderator:
Regions is game data, Map is where the rendered files for the webmap are.

If you have a 12k map you should not try to render 24k, which is what your command tried (12k - -12k = 24k).

 
Webmap not rendering A18 b155

Hi,

since updating to 18 stable - did a complete reinstall using the automated install scripts from Alloc's Website and running mod versions 20/23/33 - the webserver does not render the map anymore.

It does not even show any information other than date, time, x Players, y Hostiles, z Animals to the left.

To the right/ center there is just nothing. IIRC there used to be a table listing e.g. the players but it just stays blank.

When I refresh, for just the tiniest of moments, I can glimpse the headers of said table before the content disappears.

Do you have any hint as to what might cause this issue?

The only post I found that might be related is two pages back in this thread, mentioning just having had to wait it out for several hours. Is the webmap just generally taking some time after a new game is started for the first time? That wouldn't explain the missing table, though.

Regards, uncle

 
Sounds pretty much like you just haven't set up permissions. If it was the old issue with just the rendering failing you'd still get the map controls and all the other information on the page.

 
Sounds pretty much like you just haven't set up permissions. If it was the old issue with just the rendering failing you'd still get the map controls and all the other information on the page.
I do feel a lot dumber now for a lot of reasons; two of them being that I cannot for the life of me remember setting these in the last game, and then seeing said permissions mentioned here and there and not thinking about... that I might have set them up for the last game.Thanks aplenty; you were spot on.

 
A russian hacker attacked my server last night. I wasn't running EAC (i am now) and he modified some file on his side to gain admin access and destroyed at least 5 diffrent player bases. I was hoping that restoring the instance direcotry from 7dtd/backup would restore the world but apparently that is not the case. I restored from 24 hours ago but the damage is still there. Is the world data stored in the instance or in /sdtd/engine/Data/Worlds ?

 
In-Game World data is stored in the Region files. So to restore the damaged regions, you would reload the Regions folder from the save instance.

This is why I have several countries IP blocked from my servers.

 
could it be that I'm restoring data but not cleaning the game cache on my local client that's why I'm still seeing the destroyed places?

 
That might be possible, but I've only seen an issue like that with trees or distant POI. Might try restoring the chunkcache on the server.

 
I was hoping that restoring the instance direcotry from 7dtd/backup would restore the world but apparently that is not the case. I restored from 24 hours ago but the damage is still there. Is the world data stored in the instance or in /sdtd/engine/Data/Worlds ?
As Sylen said the actual game save data is part of instances/<gamename>/..., enginge/data/worlds is only serving the base world. If you (properly!) restored some of that data and it did not fix those changes then the hack was done earlier than you though.

Also make sure to stop the server first before replacing save files.

could it be that I'm restoring data but not cleaning the game cache on my local client that's why I'm still seeing the destroyed places?
No, the only thing cached on clients is the uncovered mini map view, nothing else.

 
Thank you Sylen and Alloc for the help with the restoration. I will search your documentation for the (proper!) way to restore data.

 
Back
Top