Errors when loading certain scripts

  • TheTopazRuby
    3rd January Member 0 Permalink

    There is a frequent issue when I load some certain scripts. The script fails to load and it says "bad argument #1 to 'element' (number expected, got nil)"
    I am completely unsure what this is but I would really appreciate if someone knows how to fix this or any information on this. Thanks

    Edited once by TheTopazRuby. Last: 3rd January
  • LBPHacker
    3rd January Developer 1 Permalink
    The scripts in question are just coded wrong, not much you can do about it. The sort of problem you describe may crop up out of nowhere if you have a metric ton of scripts installed and your game runs out of element IDs to assign, which most scripts don't bother to check and then try to configure the elements they failed to register.
  • TheTopazRuby
    3rd January Member 0 Permalink

    @LBPHacker (View Post)

     Thank you so much, I was thinking it had something to do with element IDs running out. Would there be any way to add more 'slots' for IDs? It sounds strange but im wondering if its possible

  • LBPHacker
    3rd January Developer 1 Permalink
    It's possible, but you'd have to recompile the game and adjust the save format to support more IDs.