• 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

Does anyone know how to add either fixed markers or highlighted areas on the map?
You could add your own JS code and use Leaflet's markers / vector layers to add whatever you need.

Also just released 5_7_9 which also "fixes" the self-closing popup-issue for now.

 
Use a RCON Tool to set the permissions
webpermission add web.map 2000

webpermission add webapi.getstats 2000

webpermission add webapi.getlandclaims 2000

webpermission add webapi.getplayerslocation 2000

webpermission add webapi.getplayerinventory 2000

Or open up webpermissions.xml (mines located in Saves) and copy/paste the following

Code:
<?xml version="1.0" encoding="UTF-8"?>
<webpermissions>
   <admintokens>
       <!-- <token name="adminuser1" token="supersecrettoken" permission_level="0" /> -->
   </admintokens>

   <permissions>
       <!-- <permission module="webapi.executeconsolecommand" permission_level="0" /> -->
       <!-- <permission module="webapi.getplayersonline" permission_level="1" /> -->
       <!-- <permission module="web.map" permission_level="1000" /> -->
       <permission module="web.map" permission_level="2000" />
       <permission module="webapi.getstats" permission_level="2000" />
       <permission module="webapi.executeconsolecommand" permission_level="0" />
       <permission module="webapi.getlandclaims" permission_level="2000" />
       <permission module="webapi.getplayersonline" permission_level="2000" />
       <permission module="webapi.getplayerslocation" permission_level="2000" />
       <permission module="webapi.getplayerinventory" permission_level="2000" />
   </permissions>

</webpermissions>
Check out the page alloc setup for more info: https://7dtd.illy.bz/wiki/Integrated%20Webserver#Permissions
That worked! Thanks :D

Also thanks for all your hard work Alloc, the map is looking really cool now!

 
Quality all show 0 or poor in the inventory. Minor but great work!!
Needs to get new data from the players, i.e. data about inventory stored prior to the latest release will not have any quality data.

 
The log tab ran great for the first few minutes after I updated. Now the screen only shows header information and the mark as read button. The counter next to the log tab keeps going up.

 
The log tab ran great for the first few minutes after I updated. Now the screen only shows header information and the mark as read button. The counter next to the log tab keeps going up.
u7voR75.png


 
The log tab ran great for the first few minutes after I updated. Now the screen only shows header information and the mark as read button. The counter next to the log tab keeps going up.
Are you saying it does that without reloading the page? I.e. load the page once, go to logs, works fine. Switch to map (or stay in log?) and later on the log is showing empty?

Or did you reload the page and nothing shows up anymore?

 
Are you saying it does that without reloading the page? I.e. load the page once, go to logs, works fine. Switch to map (or stay in log?) and later on the log is showing empty?Or did you reload the page and nothing shows up anymore?
D. All of the above.

It worked beautifully for me for the first 15 - 20 minutes after the update. It has been a blank page ever since. Reloading or switching between the pages seems to do nothing.

 
D. All of the above.
It worked beautifully for me for the first 15 - 20 minutes after the update. It has been a blank page ever since. Reloading or switching between the pages seems to do nothing.
But it only went blank after the first page reload?

 
Same issue here, it worked once after I freshly applied the new version of Allocs Server Fiexs, but went crazy after. Each time now I switch to the LOG tab it throws error messages into the server log, they stop as soon as I switch back from the LOG to the MAP tab:

Code:
2015-08-13T14:50:55 393.788 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:



2015-08-13T14:50:55 393.788 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-08-13T14:50:56 394.400 INF Executing command 'lp' by Telnet from 221.121.159.30:49959



2015-08-13T14:50:57 395.794 ERR GetRange: invalid end 49 (listOffset: 869, count: 100)



2015-08-13T14:50:57 395.794 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:



2015-08-13T14:50:57 395.794 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-08-13T14:50:57 395.973 INF Executing command 'lp' by Telnet from 185.23.227.126:54281



2015-08-13T14:50:57 396.023 INF Executing command 'gt' by Telnet from 185.23.227.126:54281



2015-08-13T14:50:58 396.427 INF Executing command 'lp' by Telnet from 221.121.159.30:49959



2015-08-13T14:50:59 397.801 ERR GetRange: invalid end 49 (listOffset: 875, count: 100)



2015-08-13T14:50:59 397.801 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:



2015-08-13T14:50:59 397.801 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-08-13T14:51:00 398.423 INF Executing command 'lp' by Telnet from 221.121.159.30:49959



