• 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

There are a few of them out there floating around that have chat windows and a couple of them that are open source so you can learn what they did to monitor and parse the server output text. Here is one example I just talked to the author a few minutes ago he should be back from his vacation soon to make updates to his program. Again he also shares the source code on his website. See this thread post -->

https://7daystodie.com/forums/showthread.php?23810-7DaysServerManager-6-2

 
Not sure if you guys are interested, but I've been working on a server manager for a bit, you can find it here: https://7daystodie.com/forums/showthread.php?38806-7D2D-RAT-Remote-Admin-Tool
(I need to update the screenshots to the latest version as the chat looks a bit different now)

I mention it because it real time chat was called out. My chat is as real time as you can get really. In an upcoming version I'm planning on adding some settings for color and whatnot. Anyway, just thought I'd mention it since it does solve at least one of the mentioned issues. If you're not interested, no problem. =)

hey trekkan i added you on steam buddy. i have tried your tool but it give me some issues with the .net framework. if you could maybe help me work out why this bloody thing wont accept my password i would be very grateful.

http://steamcommunity.com/profiles/76561197970699949/ <-- this is me

 
any idea what this means?

Code:
 Error in AllocsLogFunctions.PlayerDisconnected: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
 at System.Collections.Generic.Dictionary`2[system.String,AllocsFixes.PersistentData.Player].ContainsKey (System.String key) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PersistentData.Players.get_Item (System.String steamId, Boolean create) [0x00000] in <filename unknown>:0 
 at AllocsFixes.AllocsLogFunctions.PlayerDisconnected (.ClientInfo _cInfo, Boolean _bShutdown) [0x00000] in <filename unknown>:0
Vote h0tr0d 2016 -- we sure are persistent

 
According to that error message:

Within AllocsLofFunctions a subroutine called PlayerDisconnected has a parameter called key.

Based on the names I would say this is called each time a player disconnects and it then logs that the player disconnected.

However for whatever reason at the time this occurred when the function was called the required key value in the arguments,

well it was null. It was not passed. No value was sent and a value is required. Now if you already understood this please do not be insulted as I have no idea what your level of programming knowledge is. I am only trying to answer your question.

any idea what this means?

Code:
 Error in AllocsLogFunctions.PlayerDisconnected: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
 at System.Collections.Generic.Dictionary`2[system.String,AllocsFixes.PersistentData.Player].ContainsKey (System.String key) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PersistentData.Players.get_Item (System.String steamId, Boolean create) [0x00000] in <filename unknown>:0 
 at AllocsFixes.AllocsLogFunctions.PlayerDisconnected (.ClientInfo _cInfo, Boolean _bShutdown) [0x00000] in <filename unknown>:0
Vote h0tr0d 2016 -- we sure are persistent
 
any idea what this means?

