• 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

Thanks alloc, hope you had nice christmas.

And I dream of the realization of my ideas.. Hope you can find time to make this work for us admins easier.

Greetz

 
Anyone else having a problem getting the map server to load since 13.6 (maybe 13.5 as well). I get the following in my output log:

"Webserver not started (ControlPanelPort not within 1-65533)"

And while the error message is pretty explicit about what is apparently wrong, I can assure you my ControlPanelPort setting is indeed within 1-65533 and it's reachable when the game is running as well. The last patch I remember the map working was 13.4 and I haven't changed my serverconfig.xml since then.

The code in Web.cs for checking the port is pretty simple and doesn't leave much room for a bug. Did the GamePrefs or EnumGamePrefs objects get screwed up in one of the minor patches? Or I'm I just having a weird problem on my own system. The server is Windows 10 running the 13.6 dedicated server and rev 254 of the server fixes. Everything else is stock.

 
Anyone else having a problem getting the map server to load since 13.6 (maybe 13.5 as well). I get the following in my output log:"Webserver not started (ControlPanelPort not within 1-65533)"

And while the error message is pretty explicit about what is apparently wrong, I can assure you my ControlPanelPort setting is indeed within 1-65533 and it's reachable when the game is running as well. The last patch I remember the map working was 13.4 and I haven't changed my serverconfig.xml since then.

The code in Web.cs for checking the port is pretty simple and doesn't leave much room for a bug. Did the GamePrefs or EnumGamePrefs objects get screwed up in one of the minor patches? Or I'm I just having a weird problem on my own system. The server is Windows 10 running the 13.6 dedicated server and rev 254 of the server fixes. Everything else is stock.
Simply delete the complet files from alocs mod and recopy them. This fixed in the pass the problem.

 
Yeah I just figured out using Paint.Net and random experimentation with layer blending that it's a simple multiply blend. (But thanks a ton for your reply -- if I hadn't figured it out, I would have been stumbling around for a while on it still).
Anyone have a 12.5A Windows-based server and want to test my build?

What dmustanger said ;) I plan to add more options to the map to filter out players so you don't see an endless list of players that aren't even active. So filtering banned or inactive users should become possible.

Hi Alloc:
I want to script something that allows me to remove banned players from showing up on the web map as "known" players. If they're banned, I don't want a flag on my map showing a banned player as "offline." I tried deleting the player data from $SDTDHOME/instance/Random Gen/seed/Player, but that doesn't affect the web map.

Further investigation showed that the web map keeps a persistent data store in the seed directory called "AllocsPersistentData.bin". Looking at string data suggests this is where the players data is stored. Can you share a little info about this file? What format is it, how to access it safely, etc.?

Thanks!
If you still need a Windows Dedi, send me a PM..

 
Simply delete the complet files from alocs mod and recopy them. This fixed in the pass the problem.
Sadly, no luck there. Stopped the server, deleted the Mods folder, and re-extracted from the rev 254 tar file. Same error message. Ironically, later on in the file it lists all of the GamePrefs and "GamePref.ControlPanelEnabled = 25080" is listed.

 
I can't get the map to work.

Console says:

Render map done

After I'm logged into my steam account on the map page it shows the correct Day and Time but I can't see a map.

Did I anything wrong?

Only thing log is giving me is:

Code:
2015-12-30T11:03:46 701.805 INF Steam certificate error: RemoteCertificateChainErrors
2015-12-30T11:03:47 702.547 INF Steam OpenID login from xxx.x.xxx.xxx:56670 with ID XXXXXXXXXXXX, permission level 1000
 
Last edited by a moderator:
I can't get the map to work.
Console says:

Render map done

After I'm logged into my steam account on the map page it shows the correct Day and Time but I can't see a map.

Did I anything wrong?

Only thing log is giving me is:

