• 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

Anyone have an idea of what's causing this error? I have had Alloc's fixes working successfully for a long time now, and everything was working fine up until this point. The server crashed this afternoon, since then it is in a stalled state where people get stuck in the loading screen (even though the control panel shows it as being up).

Code:
KeyNotFoundException: The given key was not present in the dictionary.
 at System.Collections.Generic.Dictionary`2[system.String,ChunkAreaBiomeSpawnData+scl0000].get_Item (System.String key) [0x00000] in <filename unknown>:0   at ChunkAreaBiomeSpawnData.SetRespawnLocked (System.String _entityGroupName, UInt64 _currentWorldTime, .WorldBiomes _worldBiomes) [0x00000] in <filename unknown>:0   at SpawnManagerBiomes.md0001 (.cl0002 par0001, EnumRemoveEntityReason par0002) [0x00000] in <filename unknown>:0   at World.md005f (.cl0002 par0001, EnumRemoveEntityReason par0002) [0x00000] in <filename unknown>:0   at World.md005b (Single _partialTicks) [0x00000] in <filename unknown>:0   at GameManager.Update () [0x00000] in <filename unknown>:0 

(Filename:  Line: -1)
I am not using any other mods at the moment. The error seems to have cropped up spontaneously. It's almost as though a DLL got corrupted or something? Native commands such as 'lp' work, but any of Alloc's commands just give a message like they worked but nothing happens.

 
Just to update, my host "verified" the files and found nothing out of place, but after they did that everything worked fine again. So who knows.

Anyways, thanks a lot to Alloc for this awesome mod. I don't think I can overstate how awesome it is!

 
Hello, I installed Server Fixes rev 199 to my dedicated server (using Mod Manager @ Pingperfect hosting). When I start the server, there is the following error message in server log:

MissingMethodException: Method not found: 'EasyAntiCheat.Server.ServerConfiguration..ctor'.
The message is there regardless if anti-cheat is enabled or disabled on server side. And no user can join the server now - client stops with a message Waiting for server... and server log says as the last 3 lines

168.366 Allowing player with id 1175.010 RequestToEnterGame: 1/Prometheus

175.034 GMSG: Prometheus joined the game
and nothing is happening after that. Any advice?

 
Does anyone know of any application that can watch for certain text in a telnet session, and then send a command? For example, when the log shows a player inventory item over the allowed stack, it send a command into the game (like "say")?

I know that FrontRunnerTek does this with slash commands, but I'm looking for something universal

 
After server restart does not seem to be happening now but I am only 5 minutes in so still watching.Also checked the logs and this is where the negative starts to happen, Everything is good and then a big jump back or something.

Code:
12960.030 Telnet executed "lpe" from: 216.52.143.128:50278
12960.180 Telnet executed "gt" from: 216.52.143.128:50278
-16551.740 Telnet executed "lpe" from: 216.52.143.128:50278
-16549.610 Telnet executed "gt" from: 216.52.143.128:50278
Just looked at the involved code (it's even part of the .NET framework) ... it should be able to handle a way longer interval (more like in terms of years ;) ). Also there should be no way to get it in the negative area. So in the end I simply can't tell you what's going on there :(

Hello, I installed Server Fixes rev 199 to my dedicated server (using Mod Manager @ Pingperfect hosting). When I start the server, there is the following error message in server log:
There have been two reports of exactly the same thing before. One of them solved it by revalidating the games files through Steam, can't find the other one anymore ;)

If you have access to the files I would recommend deleting the 7DaysToDie_Data/Managed folder and have Steam revalidate the files. No access to the files: Revalidate only. If even that isn't possible have Pingperfect do it ;)

 
Just looked at the involved code (it's even part of the .NET framework) ... it should be able to handle a way longer interval (more like in terms of years ;) ). Also there should be no way to get it in the negative area. So in the end I simply can't tell you what's going on there :(

Have no idea how its going negative and making such a big leap from 12960 to -16551 so no idea. I have no idea whats going on myself, Server was on a VPS I am switching to full dedicated as I write this so ill test on there and see if it was a VPS issue.

 
Have no idea how its going negative and making such a big leap from 12960 to -16551 so no idea. I have no idea whats going on myself, Server was on a VPS I am switching to full dedicated as I write this so ill test on there and see if it was a VPS issue.
Actually VPS might be an issue for the timer depending on the used virtualization technology + its configuration. Well, let me know if it happens again :)

 
Actually VPS might be an issue for the timer depending on the used virtualization technology + its configuration. Well, let me know if it happens again :)
Yea will do guy, Working on getting things switched over now, Hope the players don't get too upset but might take a hour longer then I thought... lol

 
Have no idea how its going negative and making such a big leap from 12960 to -16551 so no idea. I have no idea whats going on myself, Server was on a VPS I am switching to full dedicated as I write this so ill test on there and see if it was a VPS issue.
I'm seeing the same thing. It's actually counting down to zero.. could it be some type of rollover when it reaches a number that's too high??

Code:
-733837.800 STATS: 3375.79,15.84,3690.3,5953.1,10175,210,11,28,61,1123,456
-733807.000 Time: 3376.29m FPS: 17.79 Heap: 3233.3MB Max: 5953.1MB Chunks: 9802 CGO: 205                                                                   Ply: 11 Zom: 42 Ent: 73 (1120) Items: 456
 
Last edited by a moderator:
I'm seeing the same thing. It's actually counting down to zero:

Code:
-733837.800 STATS: 3375.79,15.84,3690.3,5953.1,10175,210,11,28,61,1123,456
-733807.000 Time: 3376.29m FPS: 17.79 Heap: 3233.3MB Max: 5953.1MB Chunks: 9802 CGO: 205                                                                   Ply: 11 Zom: 42 Ent: 73 (1120) Items: 456
What setup? VPS (technology?), real physical machine?

 
Hm, ok, they could use about anything :D

Huh? What about that post then?
Im sorry I lost you there which post? I was using the VPS hosted by nfoservers which I was thinking is the reason zombies would freeze and the clock would count negative however today I am switching to a full dedicated machine so I will be the only user on the system. I am thinking its because of the VPS that I was having so many issues I just have to set things up on the dedicated and see if it still happens.

 
Ok, by "a physical machine which had many users on it" you were probably referring to a VPS ;) (In the end any system runs on a physical system, but the thing that matters here is that it's not running directly on the physical machine but a virtual one).

Well, a misconfigured Xen could really be the problem for clock issues afair.

 
Well, a misconfigured Xen could really be the problem for clock issues afair.
Gee now you have me wondering if that is what it was, I am paying much more for the Dedicated then the VPS, Don't get me wrong the Dedicated will be a way better system then the VPS was but I am tight on funds for this project. Anyway I will test the Dedicated and see what happens with it then post here to let everyone know.

 
Ok, by "a physical machine which had many users on it" you were probably referring to a VPS ;) (In the end any system runs on a physical system, but the thing that matters here is that it's not running directly on the physical machine but a virtual one).Well, a misconfigured Xen could really be the problem for clock issues afair.
Possibly, but I have two servers on the same host. One of them is fine. The only thing I can think of is that Blue Fang does not support the restart/shutdown console commands, because it "de-syncs" with their control panel. They tell me to do a saveworld and just kill the server from their page. That can't be good for it

 
Shouldn't hurt the time in the log. This one's totally independent of anything but the duration of the current instance and as I said that's even basically just a .NET timer that is read and output to the log ... So either something going really wrong during runtime (like wrong (virtual) HW or memory corruption) or the steps to output the integer to the log have some error. Though I couldn't see one in there ;)

 
I'm running render map on a server, and it's got 93,664 files to go... any way to optimize that? What happens when one player map has an older version than another (like if a base was built later)? Can you skip duplicates, like from all the players that log in and out immediately?

Also, when I open the website, I get these errors in the log:

Code:
45186.930 Error in Web.HandleRequest(): No handler found for path "/favicon.ico"
45189.650 RenderMap: 18256/93664 (19%)
45192.320 Error in StaticHandler.HandleRequest: System.IO.IOException: Write failure ---> System.Net                                                                          .Sockets.SocketException: An existing connection was forcibly closed by the remote host.

 at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)                                                                           [0x00000] in <filename unknown>:0
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00                                                                          000] in <filename unknown>:0
 at System.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in                                                                           <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.StaticHandler.HandleRequest (System.Net.HttpListenerRequ                                                                          est req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000]                                                                           in <filename unknown>:0
45192.890 RenderMap: 18272/93664 (19%)
45196.480 RenderMap: 18288/93664 (19%)
45197.120 Error in StaticHandler.HandleRequest: System.IO.IOException: Write failure ---> System.Net                                                                          .Sockets.SocketException: An existing connection was forcibly closed by the remote host.

 at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)                                                                           [0x00000] in <filename unknown>:0
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00                                                                          000] in <filename unknown>:0
 at System.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in                                                                           <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.StaticHandler.HandleRequest (System.Net.HttpListenerRequ                                                                          est req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000]                                                                           in <filename unknown>:0
45197.120 Error in StaticHandler.HandleRequest: System.IO.IOException: Write failure ---> System.Net                                                                          .Sockets.SocketException: An existing connection was forcibly closed by the remote host.

 at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)                                                                           [0x00000] in <filename unknown>:0
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00                                                                          000] in <filename unknown>:0
 at System.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in                                                                           <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.StaticHandler.HandleRequest (System.Net.HttpListenerRequ                                                                          est req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000]                                                                           in <filename unknown>:0
45197.120 Error in StaticHandler.HandleRequest: System.IO.IOException: Write failure ---> System.Net                                                                          .Sockets.SocketException: An existing connection was forcibly closed by the remote host.

 at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)                                                                           [0x00000] in <filename unknown>:0
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00                                                                          000] in <filename unknown>:0
 at System.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in                                                                           <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.StaticHandler.HandleRequest (System.Net.HttpListenerRequ                                                                          est req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000]                                                                           in <filename unknown>:0
45197.620 Error in StaticHandler.HandleRequest: System.IO.IOException: Write failure ---> System.Net                                                                          .Sockets.SocketException: An existing connection was forcibly closed by the remote host.

 at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)                                                                           [0x00000] in <filename unknown>:0
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x0000                                                                          0] in <filename unknown>:0
 at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00                                                                          000] in <filename unknown>:0
 at System.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in                                                                           <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.StaticHandler.HandleRequest (System.Net.HttpListenerRequ                                                                          est req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000]                                                                           in <filename unknown>:0
 
Hi Alloc,

I've been working on some mods to the dedicated server, but have been doing so by hacking the .il directly, which is a pain. I thought, instead, I'd take your route through deobfuscation, building, and patching the assembly. I thought it a good start to build your server improvements solution, and was elated to find a source tree for it just above the release directory form your link.

However, I'm not getting through deobfuscation using the Deobfuscate pre0.3.1 release. It says "success" and produces an Assembly-CSharp.deobf.dll, but the result still has the scrambled unicode chars. The mainlog.txt shows that it's not able to load any of the .dll's in the sub-tree, or one of their dependencies.

ERROR : Unable to load the patcher NamePatcher :

ERROR : System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\tdriscoll\Documents\7 Days To Die\dllmod\Alloc_build\binary-improvements\deobfuscate-7d2d\patchers\NamePatcher.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

File name: 'file:///C:\Users\tdriscoll\Documents\7 Days To Die\dllmod\Alloc_build\binary-improvements\deobfuscate-7d2d\patchers\NamePatcher.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

at System.Reflection.Assembly.LoadFrom(String assemblyFile)

at DeobfuscateMain.Deobfuscator.Main(String[] args)

The deobfuscate tree has the config.xml, Deobfuscate-Main.exe, mailog.txt, Mono.Cecil.dll,Mono.Cecil.Rocks.dll and the patchers subdirectory containing the three .dlls that don't want to load.

Is there a dependency that's missing from the release tree, or is it likely encountering an execution permissions issue?

Thanks in advance for any direction you might provide.

 
Last edited by a moderator:
Back
Top