Code:
 Error in AllocsLogFunctions.PlayerDisconnected: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
 at System.Collections.Generic.Dictionary`2[system.String,AllocsFixes.PersistentData.Player].ContainsKey (System.String key) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PersistentData.Players.get_Item (System.String steamId, Boolean create) [0x00000] in <filename unknown>:0 
 at AllocsFixes.AllocsLogFunctions.PlayerDisconnected (.ClientInfo _cInfo, Boolean _bShutdown) [0x00000] in <filename unknown>:0
Without seeing any more of the log I'd suspect it happened when a player was kicked right on login. If so that's harmless.

 
Hey,

After the last update rev. 273 (8_10_13_1) (2016-05-11) i get errors in my consol. like this.

2016-05-16 13:09:54 say "[a5df92]Type /news to guess what. NEWS!!"

2016-05-16 13:09:54 313092.206 INF Executing command 'say "[a5df92]Type /news to guess what. NEWS!!"' by Telnet from 127.0.0.1:56714

2016-05-16 13:09:54 313092.206 ERR [MODS] Error while executing ChatMessage on mod "Coppis command additions"

2016-05-16 13:09:54 MissingMethodException: Method not found: 'AllocsFixes.PersistentData.Player.get_MaxChatLength'.

2016-05-16 13:09:54 313092.207 INF Chat: 'Server': Type /news to guess what. NEWS!!

And if i remove folder "CoppisAdditions" no errors comes. But ofcause the Coppis commands are gone :/

Hope you have time to look in to it, and if you need more info. please ask for it.

Best regards

Hjorten

 
Hello Alloc,

I just overwrited with the updated and rebooted the 7d2d. This time I have stop the server, downloaded the alloc fixes again. delete what i had in Mods folder and installed the newest version.

Reboot the computer and trying to see if all works. All up and running.. and it works. So always remember to delete the old files first i guess.

BTW!.. thanks for the fast reply.. :congratulatory:

Best regards

Hjorten

 
... So always remember to delete the old files first i guess. ....
I rather assume you're running Windows and tried to replace the mod while the server was still running ;)

Windows doesn't allow write access to files that are currently "in use". Stopping + overwriting should work fine normally :)

 
Hello,

I would like to get some explanation about how getplayersonline works, especially the level value, because it doesn't give back any clear number. Long time ago when I used to get player informations I already got the correct level value, but not now.

So the URL is: by http://SERVERIP:PORT+2/api/getplayersonline

Few for examples:

1. Player who is level 1 has "level":2.14105224609375

2. Player who is level 10 has "level":4.41086483001709

3. Player who is level 2 has "level":3.51833271980286

4. Player who is level 2 has "level":2.94113373756409

I don't see any system in the values, so how can I get back the correct number of level?

Thanks

 
Last edited by a moderator:
...especially the level value, because it doesn't give back any clear number...
Yeah, the exp->level calculation change some time ago, didn't notice it though. Will update that ASAP.

 
Without seeing any more of the log I'd suspect it happened when a player was kicked right on login. If so that's harmless.
It crashed our server; well caused it to hang. I figured it was due to too many people logging in/out at the same time.

Yet it was the last entry in the log before we "hung"

Vote h0tr0d 2016 -- well hung

 
It crashed our server; well caused it to hang. I figured it was due to too many people logging in/out at the same time.
Yet it was the last entry in the log before we "hung"
Unlikely to be caused by the mod here. More likely within the game itself. At this point the mod simply says it has a null-ref where there should be none and is done, passing control back to the game.

 
Thanks!

I want to ask someting, can we get the ping also for players informations?

How is about the public server informations? It could be really nice if we can get those via Alloc's API.

 
Last edited by a moderator:
First of all: I recommend adding a second post in such situations over editing the existing one. While the forum will combine those anyway subscribers will get a notification for that addition unlike with a normal edit. In this case I only noticed your questions because of Wyze's post ;)

I want to ask someting, can we get the ping also for players informations?
Wonder why I didn't have ping in there yet anyway ... Will be in the next release. The player info APIs will probably get bigger updates anyway though when I start with the player list web module.

How is about the public server informations? It could be really nice if we can get those via Alloc's API.
You mean GamePrefs like with GG? Or the info that's available on the server browser (basically part of GamePrefs + some game status like current players + time)?

 
1, You are right.

2, Thanks.

3, Server informations, like server name, map name, game settings which available on the server browser, etc. (actually the player informations and time are available now, both can be reached by commands).

 
Having trouble getting the master list of items. Here is an example of what I've tried:

li *

2016-05-21T12:28:07 72355.380 INF Executing command 'li *' by Telnet from 127.0.0.1:56710

Listed 0 matching items.

listitems *

2016-05-21T12:28:21 72369.286 INF Executing command 'listitems *' by Telnet from 127.0.0.1:56710

Listed 0 matching items.

listitems

2016-05-21T12:28:24 72372.367 INF Executing command 'listitems' by Telnet from 127.0.0.1:56710

Usage: listitems <searchString>

listitems "*"

2016-05-21T12:30:28 72496.660 INF Executing command 'listitems "*"' by Telnet from 127.0.0.1:56710

Listed 0 matching items.

Not sure if it is a bug or I'm just missing something? Thanks for the mod BTW, crazy helpful!

 
Back
Top