+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Trying to understand the battle code in Shining Force 1
Pages: [1]
Author Topic: Trying to understand the battle code in Shining Force 1  (Read 449 times)
DarkKobold
Guest
« on: June 05, 2007, 08:10:56 pm »

 Hello all! I am currently working on a TAS for Shining Force 1. For those who don't know, a TAS is a Tool-assisted speed run of a game. It relies on playing a game, frame by frame, which allows for luck manipulation, and super-human feats. The goal is to beat a game, as fast as super-humanly possible. A great example video of what can be done is available here:
http://tasvideos.org/469M.html
The author completes the first Dragon Warrior game, in under 19 minutes. Doing so required figuring out the code for battles to guarantee every encounter went his way. Now, this can be done by using emulator save states, and randomly guessing until you get the right outcome, however, this is inefficient, and can take years to get right.

However, by breaking down the code, you can use equations to accurately predict the button combination, frame number, and other such variables required to manipulate such great results.

It is my intention to do this with Shining Force 1. I would like to be able to understand, and therefore manipulate, critical hits, enemy misses, double hits, and then, most challenging of all, the battle queue order.

Unfortunately, I am finding my understanding of ASM is leaving me wanting. I'd really like some help reading through the battle code. I've found the memory location of where the attack amount is located, and also the routine in which it is written, however, tracing it and understanding it is causing problems.

Thank you to anyone who is willing to help.

BigNailCow
Guest
« Reply #1 on: June 06, 2007, 08:05:36 pm »

Oh jesus.

Well, I'm working on a Shining Force *2* hack right now, and I'm slowly trudging my way through the game's code and learning about everything I can.  I'm going to assume that, since you're trying a speed run of Shining Force, you must be a big fan of the series.  So maybe this will interest you:  http://www.romhacking.net/forum/index.php/topic,3706.0.html

You and I both know that SF1 and 2 are very very similar, so there's a good chance the battle code is similar as well.  I haven't tapped into it at all yet, but I will in the future.  I don't think anyone else is doing anything with Shining Force, so I have no idea where you could get some help on this.  I guess all I can say is good luck, and keep track of my progress for when I dip into the battle code.
DarkKobold
Guest
« Reply #2 on: June 27, 2007, 01:11:26 am »

With help from BigNailCow, I managed to figure out the randomization process for certain aspects. Anyone interested needs the correct emulator here:
http://upthorn.mspencer.net/Gens_9.5b.zip

the correct rom (not supplied)
Shining Force (U) [!]

and the video file, available here:

http://dehacked.2y.net/microstorage.php/info/875075296/Shining%20Force%20%28U%29%20%5B%21%5D.gmv

This takes you up to Chapter 2 without a single bit of damage taken.
Spikeman
Guest
« Reply #3 on: June 27, 2007, 03:11:36 am »

Don't know if you'll find this useful or not, but there is a document on Shining Force 1.
Wiz
Guest
« Reply #4 on: June 27, 2007, 04:38:47 pm »

I've just watched the video file, and though the battles are not very exciting since you pass them without any problem, I was very surprised to see how you escaped from the first town before expected by blocking a guard with a villager !

That's funny because while the villager goes down to the guard, you make strange moves with Max (to control the villager's random movement I guess), so at first I was like "Huh ? Is the record file corrupted or something ?", and when I saw Max go out without any ally, I was like "Haha that's crazy XD !!!"

It's good to see that TAS can allow such special situations Cheesy
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC