• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Improvements for the dedicated server

Question: Is there anything in the code that would prevent me from reverse engineering it to add se @ x,y,z myself? Or is there something that has to be added to the core game first? Didn't know if I could merge code from the tele and se commands together somehow.
OK. Nevermind. I see that se was not added by the Server Fixes.

I'll go sit in a corner now. :cower:

 
Hey Alloc, my server crashed today after i loged in on the livemap.

Code:
2015-09-03T22:55:39 3387.169 ERR GetRange: invalid end 49 (listOffset: 5275, count: 100)

2015-09-03T22:55:39 3387.169 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-09-03T22:55:39 3387.169 EXC Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object
 at AllocsFixes.NetConnections.Servers.Web.API.GetLog.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logger:masterLogException(Exception)
Logger:Exception(Exception)
Log:Exception(Exception)
AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler:HandleRequest(HttpListenerRequest, HttpListenerResponse, WebConnection, Int32)
AllocsFixes.NetConnections.Servers.Web.Web:HandleRequest(IAsyncResult)
System.Net.ListenerAsyncResult:InvokeCallback(Object)

(Filename:  Line: -1)

2015-09-03T22:55:39 3387.224 INF Executing command 'pm 84641 "You are being teleported home!"' by Telnet from 67.205.111.132:39784

2015-09-03T22:55:40 3387.294 INF Executing command 'tele 84641 -3028 109 292' by Telnet from 67.205.111.132:39784

2015-09-03T22:55:40 3387.379 INF Executing command 'tele 84641 -3028 109 292' by Telnet from 67.205.111.132:39784

2015-09-03T22:55:41 3389.074 ERR GetRange: invalid end 49 (listOffset: 5281, count: 100)

2015-09-03T22:55:41 3389.075 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-09-03T22:55:41 3389.075 EXC Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object
 at AllocsFixes.NetConnections.Servers.Web.API.GetLog.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logger:masterLogException(Exception)
Logger:Exception(Exception)
Log:Exception(Exception)
AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler:HandleRequest(HttpListenerRequest, HttpListenerResponse, WebConnection, Int32)
AllocsFixes.NetConnections.Servers.Web.Web:HandleRequest(IAsyncResult)
System.Net.ListenerAsyncResult:InvokeCallback(Object)

(Filename:  Line: -1)
You can load the crashlog here: https://dl.dropboxusercontent.com/u/66757750/survival-gamers.eu/7dtd/2015-09-03_215912.7z

 
Question: Is there anything in the code that would prevent me from reverse engineering it to add se @ x,y,z myself?
Why reverse, my stuff is open source... ;)

But yeah, se is part of the core game.

Hey Alloc, my server crashed today after i loged in on the livemap.

Code:

You can load the crashlog here: https://dl.dropboxusercontent.com/u/66757750/survival-gamers.eu/7dtd/2015-09-03_215912.7z
That exception won't cause any problems, it's caught before it could do any harm. Can't look at the full log right now though.

 
Inventory view works fine on my server, but we had this error spamming when we switched to the Map tab, posted this earlier somewhere here.

 
The error occured after i wanted to look in a inventory on the livemap. :o
Just had a minute to check the full log. The error was at least 10 seconds before the crash ;)

Anyway, from what the log shows there's been nothing abnormal before the crash and the stack trace only points to an error within Unity's code. No idea what happened there.

Inventory view works fine on my server, but we had this error spamming when we switched to the Map tab, posted this earlier somewhere here.
Yeah, though the error should rather show up when switching to the *log* tab ;)

 
Highlighting an area on Alloc's web map

Does anyone know how to add either fixed markers or highlighted areas on the map? I could have swore i seen someone have a "no PvP" highlighted area on their map but cant remember now where i seen it. Any pointers on if this is possible would be awesome. Also, off topic but while im here - where is it that you set spawn points for random gen games?
Well a few weeks later and I was trying to figure out how to do this too. On my server (as on many others) we regularly reset the central city as it gets pretty torn up over time. So that players know exactly what are the reset area's boundaries, I added some code to Alloc's "map.js" file from this:


