Hi Klein developpers ! Today I found a bug in the Don't Starve Together Cavepreview beta.
I've installed a mod Wall Health Regen witch invoke the DoDelta methode witch is in walls.lua for restore wall periodically with a scheduled task.
The game crash when the task is runned with this message :
Quote[00:01:45]: [string "../mods/workshop-509723993/modmain.lua"]:12: attempt to index field 'health' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-509723993/modmain.lua:12 in (field) fn (Lua) <11-16>
scripts/scheduler.lua:194 in (method) OnTick (Lua) <168-225>
scripts/scheduler.lua:406 in (global) RunScheduler (Lua) <404-412>
scripts/update.lua:166 in () ? (Lua) <150-223>
Then I add the following code in the modmain for testing if this components is really nil :
if inst.components.health == nil then
inst:AddComponent("health")
end
but the game crash with this message :
Quote[00:00:59]: replica health already exists! scripts/entityscript.lua:519 in (method) AddComponent (Lua) <510-532>
[00:00:59]: Registering duplicate lua network variable 1421215739 in entity wall_pomarble[100036]
[00:00:59]: Break at: ..\source\simlib\Entity.cpp(326) :
Significating the components already exist and isn't nil
Here my log files:
- client_log.txt : The nil component
- client_log2.txt : The crash caused by replica component
- Install the mod, generate a new world and place a wall.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now