• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Battle] White out softlock in pokecrystal

  • 7
    Posts
    2
    Years
    As you may have already sussed, I'm working with a fork of pokecrystal, and I'm getting a softlock upon whiting out (i.e., having all my Pokemon faint). The music keeps playing, so it's not a crash; I'm pretty sure the game's stuck in a loop trying to decide where to send me. You should normally be sent to the last Pokemon Center you visited, and I haven't changed that. The only thing I've done that's vaguely related is add some new possible spawn points, but it softlocks regardless of whether your last Pokemon Center was at one of these new spawn points or one of the original ones.

    The code for whiting out seems to be in engine/events/whiteout.asm. You can see from the commit history that I haven't done anything to this file since I first created my fork.

    At the bottom, there's "GetWhiteoutSpawn", which farcalls "IsSpawnPoint". I tracked that down to engine/overworld/spawn_points.asm, another file that I've never modified. It does contain a loop, but I don't understand assembly well enough to tell you much more than that.

    As for adding the new spawn points, I followed the tutorial. It's really as simple as adding new entries to a few tables; you just want to make sure they're all in sync. The new spawn points work for other purposes such as Fly, so I don't know why they would cause a softlock.

    If it's not the spawn points that's causing the softlock... then I have no idea what it is. I've certainly made lots of other changes, but I don't know what would've affected whiting out.
     
    Okay, I'm the biggest idiot ever. It wasn't softlocked, it just wanted me to push a button. After adding autoscrolling for the rest of the battle text, I forgot I'd have to do that. I can't figure out how to delete this thread, so mods feel free to do that.
     
    Back
    Top