• 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

Hi Alloc,
Do the server fixes need an update? Webserver is fine but getting this error on start up when queied by CBSM:

2018-12-18T15:22:12 378.236 INF Executing command 'listplayers' by Telnet from 67.205.111.132:37284

2018-12-18T15:22:12 378.236 EXC Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

at ConsoleCmdListPlayers.Execute (System.Collections.Generic.List`1 _params, CommandSenderInfo _senderInfo) [0x00000] in <filename unknown>:0

at SdtdConsole.executeCommand (System.String _command, CommandSenderInfo _senderInfo) [0x00000] in <filename unknown>:0

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)

UnityEngine.DebugLogHandler:LogException(Exception, Object)

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

Logger:masterLogException(Exception)

Logger:Exception(Exception)

Log:Exception(Exception)

SdtdConsole:executeCommand(String, CommandSenderInfo)

SdtdConsole:Update()

Listentities is doing the same thing. No errors when disconnecting CBSM.
OK, my bad. This only occurs when starting the server with CBSM already activated. Must remember to deactivate CBSM during initial server startup and only activate once stabilised. Does not affect server restarts. All is well with the world.

 
Anyone else has the problem, that on the webmap, I will define them as "not finished connected player" apears with "Player:" all at one spot?

2018-12-28_09h01_46.jpg

Does anyone have a solution how I can delete these empty players from the webmap?

In my savegame folder there are only ~7 player profiles.

 
Anyone else has the problem, that on the webmap, I will define them as "not finished connected player" apears with "Player:" all at one spot?View attachment 26738

Does anyone have a solution how I can delete these empty players from the webmap?

In my savegame folder there are only ~7 player profiles.
Since there is no way to selectively delete player objects from allocs bin whitout api mod, you can just delete /Saves/WorldName/SeedName/AllocsPeristentData.bin.

It contains info on all players so that will clean up ALL. As soon as your friends connect again and play they will be on webmap again anyways.

Cheers

 
Hey there Alloc

Little nit-picky thing :)

When passing an unknown command to the executeConsoleCommand API endpoint, it returns 501 - not implemented. According to the spec ( :nerd: ) this isn't an appropriate status code. It would be better to return some 4xx error IMO. This is not a server error, but a user error.

Cheers

 
Hey my 7DTD A17 server wont load the December release. The error is no modinfo.xml found, and then the allocs fixes are ignored - but i checked and each of the three folders has a modinfo.xml, so the server isn't seeing them. I am wondering whether the modinfo files should be in a directory one above the dll files and not in the same directory as the dll files as per the modlets for A17 ? Which would mean creating a sub directory for the dll files but i have no idea what that would be called.

 
Hey my 7DTD A17 server wont load the December release. The error is no modinfo.xml found, and then the allocs fixes are ignored - but i checked and each of the three folders has a modinfo.xml, so the server isn't seeing them. I am wondering whether the modinfo files should be in a directory one above the dll files and not in the same directory as the dll files as per the modlets for A17 ? Which would mean creating a sub directory for the dll files but i have no idea what that would be called.
No, modinfo.xml files need to be next to the .dll files.

From what you are describing, your folder structure is bad. It should look similar to this. Mods/ in the root of your server with subfolders for every mod in there.

 
If running on Linux also make sure the case on the XML is correct, it needs to be ModInfo.xml.

 
Need some help. Went back to version 16.4 and am trying to use the webmap again. I cannot make it work for some reason. Ive checked ports, versions, etc but to no avail. In the log I get;

Code:
2019-01-15T19:30:35 1.069 INF [MODS] Trying to load from Allocs_WebAndMapRendering
Non platform assembly: C:\******\*************\*********\7d\steamapps\common\7 Days to Die Dedicated Server\Mods\Allocs_WebAndMapRendering\MapRendering.dll (this message is harmless)
2019-01-15T19:30:35 1.073 ERR [MODS] Failed loading DLL
2019-01-15T19:30:35 1.073 EXC The classes in the module cannot be loaded.
ReflectionTypeLoadException: The classes in the module cannot be loaded.
 at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
 at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 
 at Mod.KH () [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logger:masterLogException(Exception)
Logger:Exception(Exception)
Log:Exception(Exception)
Mod:KH()
Mod:LoadFromFolder(String)
ModManager:LoadMods()
GameManager:Awake()

(Filename:  Line: -1)
I did get older versions from the website that I believe work with the version I am running but maybe I am missing something.

I am running A16.4 (b8) for the game. What is the correct Alloc version I should be using? What else might I be missing here?

 
Need some help. Went back to version 16.4 and am trying to use the webmap again. I cannot make it work for some reason. Ive checked ports, versions, etc but to no avail. In the log I get;

Code:
2019-01-15T19:30:35 1.069 INF [MODS] Trying to load from Allocs_WebAndMapRendering
Non platform assembly: C:\******\*************\*********\7d\steamapps\common\7 Days to Die Dedicated Server\Mods\Allocs_WebAndMapRendering\MapRendering.dll (this message is harmless)
2019-01-15T19:30:35 1.073 ERR [MODS] Failed loading DLL
2019-01-15T19:30:35 1.073 EXC The classes in the module cannot be loaded.
ReflectionTypeLoadException: The classes in the module cannot be loaded.
 at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
 at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 
 at Mod.KH () [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logger:masterLogException(Exception)
Logger:Exception(Exception)
Log:Exception(Exception)
Mod:KH()
Mod:LoadFromFolder(String)
ModManager:LoadMods()
GameManager:Awake()

(Filename:  Line: -1)
I did get older versions from the website that I believe work with the version I am running but maybe I am missing something.

I am running A16.4 (b8) for the game. What is the correct Alloc version I should be using? What else might I be missing here?
rev. 322 (14_17_26) (2018-06-20)

http://illy.bz/fi/7dtd/server_fixes_v14_17_26.tar.gz

Cheers

 
My steam login is broken because steam take my local ip ( 192.168.. ) to auth. steam login is working for me but I can't make it works for my players.

For now my workarround was to change the permission to 2000 and put a passwd on a proxy before the webserver but I would like to use the steam login.

 
My steam login is broken because steam take my local ip ( 192.168.. ) to auth. steam login is working for me but I can't make it works for my players.
For now my workarround was to change the permission to 2000 and put a passwd on a proxy before the webserver but I would like to use the steam login.
So I assume for other players (i.e. externals to your network) you do port forwarding through your router? Or do you use a reverse proxy like Apache?

At what point exactly do they see the internal IP? On Steam's OpenID login page and when returning from there they get redirected to your "http://<your local ip/port>/session/verify"?

 
yes I was using nginx from a vps box I have to forward on my server at home but I try directly on the map port and same thing happen.

when they are on the steam login page it show my local ip and they are redirect to the local ip after the login. Steam should use my hostname and forget the ip.

Capture.jpg

 
If you tried directly without any proxy involved it should work just fine. The web page uses the HOST header from the HTTP request to figure out where to redirect to and that won't be changed by e.g. NAT routers.

A reverse proxy on the other hand could send a new HOST header as part of its request. I assume that's what nginx does by default. Apache has a "ProxyPreserveHost" directive for this that will fix it, nginx most likely has a similar directive.

 
Hi, new here. I'm having trouble enabling the server fixes on alpha17. i've got the lastest game version (stable) and the lastest server fixes. they are in the Mods folder and are labeled correctly (ubuntu server) but they dont seem to pick up when i run the game. server was also setup using your server scripts.

 
Sorry for the delay.

If you set up the server with my Linux scripts it should work just fine. I'd recommend not installing them manually though but through 7dtd.sh updatefixes. That should get it done right. Either way, for more help we'd need more info, like a directory listing and a server startup log.

 
2019-02-09T11:15:56 67.183 INF Error in Web.ctor: System.ArgumentException: Path is empty

at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.WebPermissions..ctor () [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.WebPermissions.get_Instance () [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.Handlers.PathHandler..ctor (System.String _moduleName, Int32 _defaultPermissionLevel) [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.Handlers.SimpleRedirectHandler..ctor (System.String target, System.String moduleName) [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.Web..ctor () [0x00000] in <filename unknown>:0

booted it up and did nothing so not sure what caused it

 
Looks like the same error:

2019-02-09T09:42:28 124.352 INF Error in Web.ctor: System.ArgumentException: Path is empty at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.WebPermissions..ctor () [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.WebPermissions.get_Instance () [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Handlers.PathHandler..ctor (System.String _moduleName, Int32 _defaultPermissionLevel) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Handlers.SimpleRedirectHandler..ctor (System.String target, System.String moduleName) [0x00000] in :0 at AllocsFixes.NetConnections.Servers.Web.Web..ctor () [0x00000] in :0

It also detects my stack sizes are bigger

2019-02-09T09:45:42 318.260 INF Player with ID 171 has stack for "drinkJarBeer" greater than allowed (16 > 15)

2019-02-09T09:45:42 318.261 INF Player with ID 171 has stack for "drinkJarCoffee" greater than allowed (32 > 15)

2019-02-09T09:45:42 318.262 INF Player with ID 171 has stack for "foodBoiledMeat" greater than allowed (62 > 50)

2019-02-09T09:45:42 318.262 INF Player with ID 171 has stack for "drinkJarBoiledWater" greater than allowed (220 > 15)

2019-02-09T09:45:42 318.263 INF Player with ID 171 has stack for "ammoGasCan" greater than allowed (5000 > 1000)

2019-02-09T09:45:42 318.264 INF Player with ID 171 has stack for "medicalBandage" greater than allowed (19 > 10)

2019-02-09T09:45:42 318.265 INF Player with ID 171 has stack for "medicalFirstAidBandage" greater than allowed (22 > 10)

EAC disabled, but the server reboots. Gonna try uninstalling Alloc's :(

 
2019-02-09T11:15:56 67.183 INF Error in Web.ctor: System.ArgumentException: Path is empty
booted it up and did nothing so not sure what caused it
Update to the latest fixes should resolve this.

 
Hi.

On some servers I have seen that the live map has a check box to display the traders on the map.

Does anybody know how to add that to the map ?

 
Back
Top