Page 1 of 1

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

Posted: Sun May 21, 2017 10:44 pm
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 

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

Posted: Mon May 22, 2017 1:17 pm
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