Whenever i try to start a battle, the error "Script '' line 78: NoMethodError ocurred. undefined method '[]' for nil:NilClass" happens. I don't know what's happening. My scripts are http://rmrk.net/index.php?topic=45009.0 and the first two scripts listed at http://rmrk.net/index.php?topic=47693.0
Please help.
Keep getting error Script '' line 78: NoMethodError ocurred. undefined method '[]' for nil:NilClass
● ARCHIVED · READ-ONLY
-
-
I don't think it's necessarily the specific scripts anyway, something within the game's code seems to be reacting violently to custom scripts in general.
-
I've moved this thread to RGSS Script Support. Thank you.
That error means it is trying to access a variable which doesn't exist. That can be due to not starting a new game after installing the scripts, or using two scripts which are not compatible with each other, or installing them out of order. -
Error in script '' means that the error happens in an unnamed script slot.
Please check and name all scripts you have added, because then you'll get a real message like
Error in script 'scriptname' on line #.
Additionally I suggest you follow the link "how to use a script" in my signature, because the default engine has no problems with scripts as long as the scripts themselves are correctly installed and configured and bugfree.
So if you have a problem with scripts, it means that you're the one making mistakes with them. -
As already mentioned, please check ALL of your script slots and ensure they all have names.
None of those scripts have code that would cause that error on that line. So it's either another script you've added that you've not included in your links above, or you've made modifications to those scripts.
When the error happens, please take a screenshot and post that here. Then close the game, and in the editor, press F11. This should take you to the exact line of the exact script that's causing the problem. Please take a screenshot of that, without selecting any other slots, and without moving the cursor, and post that here as well. -
Please close this thread.
-
@Laggycat to close your thread you need to report it. Go to your first post and click on the report link. Or any post here, but the first one is the start of your thread.
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.