[Klonan] [15.12] silo-script errors when removing mod that added item

This subforum contains all the issues which we already resolved.
Post Reply
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

[Klonan] [15.12] silo-script errors when removing mod that added item

Post by Nexela »

viewtopic.php?f=93&t=17910&p=278979#p278941

Possible solutions
remove invalid items in on_config_changed and additionaly remove the error message because Why error?(or both)


Code: Select all

if not items[tracked] then error("Silo script tracked item \""..tracked.."\" is not a valid item") return end
to

Code: Select all

if not items[tracked] then  log("Silo script tracked item \""..tracked.."\" is not a valid item") return end 

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [Klonan] [15.12] silo-script errors when removing mod that added item

Post by Klonan »

Nexela wrote:viewtopic.php?f=93&t=17910&p=278979#p278941

Possible solutions
remove invalid items in on_config_changed and additionaly remove the error message because Why error?(or both)


Code: Select all

if not items[tracked] then error("Silo script tracked item \""..tracked.."\" is not a valid item") return end
to

Code: Select all

if not items[tracked] then  log("Silo script tracked item \""..tracked.."\" is not a valid item") return end 
Thanks for the report,

In the next release tracked items will be validated on configuration changes

Post Reply

Return to “Resolved Problems and Bugs”