• 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

You had clarified that it was the RequestToSpawnPlayer function in the AllocsLogFunctions class to add these functions.

Thanks Alloc for helping out again,

Neo

 
Deleted a claim block using telnet while another player was near the claimed area, command was based on cords so "rlp cord cord cord", Once I did this I got this error, I also had the web map open at the time and the web map is a fresh install along with the server.

Code:
2014-11-26T23:56:02 76382.349 Error in ApiHandler.HandleRequest(): Handler threw an exception: 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) [0x00000] in <filename unknown>:0 
 --- End of inner exception stack trace ---
 at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
 at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] 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.API.WebAPI.WriteJSON (System.Net.HttpListenerResponse resp, AllocsFixes.JSON.JSONNode root) [0x00000] in <filename unknown>:0 
 at AllocsFixes.NetConnections.Servers.Web.API.GetPlayersLocation.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000] in <filename unknown>:0 
 at AllocsFixes.NetConnections.Servers.Web.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000] in <filename unknown>:0 


2014-11-26T23:56:02 76382.352 Error in Web.HandleRequest(): System.InvalidOperationException: Cannot be changed after headers are sent.
 at System.Net.HttpListenerResponse.set_StatusCode (Int32 value) [0x00000] in <filename unknown>:0 
 at AllocsFixes.NetConnections.Servers.Web.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, System.Net.HttpListenerBasicIdentity user) [0x00000] in <filename unknown>:0 
 at AllocsFixes.NetConnections.Servers.Web.Web.HandleRequest (IAsyncResult result) [0x00000] in <filename unknown>:0 
(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)
2014-11-26T23:56:07 76387.351 Error in Web.HandleRequest(): No handler found for path "/favicon.ico"
 
Didn't hurt your game experience in any way I suppose? Those "errors" are ok, the worst thing that can happen is that your browser won't get a file ;)

 
Tried to use the "PM" command and there was a problem just thought I would explain it.

Command used was this

pm 238 4587

What player saw was this

238

So I wanted to PM the player based on the playerID with the message 4587, However it sent him a message of 238 instead.

 
Does this happen regardless of the message part after that? I.e. does the recipient, if addressed by his ID, always receive the ID first?

 
I logged my client out and back in and it started working correctly again, Every message I send is correct. Making me wonder something when I posted that I sent it right after I got the null reference console popup problem so wondering if it messed something up with the console where the commands did not go correctly after getting the console bug.

 
Since I updated to 10.1 and got the latest patch for these server fixes, the teleport functions either doesn't work, or is taking forever to work.

I'm also using the Server Manager by FrontRunnerTek with the slash commands. So if I use /home it takes me to the set coordinates. It was fine with a10, but on a10.1 it's just not functioning for me.

Gets a bit annoying to try it, then give up and go somewhere else, only to suddenly be teleported home 5 minutes later.

I tried creating another one, which took a few minutes, and then threw me into a big blue nothingness and killed me. Since my bag spawned at the coords I was trying to get to, it's at least partially right, but I'm assuming it put me nowhere near the height I had put into it.

 
Hi Alloc, I have a quick request, not for the mod but your website. Could you add a version number to the webserver module? The only way I can tell if it's updated is by opening the link to see what the filename says.

 
Alloc, just wanted to say thank you for the server fixes and the all the time you put in helping people on the forums. I, for one, would be completely lost without your help. Thank you.

 
Since I updated to 10.1 and got the latest patch for these server fixes, the teleport functions either doesn't work, or is taking forever to work. ...
Sounds more like the lag-issue FRTs manager seems to have sometimes. The command is executed on the server as soon as it's received. Have you tried using the command manually from ingame console or with a manual "Telnet" connection?

Hi Alloc, I have a quick request, not for the mod but your website. Could you add a version number to the webserver module? The only way I can tell if it's updated is by opening the link to see what the filename says.
Not sure what exactly you're talking about. But you can definitely go here and see what the last revision was and when it was uploaded.

Alloc, just wanted to say thank you for the server fixes and the all the time you put in helping people on the forums. I, for one, would be completely lost without your help. Thank you.
Thank you for the kind words :)

I'm always happy if I can help (especially if the help leads to something working ;) )

 
Alloc, just wanted to say thank you for the server fixes and the all the time you put in helping people on the forums. I, for one, would be completely lost without your help. Thank you.
Amen. These server fixes have been a lifesaver, and make admining a 7DTD server soooooooo much easier! Thank you!!!

 
Hey Alloc, I was recently asked by one of my admins if it would be possible to change the fog of war on the webserver map to black, and I'm not sure where to start looking for that, or if it's even possible. Any help with this would be greatly appreciated, and honestly, if it's too much of a hassle or not possible, I don't really mind. Thanks for your awesome work! I can't imagine running a server without your fixes and webserver :D

 
If you're talking about the dark red'dish background color: Open the css/style.css and edit the lines currently saying "background-color: #230000;" (two instances). #230000 is the hex-coded RGB value. The second one should be enough but as both are in there I'd suggest changing both of them ;)

 
That is indeed what I was referring to! I appreciate it very much, and you, sir, keep up the fantastic work! :D Now to wait for filezilla to finish downloading the region files so I can get to it XD

 
Sounds more like the lag-issue FRTs manager seems to have sometimes. The command is executed on the server as soon as it's received. Have you tried using the command manually from ingame console or with a manual "Telnet" connection?
Yeah, even manually via telnet it wasn't actioning.

Re-installed the dll files and rebooted the machine. Now it's working fine. Was really odd though.

Another question, after a long period of the server being up, it seems like the web map gets really slow. Overall RAM and CPU usage are fine on the PC. Is there anything I can do to prevent that from happening? Currently I'm auto-restarting the server nightly with the manager software, but if we do a lot of exploring it can really bog the page down for some reason.

 
What happens if you reopen (or close it for a few minuites) the page itself? Does that help?

Did you check if there are any connections from unknown IPs to the web map? If it's available to the public internet it could also be accessed by other people or bots.

 
What happens if you reopen (or close it for a few minuites) the page itself? Does that help?Did you check if there are any connections from unknown IPs to the web map? If it's available to the public internet it could also be accessed by other people or bots.
Yeah, only connections at the time were myself and one other player on the local LAN. I didn't see any other IP's checking it, but I'll look at that if it happens again. Seems to be a bit less the last couple of days, but we've been building more than exploring also.

Also, glad to see that you have an update for 10.2 out already. Will be updating shortly :)

 
Back
Top