Food Industry (2.0 beta)

by Oceanel

[Warning (!): Mod is still under development, and is not intended for a long game] This mod adds hunger and ways to produce foods and drinks. From grown foods can be obtained effect capsules.

Content
3 years ago
0.16 - 1.1
1.25K
Fluids Manufacturing

b [Fixed on 1.8.139] Crash when used deconstruction planner

4 years ago
(updated 4 years ago)

Happened less than a minute after I deconstructed apple trees using deconstruction planner and with Construction Drones mod (a few others) enabled, not sure if that caused it.
Error while running event FoodIndustry::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
FoodIndustry/prototypes/scripts/trees_control.lua:93: in function 'v'
FoodIndustry/control.lua:110: in function <FoodIndustry/control.lua:107>
stack traceback:
[C]: in function 'index'
__FoodIndustry
/prototypes/scripts/trees_control.lua:93: in function 'v'
FoodIndustry/control.lua:110: in function <FoodIndustry/control.lua:107>

4 years ago

I deconstructed apple trees using deconstruction planner.
..., not sure if that caused it.

I think that this is the problem. What are the exact trees you are deconstructing? Young or adult, or seeds? Please clarify.

4 years ago

It had 8 apples each so I think it was fully adult trees.

4 years ago
(updated 4 years ago)

I reproduced the error and it seems to have fixed it. Wait for the next update.

4 years ago

I deconstructed apple trees using deconstruction planner.
..., not sure if that caused it.

I think that this is the problem. What are the exact trees you are deconstructing? Young or adult, or seeds? Please clarify.

4 years ago

Try 1.8.139.

4 years ago
(updated 4 years ago)

Using 1.8.136 my game crashing withing seconds of loading my save, switching to 1.8.139 I then have no issues so it would seems as if your fix worked and the crash no longer occurs.

Thanks you very much.

New response