Hello. I've been searching the internet longer than I probably should've (considering I have to do laundry) for a solution to this, but I haven't found anything.
When I start a battle, the game crashes and I get the message above.
Any help? This is a new project, so the only scripts I have are Ozziekun's Earthbound Battle System script and his HP odometer add-on., Ventwig's 'Face in Action Window' and TheoAllen's 'Animated Backgrounds' installed and that's literally it.
Attached are the error message and scripts I'm using. Any help? I can upload my game's folder if need be.
When I take out the earthbound script, battles are able to start. The game crashes even when I take out the other scripts and leave just that one. I haven't changed anything. Placement of the battle system script doesn't seem to matter either.
Any help would be greatly appreciated.
Script 'WindowBase' line 373: NoMethodError crash
● ARCHIVED · READ-ONLY
-
-
Hello. I've been searching the internet longer than I probably should've (considering I have to do laundry) for a solution to this, but I haven't found anything.
Dude, you are so full of it, it defies description.
http://bfy.tw/K8Lr
But your thread is extra helpful, you added everything so you are helping us help you out. Kudos for that.
It has to do with a script, wait and someone might even figure out what you did wrong.
Edit:
And actually you should check this reply first...
Script error, please help! -
The game is literally a week old haha, so I don't have any save files for it yet. The crash occurred when I testplayed it (because I wanted to see what the animated bgs looked like). When I 'played' the main game, it still crashed.
Google was my first stop to look for help, of course. The problem was that the threads I found were all locked either because of inactivity, or some random solution that didn't really apply to me. -
Ummm have you placed the scripts at a correct order? Keep in mind that this might be a compatibility issue, since we can't just add scripts without making sure that all work together.
I suggest you remove all the scripts and add one after another, or try to exclude some to see if it works. -
topics are locked after their OP has found the solution because extremely often, similiar errors have different causes and nothing brings more confusion to the bughunt than having people with different causes mixed into one topic.
That error is because the game tries to use something and then discovers it has no data for it - which also means the error is not in that line, but somewhere else. This is only the line where the computer realises that somewhere else data has not been defined that is needed now.
Please follow the link "how to use a script" in my signature. If that tutorial doesn't result in you finding the error, we need a screenshot of the backtracer output in the console (links to how to install the backtracer are also in that tutorial).
Only then we can look for the place where the definition had been forgotten. -
These are the icons defined in that script:
Code:ActorIcons ={ # Command Name => IconID "Attack" =>1, "Magic" => 2, "Special" =>3, "Guard" => 4, "Items" => 5, "Escape" => 6, }
The error message comes from the draw_icon method, and indicates that an icon index hasn't been passed. It seems there is a command that hasn't been added to that list, so it doesn't have any icon to use. Have you set up any other skill types, maybe? -
My script has nothing to do with this. And as well as other script just as you said. But here is your problem.
Most likely, your problem is because you haven't set the configuration completely.
Code:Maybe, you change those command names in different terms in database, so you need to change the setting accordingly. Imo, it's partially the scripters fault for not giving it a default value when something is not defined, thus resulted an error.ActorIcons ={ # Command Name => IconID "Attack" =>1, "Magic" => 2, "Special" =>3, "Guard" => 4, "Items" => 5, "Escape" => 6, }
If you don't know what I mean, simply put this patch below the script.
Code:Should do the trick to help you understand what's going on.class Window_ActorCommand def draw_item(index) rect = item_rect_for_text(index) x = rect.x + rect.width / 2 - 12 y = item_rect_for_text(index).y icon_index = Earthboundish::ActorIcons[command_name(index)] || 1 draw_icon(icon_index, x, y, command_enabled?(index)) end end
EDIT: Shaz beat me to it :( -
The patch does get it to play, but there's another problem: there's no command box anymore. I thought maybe the actor face script was the problem, so I took it out and there's still no command box at all.
But I did go back and configure the script some, since I did add types. I have three. "Powers" "Techniques" and "Call." I configured the script accordingly and it still crashes. Clearly, I'm doing something wrong, but what? -
you need to tell us what you did before we can tell you what is wrong - that means screenshots of your configuration
-
what is the new error message?I configured the script accordingly and it still crashes
Please give us a screenshot of all your types - ensure there are no blank ones you've allocated to someone but not given a name to. And show us what changes you've done in the script.
If something goes wrong, it's really better to just come back to us and say what's happened, rather than trying to guess and change other things around (like removing the other script). Otherwise we're trying to help you figure out one problem but you could be introducing others or making things worse by changing unrelated stuff. -
Same error message. I attached a screenshot of the only changes I made to the script.
-
I'm not sure about this, but try not making them upper case - make them EXACTLY as they are in the database.
Also, neither the change I suggested nor the snipped Theo Allen gave you should have stopped the command box from displaying. Is there anything else you changed? Can you get it back if you undo all the changes we've given you so far, and any others that you've done in the meantime?
When you say "there is no command box", do you mean it's skipping it altogether, or just that it's there but not displaying properly (no window)? -
Ok, the window wasn't gone, I just had to select the commands by moving the left and right arrows. I can't get the window so that the actors' faces fit, though. Here's what it looks like:
And the skill types are caps in the database. -
So is this a problem that was happening before, or was it working okay before and only messed up after you made the changes to the icon list?
What other things have you played around with since it was working correctly / since you made your initial post?
If you have made any changes to the face window, maybe delete that script and re-import it from the original again (assuming you didn't have to customize it in any way). -
Nope, I didn't customize it at all yet. The crash only happens when I have the Earthbound script installed without the patch.
I haven't made changes to anything other than adding the skill types to the script. -
You are jumping between problems. You said the face is not displaying correctly, and I asked if it WAS displaying correctly before, and has only stopped working since you changed the Earthbound script. You have not answered that question yet.
Is the crash still happening? What do you have in the script now - Theo Allen's patch? Just the command names?
What are the problems that still need to be solved? -
I misunderstood your question. The faces displayed correctly until I added the earthbound script, yes. It crashes when the patch is not installed. When it is installed, there is no crash but I don't know how to fix the command window so that the faces fit.
-
So if you remove the earthbound script, the faces display properly again?
-
Yes.
-
Is it the command window, or the status window?