Script error and no clue what to do

Status
Not open for further replies.

kyuzaemonae

Villager
Member
Joined
Jun 7, 2014
Messages
7
Reaction score
0
First Language
german
Primarily Uses
hi all,

i bought the rpg maker vx ace a few days ago and up to now everything went quite well, until...i wanted to test run my game, leave home town, try to enter the first dungeon and get this message "Script 'Game_interpreter' line 1411: NoMethodError occurred. undefined method `name=' for nil:NilClass"

since i have absolutely no idea of scripting, i am at my wits end. :unsure:   ...i hope this was the right topic *swt*
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This is caused by a Script command (on tab 3, the very last command). You've added one of these to an event, and something hasn't been set up right.


It looks like you might have added a script and you're trying to refer to the script? Anyway - it'll be on either the exit event for the map you're on, or an autorun or parallel event in the dungeon map. If you can check where the Script command is, take a screenshot of the event and post it here, and we'll be able to help you.


Also, if you find it and you know it's referring to a script, give us a link to the script so we can see what it's expecting you to do.
 

kyuzaemonae

Villager
Member
Joined
Jun 7, 2014
Messages
7
Reaction score
0
First Language
german
Primarily Uses

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Moving to RGSSx Script Support


Yep. It's saying there's no such thing as $fog.


Which tells me that either there's something you need to do to set it up, which you haven't done, or - more likely - that you saved your game before you added the script, and now you're playing the game you saved earlier rather than starting a new one.


It's likely that $fog is created when $game_map is created as part of the script, but in your saved game, $game_map has already been created.


Try adding it back, starting a new game, then going into the dungeon. Any time you add a new script and then resume a game you'd saved prior to adding the script, there could be problems.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
There is one important part of that tutorial's description that you might have overlooked.


BEFORE you can use the script commands you listed, you need to add Woratana's Multiple Fog script to the editor (read the sentence below the image, above the script commands), and that script isn't even linked in that tutorial.


So I'm guessing either you never added that script in the editor, or when seeking for it you added the wrong script to the script editor - both cases would end up with the error you reported...
 

kyuzaemonae

Villager
Member
Joined
Jun 7, 2014
Messages
7
Reaction score
0
First Language
german
Primarily Uses
it's usually a stupid mistake i make, but finding it is always annoying. thanks a lot for your help ^^
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top