Golden Sun Hacking Community

Golden Sun Resources => Misc. GS Hacking => Topic started by: VanishMantle on 23, March, 2013, 03:58:28 PM

Title: How would I Insert a Boss fight into an event
Post by: VanishMantle on 23, March, 2013, 03:58:28 PM
I want to add a boss fight to the tablets at each of the Elemental Rocks in the game. The only problem is I am not sure where exactly or what exactly I need to look at in order to do that. If anyone has an idea of how to go about this I would be very grateful.
Title: Re: How would I Insert a Boss fight into an event
Post by: Daddy Poi's Oily Gorillas on 23, March, 2013, 10:28:32 PM
I believe what you are wanting can be done in Map Code. I probably should warn you that the instructions below are vague, but just a quick push to get you in the right direction, provided you actually have general experience with Hex Hacking.

Go to GS Editor's Map Editor;
Click on Code Pointers;
In the rooms you wish to make edits to, check the Event Initialization pointers.

Yadda-yadda-yadda...

Ofcourse, you'd have to find the correct entry that matches the object you are editing in-game. ; ("Objects" as in.. warps, NPCs, tile events, etc.)
When that's found, you take note of the Pointer that points to code,... (Assuming that the entry links to code.) Yes, in-fact, the boss battles are coded in thumb assembly. Pretty much a function call to the Battle Mechanics code, if I recall correctly... It's been quite awhile since I even looked into it, so...
Title: Re: How would I Insert a Boss fight into an event
Post by: VanishMantle on 23, March, 2013, 10:41:13 PM
@Teawater: That helps some though I am really new to Hex editing. Or rusty i should say. I haven't touched it in years and when i was learning I didn't get too far with it. I'll look into it though and do some trial and error to see what i get.

EDIT: Also what Hex Edition program would you recommend?
Title: Re: How would I Insert a Boss fight into an event
Post by: Daddy Poi's Oily Gorillas on 23, March, 2013, 11:09:15 PM
I believe all you need is VisualBoyAdvance's Memory Viewer to help with trial-and-error,
and the GS Editor for the actually editing of the data via the Map Editor's Hex Editor. (It only includes Map Code though.)
..and lastly, the Dissassembler if you mess with code... (Available on VBA and the GS Editor.), but you would have to learn what the instructions mean. (In which case, I can start you off by saying the bl instruction is for calling functions.)

But if you insist on using a Hex Editor program, I usually use Windhex, but I do not really recommend it. (It only displays in byte format anyway.)
Title: Re: How would I Insert a Boss fight into an event
Post by: VanishMantle on 23, March, 2013, 11:15:10 PM
Ah okay thanks for the tips I will look into those things thanks for the help though. I will try without hex editing first then go from there.
Title: Re: How would I Insert a Boss fight into an event
Post by: Daddy Poi's Oily Gorillas on 23, March, 2013, 11:20:19 PM
Yeah, I forgot to mention that Map Code is compressed, so your best bet is to edit via Atrius's editor. Thus rendering any other Hex Editors useless.

(In VBA's Memory Viewer, Map Code is decompressed to 02008000)

Anyway, you are welcome.