Error while battletesting

Status
Not open for further replies.

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
I had this error pop up when I try to battle test

If i try in game battle, it runs fine.
at the moment I using Galv's Menu Layout and Yanfly's Engine Ace which modify the resolution.
I'm not sure if these are causing the problem or not.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,232
Reaction score
6,776
First Language
German
Primarily Uses
RMMV
The error means that the battletest cannot access some data from the map - which it usually can't, because the map is only initialized in the game, not in the battletest.


One of your scripts tries to get mapdata while inside a battle - that usually happens if you have an on-map-battlescript (those can't be tested in the battletest) or if you added script calls to the wrong class.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
It's definitely not a script call on the wrong class.

What would be an example of an "on-map-battlescript"?

I might be able to identify the cause if know what that ^^^ is...


@Shaz Thanks for moving the thread (and sorry about the misplacement).
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
If you are doing a battle test, it should not be making ANY reference to Game_Map at all. So it's just because of your scripts. Normally when playing, $game_map will have been instantiated before any calls to battle, so you wouldn't get the nil error.


One of the scripts you're using must be making a reference to $game_map - it's unusual though, since those are fairly popular scripts, that nobody else has come across it yet.


You could install Mithran's Crash Debugger script (yeah, I know it's not really called that, but humor me :) ) and when you get the error again in battle test, take a look at the console and see what scripts/lines have generated the call to Game_Map line 202.
 

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
Should anything be appearing on the console? Because nothing is.

Also I can't find the gobj.txt anywhere.

After each time this error pops up, my script editor goes here. Not sure why.

Side note:Went through the scripts I'm using and made a list of the ones that had "$game_map".
Going through and temporarily deleting each one at a time and checking to see if this helps me find the culprit.


EDIT: I found the script at fault. I've removed it but know I want to know what exactly this script was doing that caused the problem. 
Unfortunately the script is from the DS+ Resource Pack I bought via Steam (So not sure if I can just post it). The script's author is Neon Black and the name is "
Terrain and Region Effects".

Let me know if you need to see the actual thing.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
It goes there because that's the line that causes the error. There is no @map defined in $game_map, because you're doing a battle test and a map hasn't been set up.


Are you sure you installed Mithran's script correctly? Yes, it SHOULD give you something on the console.


I hope, by "temporarily delete", you mean you're just commenting them out. DON'T change anything in the default scripts - only in your added scripts. In fact, I'd just comment out the added scripts entirely, rather than just lines here and there (otherwise you're going to cause more problems than you solve). Then re-enable them one at a time until the error happens. If you want to search script by script, look for anything that has $game_map.width and see which of those are not default/RTP scripts. The problem will be with one of them.


Can you show us the whole list of scripts you have? Just a couple of screenshots so we can see which ones you're using.
 
Last edited by a moderator:

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
@Shaz
Hopefully this doesn't count as double posting but I saw that you commented as I was editing...

EDIT: The script in question did not reference $game_map.width.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
You sure that script is from that pack? I looked into my DS+ and the only script from Neon Black is Step Effects.


It's not THIS script, is it?
 
Last edited by a moderator:

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
That's the one. It uses that other name in the actual script.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
Alright, I've just posted a link back here in that topic. Neon Black is on this forum frequently, and I'm sure will take a look at your problem as soon as possible :)
 

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
Wait I read your last post wrong.

AM talking about "Step Effects"

This is the header of the script.
I'm not even using Neon's "Terrain Tags" script
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
Are you SURE that's the script that's causing the issue then? How do you know?


I do have my doubts. It would be really handy if you could get Mithran's script up and running and get a backtrace of the commands. Go very carefully over the installation instructions for that one again, and see if there's anything you missed, or anything you put in the wrong place.
 
Last edited by a moderator:

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
Battle test works when I remove it. Doesn't when I put it back in. No other changes have be made.
 

I'm looking into my issues with Mithran's debugger. I'll let you know if I get anywhere.
EDIT: This is the response I got from Mithran.

@girostrike
If you aren't getting a log or any console messages then there are not any undisposed sprites in memory when the scene switches, so this script probably won't cover whatever is wrong
 
Last edited by a moderator:

Mithran

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
404
Reaction score
212
First Language
English
Primarily Uses
My script doesn't backtrace nilclass errors, just tracks sprites around and make sure they are disposed. I'm not sure if it can help you in this situation. You could just add a:

Code:
 print caller.join("\n")
On the line before the crash and you'll get the full stack put to your console. It may or may not help, as nilclass errors are generally more about what didn't happen than what did. In this case it probably will, since the map width is not something battletest needs to know.
 

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
By "line before the crash", do you mean the script position before the script in question or actually in the debugger script?

Excuse the naming. Place holder.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
in Game_Map. Here:

Code:
def width  @widthend
Code:
def width  print caller.join("\n")  @widthend
 

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
Thank you for the help Shaz. This is what I get.

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,535
Reaction score
12,057
First Language
English
Primarily Uses
RMMV
Okay, I can see it, but I'm still not sure why that is running. If I play a battle test in the demo project for that script, it works fine.


So I still think there is something else going on here, and it's not JUST that script at play. That script doesn't use any classes that should be open/referred to during a battle or battle test.


Would you like to zip up your project and send it through to me so I can take a good look at it? Dropbox or mediafire would both be good. Not 4shared or anywhere I have to register in order to download it.
 
Last edited by a moderator:

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
Yes that would be most helpful. Files have been sent.
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Back in the old days, long before I was born, salted crisps - or potato chips, for you yanks - came unsalted and had a little pouch of salt to manually shake on it. Of course, things are more efficient now, but Walker's still brought back the old 'Salt 'N' Shake' style a couple years ago. Dunno why, but if I had to guess, I'd say it's because the nostalgia crowd were getting salty.
Guys I just want to sit around and work on my game! *gets lots and lots of money shoveled at him* Game, I don't recall a game. What game? :LZSexcite:
Seems like people have stopped looking both ways before crossing the road nowadays. Blindly walking out into a into a road only ends in disaster.
Just finished planning out the skeleton of the main quest line of my new game. I'm so excited for it!
Integrating Jason Perry's japan tile set while listening to Murray Atkinson's Heaven and Earth background music.

Forum statistics

Threads
94,544
Messages
921,778
Members
124,411
Latest member
yellowsonicboom64
Top