Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2014-09-04 21:31:53

frz hax
Member
Registered: 2014-08-06
Post 17/43

Map loading process bug

I've had this problem for a while but it doesn't crash my game so it hasn't been serious.

I think there are 4 ways to enter Goldenrod City. Through warps, through route 34, by flying there and after losing a battle. I think these all have their own map loading processes.
This happens for no other map in the game.

-Through a warp, the screen goes orange and white(white is always on the bottom half, the top half is another colour), the previous music still plays then nothing happens unless [A] is pressed. After being pressed twice the map changes colour to green and white(purple and white at night) and the Goldenrod City music starts playing. After pressing [A] another 3 times, the player comes out of the warp(as normal) but the 'peow' sound plays (the one heard when you fall down a hole) then the screen shakes and the 'landing from falling' sound plays. Then the whole map works as normal, events and everything. Note-when pressing [A] the 'click' sound that is heard when scrolling through text is heard except on the very last [A].(probably because its the[A] for closetext.

-Through route 34, the player will stop moving and the map colour will change slightly. A text box will appear near the middle of the screen with glitch text(similar to the letters you see when you don't include loadfont). You have the option of reading the text. So pressing [A] twice again then a third time to closetext. Then the player appears as normal except for the map connection being a bit dodgy, the colour returns to normal and the goldenrod music starts playing. The whole map works fine, events and everything. Note leaving Goldenrod via route 34 causes no problems so it's not route 34 that's causing the problem.

-By flying, the bird will leave the city you are in(which could be Goldenrod), then the screen will go yellow during the day and purple during the night, the music will stop and other than a coloured screen, 2 of the leaves will remain from the flying animation. And ofcourse the game has crashed, pressing [A] will do nothing. Note- the emulator hasn't crashed like it does with unknown opcodes so you can do loadgame instead of having to reopen the ROM.

-After losing a battle,(after it says '[PLAYER] whited out') the screen will go white, the battle music will continue to play for about 2 seconds then stop. The sceen stays white.[A] does nothing when pressed. The game has crashed but like before the emulator hasn't crashed so you can load a savegame.

I know this was really long but I wanted to give you as much information as possible so it's easier for you to know what the problem is.

Thank You

Edit- if you enter from route 34 at night, the text box appears at the top right hand corner but only about half the box is visible, the rest is off the screen.

Last edited by frz hax (2014-09-05 09:47:08)

Offline

#2 2014-09-07 13:03:17

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 203/421
Website

Re: Map loading process bug

Check the event and script headers of goldenrod city and compare them to a clean rom with a hex editor. Maybe one tool you've used has caused the bug. CrystalMap for example glitches up route 38 when you edit the signposts.

Offline

#3 2014-09-07 16:07:32

frz hax
Member
Registered: 2014-08-06
Post 18/43

Re: Map loading process bug

Nope both the same.

Offline

#4 2014-09-07 19:10:39

frz hax
Member
Registered: 2014-08-06
Post 19/43

Re: Map loading process bug

What I think i have to do is find the offset for the map loading process in goldenrod and change it to what it should be.

Offline

#5 2014-09-07 19:39:45

Miksy91
Member
Registered: 2010-10-16
Post 2,134/2,311

Re: Map loading process bug

frz hax wrote:

What I think i have to do is find the offset for the map loading process in goldenrod and change it to what it should be.

That's just what Crystal asked you to check.
Script header determines what kind of scripts are run when the map is loaded.

(And there is no "map loading process" especially for goldenrod city map.) If some other maps fail to load correctly as well, you should check out what the map loading processes are like (but that's probably not the problem you're having).

Offline

#6 2014-09-07 21:26:40

frz hax
Member
Registered: 2014-08-06
Post 20/43

Re: Map loading process bug

...!...!

Speechless!

So yeah it was under the map scipt, changed it to what it is in a clean rom and I can fly to Goldnrod again! Everything else woks fine too. I haven't tested warping there after dying but I assume that's probably fine too.

The events I had moved were back to their original locations, so maybe the problem was caused in goldmap when I moved events around?

Goldmap has caused me so many problems... I only use it now for map music because it tells me what the song is called. Even its wild pokemon editor makes my routes have a 0% wild pokemon attack rate.

Its kinda stupid how all my problems are easily solved. I only post the ones I really can't fix, I've had lots more that I eventually fixed myself.

Thank You guys!

Offline

#7 2014-09-07 22:20:33

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 205/421
Website

Re: Map loading process bug

You don't necessarily have to change everything back, it's probably just the number of signposts or person events byte what got messed up.

As I suggestion, I recommend you to make backups of your hack often, and try to fix these bugs as soon as possible. The easiest way to find where do these kind of bugs come from is to compare the two hex files: the newest version of your hack, and the most recent backup. Look at the differences and find out what's not right.

Offline

#8 2014-09-08 08:37:56

frz hax
Member
Registered: 2014-08-06
Post 21/43

Re: Map loading process bug

No no its fine. What I meant was it reset the XY coordinates of signposts and stuff. It takes 2 seconds to move them on johtomap. This was a bug from a long time ago, if I'm doing something 'big' nowadays I'll make a backup. It's mostly scripting I'm doing now, so if there's a problems I know where it is and I just check the compendium for help.

Offline

Board footer

Powered by FluxBB