Al's Science Shuffle


Randomizes science ingredients while keeping complexity and total resources balanced.

4 years ago
0.16 - 0.18
4

b Table Index is Nil

3 years ago

I had an error show up that I wasn't able to fix. Any idea what could be causing it?

Failed to load mods: zAIsScienceShuffle/data-final-fixes.lua:53: table index is nil
stack traceback:
zAIsScienceShuffle/data-final-fixes.lua:53: in main chunk

Mods to be disabled:
- zAIsScienceShuffle (1.0.2)

3 years ago

Fixed the issue

Just changed it to an if else

    if tech_level_effect[ingredient_name] == nil then
        tech_level = math.max(tech_level,0)
    else
        tech_level = math.max(tech_level,tech_level_effect[ingredient_name])
    end

New response