Jump to content

Improvements for the dedicated server


Recommended Posts

- Map view border will not update with new size when resizing browser window. I.E. from maximized to fullscreen (F11). The map will be displayed with black borders.

- When you hide the left navigation panel, one row of tiles coming from the right side won't be loaded properly on moving. Already loaded tiles will be shown properly when rearranging map.

Hm, yeah, seems like the component doesn't register any resizing of the area it uses so fails to use it when it gets bigger. Will have a look if this can be fixed.

 

- Last options (like show players, enemies, animals or the reload tiles timer) will be lost when you hit the update button (F5). Maybe set a (session) cookie where the options will be saved?

Sounds like a good idea, added to my list.

 

- Some animals will be displayed as enemy: Boars, Snakes, Bears, ZomBears, Wolves, etc. - this is very irritating especially when hunting.

That's just what the game says about them (and kinda ok imho as those are actually attacking you).

 

- Center map on selected player, keep map centered on selected player. (maybe optional via checkbox) Actually the selected player will just barely be kept inside the map view while traveling above the view border.

Yeah, that's been in there for a while now and even already had a ticket :)

Just never got around to it. There's still a lot of work to be done on the web page.

 

- Possibility to assign special icons to each NPC type via stylesheet. Actually there are only the 2 icons for enemies and wildlife.

Not exactly sure if this can be achieved as it would have to have a fallback if you don't have any custom icons. No idea how this would work for the current setup :(

 

 

 

 

Also, I don't know the impact of "mem", but it looks "heavy" on the load. As in it mostly takes about a second or two to respond.

Hm, if it takes this long I suppose it found a bunch of stuff to clean up (and that won't hurt :) ).It shouldn't do this every time though, only if running it only every few hours or so if a lot of stuff has happened.

But yeah, a simple uptime command won't hurt either. As Prisma put out one for this already I'll only add that to A17 vanilla though.

Link to post
Share on other sites
If and until alloc does include, you can use this little standalone uptime mod.

 

It only contains the "uptime" command.

 

https://1drv.ms/u/s!AvzZsIAN_6-w9TDUtqtXtQyFlyMU

 

Cheers

 

Awesome, cheers!

 

Hm, if it takes this long I suppose it found a bunch of stuff to clean up (and that won't hurt :) ).It shouldn't do this every time though, only if running it only every few hours or so if a lot of stuff has happened.

 

Have to say that it takes up 1-2 seconds every time. But it might have to do something with owning a popular vanilla server.

 

Anyway, should I use the "mem" command regularly? Cause my server is crashing about 4-6 times a day... Not sure if it would help.

Link to post
Share on other sites
Other than it taking a moment it shouldn't have any negative impact at least. Could have some positive effect, but can't say how much it would help with that :)

 

Ah oki, cheers Alloc!

 


Little offtopic FYI, my server crashes of today:

# ls -l logs/20170907_*log.gz
-rw-r--r-- 1 steam steam  69712 Sep  7 02:38 logs/20170907_003501.log.gz
-rw-r--r-- 1 steam steam  58903 Sep  7 05:06 logs/20170907_023847.log.gz
-rw-r--r-- 1 steam steam  76283 Sep  7 12:10 logs/20170907_094701.log.gz
-rw-r--r-- 1 steam steam  62899 Sep  7 13:45 logs/20170907_121101.log.gz
-rw-r--r-- 1 steam steam  94648 Sep  7 15:33 logs/20170907_134601.log.gz
-rw-r--r-- 1 steam steam  76518 Sep  7 17:27 logs/20170907_153401.log.gz
-rw-r--r-- 1 steam steam  79948 Sep  7 21:37 logs/20170907_195901.log.gz

Don't know if this is normal ? :D

Edited by Dugory (see edit history)
Link to post
Share on other sites
  • 1 month later...

Less off-topic than a lot of other posts in here ;)

