It seems that once a mod is removed from a save that has modded rocket_launch_products that the rockets in-flight do not have their modded items removed and thus cause a crash.
Quickly destroying the rockets in-flight via command before they can trigger the on_rocket_launched event prevents the crash from ever occuring.
Edit: I forgot to mention that the modded rocket_launch_products were also added to the tracked_items via add_tracked_item at an earlier point in time.
[0.16.15] Modded Items Not Removed From Rockets In-Flight
[0.16.15] Modded Items Not Removed From Rockets In-Flight
Last edited by can00336 on Tue Jan 09, 2018 8:08 pm, edited 1 time in total.
Re: [0.16.15] Modded Items Not Removed From Rockets In-Flight
Post save and mod where this can be observed please.
Re: [0.16.15] Modded Items Not Removed From Rockets In-Flight
Neither the save nor the mod are publicly available for various reasons as the save is Xterminator's Sending Supporters to Space series save and the mod contains thousands of people's real names.
If the devs really need the mod and/or save for some reason, they can DM me or Xterminator for them.
If the devs really need the mod and/or save for some reason, they can DM me or Xterminator for them.
Re: [0.16.15] Modded Items Not Removed From Rockets In-Flight
The following change to \data\core\lualib\silo-script.lua seems sufficient to fix the bug:
Code: Select all
*** 137,143 ****
local force = rocket.force
local any_tracked = false
for k, tracked_item in pairs (global.silo_script.tracked_items) do
! if rocket.get_item_count(tracked_item) > 0 then
any_tracked = true
break
end
--- 137,143 ----
local force = rocket.force
local any_tracked = false
for k, tracked_item in pairs (global.silo_script.tracked_items) do
! if tracked_item.valid and rocket.get_item_count(tracked_item) > 0 then
any_tracked = true
break
end
Re: [0.16.15] Modded Items Not Removed From Rockets In-Flight
Thanks for the report,
This is fixed for the next release
This is fixed for the next release