• 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

Are there any plans for adding block placement and removal messages?
If you're talking about printing a message to the log each time a block is changed in the world then it's definitely a "no". This would spam way too much to the log.

If it's something else you're talking about you have to explain in more detail what you are referring to ;)

 
Web API log display blank?

I saw some posts about the web API logs display being blank (but accurately showing the number of log entries) but couldn't find a resolution. Is this feature supposed to be working?

I get the following error when accessing the log tab:

Code:
2015-12-15T13:35:06 7443.555 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-12-15T13:35:06 7443.555 EXC index and count exceed length of list

ArgumentException: index and count exceed length of list
 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].CheckRange (Int32 idx, Int32 count) [0x00000] in <filename unknown>:0 

 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].GetRange (Int32 index, Int32 count) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.LogBuffer.GetRange (System.Int32& _start, Int32 _count, System.Int32& _end) [0x00000] in <filename unknown>:0 

 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-12-15T13:35:08 7445.531 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-12-15T13:35:08 7445.531 EXC index and count exceed length of list

ArgumentException: index and count exceed length of list
 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].CheckRange (Int32 idx, Int32 count) [0x00000] in <filename unknown>:0 

 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].GetRange (Int32 index, Int32 count) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.LogBuffer.GetRange (System.Int32& _start, Int32 _count, System.Int32& _end) [0x00000] in <filename unknown>:0 

 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-12-15T13:35:10 7447.536 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-12-15T13:35:10 7447.537 EXC index and count exceed length of list

ArgumentException: index and count exceed length of list
 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].CheckRange (Int32 idx, Int32 count) [0x00000] in <filename unknown>:0 

 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].GetRange (Int32 index, Int32 count) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.LogBuffer.GetRange (System.Int32& _start, Int32 _count, System.Int32& _end) [0x00000] in <filename unknown>:0 

 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-12-15T13:35:13 7450.291 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-12-15T13:35:13 7450.292 EXC index and count exceed length of list

ArgumentException: index and count exceed length of list
 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].CheckRange (Int32 idx, Int32 count) [0x00000] in <filename unknown>:0 

 at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].GetRange (Int32 index, Int32 count) [0x00000] in <filename unknown>:0 

 at AllocsFixes.NetConnections.Servers.Web.LogBuffer.GetRange (System.Int32& _start, Int32 _count, System.Int32& _end) [0x00000] in <filename unknown>:0 

 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)
 
Hi Alloc:

I've been using the server fixes and Linux scripts for about 5 months now and I've run into a mystery. Under certain conditions both the admins.xml and webpermissions.xml are being overwritten with some kind of default version where most everything is commented out. I am sure this is a feature, but I cannot figure out how to disable this behavior. This is new with A13; it didn't happen in A12. Any pointers?

 
Hi,

Would it be possible to add a disconnection option when players stay IDLE after the "Pess a Key to enter" Screen. Some player use this feature to be able to skip night when they are alone on the server.

I know than in the telnet log when u use the lp connection there is an indication for this.

Hop you'll add this option to your script :)

 
Alloc i need your help. I want to start A12.5 server and i need you fixes for them, can you help me? I read that i need rev. 250 files.

 
Alloc i need your help. I want to start A12.5 server and i need you fixes for them, can you help me? I read that i need rev. 250 files.
I went digging through my backups and found I still have rev. 250 (5_7_9), which was the version used in a12.5. You can download the Zip file here. I may have modded the web map background, but I can't recall offhand.

Does anyone know if there is a way to make it center the map on the selected player and keep it centered? I'd like to select a player and have it "track", but it only moves the map when they are at the edge, and they just stay at the edge unless they turn around.

 
Hi Alloc,

The icons on my server map do not display.

Here is an error message that I find at console and I am not sure if this relates.

Code:
2015-12-20T09:40:17 11726.755 INF Error in Web.HandleRequest(): System.ArgumentException: An element with the same key already exists in the dictionary. at System.Collections.Generic.Dictionary`2[system.String,System.Byte[]].Add (System.String key, System.Byte[] value) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.LoadIcons () [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Web.HandleRequest (IAsyncResult result) [0x00000] in :0
2015-12-20T09:40:17 11726.791 INF Error in Web.HandleRequest(): System.ArgumentException: An element with the same key already exists in the dictionary. at System.Collections.Generic.Dictionary`2[system.String,System.Byte[]].Add (System.String key, System.Byte[] value) [0x00000] in :0 at
1.jpg

 
I find I just have to wait a minute or so for them to load.

Also, you need to re-install the Mod after each client update.

 
Under certain conditions both the admins.xml and webpermissions.xml are being overwritten with some kind of default version where most everything is commented out.
No idea, should never happen unless it doesn't find a config. Reason *might* be given in the log when that happens though.

Would it be possible to add a disconnection option when players stay IDLE after the "Pess a Key to enter" Screen. Some player use this feature to be able to skip night when they are alone on the server.
Might be, but I normally try to avoid to add things that merely fix something within the game. As this could be seen as being against the game "rules" I might be looking into adding this to the core game. No promises on either if or when that will happen though.

ive had a prob not being able to see the icons in the player inv , anyone know a fix for that?
Depends on the reason. Mod updated for A13? Information in the log?

Alloc i need your help. I want to start A12.5 server and i need you fixes for them, can you help me? I read that i need rev. 250 files.
Old releases can be found in the same folder as the latest archive. Added a section to the wiki page with that info :)

Does anyone know if there is a way to make it center the map on the selected player and keep it centered? I'd like to select a player and have it "track", but it only moves the map when they are at the edge, and they just stay at the edge unless they turn around.
Planned for a future release, especially when adding the more playerlist centric stuff. For now there is no easy way without changing the JS code.

The icons on my server map do not display.
Is that server modded (items.xml / blocks.xml) by any chance? (I think I know what it is but at least in vanilla servers this shouldn't be possible)

Also, you need to re-install the Mod after each client update.
Definitely not with a client update and also for the server only if there are changes to the server code that break compatibility which again should only happen for major releases. Doesn't hurt to update though whenever there is a new release of the mod ;)

 
Planned for a future release, especially when adding the more playerlist centric stuff. For now there is no easy way without changing the JS code.
Thanks. That's what I figured. I tried looking into the code, but it's way beyond my capabilities.

Definitely not with a client update and also for the server only if there are changes to the server code that break compatibility which again should only happen for major releases. Doesn't hurt to update though whenever there is a new release of the mod ;)
I have noticed that with my Linux dedi, if I do not re-copy the Mod folder fixes over to the server after I update the engine, it throws an error at startup and they don't function correctly.

Next time it happens I'll post my logs. (Or I may force it later and post it, but I'm at work atm.)

 
Uploaded WebMap v11, this *should* fix the icon loading when multiple items use the same icon+tint combination.

 
Back
Top