• 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

At Catalysm: Will be in the next release.

Thanks Prisma, that way I didn't have to think about that stuff :D

Renamed it to GetPlayerInventories though and added SteamID and EntityID fields to the output so it's easier to connect the received data to whatever internal structures the receiving application might have :)

 
At Catalysm: Will be in the next release.
Thanks Prisma, that way I didn't have to think about that stuff :D

Renamed it to GetPlayerInventories though and added SteamID and EntityID fields to the output so it's easier to connect the received data to whatever internal structures the receiving application might have :)
Awesome! And you're welcome :)

Cheers

 
A couple of questions...

So - console commands can work through the telnet connection?

Is there a complete list of commands (specifically for: Improvements for the dedicated server)?

 
A couple of questions...So - console commands can work through the telnet connection?

Is there a complete list of commands (specifically for: Improvements for the dedicated server)?
You can do "help" in console/telnet to get all commands. Then get more detailed help per command by doing "help <command>".

Alloc has added the following commands:

give

listitems

listknownplayers (lkp)

listlandprotection (llp)

removelandprotection (rlp)

reply (re)

sayplayer (pm)

showinventory (si)

Cheers

 
Player_Logs working incorrectly?

Hello everyone. Sorry for my bad english. I do not get the Extra data. Especially the players speed.

Code:
<Tool Name="Player_Logs" Enable="True" Interval="45" Position="False" Inventory="True" Extra="True" Days_Before_Log_Delete="5" />
Report in the Player_Log.

Belt:

Slot 0: 001 * stoneAxe - quality: 450,

Slot 1: 001 * pickaxeIron - quality: 555,

Slot 2: 001 * machete - quality: 420,

Slot 3: 001 * fireaxeIron - quality: 300,

Slot 4: 001 * gunAK47 - quality: 157,

- partsAK47_stock - quality: 284,

- partsAK47_receiver - quality: 194,

- partsAK47_parts - quality: 71,

- partsAK47_barrel - quality: 79,

Slot 5: 005 * woodFrameBlock,

Slot 6: 002 * shamSandwich,

Slot 7: 001 * wrench - quality: 496,

Backpack:

Equipment:

Slot head: leatherHood - quality: 350,

Slot eyes: nightvisionGoggles - quality: 77,

Slot face: bandana - quality: 500,

Slot armor: leatherJacket - quality: 350,

Slot jacket: animalHidePoncho - quality: 350,

Slot shirt: tshirtRed - quality: 194,

Slot legarmor: militaryLegArmor - quality: 81,

Slot pants: plantFiberPants - quality: 300,

Slot boots: dressShoesBlack - quality: 95,

Slot gloves: plantFiberGloves - quality: 300,

End of inventory

shanks stats: Health= 70 Stamina= 70 Level= 66 SkillPoints= 13 ZombieKills= 605 PlayerKills= 0

Any idea what happens? I am doing something wrong? Thx

 
Hello everyone. Sorry for my bad english. I do not get the Extra data. Especially the players speed.

Code:
<Tool Name="Player_Logs" Enable="True" Interval="45" Position="False" Inventory="True" Extra="True" Days_Before_Log_Delete="5" />
shortened

Any idea what happens? I am doing something wrong? Thx
Heya Shanks,

This thread is for allocs mods. The one you use here is ServerTools made by ObsessiveCompulsive.

If you ask the question in his thread im sure he will shine a light.

https://7daystodie.com/forums/showthread.php?77267-Servertools-updated-to-5-5

Cheers

 
Is /api/getplayerinventories broken? I get no output from it. I'm using it like this..

http://127.0.0.1:1234/api/getplayerinventories?adminuser=smeg&admintoken=secritpass

Has the format of the API call changed?

[Edit] On the server I'm trying this on it has Alloc's previous update not the current version. On my other server I have the current version and also get nothing from that command.

[Edit 2] Hmm.. is the command new? I retested on my dev server which is current and it worked this time. I get nothing still on the other one which is 1 version behind.

[Final edit] Oh nevermind. I checked the update history and see it is new. Carry on then.

 
Last edited by a moderator:
Trying to view the map after reinstalling, and I see the background, the menu bar on the left but no check box menu on the right. I've reinstalled it a couple of times... Same thing.

My bad! Forgot to upload the serveradmin.xml

 
Last edited by a moderator:
Hello!