Actually tried updating to 1.0 some time ago but as a lot of stuff changed in how the coordinate system works and I didn't want to spend too much time at that point I didn't follow it through to the end. Still gotta get that done at some point, 1.0 has some major improvements, especially the pin handling.

Link to post
Share on other sites
Less off-topic than a lot of other posts in here ;)

Actually tried updating to 1.0 some time ago but as a lot of stuff changed in how the coordinate system works and I didn't want to spend too much time at that point I didn't follow it through to the end. Still gotta get that done at some point, 1.0 has some major improvements, especially the pin handling.

 

I did manage it by now, got the map tiles and metrics working on 1.2. Contact me if you are interested.

And sorry this took so long, forum notifications got send to my spam-folder :)

Link to post
Share on other sites

Sounds like an envul thing, change to Zero on the border in settings

 

- - - Updated - - -

 

Please help! Is there any way to disable or change the frequency of the "WARNING You are close to the world border... turn back!" PMs?

 

Madman, Ive not seen that on the common mods, yet it is in envul? if you use that too you'll need to change border in settings to 0 "Disabled"

 

If your not using Envul, then another SM your using or mod config will need it set to disabled but Last time I checked, theres only one tiny little town with a few superstores in the radzone, and if your trying to create an area there for a jail or something theres no point - Last test I did was for a jail, render so many blocks to air and at that time 16.3 even if you change the block type in a rad area, players still died when I tested it, hope this helps

Edited by Aribo
Additional Info (see edit history)
Link to post
Share on other sites
  • 2 weeks later...

i found some error codes

 

You have to setup the permissions.

 

https://7dtd.illy.bz/wiki/Integrated%20Webserver

 

I found them in web panel:

Error in Web.HandleRequest(): System.MissingMemberException: OpenID parameter "openid.mode" missing at AllocsFixes.NetConnections.Servers.Web.OpenID.getValue (System.Net.HttpListenerRequest _req, System.String _name) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.OpenID.Validate (System.Net.HttpListenerRequest _req) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Web.DoAuthentication (System.Net.HttpListenerRequest _req, AllocsFixes.NetConnections.Servers.Web.WebConnection& _con) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Web.HandleRequest (IAsyncResult result) [0x00000] in :0

Link to post
Share on other sites
  • 4 weeks later...
I found them in web panel:

 

Looks like your servers not configured do you still have webmap.api in"/ --->"right/left or removed from the CP list? or the webpermissions are set incorrect with a host or 3rdparty not using the steam Api correct. If at browser end. A refresh may help. with login button Playing UP you'd expect to see some error as suck at least once in the log on these occasions.

 

They be where Id start looking = }

Edited by Aribo (see edit history)
Link to post
Share on other sites

Steam login for web interface seems to be broken.

 

Tried it with the default webpermissions file and a fully setup one. Just removed all the comments and set 'web.map' to permissions 2000. So players don't need to login to view.

 

Steps to reproduce:

  • Click the log in to steam.
  • Sent to '/session/login' and immediately redirected to steamcommunity site.
  • I login to steamcommunnity and get sent back to my server url at '/session/verify?all the open id stuffs here'
  • Only a 100% empty html page is loaded.

 

The console then has this error

2018-01-10T14:45:46 4072.662 INF Error in Web.HandleRequest(): System.Net.WebException: The remote server returned an error: (404) Not Found.

at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0

at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0

 

 

[edit]

Upon browsing the source code I located

static OpenID () {

ServicePointManager.ServerCertificateValidationCallback = (srvPoint, certificate, chain, errors) => {

if (errors == SslPolicyErrors.None)

return true;

 

Log.Out ("Steam certificate error: {0}", errors);

 

return true;

};

 

}

 

Searching through the log reveals: "Steam certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors" several lines remove from the other.

 

Seems that for some reason the ssl connection is failing. Anyone have clues as to why that would be? wget/curl have no issues connecting over ssl from the server.

Edited by credomane (see edit history)
Link to post
Share on other sites