Code:
2015-12-30T11:03:46 701.805 INF Steam certificate error: RemoteCertificateChainErrors
2015-12-30T11:03:47 702.547 INF Steam OpenID login from xxx.x.xxx.xxx:56670 with ID XXXXXXXXXXXX, permission level 1000

How are you viewing your map? Are you using the CBSM provided by Envul?

If so, you need to Authenticate your map EACH time you install Allocs server fixes.

 
Hi Alloc - easy question for you (I hope).

We were previously with one server hosting company, and had the mod installed on that server, and were able to access the map using port 25004 (and I don't remember the specific IP off the top of my head).

We've just changed to another server hosting company, and I installed the mod on that server, and am unable to access the map, whether I use 25004, or change the last digit on our current game port of 21158.

Is there something I need to set somewhere? I can't recall. Thank you!

 
The map is console port +2. So if your console was on 25002, then the map would be on 25004. Check the console port in the server config for your current setup.

 
Hi Alloc - easy question for you (I hope).
We were previously with one server hosting company, and had the mod installed on that server, and were able to access the map using port 25004 (and I don't remember the specific IP off the top of my head).

We've just changed to another server hosting company, and I installed the mod on that server, and am unable to access the map, whether I use 25004, or change the last digit on our current game port of 21158.

Is there something I need to set somewhere? I can't recall. Thank you!
Check your server log file for the text "Webserver not started". I started having the problem recently on my own server (as of 12.5 or 12.6). Haven't figured out the solution yet. But my post about it is here.

 
The map is console port +2. So if your console was on 25002, then the map would be on 25004. Check the console port in the server config for your current setup.
As I mentioned in my post, our current port is 21158. So I try inputting our new IP into address line of the browser, and have tried 21160 as well as several other ports that all seemed like they might work, but no luck.

Wait... I figured it out! While our port is 21158, when I looked in the config options, it turned out the control panel port was 21168. So I tried 21170 and that worked!

Thanks Sylen!

 
As I mentioned in my post, our current port is 21158. So I try inputting our new IP into address line of the browser, and have tried 21160 as well as several other ports that all seemed like they might work, but no luck.

Wait... I figured it out! While our port is 21158, when I looked in the config options, it turned out the control panel port was 21168. So I tried 21170 and that worked!

Thanks Sylen!
Ok I lied. Sorta. That is the correct port and IP, but for some reason we keep getting the error

[h=1]An error occured or you have not logged in. Try logging in with the Steam login in the lower left![/h]even though it shows in the lower left that we are already logged in. I have the permissions set correctly in the serveradmin.xml file, but I'm not sure if I'm missing something somewhere else.

 
Re-install the mods folder. I had this happen once and apparently I had messed up the files in the 13.6 patch somehow. Killing the server, copying over the Mods folder again and restarting resolved it.

Don't forget to check the console when you start it to make sure Allocs mods load correctly.

 
/voting isn't working. Tried everything under the sun, the only way to get votes and get people their crates in game is to do it manually through the server list, then log back in. Any ETA on a fix?

 
Hey there! First time posting!

Got a server setup on ubuntu and the server fixes/improvements, everything seems to be running fine except for the logs under the webserver. No log shows up when I click on it, and it continues to throw errors until I go back to the map.

Code:
2016-01-01T19:30:13 22933.850 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:
2016-01-01T19:30:13 22933.850 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.S$
 at AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConn$
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)
I've tried reinstalling the mods and checking file permissions for the output log but I don't see any obvious signs.

What could be causing this issue?

 
Hi Alloc

Is there a way to add an admin command via server fixes that would add skill points or allow you to increase specific skills (ie giveSkill mining 50) so that when a player is corrupt you can rebuild their skills without just giving experience points. You can give xp points to get them back to their level but that does not give then enough points to bring back skill points receive for performing the activity. For example I had a 70 in mining skill but was only overall level 30. When the char lost everything I got the skill points for level 30 that was returned but there were not enough skill points from those 30 level to up mining or other skills to where I worked them , I only got back skill points I earned with levels.

 
Back
Top