I've been noticing a bug in CSMM where it cannot load player info, upon further investigation it seems the player profile does not show up in getplayerslocation (offline=true) or in getplayerlist (rowsperpage = 9999 :D ) response. However, CSMM does have some (old) data about the players in question stored in database so at some point that info was in the response(s).

Any idea what might cause players to "disappear" from the API responses? I have not managed to reproduce on a dev server yet :/.

One of the users that has this problem posted this error a few days ago about the si command, not sure if it's related

2018-08-17T17:22:19 1487.068 INF Error in ShowInventory.Run: System.NullReferenceException: Object reference not set to an instance of an object

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

My theory is some sort of bugged player profile in the persistent data bin? I'm hoping you can shed some light on this ^^

 
Sorry for the late reply. Is the player logging in at some times and still not showing up or is it about one that hasn't recently logged in at all?

Of course it could be some kind of corrupted data in the bin, but without actually looking at it it's hard to find out. The error though is at least not directly related, it's only about executing another command. If the player entry was corrupted and does not load because of that there should be another error, most likely at the start of the server itself. Also depending on the kind of corruption I'd expect it to break all of the data.

Really hard to tell with these files, still want to get rid of that at some point (ideally by moving the game's own data to something that's more usable for this kind of stuff instead of duplicating the data). But this is probably a bit ahead, at least A18 I suppose.

 
Sorry for the late reply. Is the player logging in at some times and still not showing up or is it about one that hasn't recently logged in at all?
Of course it could be some kind of corrupted data in the bin, but without actually looking at it it's hard to find out. The error though is at least not directly related, it's only about executing another command. If the player entry was corrupted and does not load because of that there should be another error, most likely at the start of the server itself. Also depending on the kind of corruption I'd expect it to break all of the data.

Really hard to tell with these files, still want to get rid of that at some point (ideally by moving the game's own data to something that's more usable for this kind of stuff instead of duplicating the data). But this is probably a bit ahead, at least A18 I suppose.
I asked and it is indeed only happening to players who have not logged in for a long time (talking weeks here). Does the API only keep data for x amount of time? Or only show data that is more recent than some timestamp? If that's the case, there's probably no corrupted/bugged profile at all.

The affected server owner decided it's not worth the trouble trying to fix this edge case for inactive players with A17 around the corner now, so #wontfix :D

Thanks for the info!

 
I asked and it is indeed only happening to players who have not logged in for a long time (talking weeks here).
But also not logged on now? Or is that about people who haven't been playing for weeks but now came back and they did not show up?

Does the API only keep data for x amount of time? Or only show data that is more recent than some timestamp?
No, nothing like that. Theoretically it should keep just everything ;)

 
But also not logged on now? Or is that about people who haven't been playing for weeks but now came back and they did not show up?
Not logged on currently and have not been for a long time. Basically talking about inactive players but they have been online since last server wipe so there should be data about them. The weird thing to me is that at some point CSMM could get data for these players but not anymore. Hence why I thought about some time based deletion or corrupted data.

I've asked the server owner if he gets any errors on start up - no. He'd keep an eye out for any errors during runtime that might be related to this issue.

 
help

yes it's the only "bug" that I have found.
I have added some command like "heal" and others things. I must try it before sharing to you my suggestions ( If you want to have some suggestions of course)
can you assist me with installing alloc fixes to my dedicated? i know thats rather random

 
here it logs

2018-11-11T23:18:59 213.721 ERR Error validating login:

2018-11-11T23:18:59 213.723 EXC Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

TlsException: The authentication or decryption has failed.

at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0

at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

Rethrow as IOException: The authentication or decryption has failed.

at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

Rethrow as WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.OpenID.Validate (System.Net.HttpListenerRequest _req) [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.Web.DoAuthentication (System.Net.HttpListenerRequest _req, AllocsFixes.NetConnections.Servers.Web.WebConnection& _con) [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)

AllocsFixes.NetConnections.Servers.Web.Web:DoAuthentication(HttpListenerRequest, WebConnection&)

AllocsFixes.NetConnections.Servers.Web.Web:HandleRequest(IAsyncResult)

System.Net.ListenerAsyncResult:InvokeCallback(Object)

(Filename: Line: -1)

 
Sounds like your server has issues talking to Steam's OpenID authentication server. Like a proxy or firewall in between blocking/changing the connection. Wonder why it's a TLS exception and not a generic one but not sure what the .NET HTTP libraries do in that regard.

 
Back
Top