Problem..

 

Hey, I think I have a problem with alloc fixes ..

The server is running for a while but then the server crashes.

 

2018-01-15T00:00:59 8661.396 INF Time: 144.13m FPS: 22.35 Heap: 1665.5MB Max: 2346.7MB Chunks: 1278 CGO: 33 Ply: 4 Zom: 0 Ent: 8 (37) Items: 1 CO: 4 RSS: 3373.6MB
2018-01-15T00:01:00 8662.180 INF AIDirector: Scout spawning failed, FindHordeTargets() returned false!
Could not allocate memory: System out of memory!
Trying to allocate: 1398147B with 16 alignment. MemoryLabel: TempOverflow
Allocation happend at: Line:170 in 
Memory overview

[ ALLOC_DEFAULT ] used: 496043698B | peak: 506308940B | reserved: 531152183B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 72125098B | peak: 78462101B | reserved: 80549166B 
[ ALLOC_GFX ] used: 148035898B | peak: 326781712B | reserved: 148277692B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32968B | peak: 0B | reserved: 3145728B 
Could not allocate memory: System out of memory!
Trying to allocate: 1398147B with 16 alignment. MemoryLabel: TempOverflow
Allocation happend at: Line:170 in 
Memory overview

[ ALLOC_DEFAULT ] used: 496043698B | peak: 506308940B | reserved: 531152183B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 72125098B | peak: 78462101B | reserved: 80549166B 
[ ALLOC_GFX ] used: 148035898B | peak: 326781712B | reserved: 148277692B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32968B | peak: 0B | reserved: 3145728B 


(Filename:  Line: 1046)

Could not allocate memory: System out of memory!
Trying to allocate: 1398120B with 16 alignment. MemoryLabel: TempJobAlloc
Allocation happend at: Line:45 in 
Memory overview

[ ALLOC_DEFAULT ] used: 496043698B | peak: 506308940B | reserved: 531152183B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 72125098B | peak: 78462101B | reserved: 80549166B 
[ ALLOC_GFX ] used: 148035898B | peak: 326781712B | reserved: 148277692B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32968B | peak: 0B | reserved: 3145728B 
Could not allocate memory: System out of memory!
Trying to allocate: 1398120B with 16 alignment. MemoryLabel: TempJobAlloc
Allocation happend at: Line:45 in 
Memory overview

[ ALLOC_DEFAULT ] used: 496043698B | peak: 506308940B | reserved: 531152183B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 72125098B | peak: 78462101B | reserved: 80549166B 
[ ALLOC_GFX ] used: 148035898B | peak: 326781712B | reserved: 148277692B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32968B | peak: 0B | reserved: 3145728B 


(Filename:  Line: 1046)

 

and that came 1 hour before the crash.

 

Could not allocate memory: System out of memory!
Trying to allocate: 8388608B with 16 alignment. MemoryLabel: STL
Allocation happend at: Line:75 in 
Memory overview

[ ALLOC_DEFAULT ] used: 501947857B | peak: 506603764B | reserved: 536721828B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 78665257B | peak: 83879514B | reserved: 88459377B 
[ ALLOC_GFX ] used: 160801682B | peak: 326781712B | reserved: 161118906B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32752B | peak: 0B | reserved: 3145728B 
Could not allocate memory: System out of memory!
Trying to allocate: 8388608B with 16 alignment. MemoryLabel: STL
Allocation happend at: Line:75 in 
Memory overview

[ ALLOC_DEFAULT ] used: 501947857B | peak: 506603764B | reserved: 536721828B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 78665257B | peak: 83879514B | reserved: 88459377B 
[ ALLOC_GFX ] used: 160801682B | peak: 326781712B | reserved: 161118906B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32752B | peak: 0B | reserved: 3145728B 


(Filename:  Line: 1046)

 

Could not allocate memory: System out of memory!
Trying to allocate: 4194304B with 16 alignment. MemoryLabel: GfxDevice
Allocation happend at: Line:62 in 
Memory overview

