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*
Script error and no clue what to do
● ARCHIVED · READ-ONLY
-
-
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. -
hmm... i think this was the only script i added to the map:
$fog.name = 'forestshade'
$fog.hue = 0
$fog.tone = [0,0,0,0]
$fog.opacity = 41
$fog.blend = 0
$fog.zoom = 100
$fog.sx = 0
$fog.sy = 0
$fog.show(1)
was the script from a tutorial. (http://forums.rpgmakerweb.com/index.php?/topic/26559-craydragons-mapping-dark-forest-with-mack-tiles-tutorial/ ) this one. dunno what went wrong, but i deleted it and at least, now i can enter the map. thx for telling me where to search :D -
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. -
There is one important part of that tutorial's description that you might have overlooked.was the script from a tutorial. (http://forums.rpgmakerweb.com/index.php?/topic/26559-craydragons-mapping-dark-forest-with-mack-tiles-tutorial/ ) this one.
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... -
it's usually a stupid mistake i make, but finding it is always annoying. thanks a lot for your help ^^
-
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.