Omnilibrary


A collection of functions that omnimods are using.

Internal
4 months ago
0.15 - 1.1
22.8K

g Error With OmniScience

6 years ago

I have a rather extensive mod-list, which if necessary I can gather, but it's basically Bobs+Angels+LTN. If I enable omnimatter_science I get an error in omnilib/prototypes/functions.lua:174:attempt to index field '?' (a nil value).

6 years ago

I ended up adding this to the function at 174. Seems to have solved it:

if not tech then return end
if not data.raw.technology[tech] then return end

If I come across a tech that seems absurdly cheap, then I'll know which one broke this :)