[ ALLOC_DEFAULT ] used: 483589593B | peak: 496842152B | reserved: 513178331B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 78843994B | peak: 83572891B | reserved: 88661503B 
[ ALLOC_GFX ] used: 162610084B | peak: 326781712B | reserved: 162931849B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32968B | peak: 0B | reserved: 3145728B 
Could not allocate memory: System out of memory!
Trying to allocate: 4194304B with 16 alignment. MemoryLabel: GfxDevice
Allocation happend at: Line:62 in 
Memory overview

[ ALLOC_DEFAULT ] used: 483589593B | peak: 496842152B | reserved: 513178331B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B 
[ ALLOC_GAMEOBJECT ] used: 78843994B | peak: 83572891B | reserved: 88661503B 
[ ALLOC_GFX ] used: 162610084B | peak: 326781712B | reserved: 162931849B 
[ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B 
[ ALLOC_TEMP_THREAD ] used: 32968B | peak: 0B | reserved: 3145728B 


(Filename:  Line: 1046)

 

in addition, I have just found that..

 

[s_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 251570

Native stacktrace:

/home/sdtd2/serverfiles/7DaysToDieServer_Data/Mono/x86/libmono.so(+0x8960f) [0xf6d1f60f]
/home/sdtd2/serverfiles/7DaysToDieServer_Data/Mono/x86/libmono.so(+0x21a20) [0xf6cb7a20]
linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7731cb0]
/lib/i386-linux-gnu/libc.so.6(+0x7782c) [0xf73bf82c]
/lib/i386-linux-gnu/libc.so.6(+0x69a1d) [0xf73b1a1d]
/lib/i386-linux-gnu/libc.so.6(fread+0x77) [0xf73a6487]
./7DaysToDieServer.x86() [0x850e247]
./7DaysToDieServer.x86() [0x84eb89e]
./7DaysToDieServer.x86() [0x850ceea]
./7DaysToDieServer.x86() [0x852f899]
./7DaysToDieServer.x86() [0x853008f]
./7DaysToDieServer.x86() [0x84e47c8]
/lib/i386-linux-gnu/libpthread.so.0(+0x627a) [0xf76fc27a]
/lib/i386-linux-gnu/libc.so.6(clone+0x66) [0xf742fb56]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

 

this always happens when the server is restarted..

 

yesterday I also had an error message from allocs mod where the command "lp - list players" was executed.

 

I have a second server that is almost identical .. but everything works. I hope someone can help me

Link to post
Share on other sites
Steam login for web interface seems to be broken.

 

Steps to reproduce:

  • Click the log in to steam.
  • Sent to '/session/login' and immediately redirected to steamcommunity site.
  • I login to steamcommunnity and get sent back to my server url at '/session/verify?all the open id stuffs here'
  • Only a 100% empty html page is loaded.

 

The console then has this error

Other than a temporary OpenID system failure on Steam's end yesterday there's been no issues (and also no code change in a long time). Must be something specific on your end. Does the issue persist? What's the full log, at least around the error?

 

Searching through the log reveals: "Steam certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors" several lines remove from the other.

The RemoteCertificateChainErrors is ok, it's just because the game server doesn't have the root cert that's responsible for Steam's cert and thus can't validate it. That's "ok" though and shows for everyone.

RemoteCertificateNameMismatch shouldn't be in there though. Almost sounds like something is making you connect to another server or things like that.

 

 

 

 

 

Hey, I think I have a problem with alloc fixes ..

The server is running for a while but then the server crashes.

Plain old out of memory crash, not related to my mod.

 

 

in addition, I have just found that..

[s_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 251570

Native stacktrace:

/home/sdtd2/serverfiles/7DaysToDieServer_Data/Mono/x86/libmono.so(+0x8960f) [0xf6d1f60f]
/home/sdtd2/serverfiles/7DaysToDieServer_Data/Mono/x86/libmono.so(+0x21a20) [0xf6cb7a20]
linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7731cb0]
/lib/i386-linux-gnu/libc.so.6(+0x7782c) [0xf73bf82c]
/lib/i386-linux-gnu/libc.so.6(+0x69a1d) [0xf73b1a1d]
/lib/i386-linux-gnu/libc.so.6(fread+0x77) [0xf73a6487]
./7DaysToDieServer.x86() [0x850e247]
./7DaysToDieServer.x86() [0x84eb89e]
./7DaysToDieServer.x86() [0x850ceea]
./7DaysToDieServer.x86() [0x852f899]
./7DaysToDieServer.x86() [0x853008f]
./7DaysToDieServer.x86() [0x84e47c8]
/lib/i386-linux-gnu/libpthread.so.0(+0x627a) [0xf76fc27a]
/lib/i386-linux-gnu/libc.so.6(clone+0x66) [0xf742fb56]

this always happens when the server is restarted...

You mean it's in there when you issued an shutdown? Note that the stacktraces on Unity's Linux builds are always written to the beginning of the log, not the place where the crash actually happens.

 

yesterday I also had an error message from allocs mod where the command "lp - list players" was executed.

Without the actual error nothing can be done here.

Link to post
Share on other sites
  • 3 weeks later...

 

Plain old out of memory crash, not related to my mod.

 

 

You should mention that it's a bug in the currently used version of unity not using more than 16G of RAM.

@Hagalaz weren't u using my scripts ? That is exactly what my out of memory script was for.

Link to post
Share on other sites

Ingame Map Reset On Every Restart

 

Hi alloc, nice to meet you.

Trekkan told me to ask you for this issue if you can help me or know something.

 

Im having a strange problem with the server that never had before, I notice that everytime mi modem change my ip or the server restart, the ingame map appears as undiscovered for every survival, the map was almost 75% discovered I saw it in the web map of the manager that also shows me this message every time I use it but I press Yes and opens normally. Another strange thing is that with every restart when I enter in my server it began to download hub cell dont know why.

[ATTACH=CONFIG]23931[/ATTACH]

 

Apart from that I dont know why the map of everyone show undiscovered like they never walked in the map, but in the web map shows what the player discovered but ingame(M) is like they are new in the map like its their first time o the map for them was reset.

This already happened sometimes, Im already using a program for a dynamic ip but I restarted the server because a player was dupping and I notice it because the server was eating almost 1gb extra of the normal

 

And finally an error that maybe be a glitch but dont know it appears that in some point after a certain days the server is like it stucks in a single day, in the last map we were about day 360, suddenly one day a made a quick restart and the server went back to day 348, this happened everything I restarted the server.

It looks like the server at some point stuck in certain day and rollback to that everytime you restart it.

I restarted a lot of time before the server and didnt rollback but after that day it started to happen

raterror.thumb.jpg.508c3f97c8cc3cab9904fde4bd150013.jpg

Link to post
Share on other sites
I notice that everytime mi modem change my ip or the server restart, the ingame map appears as undiscovered

The uncovered map areas ingame on clients are only bound to the server's world GUID. This means that it should work as long as your server properly saves it's world header file (main.ttw).

 

that also shows me this message every time I use it but I press Yes and opens normally.

Can't help you with that, that must be something within RAT's browser engine.

 

Another strange thing is that with every restart when I enter in my server it began to download hub cell dont know why.

Same as with the uncovered maps for clients: Bound to the world GUID. Not properly getting the main.ttw saved can lead to the GUID changing and the client thinking you connect to a new world.

 

And finally an error that maybe be a glitch but dont know it appears that in some point after a certain days the server is like it stucks in a single day, in the last map we were about day 360, suddenly one day a made a quick restart and the server went back to day 348, this happened everything I restarted the server.

World time is also part of the main.ttw. All this sounds like you got an issue with that one saving. A log might give more hints on what's going wrong.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...