Script 'WindowBase' line 373: NoMethodError crash

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
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.
 

Attachments

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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!
 
Last edited:

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
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.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,433
Reaction score
7,712
First Language
German
Primarily Uses
RMMV
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
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?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,599
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
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:
    ActorIcons ={
      # Command Name => IconID
      "Attack" =>1,
      "Magic" => 2,
      "Special" =>3,
      "Guard" => 4,
      "Items" => 5,
      "Escape" => 6,
    }
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.

If you don't know what I mean, simply put this patch below the script.
Code:
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
Should do the trick to help you understand what's going on.

EDIT: Shaz beat me to it :(
 

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,433
Reaction score
7,712
First Language
German
Primarily Uses
RMMV
you need to tell us what you did before we can tell you what is wrong - that means screenshots of your configuration
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
I configured the script accordingly and it still crashes
what is the new error message?

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.
 

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
Same error message. I attached a screenshot of the only changes I made to the script.
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
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)?
 

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
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.
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
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).
 

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
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?
 

Yeaster

Villager
Member
Joined
May 4, 2015
Messages
28
Reaction score
6
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
So if you remove the earthbound script, the faces display properly again?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Is it the command window, or the status window?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,479
Members
137,824
Latest member
dobratemporal
Top