Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#26 2011-01-10 00:22:34

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 421/3,512

Re: New Trainers from scratch in Gold

That would actually explain why I had it declare the fight that way, I copied the battle code from him when I was making the practice battle machines.

Offline

#27 2011-01-10 00:32:01

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

Re: New Trainers from scratch in Gold

EvilOttoJr wrote:

...How do you know all this stuff?

Basic use of a good debugger, really. I originally determined this by setting the flags and playing, since it seemed it only changed the intro text for Pokémon battles and otherwise obvious effects. I think that the one that lets you win the fight automatically is actually wrong. It probably needs some additional setup to work correctly... Well, fights are really complex and a great feat to debug once and for all...

cYa,

Tauwasser

Offline

#28 2011-01-10 14:30:35

EvilOttoJr
Member
Registered: 2010-12-05
Post 69/86

Re: New Trainers from scratch in Gold

Hmm... I'm going to have to learn to use a debugger.

Offline

#29 2011-01-10 18:50:05

125/702

Re: New Trainers from scratch in Gold

EvilOttoJr wrote:

Hmm... I'm going to have to learn to use a debugger.

There are two Game Boy debuggers, BGB and No$GMB. BGB is the better choice because it is more accurate, still actively developed, and completely free. No$GMB is inaccurate, is not actively developed, is nagware, does not work in Game Boy Color mode (only black‐and‐white), and will crash your computer when tracing.

#30 2011-01-10 19:07:25

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

Re: New Trainers from scratch in Gold

IIMarckus wrote:

No$GMB does not work in Game Boy Color mode (only black‐and‐white), and will crash your computer when tracing.

Huh? Well, I do have an illegal Gold key, I admit that... (Actually, I would pay if Martin still sold it for a reasonable price...) So CGB is no problem. Also, tracing never crashed for me...

cYa,

Tauwasser

Offline

#31 2011-01-10 19:32:30

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

Re: New Trainers from scratch in Gold

Tauwasser wrote:
IIMarckus wrote:

No$GMB does not work in Game Boy Color mode (only black‐and‐white), and will crash your computer when tracing.

Huh? Well, I do have an illegal Gold key, I admit that... (Actually, I would pay if Martin still sold it for a reasonable price...) So CGB is no problem. Also, tracing never crashed for me...

cYa,

Tauwasser

Have you ever tried tracing continuously for about 30-40 seconds or more? It always used to crash me, that way.
Anyway I'd suggest BGB, some people say its interface is bad, but to me it doesn't... It also has billions of useful features; the only feature it lacks, that I'd like to have, is a speed button (something like space-bar in VBA).

Offline

#32 2011-01-10 19:49:26

127/702

Re: New Trainers from scratch in Gold

Sawakita wrote:
Tauwasser wrote:
IIMarckus wrote:

No$GMB does not work in Game Boy Color mode (only black‐and‐white), and will crash your computer when tracing.

Huh? Well, I do have an illegal Gold key, I admit that... (Actually, I would pay if Martin still sold it for a reasonable price...) So CGB is no problem. Also, tracing never crashed for me...

cYa,

Tauwasser

Have you ever tried tracing continuously for about 30-40 seconds or more? It always used to crash me, that way.

Yes, there is a memory leak when tracing, so at first it is not bad but if you do it too much it will crash the program. I have also heard (but have not confirmed) that No$ emulates incorrectly while tracing.

No$ was good for its time, but I think BGB has surpassed it—at least, its benefits outweigh any drawbacks. And yes, I would have a full copy of No$ if Martin were still around. The fact that he’s not is another factor against it ;)


Sawakita wrote:

Anyway I'd suggest BGB, some people say its interface is bad, but to me it doesn't... It also has billions of useful features; the only feature it lacks, that I'd like to have, is a speed button (something like space-bar in VBA).

+ on the number pad speeds up gameplay.


By the way, beware is working on the next version of BGB as we speak. I have a pre‐release copy with some of the improvements (such as specifying bank for breakpoints/watchpoints). So if you have any suggestions for improvement, best contact him now.

#33 2011-01-10 20:23:30

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

Re: New Trainers from scratch in Gold

IIMarckus wrote:

+ on the number pad speeds up gameplay.

Thanks, I didn't know about it. BGB is now officially the best emulator/debugger ever.

By the way, beware is working on the next version of BGB as we speak. I have a pre‐release copy with some of the improvements (such as specifying bank for breakpoints/watchpoints). So if you have any suggestions for improvement, best contact him now.

Actually, it already does allow bank specifying for breakpoints (not for "access breakpoints", although). Or I misunderstand what you're saying?

Offline

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

128/702

Re: New Trainers from scratch in Gold

Sawakita wrote:

Actually, it already does allow bank specifying for breakpoints (not for "access breakpoints", although).

Okay. I wasn’t sure if it was already there for breakpoints, as I have no older version of BGB to test with. Selecting banks was newly added for watchpoints. Also, it’s now possible to have a read watchpoint not break when that address is executed.

#35 2011-01-10 21:34:59

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

Re: New Trainers from scratch in Gold

Actually I don't know how to contact him, and I don't even know if this trouble has already been pointed out before, but sometimes the code is mis-disassembled. Here's an example (bold lines):

