How to fix "Number expected: got nil"

  • HoratioNelson
    10th Sep 2023 Member 1 Permalink

    Hello,

     

    I currently have a patch pack (TPT: Ultimata) and about 10 Lua scripts. However, when I use certain elements added by these scripts (e.g. explosion or nuclear reaction), an error pops up that lists the script and an error that reads "Number expected, got nil." Is there any way to fix this, or am I simply using too many mods?

  • jacob1
    11th Sep 2023 Developer 0 Permalink
    This is something the script author would have to fix. You can usually see which script is throwing those errors by the name. But it's a bug in the script, not the game, so the only thing you can do is unload any buggy scripts or request that someone fix them.