Shepherd _load_timers


Got this error after save/loading:

 -- Script Error (lua) Begin ------------------------------- 
    ...nts/shepherd_pasture/shepherd_pasture_component.luac:16: attempt to call method 'bind' (a nil value)
    stack traceback:
    	radiant/modules/events.luac:43: in function 'bind'
    	...nts/shepherd_pasture/shepherd_pasture_component.luac:16: in function '_load_timers'
    	...nts/shepherd_pasture/shepherd_pasture_component.luac:12: in function 'obj'
    	radiant/modules/events.luac:14: in function 'self'
    	radiant/modules/events.luac:54: in function <radiant/modules/events.luac:52>
    	[C]: in function 'xpcall'
    	radiant/modules/events.luac:52: in function <radiant/modules/events.luac:45>
-- Lua Error End   ------------------------------- 

Link to full log (95.4 KB)

Link to save

Things I recall doing before save/loading: deleting two unbuilt buildings, and deleting scaffolding/ladders that were stuck in a wall via the console commands. Though, I think those are unrelated.

1 Like

Actually i’ve no Shepherd cause I demoted him to a trapper due the fact that he wasn’t killing the animals or feeding them…
…and this popped out after the demote.

1 Like

Thanks for the bug report. I’ve made a fix for this – it should fix the save file as well. Look for it next alpha 12 unstable push.

1 Like

Happens when I load my savegame. No idea what causes it. Seems to be cosmetic, though my shepherd isn’t using the pastures.Persists when I delete and remake pastures.

develop-2628 (x64)
…nts/shepherd_pasture/shepherd_pasture_component.luac:12: attempt to index field ‘reproduction_timer’ (a nil value)
stack traceback:
[C]: ?
…nts/shepherd_pasture/shepherd_pasture_component.luac:12: in function <…nts/shepherd_pasture/shepherd_pasture_component.luac:2>

develop-2628 (x64)
c++ exception: lua runtime error
stack traceback:

hey there @Hieronymous … merged yours as this sounds fairly similar to this existing report (both happening on load)…

@yshan, think this is likely resolved with the fix you mentioned earlier?

I just examined the code and old save games will continue to have this problem. New games should obviously be fine.

1 Like

Hi Sorry,
This is my bad. As part of fixing old saves, I broke saves that didn’t need to be fixed. Bah. Fixing now.