ROM6:4F90 E2               ld (ff00+c),a
ROM6:4F91 4F               ld c,a
ROM6:4F92 E7               rst 20
ROM6:4F93 4F               ld c,a
ROM6:4F94 EC               undefined opcode
ROM6:4F95 4F               ld c,a
ROM6:4F96 08 FA 0D         ld (0dfa),sp
ROM6:4F99 CF               rst 08

ROM6:4F9A A7               and a
ROM6:4F9B 20 0A            jr nz,4fa7
ROM6:4F9D 3E 01            ld a,01
ROM6:4F9F EA 3C CC         ld (cc3c),a
ROM6:4FA2 21 B0 4F         ld hl,4fb0
ROM6:4FA5 18 03            jr 4faa
ROM6:4FA7 21 CE 4F         ld hl,4fce
ROM6:4FAA CD 49 3C         call 3c49
ROM6:4FAD C3 D7 24         jp 24d7
ROM6:4FB0 17               rla
ROM6:4FB1 45               ld b,l
ROM6:4FB2 42               ld b,d
ROM6:4FB3 29               add hl,hl
ROM6:4FB4 08 0E 0A         ld (0a0e),sp
ROM6:4FB7 CD 39 37         call 3739
ROM6:4FBA AF               xor a
ROM6:4FBB EA 4F CD         ld (cd4f),a
ROM6:4FBE EA 50 CD         ld (cd50),a
ROM6:4FC1 3E 4C            ld a,4c
ROM6:4FC3 CD 6D 3E         call 3e6d
ROM6:4FC6 3E 04            ld a,04
ROM6:4FC8 EA 28 D5         ld (d528),a
ROM6:4FCB C3 D7 24         jp 24d7
ROM6:4FCE 17               rla
ROM6:4FCF 64               ld h,h
ROM6:4FD0 42               ld b,d
ROM6:4FD1 29               add hl,hl
ROM6:4FD2 50               ld d,b

I don't expect that it displays the code correctly at booting, but do you think that it would be possible to adjust the code-reading when it notices that it jumps into the middle of an instruction (in the example, it would be $4f97 instead of $4f96, and $4fb5 instead of $4fb4)?

Last edited by Sawakita (2011-01-10 21:35:57)

Offline

#36 2011-01-10 22:40:08

129/702

Re: New Trainers from scratch in Gold

Sawakita wrote:

Actually I don't know how to contact him

His email is listed on the BGB website.

#37 2011-11-12 05:57:01

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 117/649

Re: New Trainers from scratch in Gold

So by entering the trainer group and data it's saying that it loads from 01(using Falkner as an example) and 1 again since in 01 there's only one trainer, that being of course Falkner belong to that group?

Something like Team Rocket, I assume that 42 has many data inside it, meaning I could do 42 02, 42 05 and so on?

Please answer.


Pokemon Blue DX is reborn!

Offline

#38 2011-11-12 06:02:42

325/702

Re: New Trainers from scratch in Gold

tysonrss wrote:

So by entering the trainer group and data it's saying that it loads from 01(using Falkner as an example) and 1 again since in 01 there's only one trainer, that being of course Falkner belong to that group?

Something like Team Rocket, I assume that 42 has many data inside it, meaning I could do 42 02, 42 05 and so on?

Yes. But when in doubt, try it.

#39 2011-11-12 06:05:12

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 118/649

Re: New Trainers from scratch in Gold

I see. Interesting, this has opened up new doors and I understand a lot more than yesterday. Tomorrow I shall learn more than today!

Thanks.

But I haven't tried it in game yet because I haven't tested out battle scripts. I know how they work, but I'm just examining the insides more before scripting up such an event.


Pokemon Blue DX is reborn!

Offline

#40 2012-03-03 13:59:40

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 125/548
Website

Re: New Trainers from scratch in Gold

@Mateo., when I'am use Oak's script trainer into blank space
What Trainer Number I'am use?


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#41 2012-03-03 18:15:48

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,253/3,512

Re: New Trainers from scratch in Gold

If you repoint his trainer data to blank space and start making trainer data there, you still use the same number for oak, and then the number depends on how many trainer entries you make there. If you only have 1 entry, it will be 01 because it is the first entry. If you make others, then the later battles with oak would use 02, 03, etc but you would have to enter trainer data there.

Offline

#42 2012-03-03 23:57:01

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 127/548
Website

Re: New Trainers from scratch in Gold

@Mateo, when I'am using the Trainer No. "01", then I'am battle with him and his name is not Prof. Oak but Prof. Will and his pokemon is same likes Elite 4 Will's Pokemon.
So, can I make Prof. oak's pokemon?
(ex: when battle Prof. Oak use Mewtwo,etc)


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#43 2012-03-04 23:55:33

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,255/3,512

Re: New Trainers from scratch in Gold

You would have to repoint him to blank space and have the name be OAK and then have whatever pokemon you want. By default, Oak points to the same location as Will so 01 will load Will, and then 02 will start loading CAL because his data starts immediately after Will. Find some blank space after the original trainers, add Oak's data there, and change the pointer to start there.

Offline

Board footer

Powered by FluxBB