Alpha 15 Latest, Error On Load Game

Since updating to Alpha 15, I get this error on load:

ENGINE ERROR
release-529 (x32)
…th/services/server/food_decay/food_decay_service.lua:94: attempt to perform arithmetic on local ‘initial_decay’ (a nil value)
stack traceback:
radiant/modules/common.lua:223: in function 'report_traceback’
radiant/modules/common.lua:234: in function <radiant/modules/common.lua:228>
…th/services/server/food_decay/food_decay_service.lua:94: in function ‘increment_decay’
…th/services/server/food_decay/food_decay_service.lua:59: in function ‘_on_decay’
…th/services/server/food_decay/food_decay_service.lua:24: in function '_fn’
radiant/controllers/timer_controller.lua:95: in function 'fire’
radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
[C]: in function 'xpcall’
radiant/modules/common.lua:243: in function 'xpcall’
radiant/controllers/time_tracker_controller.lua:82: in function ‘set_now’
…hearth/services/server/calendar/calendar_service.lua:379: in function ‘_on_event_loop’
…hearth/services/server/calendar/calendar_service.lua:37: in function 'instance’
radiant/modules/events.lua:206: in function <radiant/modules/events.lua:200>
[C]: in function 'xpcall’
radiant/modules/common.lua:243: in function 'xpcall’
radiant/modules/events.lua:200: in function 'trigger’
radiant/modules/events.lua:269: in function '_trigger_gameloop’
radiant/modules/events.lua:320: in function '_update’
radiant/server.lua:62: in function <radiant/server.lua:58>

Steps to reproduce:

  1. Load a save game
  2. Error appears

Version Number and Mods in use:
Steam Latest Branch, no mods.

System Information:
Windows 7, AMD A8 quad-core processor, 8GB RAM, Radeon R9 270X GPU.

Got an error when I pulled up the UI for item placement specifically, it loads the sidebar, but it’s empty and I get a pop up with this in it:

release-529 (x64)
…th/services/server/food_decay/food_decay_service.lua:94: attempt to perform arithmetic on local ‘initial_decay’ (a nil value)
stack traceback:
radiant/modules/common.lua:223: in function 'report_traceback’
radiant/modules/common.lua:234: in function <radiant/modules/common.lua:228>
…th/services/server/food_decay/food_decay_service.lua:94: in function ‘increment_decay’
…th/services/server/food_decay/food_decay_service.lua:59: in function ‘_on_decay’
…th/services/server/food_decay/food_decay_service.lua:24: in function '_fn’
radiant/controllers/timer_controller.lua:95: in function 'fire’
radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
[C]: in function 'xpcall’
radiant/modules/common.lua:243: in function 'xpcall’
radiant/controllers/time_tracker_controller.lua:82: in function ‘set_now’
…hearth/services/server/calendar/calendar_service.lua:379: in function ‘_on_event_loop’
…hearth/services/server/calendar/calendar_service.lua:37: in function 'instance’
radiant/modules/events.lua:206: in function <radiant/modules/events.lua:200>
[C]: in function 'xpcall’
radiant/modules/common.lua:243: in function 'xpcall’
radiant/modules/events.lua:200: in function 'trigger’
radiant/modules/events.lua:269: in function '_trigger_gameloop’
radiant/modules/events.lua:320: in function '_update’
radiant/server.lua:62: in function <radiant/server.lua:58>

Wondering if it has to do with the new update?

hey there @Hatter,

just merged your post over here, as they’re same error

thank you! I hadn’t seen this other thread when i looked for related errors.

1 Like

I’m seeing the same bug with a game after a while (granted it was a save game, I’ll try a from-scratch game here shortly).

Try opening the item placement menu. Mine happened immediately on loading, but maybe that has something to do with it.

Update: new games don’t have this issue so it’s just an issue with older save games and food before the new decay stuff was put in.

Hi all,
Yeah this error will happen on older games. Sorry about that! I don’t think it breaks anything, I think your food will not decay … free food! I have a fix for on my machine., but in the meantime, feel free to ignore it.
Thanks for reporting this!
-Yang

2 Likes

so is that a fix for the nest build or…?

Yes, a fix for the next build.
Thanks
-Yang

release-529 (x64)
…th/services/server/food_decay/food_decay_service.lua:94: attempt to perform arithmetic on local ‘initial_decay’ (a nil value)
stack traceback:
radiant/modules/common.lua:223: in function 'report_traceback’
radiant/modules/common.lua:234: in function <radiant/modules/common.lua:228>
…th/services/server/food_decay/food_decay_service.lua:94: in function ‘increment_decay’
…th/services/server/food_decay/food_decay_service.lua:59: in function ‘_on_decay’
…th/services/server/food_decay/food_decay_service.lua:24: in function '_fn’
radiant/controllers/timer_controller.lua:95: in function 'fire’
radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
[C]: in function 'xpcall’
radiant/modules/common.lua:243: in function 'xpcall’
radiant/controllers/time_tracker_controller.lua:82: in function ‘set_now’
…hearth/services/server/calendar/calendar_service.lua:379: in function ‘_on_event_loop’
…hearth/services/server/calendar/calendar_service.lua:37: in function 'instance’
radiant/modules/events.lua:206: in function <radiant/modules/events.lua:200>
[C]: in function 'xpcall’
radiant/modules/common.lua:243: in function 'xpcall’
radiant/modules/events.lua:200: in function 'trigger’
radiant/modules/events.lua:269: in function '_trigger_gameloop’
radiant/modules/events.lua:320: in function '_update’
radiant/server.lua:62: in function <radiant/server.lua:58>

Bug message on load in the new release.

hey there @Hieronymous,

just merged your post over here as its the same error, Yshan has already fixed this for the next build :smile:

1 Like

Thanks! I’d done a search for the word “food_decay” and didn’t see this other thread, sorry!

2 Likes

no problemo mate!

just a tip: if you’re searching for an error dont just search one or two words, search the first line of the error, so in this case that wold be,

...th/services/server/food_decay/food_decay_service.lua:94: attempt to perform arithmetic on local 'initial_decay' (a nil value)

if you put that in the search bar it brings up this report, and that way you dont end up with an error thats still about food decay but actually completely different.

hope that helps :slight_smile:

no need to apologize, i’m here to help out!

1 Like

1 Like