tileLayer.addTo(map);

 

new L.Control.Coordinates({}).addTo(map);

To this:

tileLayer.addTo(map);
 

/* Highlight the reset area */


var resetArea = L.polygon([


[512, -512],


[512, 512],


[-512, 512],


[-512, -512]


]).addTo(map);


resetArea.bindPopup("Blue area gets reset regularly; if you place a claim block here you will lose it.")

 

new L.Control.Coordinates({}).addTo(map);

Note that the co-ordinates above correspond to the four region tiles upon which our main city rests. If you have much larger cities, you will need to change these co-ordinates.

See the bitmap for an example: reset-area.jpg

You can also see the live map here: http://zombiesofabaddon.enjin.com/webmap

 
Last edited by a moderator:
That exception won't cause any problems, it's caught before it could do any harm. Can't look at the full log right now though.
I reinstalled the server today and loaded the mod from your site again. I started the server, logged me in at the webinterface, look in to a inventory and get this error:

Code:
2015-09-07T23:37:06 358.746 ERR GetRange: invalid end 49 (listOffset: 1102, count: 100)

2015-09-07T23:37:06 358.746 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-09-07T23:37:06 358.746 EXC Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object
 at AllocsFixes.NetConnections.Servers.Web.API.GetLog.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logger:masterLogException(Exception)
Logger:Exception(Exception)
Log:Exception(Exception)
AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler:HandleRequest(HttpListenerRequest, HttpListenerResponse, WebConnection, Int32)
AllocsFixes.NetConnections.Servers.Web.Web:HandleRequest(IAsyncResult)
System.Net.ListenerAsyncResult:InvokeCallback(Object)
This error occours everytime i open a inventory in the webinterface.

 
I reinstalled the server today and loaded the mod from your site again. I started the server, logged me in at the webinterface, look in to a inventory and get this error:...

This error occours everytime i open a inventory in the webinterface.
You sure it's not another user accessing the page at the same time? As I said this should only pop up when someone tries to access the log page (but again: it won't hurt).

 
I noticed that 1st the other telnet connections will disconnect or the data comes slower and sometimes the webinterface goes down so that i have to restart the server. their is no other connection on the webinterface, because we dont post this to our players.

it's a bit crazy with your mod and a12.5.

 
alloc is it possible in the next version of the web map for admins to be able to kick/ban directly from the map? would be REALLLLLY useful

Cheers

c

 
I noticed that 1st the other telnet connections will disconnect or the data comes slower and sometimes the webinterface goes down so that i have to restart the server. their is no other connection on the webinterface, because we dont post this to our players.
it's a bit crazy with your mod and a12.5.
Not telling players about it doesn't mean they can't access it ;)

Those that do know about this mod might just try to guess the port.

If you do feel like it's caused by the mod ... try running the server without and see if it gets any better. As I said I doubt it's the mod that's causing the problems though.

alloc is it possible in the next version of the web map for admins to be able to kick/ban directly from the map?
Depends on when the next version will be released ... I just have to keep updates to myself long enough before I release it then such feature will be in the "next" version :p

User administration is of course planned but it probably won't become available for a bunch of weeks.

 
Hey guys,

I just rented myself a server and have put Alloc's fixes on there. All running fine, but just wanted to check with you guys whether these 2 errors I am getting are anything worth looking into?

This one pops up just once every now and again, highlighted in red in the log, seems to coincide roughly with me logging in;

Error A client which was not in the connected player list disconnected. ???

This one pops up more frequently, sometimes a few of them, sometimes a lot, sometimes dont see them for a while at all;

Log Error in Web.HandleRequest(): Remote host closed connection: An existing connection was forcibly closed by the remote host

I did have a search around, but couldent find anything specific to these. I'm thinking they aren't anything to worry about, they dont seem to be affecting anything at any rate, but wouldn't mind if someone in the know could confirm for me.

Cheers.

A.

 
Back
Top