Variables you are defining are global if not specified as local. And I have no idea if they can be referenced from other mods especially in control.lua.bobingabout wrote:I haven't much experience with control.lua. is it possible to access custom variables such as bobmods.ores.lead.enabled to see if it is true or false? (Probably going through the whole if bobsmods then if bobsmods.ores then if bobsmods.ores.lead then if bobsmods.ores.lead.enabled == true then thing)orzelek wrote:I did a quick test with full set of bob's mods and I can see both gems and sulfur spawning.irbork wrote:With RSO. Thought it was not related since other ores looked ok.
RSO will need to be fixed to align to new way of enabling of ores if possible. According to wiki I can access autoplace info from control.lua so should be able to base ore detection or presence of autoplace instead of presence of ore item. I'll try to fix this soon.
if it doesn't work, would defining the variable as a global help? (Currently, I just define the variable as bobsmods = {}, I don't set it as local or global)
Autoplace is one method - other would be an external interface to query if ore is enabled or not.