Don't Starve Together

Don't Starve Together

Dev Tools
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Demonblink  [udvikler] 5. sep. 2020 kl. 12:13
Issue Reports
Did you find an issue? Just post a comment in this discussion describing it or open a new issue on GitHub: https://github.com/victorpopkov/dst-mod-keep-following/issues/
< >
Viser 1-9 af 9 kommentarer
Viktor 7. sep. 2020 kl. 14:55 
I managed to crash my game with this mod by toggling the Dev Tools menu after using the following remote code:
AllRecipes["spice_garlic"].tab = nil
This code prevents players from crafting the garlic seasoning. Disabling a non-character specific item like backpack and toggling the menu afterwards doesn't crash the game.
Demonblink  [udvikler] 7. sep. 2020 kl. 15:15 
@Viktor, Thank you for your report, as usual. Will be fixed in the next release (v0.2.0): https://trello.com/c/1UboNJ8T
Sidst redigeret af Demonblink; 7. sep. 2020 kl. 15:27
Furry Eskimo 20. sep. 2020 kl. 9:27 
Hello again! Hope you're having a blast continuing to make this mod. I wanted to let you know of something weird I discovered when using your client mod with a server mod I'm making. It seems like your mod was somehow putting all my characters into something akin to super-god mode? Is this right? I only noticed it when I turned on my character's aura (inst.components.sanityaura.aura = 0.2) and the game crashed. I had no idea why, but then realized all of my characters were immune to auras. It was only later I noticed I was also immune to temperature, attacks, and starvation.

Was this intentional? I may have simply turned on super-god mode, somehow, but I wasn't even aware it was on, or that a client mod could do something like that.

Anyway, I just wanted to let you know it might cause conflicts with other mods. Hope this helps.
Demonblink  [udvikler] 20. sep. 2020 kl. 11:07 
@Furry Eskimo, Thank you for your report. There might be an issue with god mode that I'm not aware of but the behaviour you have described seems to be intentional.

There is a "Toggle God Mode" option in the menu which enables setting the god mode for you and other characters. And the "Default god mode" in configurations which should toggle the god mode for your character by default when the game loads and that one is enabled by default. You may disable it in the configurations and see if it resolves your problem.

As for now, the only issue (technically it's not an issue, but the behaviour needs some improvements) regarding god mode I'm aware of is the god mode state tracking of other characters on dedicated servers.
󰀏Niko 12. nov. 2022 kl. 18:09 
I seem to crash every time I turn into Wonkey or use the seamlessplayerswapper feature at all for that matter.
Demonblink  [udvikler] 12. nov. 2022 kl. 18:39 
󰀏Niko, Thank you for your report. I'll take a look into that.
󰀏Niko 8. jan. 2023 kl. 12:57 
Oprindeligt skrevet af 󰀏Niko:
I seem to crash every time I turn into Wonkey or use the seamlessplayerswapper feature at all for that matter.

I looked more into the issue and the crash log seems to suggest it's an issue with updating the username labels, and more specifically, trying to set the name to nil. My guess as to what's going on is that at some point in the player swap transition the part of the player that the mod uses to determine their username gets transferred to the new prefab leaving nothing in it's place and thus tries setting the username label to nil. Likely a important note, I play with the username labels on.

This is the crash log I get:
[string "../mods/workshop-2220506640/scripts/devtool..."]:284: calling 'SetText' on bad self (string expected, got nil) LUA ERROR stack traceback: =[C]:-1 in (method) SetText (C) <-1--1> ../mods/workshop-2220506640/scripts/devtools/labels.lua:284 in (method) UpdateUsername (Lua) <275-297> self = DebugStringStop = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 DebugError = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 DebugErrorNotInCave = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 username_mode = coloured DebugString = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 DebugActivateEventListener = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 DebugSelectedPlayerString = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 default_username_mode = coloured DebugErrorNotInForest = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 font_size = 18 DebugSendRPCToServer = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 is_selected_enabled = true default_font = stint-ucr DebugErrorNotAdmin = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 DebugInit = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 DebugDeactivateEventListener = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 font = stint-ucr name = Labels default_font_size = 18 devtools = DevTools DebugTerm = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 is_username_enabled = true DebugStringStart = function - ../mods/workshop-2220506640/scripts/devtools/utils/debug.lua:55 _ = 1 inst = 101849 - wilson (valid:true) client = nil
󰀏Niko 23. jan. 2023 kl. 12:05 
Oprindeligt skrevet af Demonblink:
󰀏Niko, Thank you for your report. I'll take a look into that.
I found a fix for it.
at "scripts/devtools/labels.lua": (line 284), Replace with
Demonblink  [udvikler] 25. jan. 2023 kl. 11:12 
󰀏Niko, The fix has been shipped with v0.7.1. Once again, thank you for investigating this.
< >
Viser 1-9 af 9 kommentarer
Per side: 1530 50