• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

noMethod error after porting my game to V12

[Solved?] noMethod error after porting my game to V12

It seems that error has resolved itself in the two days since I posted about it. Not sure why, since I haven't touched the thing since then. Oh well. I've left it below for posterity.

It's back, with a vengeance.

Code:
Exception: NoMethodError

Message: undefined method `*' for nil:NilClass

Game_Character_1:198:in `screen_z'

Sprite_Character:148:in `update_or'

PerspectiveTilemap:429:in `shadow_update'

Shadow:179:in `update'

Sprite_Character:37:in `perspectivetilemap_initialize'

PerspectiveTilemap:423:in `shadow_initialize'

Shadow:152:in `initialize'

Spriteset_Map:162:in `new'

Spriteset_Map:162:in `_animationSprite_initialize'

Spriteset_Map:161:in `each'
So I have no idea what this means. I gather it has something to do with drawing shadows on events, and it's encountering a problem doing so. Why, though, escapes me, as I haven't modified any of the script classes named in the stack call in the error message. I will note this only occurs when attempting to warp to outdoor maps. I was not able to reproduce the error in a clean Essentials.

Why is it throwing this error? I remember there being something in an older version that drew shadows when there were light events, but I haven't made any of those... And since I can't find what the call is from, I can't isolate the problem. Bleh, I should be better at this considering I've been studying programming for 3 semesters now.
 
Last edited:
Okay, so, it's back. I don't know why. I still haven't touched any scripts. This time, the error occurs on only one map, and it seems to do so when the player is close enough on a connected map for the map in question to load. The only things I did leading up to the re-occurance of the error were to change the tileset and the layout of the map, neither of which I should suspect would be the root of this problem. Since I have no idea what the stack call is doing, I really am at a loss as to how to fix this.

Help?
 
It seems that the game is trying to find the priority of a tile which doesn't exist. This could happen if you switched from a longer tileset to a shorter one.

Make sure all the tiles on your map actually exist in the tileset. I suggest that you fill in any blank-looking areas with a "junk" tile and them fill them in with the real blank tile.
 
Back
Top