Don't Starve Together

Don't Starve Together

Server Status
32 Comments
Jack'lul  [author] 12 May, 2023 @ 4:30am 
I have no idea, one thing I noticed while upload is that API changed from V1 to V2 so maybe the mod is now stored elsewhere. Try steamapps\workshop\content\322330

There is no way to add anything to data array without modifying the mod itself.
RejectedGranny 12 May, 2023 @ 4:24am 
Seems to be working now, at least no errors in the logs - I do not see a workshop-503330921 folder any under /mods/ - is that not being created anymore?

Also my API seems to be working fine.
In the configuration page you specificid that it's possible to push custom events - but i'm not sure how to work with that with my API
I'm running a simple python FastAPI having a simple GET method on localhost/api?data=

How can I add extra information into that "data" query being passed?

Thank you for all the help!!
Jack'lul  [author] 12 May, 2023 @ 4:15am 
Oh my bad, rushed too much to get this updated.
Try now?
RejectedGranny 12 May, 2023 @ 3:54am 
And I do see in the begining of the logs
[00:00:07]: Loading mod: workshop-503330921 (Server Status) Version:1.2.5

So it is updated.
RejectedGranny 12 May, 2023 @ 3:53am 
I think i've updated it (not sure how - but just enabled everything again and restarted the server thinking it'll download the update, if I need to update different, please point me?)

Now it doesn't seem to create a workshop-MOD_ID folder at all (or creates and deletes it)
In the logs I see:

[string "../mods/workshop-503330921/modmain.lua"]:165: 'then' expected near 'if'

and afterwards a line

[00:00:33]: Disabling workshop-503330921 (Server Status) because it had an error.
Jack'lul  [author] 12 May, 2023 @ 2:29am 
I've updated the package, check if 1.2.5 works for you
RejectedGranny 11 May, 2023 @ 5:11pm 
Trying to make this mod work - getting an error on modmain.lua

[string "../mods/workshop-503330921/modmain.lua"]:164: attempt to index field 'original' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-503330921/modmain.lua:164 in (upvalue) SendStatus (Lua) <114-190>
../mods/workshop-503330921/modmain.lua:198 in (local) fn (Lua) <198-198>
scripts/entityscript.lua:1152 in (method) PushEvent (Lua) <1139-1166>
...


Line 164 of modmain.lua is
" if _G.TheWorld.topology.overrides.original.preset ~= nil then"

But i'm not sure why it crashes...
Anybody knows maybe?
Jack'lul  [author] 17 Feb, 2021 @ 12:09am 
Just FYI - it still works after Reap What You Sow update.
World overrides return empty for some reason though.
DoomRanger 3 Oct, 2020 @ 7:48pm 
There's literally a configuration for that.
pause-server-when-empty = true
Shynaid 9 May, 2020 @ 2:46pm 
Could you create a mod to pause the game when the dedicated server is empty? ?
CyferShepard 14 Dec, 2019 @ 2:08pm 
Does this still work on the latest version of the game? or is there a new version?
ZRazbor 14 Jun, 2019 @ 9:20am 
Hey there! I've installed mod and everything is fine except the thing that data[world][overrides] is always empty. Can you help me with that trouble? I've checked apache logs and i see that it comes with empty value. What can i do to make it working? Thanks!
В армии 25 Sep, 2016 @ 4:08am 
А из-за этого мода,люди когда заходят на мой сервер,у них не будет лагать?
KittenCanaveral 12 Feb, 2016 @ 3:50am 
@se7en , have you done more work on the badge ?
Jack'lul  [author] 27 Jan, 2016 @ 11:11am 
Feel free to start discussions topic about your badge :P
se7en 27 Jan, 2016 @ 9:50am 
Im changing badge a bit so it looks nicer (imo), here is what im at so far: SCREENSHOT of my badge [se7en.net.pl]. If everything goes right, ill publish code tomorrow with some fixes ;p
CawKa 7 Dec, 2015 @ 8:55pm 
THX!!! Work great!
ĸяx all about dat base 7 Dec, 2015 @ 6:16pm 
Sure thing! Thanks for all the help and making this mod, Jack!
Jack'lul  [author] 7 Dec, 2015 @ 9:32am 
"cycles" is the world day. If you want to change update interval look into modmain.lua:201 and change seconds value in there, I've set it to one minute because there is a lot of world state changes in short times, this is for people who want to show if its currently raining etc. When I hosted API on my webspace and had around 30 servers pushing to it it was almost no bandwidth usage at all, so I don't see a problem here?
I will not add support for administrative commands, that's not the purpose of this mod.
ĸяx all about dat base 7 Dec, 2015 @ 7:51am 
Actually, would it be possible to send commands based upon the response of the update? Your script currently expects a plaintext "ok" to indicate a successful update. Could we expand on this to perhaps accept some really simple administrative commands (configurable on whether the command is enabled) such as "ok cmd kick KU_IVzCvbb" which will kick the player with ID KU_IVzCvbb after the next refresh?
ĸяx all about dat base 7 Dec, 2015 @ 7:38am 
While we're at it, is it possible to have the periodic update interval configurable? 1 minute is a little too fast considering that the mod will already send additional updates on client join/disconnect.
ĸяx all about dat base 7 Dec, 2015 @ 7:37am 
I'm beginning work on a simple bootstrap-based interface to summarise the server status. Is there any way to include the current Day in the update?
Jack'lul  [author] 4 Dec, 2015 @ 2:22am 
Yeah, it only works one way, for thing like this to work server would have to constantly ask the API for commands since i don't think there is a technical way to send it directly to the server.
ĸяx all about dat base 4 Dec, 2015 @ 2:17am 
Is there any way to accept commands from the web? I have knowledge in PHP but not in Lua. Would it be possible to create an endpoint to which I can send a command and then return a JSON reply?
Kiska 18 Oct, 2015 @ 4:11am 
Thank you bro
Jack'lul  [author] 20 Sep, 2015 @ 11:57am 
Yeah, I was afraid of this but I was sure this can be overridden by htaccess in most cases. I tried adding POST support option but it just didn't work with the build into the game command.
goremotel 20 Sep, 2015 @ 8:08am 
A heads up to those that want to use the mod to show server stats on their own website: if you are sure that everything is configured correctly, but the data GET variable appears to be empty (No data provided error), make sure that your webhost isn't limiting the length of GET.

I had this problem today because of Suhosin's configuration, fortunately I was able to bypass the limitation.
Jack'lul  [author] 8 Sep, 2015 @ 11:02pm 
Should be fixed now!
blambin 8 Sep, 2015 @ 7:42pm 
I'am using 2 mod ,yours and workshop-503187227
blambin 8 Sep, 2015 @ 7:39pm 
some error with me..


log here:
http://paste.ubuntu.com/12318246/
goremotel 22 Aug, 2015 @ 12:43am 
Thanks for this mod!
Dawid Jasper Fame MMA 20 Aug, 2015 @ 12:26pm 
+rep for this MOD ! :steamhappy: