Golden Sun Hacking Community

The Community => Introductions => Topic started by: Cursedgamer11 on 10, July, 2016, 10:36:53 PM

Title: Speedrunner trying to soak up knowledge
Post by: Cursedgamer11 on 10, July, 2016, 10:36:53 PM
Heya guys. I'm planning on trying to get into this game, work on the routing, and probably work on the manipulations and tricks too. I'm kinda stuck at the moment because I don't know the data addresses for the game values. And I have no idea how the RNG increments, or how it is read.....  :sad: I just have a bunch of questions that I hope you guys can answer!  :happy: I hope to hear back from you guys though.
Title: Re: Speedrunner trying to soak up knowledge
Post by: Daddy Poi's Oily Gorillas on 10, July, 2016, 11:12:53 PM
I remember someone and I were talking about this stuff only 3 years ago... so I'll just grab some of it from that PM I made out to them.
If you have any specific questions, let me know. *Looks back again.* I mean, can't wait to hear what you have...

---
GS1:
02000478 = Random battles counter (0x00100000+ will cause a battle.)
020023A8 = Random number
03001CB4 = Random number

GS2:
02000498 = Random battles counter (0x00100000+ will cause a battle.)
020054C8 = Random number
030011BC = Random number


Effects may use the first random number(020023A8/020054C8)(I think?), but I have supplied both of the known ones in both games just in case.

The second random number (in the 03****** section), will update as you select enemies, but that doesn't occur for the one in the 02 section.

Whenever the random numbers are used, I believe that is when they change.  They get multiplied by 0x41C64E6D then added by 0x3039, and the result is used where needed.

I noticed that in GS2, the "May inflict Death" may not work on 102 Agatio or 105 Karst, so no point in using things like Assassin's Blade on them?


For GS1, the editor says that Assassin's Blade has an unleash rate of 35%, if that helps.
Title: Re: Speedrunner trying to soak up knowledge
Post by: leaf on 13, July, 2016, 01:08:48 PM
Hm, have you tried to get in touch with plexa? He's one of the foremost speedrunners of this game, and could probably help you out.
Title: Re: Speedrunner trying to soak up knowledge
Post by: Cursedgamer11 on 14, July, 2016, 12:54:36 AM
Quote from: leaf on 13, July, 2016, 01:08:48 PM
Hm, have you tried to get in touch with plexa? He's one of the foremost speedrunners of this game, and could probably help you out.
Yes I have, but I want to do a lot of research on my own. I've already asked him about the game a good amount, so I'd be worried that asking him things like how damage is calculated would be rather annoying.
Title: Re: Speedrunner trying to soak up knowledge
Post by: leaf on 14, July, 2016, 01:35:06 AM
Well, damage calculation is something that gamefaqs can tell you.

http://www.gamefaqs.com/gba/468548-goldensun/faqs/15080
Title: Re: Speedrunner trying to soak up knowledge
Post by: Daddy Poi's Oily Gorillas on 14, July, 2016, 03:27:05 PM
@Research: If you are interested in the more in-depth stuff... Then...
-Do you know any assembly code? (Thumb/arm) ; If not, would you be interested in learning? (I use GBATEK for documentation on hardware... ; and SDL-H for debugger... Although no$gba debugger is another option.)

@Damage Calculations: There's one large function... Containing the Ability Type and Ability Effect coding... and the Ability Type is what the damage calculation part is.,.... (Depending on the type may depend on which of three or so functions are called... @3 functions: One is Physical type, another is Elemental (Non-physical) type, and the last is Heal type.)