2015-08-13T14:51:00 398.928 INF Time: 6.50m FPS: 87.50 Heap: 657.1MB Max: 736.0MB Chunks: 1004 CGO: 124 Ply: 2 Zom: 10 Ent: 26 (50) Items: 20



2015-08-13T14:51:01 399.383 INF Executing command 'lp' by Telnet from 221.121.159.30:49959



2015-08-13T14:51:01 399.813 ERR GetRange: invalid end 49 (listOffset: 881, count: 100)



2015-08-13T14:51:01 399.814 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:



2015-08-13T14:51:01 399.814 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)
... and so on...

 
So is anyone else having trouble with teleporting?

Everyone on my server has to log out and back in everytime they use /home because it puts us in fall mode and under the world it looks like. Rebooting the server doesn't fix it. I've only used Alloc's fixes and modified some XML's to increase stack limits so no crazy modding.

This happens so far no matter where we do /sethome. On top of a building, on level untouched ground or underground. Happens 100% of the time for everyone. Logging out and back in fixes it. When I say fixes it, it puts us where we're supposed to be. Oddly enough if I do /sethome underground and then do /home and log out/in, it puts me above ground.

 
Last edited by a moderator:
The issue with the teleporting happens since a longer time. I think it is not a problem with the command execution itself, but because the chunk gets not loaded fast enough when the player suddenly appears in it, and yes, relogging helps, but is it annoying at all.

 
Thanks just needed to get into the server....Next time I will make sure of that and server restart before bugging you...Thanks again!

 
having a problem with setting thins to 0 for admin.. when i it will not let me view it. i am a admin on the server admins list with a permission level set to 0 but it does not work. everything else seems fine and works like it should if its set to 1000 or 2000 just not the admin stuff

 
But it only went blank after the first page reload?
No, I was able to switch back and forth a few times before it stopped working. I had a server outage today. After the server was finally restarted, the log started working again. I'm not sure when, but I noticed that the LOG number was over 1000 unread. I switched over to the log page and it wasn't working again.

 
I must just be really confused with the last few changes. I had to wait for Gameservers to implement the patch from a couple days ago for Alloc's mod.. but it skipped that one and did not pass Go, went directly to rev. 250 (5_7_9). So I updated that, logged in real quick, logged out, reloaded the map IP, no luck. Changed admin settings back to 0 (they were at 2000 just to try that last time when 0 was no longer working), and still no luck. I'm sorry, please remind me what log is needed, or maybe what i need to change to get our map working again?

mapmod.jpg

 
Thanks for the feedback on the log-part, will have a look (I suppose I almost know what it is anyway ;) ).

having a problem with setting thins to 0 for admin.. when i it will not let me view it. i am a admin on the server admins list with a permission level set to 0 but it does not work. everything else seems fine and works like it should if its set to 1000 or 2000 just not the admin stuff

... Changed admin settings back to 0 (they were at 2000 just to try that last time when 0 was no longer working), and still no luck. I'm sorry, please remind me what log is needed, or maybe what i need to change to get our map working again?
Both of you: after logging in on the web page please provide the server log: https://7dtd.illy.bz/wiki/Logs

@Melcene: Did it work for you when you tried with the required permissions set to 2000?

 
Same problem

But it only went blank after the first page reload?
I have exactly the same problem. The error message is:

2015-08-14 13:11:57 : 2015-08-14T13:11:57 1758.970 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:

2015-08-14 13:11:57 : NullReferenceException: Object reference not set to an instance of an object

2015-08-14 13:11:59 : 2015-08-14T13:11:59 1760.972 ERR GetRange: invalid end 49 (listOffset: 783, count: 100)

which it loops indefinitely.

 
Both of you: after logging in on the web page please provide the server log: https://7dtd.illy.bz/wiki/Logs

@Melcene: Did it work for you when you tried with the required permissions set to 2000?
Did not work after setting permissions to 2000. But you mentioned required permissions; am I missing something? Gameservers does things a bit differently: when installing your mod, I do it directly through their page, like so:

gameserversconfig.jpg

And then when updating the server admin file, same thing, like so:

serveradmin.jpg

And here is the log file: http://pastebin.com/xBsiDpP3 (You'll note I simply logged in and out to see if the map would work.)

 
Wait - wrong output log. I got it from the file location listed in your link, but after reading through, realized it seems to be for games that I host myself, not what is on our dedicated server. So here's the output from our dedicated server. http://pastebin.com/Teja35nE

 
Back
Top