Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#26 2011-08-23 17:25:16

Tauwasser
Member
Registered: 2010-10-16
Post 176/448

Re: Pokémon Gold ROM Resizing Help

Well, are you sure you you're executing the right code and actually did everything in order for the scripts to work in banks 0x80 and up?

It's really hard to say what's going on here. If in doubt, just execute the script, break in the debugger and trace your code. The main script execution routine is at 25:6BDC. You can put a break point there and trace what happens. Protip: Do a conditional breakpoint ignoring 0x90 returns.

cYa,

Tauwasser

Offline

#27 2011-08-23 18:47:57

Cheesewig
Member
Registered: 2011-08-06
Post 45/53

Re: Pokémon Gold ROM Resizing Help

I have no idea how to do that...


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#28 2011-08-23 19:05:41

Sawakita
Administrator
Registered: 2010-10-16
Post 194/364

Re: Pokémon Gold ROM Resizing Help

Do you have BGB? Once you open it, you can set breakpoints by opening menu "Debug > Breakpoint", and then write the code location where you want the game to break at (format is: bank:pointer, remember to use hexadecimal values, and big-endianness for the pointer). Then run the game and reach the point where the game should run such code. When the game stops at the breakpoints you can run step-by-step by pressing F7 and skip to "one-level higher routine" by pressing F8.

Last edited by Sawakita (2011-08-23 19:13:26)

Offline

#29 2011-08-23 19:16:16

Cheesewig
Member
Registered: 2011-08-06
Post 46/53

Re: Pokémon Gold ROM Resizing Help

Yes I have. I'll try this but...


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#30 2011-08-23 19:27:00

Cheesewig
Member
Registered: 2011-08-06
Post 47/53

Re: Pokémon Gold ROM Resizing Help

When I put a breakpoint at 25:6BDC and I go back to the game, BGB says: (Debugging). I didn't even excecute the script...


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#31 2011-08-24 21:33:17

Cheesewig
Member
Registered: 2011-08-06
Post 48/53

Re: Pokémon Gold ROM Resizing Help

I'm not doing it right am I?


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#32 2011-08-25 16:58:06

Tauwasser
Member
Registered: 2010-10-16
Post 178/448

Re: Pokémon Gold ROM Resizing Help

Well, you can also try 25:6BDF. Did it say "PC=25:6BDF" in the breakpoint window?
Did you disable the code by accident? Have you actually executed a script? For instance, have you performed a slow turn while walking or talked to a signpost?

Please take a screenshot of the window that pops up when you press Debug -> breakpoint.

cYa,

Tauwasser

Offline

#33 2011-08-25 20:09:47

Cheesewig
Member
Registered: 2011-08-06
Post 49/53

Re: Pokémon Gold ROM Resizing Help

As soon as I enter the breakpoint, The game breaks.

breakx.png


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#34 2011-08-26 21:01:03

Tauwasser
Member
Registered: 2010-10-16
Post 180/448

Re: Pokémon Gold ROM Resizing Help

Good, now click on the entry, type "A!=$90" in the condition field on the right and hit replace :D

Then talk to the signpost.

cYa,

Tauwasser

Offline

#35 2011-08-27 08:42:11

Cheesewig
Member
Registered: 2011-08-06
Post 50/53

Re: Pokémon Gold ROM Resizing Help

Yes! It worked now what do I do?


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#36 2011-08-27 10:15:58

Tauwasser
Member
Registered: 2010-10-16
Post 181/448

Re: Pokémon Gold ROM Resizing Help

Look if your script executes and what happens to your bank byte when calling a script in banks 0x80―0xFF.

cYa,

Tauwasser

Offline

#37 2011-08-27 19:42:30

Cheesewig
Member
Registered: 2011-08-06
Post 51/53

Re: Pokémon Gold ROM Resizing Help

How do I do that?


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#38 2011-08-27 21:16:05

Tauwasser
Member
Registered: 2010-10-16
Post 184/448

Re: Pokémon Gold ROM Resizing Help

You follow the code. It should break when your talk to your signpost or people event. After that, it will have read the first byte (the command) and do a table lookup to find the proper routine, then jump to it.
Inside that routine, the bytes the command needs are read. Make sure your read the correct bytes there. After that, the 3byte call command will put the script pointer onto the stack and return to the previous routine. Let go of the debug window and click the play window.
Your debugger should break at the first command byte of your sub-routine. If that doesn't happen, something went wrong there already. If it does happen, just keep playing and breaking until you hit the code 0x90 in the sub-routine (make sure you deactivated the A!$90 option in the breakpoint window." Look at what it does when you want to return from the script and if it loads the correct values (bank and pointer) from stack.

cYa,

Tauwasser

Last edited by Tauwasser (2011-08-27 21:16:33)

Offline

#39 2011-08-28 13:56:58

Cheesewig
Member
Registered: 2011-08-06
Post 52/53

Re: Pokémon Gold ROM Resizing Help

I... Think... I'll... Leave it for now...


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

#40 2011-08-30 19:57:22

Cheesewig
Member
Registered: 2011-08-06
Post 53/53

Re: Pokémon Gold ROM Resizing Help

Okay... What should I do?


My name is Aochider I was called. Dr. PET was loved an esteemed by us all!
Team Cheesemon | Cheesewig's Domain Forum |

Offline

Board footer

Powered by FluxBB