alainmcd Posted April 17, 2017 Share Posted April 17, 2017 @PeterA or @Ipsquiggle Removing certain mods can cause the game to crash. In particular, there's an issue in this regard with Rezecib's Rebalance and possibly other mods that use the regrowthmanager component. Recezib's Rebalance adds regrowth for ferns and fireflies, and their values are saved, but since they aren't registered in the vanilla component, its OnLoad function crashes if the mod is no longer present. Changing line 255 in data/scripts/components/regrowthmanager.lua from regrowtime = _internaltimes[k] + timerdata.regrowtime, to regrowtime = (_internaltimes[k] or CARROT_REGROWTH_TIME) + timerdata.regrowtime, would solve this issue. Link to comment Share on other sites More sharing options...
Cyberboy2000 Posted April 17, 2017 Share Posted April 17, 2017 Mathematical operators have precedence over logic operators, so your code is equivalent to regrowtime = _internaltimes[k] or (CARROT_REGROWTH_TIME + timerdata.regrowtime), I assume you intended regrowtime = (_internaltimes[k] or CARROT_REGROWTH_TIME) + timerdata.regrowtime, Link to comment Share on other sites More sharing options...