Romhacking.net

Romhacking => ROM Hacking Discussion => Topic started by: Klaviaturist on July 21, 2012, 03:15:18 pm

Title: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 21, 2012, 03:15:18 pm
I am wondering if there is a hack out there that simply makes your characters move faster in PS3? If not, is there any interest in the creation of one? Just wondering as this was always a pet peeve when playing the game.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 22, 2012, 10:30:30 am
In the Phantasy Star Collection for Saturn there is a "fast walking" option for Phantasy Star 2 & 3. Since none of the battles or cinemas are affected by choosing this option I suspect it was done as a ROM change instead of simply bumping the frameskip in the emulator. They also added two more saveslots to Phantasy Star 3 so they definitely did some work on the ROM either way. It would be interesting to extract the ROM from the Saturn collection and do a diff with the final Genesis release. That's been something I've wanted to look at for a while but it hasn't made it to the top of my to-do list yet.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 23, 2012, 01:13:01 pm
In the Phantasy Star Collection for Saturn there is a "fast walking" option for Phantasy Star 2 & 3. Since none of the battles or cinemas are affected by choosing this option I suspect it was done as a ROM change instead of simply bumping the frameskip in the emulator. They also added two more saveslots to Phantasy Star 3 so they definitely did some work on the ROM either way. It would be interesting to extract the ROM from the Saturn collection and do a diff with the final Genesis release. That's been something I've wanted to look at for a while but it hasn't made it to the top of my to-do list yet.

I've never played the one for the Saturn. Was it released in the states? Also, I was reading on wikipedia about the parallax scrolling that was removed from the US release. Just wondering what that is and if it is something worth hacking as well.

It would be great if the Genesis release could be hacked to have the characters move faster. I have played the game for a number of years, on and off, and one of the biggest turn offs is walking through maze-like dungeons at a snails pace...
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 23, 2012, 07:54:22 pm
I've never played the one for the Saturn. Was it released in the states?
No.

Also, I was reading on wikipedia about the parallax scrolling that was removed from the US release. Just wondering what that is and if it is something worth hacking as well.
I haven't spent time on this one yet because I haven't played the Japanese version for more than a minute. The ROMs are definitely a bit different because none of the data lines up in the same locations. That's the main reason why the Aridia editor doesn't support the Japanese ROM yet. Well, that and my inability to read Japanese to tell if the text editing is working. Minor issues right :)

I see plenty of parallax scrolling on the US release though. Any more could induce vomiting.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 23, 2012, 08:55:54 pm
Found the ROM offset for walking speed when walking right: $004E4E.  This Game Genie code makes him move 4x faster when walking right: ABHA-AJCR

There is a problem though.  The "screen" will not keep up with him.  Been trying to figure out how to fix that, but no luck so far. 

EDIT: Only tested at the very beginning of a new game.

EDIT 2: The other ROM offsets for left, up, down (in no particular order): $004E4C, $004E50, $004E52

EDIT 3: The other 3 Game Genie codes to make your character walk 4x faster in all directions:  9VHA-AACN, AVHA-AACT, ABHA-B34W

These are of course completely adjustable.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 23, 2012, 09:35:58 pm
There are a ton of bizarre Game Genie codes like those documented over here: http://translate.googleusercontent.com/translate_c?act=url&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=auto&tl=en&twu=1&u=http://gazetadealgol.com.br/blog/%3Fp%3D1140&usg=ALkJrhj7igq1iz_ijg1fNFdVcUPvg-GNBw (even with translation on it's a little tough to follow) - I don't think they've found those yet though.

Anyway to stay on the ROM hacking topic.. if the location where those values are set can be tracked down it wouldn't be hard to edit. The game program likely puts the same value in all four addresses so it would be a one-time global change.

This makes me wonder about the Saturn version a little more now.. I'm leaning toward thinking they didn't change the ROM but instead used a Game Genie type of system to crank up the walking speed at runtime. That would have been the easier route at least, similar to the runtime patch they did for the Virtual Console version.

Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 23, 2012, 10:14:31 pm
Ugh.  Noticed another problem.  When using the modified offsets above, the character walks through walls, buildings, etc.  Back to the drawing board.

hugues, here are the original values used for walking speed (from the ROM), and the values I used to walk 4x faster:

00FF 0100 0001 FF00

00FC 0400 0004 FC00

Title: Re: A Possible Hack For Phantasy Star 3?
Post by: KingMike on July 24, 2012, 01:40:30 am
Hmm... did you raise the step increment from 1 pixel at a time to 4 pixels at a time, or reduce the time delay between steps?
I'd guess modding the latter would give a less buggy result, but probably be harder to trace.
(it is what I did for my Stargazers hack for NES. I found a variable that counted how many times it would wait for vblank between each pixel the player moved, and reduced it. Originally it was 2, meaning it would wait at least 2 full refresh cycles for each pixel the player moved, and move on the third cycle.)
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: engageridleymfkr on July 24, 2012, 04:54:49 am
The Phantasy Star collection for PS2 has a bunch of modifiers like this for all the games--increased walk speed, increased EXP/meseta drops, etc. It's all done in emulation, so perhaps it's worth dissecting the ISO to see if the codes can be recovered directly. I know the modifiers made to the games for their VC releases were stores as plaintext, and they're both M2 jobs, so...?

Also, I was reading on wikipedia about the parallax scrolling that was removed from the US release. Just wondering what that is and if it is something worth hacking as well.

The scrolling removed from the international release is really obnoxious and kinda weird. Y'know how the clouds zoom by at a million miles an hour during battle scenes? In the Japanese version the ground is moving, too, which makes even less sense given that no-one is moving and the battle sprites are barely animated.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 24, 2012, 04:06:54 pm
hugues, here are the original values used for walking speed (from the ROM), and the values I used to walk 4x faster:

00FF 0100 0001 FF00

00FC 0400 0004 FC00
Thanks! I'll play around with those to see what's possible.

The scrolling removed from the international release is really obnoxious and kinda weird. Y'know how the clouds zoom by at a million miles an hour during battle scenes? In the Japanese version the ground is moving, too, which makes even less sense given that no-one is moving and the battle sprites are barely animated.
Right, now I remember it. I think this is a case of addition by subtraction.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 24, 2012, 07:31:57 pm
Hmm... did you raise the step increment from 1 pixel at a time to 4 pixels at a time, or reduce the time delay between steps?
I'd guess modding the latter would give a less buggy result, but probably be harder to trace.
(it is what I did for my Stargazers hack for NES. I found a variable that counted how many times it would wait for vblank between each pixel the player moved, and reduced it. Originally it was 2, meaning it would wait at least 2 full refresh cycles for each pixel the player moved, and move on the third cycle.)

I raised the step increment. 

The main problem I'm having is getting the "screen" to follow him at the new/faster speed.  It only takes a couple seconds for the character to walk all the way out of view. 

I traced it back to this instruction:
00:3118  32 38  MOVE.w  ($D242),D1               

D242 appears to be the address that has the values I need for speeding up the "screen", but when I do a memory trace on FFD242, I don't get any results (w/Gens Tracer).  Just have to figure out where D242 is getting its values from.

If I can't figure it out soon, I may try the "time delay between steps" method you mentioned.

July 24, 2012, 09:31:30 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Finally figured out the problem.  Will take a total of 6 codes to walk any speed you want (1 master code, 1 "screen" speed code, and the 4 codes for the 4 directions).  Gonna do some more testing and will post all the info.  I had some minor problems when walking at 4x, but overall worked pretty good.  Will test 2x and 3x and see how that works (4x did seem a little too fast to me).

EDIT: I'm curious to see how they did it in The Phantasy Star collection for PS2.  Does anyone have that ISO that can compare it to the Genesis ROM?

July 25, 2012, 12:25:46 am - (Auto Merged - Double Posts are not allowed before 7 days.)
Also wondering... is there more than one choice as far as walking speed on the newer version?  And can you tell how much faster you're walking? (twice as fast, 3x as fast?).

EDIT: Just finished a short test with my 2x walking speed hack... seems to work perfectly.  Will post when done testing.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 25, 2012, 03:51:20 pm
Just wanted to say thanks for taking the time to actually figure this one out. Tony H, looking forward to the finished result.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 25, 2012, 07:40:51 pm
Just wanted to say thanks for taking the time to actually figure this one out. Tony H, looking forward to the finished result.

No problem.  The 2x walking speed hack seems to work very well.  The 3x and 4x speed hacks had some problems, so won't post those.

Here's how to hack your ROM to walk twice as fast...

Open up your Phantasy Star 3 ROM with a hex editor and make these changes:

At ROM address $0002D0, change the D258 to 6032.   This causes the game to completely skip the whole checksum process (no red screen).  This also makes the game load faster.

At ROM address $002E1D, change the 01 to 02.  This determines how fast the "screen" will move.

At ROM address $004E4D, change the FF to FE.  This is your speed when walking Left.

At ROM address $004E4E, change the 01 to 02.  This is your speed when walking Right.

At ROM address $004E51, change the 01 to 02.  This is your speed when walking up.

At ROM address $004E52, change the FF to FE.  This is your speed when walking Down.


Save those changes and you're all set.  Just remember that any save states/save games made BEFORE you hacked your ROM will need to use one of the PAR codes below.  However, any save states made after the hack should work fine without the extra PAR code.  If you're using an old save state/save game, make sure you turn the PAR code on BEFORE you load your saved game!


Here are the Game Genie codes for walking twice as fast (in case you don't want to hack your ROM).

GJBA-AA8T
Master code (improved).  Only use if you get a blank/red screen.  This code
also makes the game load faster.


93HA-AACN +
ABHA-AECR +
AKHA-AACT +
ABHA-B74W +
AJ1A-AAA6
Makes your character walk twice as fast.



Some notes about these codes...

These codes must be turned on before the game starts.

If you're starting a new game, make sure you have all the codes turned on before
you pick your message scrolling speed. 

If you're using the codes with an emulator save state, you'll need to add one
of these PAR codes as well:

FFD242:0002 (use this code with Gens emulator).

FFD243:0002 (use this code with Kega Fusion emulator).

Make sure you have all the codes turned on BEFORE you load your save state!
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 25, 2012, 08:12:17 pm
Thanks! I'll add these to Aridia (http://www.romhacking.net/utilities/505/) too - let me know how you want to appear in the credits dialog.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 25, 2012, 08:32:59 pm
Thanks again. They work beautifully. Now I actually want to go back and play the game again!
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 25, 2012, 09:27:49 pm
Thanks! I'll add these to Aridia (http://www.romhacking.net/utilities/505/) too - let me know how you want to appear in the credits dialog.

I guess Tony Hedstrom would be fine.

Thanks again. They work beautifully. Now I actually want to go back and play the game again!

Glad to hear that.  I tested the 3x and 4x codes and they seemed too fast.  2x was just right. 
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 25, 2012, 11:13:47 pm
Playing now and one thing to note, I just got to the part in the beginning where you are going to get married and it seems that in order not to get stuck in the southern part of the castle you need to turn the codes off so the game will progress properly. Hard to explain unless you play the game for the first 2 minutes.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 25, 2012, 11:24:34 pm
Thanks for the info.  Are you able to continue on after that (with the codes turned back on?).
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 25, 2012, 11:31:03 pm
Thanks for the info.  Are you able to continue on after that (with the codes turned back on?).

What I did was turn the codes off right before the wedding. When I end up in the dungeon, I turned the codes back on and I end up moving too fast for the screen and can walk through walls. Similar to what you mentioned earlier.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 25, 2012, 11:37:17 pm
When that happens, make sure you use one of the PAR codes mentioned.  That will make the screen move at the same speed as your character. 

I just found the part you were talking about.  When you temporarily can't control your character, the CPU gets confused and sends him into a corner where he gets stuck.  I will see if I can figure out how to fix that.

EDIT: Also, make sure you turn on that PAR code before you move your character around.  If you turn on the PAR code after you move around some, it will confuse the game and you may walk through walls, etc.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 26, 2012, 06:35:37 pm
OK, this just clicked for me... this isn't really a speed hack, it's more like a step distance hack. The FF values for left and down make a lot more sense all of a sudden. They're using it as a signed number so instead of 0-255 they're -128 to +128 making FF=-1 and FE=-2.

OK, maybe that's not entirely the case... when I changed 4E4D from FF to 01 it scrolls the screen up one. Ah-ha, small breakthrough now... don't look at this as bits, they're bytes:

00FF = Left
0100 = Right
0001 = Up
FF00 = Down

So what I just did was change left (00FF) to up (0001). Now it's making sense. Sure enough, changing one of them to 01FF causes the characters to move diagonally. It looks really cool except for the part where you walk through walls.

Anyway, any part where the game moves the characters automatically (there are a few) would get tripped-up badly by this. I wonder if there will be some spots where the collision detection gets funky too? I also wonder what will happen when you acquire the vehicles...

I'll have to poke around with these some more before adding them to Aridia unless I put label them "experimental" in the UI. There are a couple other "experimental" things I've found in the game that I group together for people who want to try out crazy stuff.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 26, 2012, 07:04:56 pm
OK, this just clicked for me... this isn't really a speed hack, it's more like a step distance hack. The FF values for left and down make a lot more sense all of a sudden. They're using it as a signed number so instead of 0-255 they're -128 to +128 making FF=-1 and FE=-2.

OK, maybe that's not entirely the case... when I changed 4E4D from FF to 01 it scrolls the screen up one. Ah-ha, small breakthrough now... don't look at this as bits, they're bytes:

00FF = Left
0100 = Right
0001 = Up
FF00 = Down

So what I just did was change left (00FF) to up (0001). Now it's making sense. Sure enough, changing one of them to 01FF causes the characters to move diagonally. It looks really cool except for the part where you walk through walls.

Anyway, any part where the game moves the characters automatically (there are a few) would get tripped-up badly by this. I wonder if there will be some spots where the collision detection gets funky too? I also wonder what will happen when you acquire the vehicles...

I'll have to poke around with these some more before adding them to Aridia unless I put label them "experimental" in the UI. There are a couple other "experimental" things I've found in the game that I group together for people who want to try out crazy stuff.

I haven't gotten a chance to turn Wren into a vehicle yet, but early in the game, when the ship takes you automatically to the island cave, everything moved as it should. When I get Wren turned into the vehicle I will let you know what happens. Should be later tonight.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 26, 2012, 07:30:49 pm
Still haven't figured out a way to fix the problem when the CPU takes over your character.  As hugues mentioned, may have to label the codes as "experimental".

And what's this about a vehicle?  I've never played the game before.  Let me know what happens with that.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 26, 2012, 07:35:35 pm
Still haven't figured out a way to fix the problem when the CPU takes over your character.  As hugues mentioned, may have to label the codes as "experimental".

And what's this about a vehicle?  I've never played the game before.  Let me know what happens with that.

About halfway through the game a robotic character called Wren transforms into some sort of a flying hovercraft. I am more than a quarter of the way through the game, so it won't take me long to get to this point. Should be a few hours. Will post when I get there and let you know what happens.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 26, 2012, 07:42:29 pm
About halfway through the game a robotic character called Wren transforms into some sort of a flying hovercraft.
There are two vehicles you can control -- in the airplane mode you move very quickly but can't enter any towns. There's also a boat mode that doesn't move quite as fast but is still faster than normal walking.

Perhaps seeing how those are implemented would give an idea of how to increase the speed without introducing wacky side-effects. I wonder if they're in a nearby location in the ROM...

July 26, 2012, 08:42:20 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
You know what... I should really read my own PSIII save state hacking guide (http://ps3.huguesjohnson.com/hacking.html#PartyLocation) before burning calories on this.

In PSIII there are separate values for the party sprite location and their actual map location:
Party physical x-location: E480-E481
Party physical y-location: E482-E483
Party sprite x-location: E500-E501
Party sprite y-location: E502-E503

Those need to remain synchronized or else bad things happen. If you put watchers on those addresses then you'll get a better idea of what these changes are doing.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 26, 2012, 09:08:09 pm
Thanks for the info hugues.  Will look into it.

Found some funny codes while looking around in my trace file...

PZGA-BJYW
Your character's "step rate" is twice as fast.  (He travels the same speed, but his legs move faster).  Visually, this code should make the 2x walking codes look more realistic.

PZGA-BNYW
Your character's "step rate" is three times faster.

AKGA-AA6W
Your character "floats" when he walks (doesn't step at all).


July 27, 2012, 12:00:39 am - (Auto Merged - Double Posts are not allowed before 7 days.)
I sort of found a partial fix for the problem.  I made a 'Walk thru walls' code so you can't get stuck.  I tried it when I met my bride, and was able to continue the game without getting stuck, but still not a very good solution.  Although, the walk thru walls code itself is pretty fun.  Don't know if it will work with the vehicles.

RFZA-A6YY
Walk thru walls.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on July 27, 2012, 12:21:03 am
Finally just got Wren to turn into the "airplane" and that seems perfectly fine. Matter of fact, with the "walk 2x fast" codes you actually walk faster than the airplane. I would say by about 1x because the airplane is still faster than walking without the 2x codes. It's been a while since I have played the game though and I seem to remember the airplane moving much faster.

July 27, 2012, 10:34:02 am - (Auto Merged - Double Posts are not allowed before 7 days.)
I just played through the entire game with the codes on and just wanted to pop in a few notes. There is no question the codes should, at the moment, be listed as "experimental". There were many times when I would have to turn the codes off to go down a certain hallway to avoid getting caught in a glitch. As well, sometimes when you exit a town, the placement on the world map may screw you as sometimes you won't be able to enter a cave or bridge. Of course, all of this is easily avoided by simply turning the codes off.

Nevertheless, I have never completed the game within 2 days (night playing). So the codes obviously help to speed the game up, and that's the point. 
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 28, 2012, 02:13:58 pm
No luck on the 2x walking problem.  Klaviaturist, thanks for all the notes while testing the codes.  I'm going to put the codes on my site, but with a warning.

Since I'm working on Phantasy Star 3, I've decided to make some more Game Genie codes.


A4AA-CA2Y
Open treasure chests as many times as you want (you can keep getting an item or
money over and over).


NCAA-CCF4
Get the Ceramic Knife (instead of the regular Knife) in the left chest in the
Landen dungeon.  Code must be turned on before you're escorted into the dungeon.


YCAA-CAF4
Get the Steel Sword (instead of the Knife) in the left chest in the Landen
dungeon.  Code must be turned on before you're escorted into the dungeon.


ECAA-CCF4
Get the Nei Sword (instead of the Knife) in the left chest in the Landen dungeon.
Code must be turned on before you're escorted into the dungeon.


hugues, I also have the ROM address so you can change what you get from the Right chest if you want it.  I didn't make any GG codes for it because it looks like the Monitor is a required item, and I'm not sure if you can get it anywhere else or not.

Also, the "Walk thru walls" code might be a good addition to your program.  It doesn't appear to have any unwanted side effects (although not thoroughly tested), and can be turned on or off at anytime during the game.

=============================

Below is the ROM address for changing the character's carrying capacity.  I tried increasing it to 20 items (normally, you can only carry 15 items), and it does work, but there are problems that will need to be fixed.  I used the "Open chests as many times as you want" code and was able to carry 20 items.  When I go to the "items" screen, I couldn't directly see them, but I could select them and it gave me the option to Use, Give, or Discard. 

One problem is that the addresses in RAM that it uses for the extra items, are most likely the RAM addresses for your next character's items.  This will cause problems with that character, but I was reading (on Gamefaqs) that you can do a "Solo" quest.  In that case, it may not matter if your other character's items are messed up.

Also, you can make it so that your character can carry less items to make the game more challenging.  There would probably be no problems with this type of hack.

One other note, I've only tested the modification when getting items from chests.  I don't know yet if shops use the same routine when you get items.

Anyways, here's the ROM address for carrying capacity:  $01804A.  The value there is 001E.  1E = 30 in decimal.  Each item counts as 2, so 15 x 2 = 30.  If you want to carry 20 items, 20 x 2 = 40, 40 converted to hex = 28.  Change the 001E to 0028 in the ROM.

Again, some things need to be worked out, but maybe someone can spend some time figuring it out.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 28, 2012, 08:33:38 pm
hugues, I also have the ROM address so you can change what you get from the Right chest if you want it.  I didn't make any GG codes for it because it looks like the Monitor is a required item, and I'm not sure if you can get it anywhere else or not.
Yeah that would be great - thanks!

Below is the ROM address for changing the character's carrying capacity.  I tried increasing it to 20 items (normally, you can only carry 15 items), and it does work, but there are problems that will need to be fixed.  [...] One problem is that the addresses in RAM that it uses for the extra items, are most likely the RAM addresses for your next character's items.
This is something I encountered early on when writing Aridia. The extra items overflow into their statistics with techniques being the first area impacted. You end up with characters having absurdly powerful techniques followed by absurdly powerful attack and so on. It's similar to the "pron glitch" with the Nei items.

Anyways, here's the ROM address for carrying capacity:  $01804A.  The value there is 001E.  1E = 30 in decimal.  Each item counts as 2, so 15 x 2 = 30.  If you want to carry 20 items, 20 x 2 = 40, 40 converted to hex = 28.  Change the 001E to 0028 in the ROM. Again, some things need to be worked out, but maybe someone can spend some time figuring it out.
If it's any help, all my notes on item editing are here http://ps3.huguesjohnson.com/hacking.html - this is all save state editing. You'll notice a very similar observation about inventory size :)

I haven't taken the time to document how item & shop editing work in the ROM but if you can read C# code minimally it's not difficult to see how it all works in the source for Aridia.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 28, 2012, 10:18:51 pm
Thanks for the link.  Good info in there.

Here's the ROM address for what's in the right chest in the dungeon: $00180C0.  The normal value there is 0070 (monitor).  Example: change it to 0060 and you'll get an Escapipe instead.

More Game Genie codes.  All these codes use the empty space in the shop's inventory, so they have 5 items for sale, instead of 4.

CS1A-G40C
Adds the Royal Helmet to the items for sale in the armor shop in Landen.  Code
must be turned on before you go into the shop.


CS1A-G28C
Adds the Planar Armor to the items for sale in the armor shop in Landen.  Code
must be turned on before you go into the shop.


CS1A-HFGC
Adds the Royal Shield to the items for sale in the armor shop in Landen.  Code
must be turned on before you go into the shop.



DM1A-G0RG
Adds the Royal Knife to the items for sale in the Weapon Shop in Landen.  Code
must be turned on before you go into the shop.


CH1A-G0RG
Adds Orakio's Sword to the items for sale in the Weapon Shop in Landen.  Code
must be turned on before you go into the shop.


G11A-G0RG
Adds the Nei Claw to the items for sale in the Weapon Shop in Landen.  Code
must be turned on before you go into the shop.


JS1A-G0RG
Adds the Pulse Cannon to the items for sale in the Weapon Shop in Landen.  Code
must be turned on before you go into the shop.


J91A-G0RG
Adds the Nei Shot to the items for sale in the Weapon Shop in Landen.  Code
must be turned on before you go into the shop.



July 28, 2012, 10:48:29 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Hughes, did you find the offset that determines if an item affects one member, or all members?  ie, Monomate only heals one character, but Star Mist heals the entire party.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on July 29, 2012, 06:45:34 pm

July 28, 2012, 10:48:29 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Hughes, did you find the offset that determines if an item affects one member, or all members?  ie, Monomate only heals one character, but Star Mist heals the entire party.
Yes, each item has a code that determines what technique it casts and what the power of that technique is - i.e monomate casts res with a power of 6 while trimate casts it with a power of 99. Star Mist casts gires with a power of 99.

The items all start at address 231280 (decimal) in the ROM. The first byte is the cost followed by the technique then the technique power.

Sorry if it sounds like a blatant plug but go play around with Aridia (http://www.romhacking.net/utilities/505/) for a bit, you might save yourself a bunch of time ;)

Some day when I'm extremely bored I'll write a doc explaining where everything is in the ROM. Until I do that the code is relatively self-documenting.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on July 29, 2012, 09:30:42 pm
Thanks for the info.  Have downloaded Aridia.  Excellent program.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on August 04, 2012, 09:05:57 am
Here's the ROM address for what's in the right chest in the dungeon: $00180C0.  The normal value there is 0070 (monitor).  Example: change it to 0060 and you'll get an Escapipe instead.
Thanks again - based on this I *think* I've tracked down the location of every treasure chest in the ROM now. It took some digging but they appear to all be buried somewhere between 180C0 and 1A310. I just have to go through the painfully boring task of checking each one. I'll throw all the addresses into a spreadsheet or on my site or something. I should have all of them in Aridia later this month unless I get distracted by a shiny object.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on August 04, 2012, 12:23:00 pm
Checking every treasure chest in the game?  Make sure you bring a sleeping bag, and plenty of food and water. :-)

August 05, 2012, 10:20:17 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Hughes, I think I found the data in the ROM for all the Techniques, as well as the data for the enemy Techniques (including Poison).  Do you have any of that info in Aridia? (I didn't see it).  If it's not in Aridia, let me know and I'll look into it some more. 
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on August 07, 2012, 06:10:38 pm
Hughes, I think I found the data in the ROM for all the Techniques, as well as the data for the enemy Techniques (including Poison).  Do you have any of that info in Aridia? (I didn't see it).  If it's not in Aridia, let me know and I'll look into it some more.
The techniques are under the character and enemy tabs. The enemies each have a different tech code, tech power, and cast % value. For characters it's a little different, they are are assigned powers in each of the 4 technique groups. Giving characters individual techniques instead of an entire group causes the game to crash when you go into the status menu. It's a bit limited that way.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on August 11, 2012, 02:19:46 pm
hugues, I need a Gens save state for Phantasy Star 3 to test some GG codes, and I noticed you have several.  I'll want to test Res and Foi techniques.  Which of your save states would be good for that?

EDIT: I'll need to test those techniques to see if my GG codes make them work on multiple characters/enemies.

TIA

August 12, 2012, 11:41:44 am - (Auto Merged - Double Posts are not allowed before 7 days.)
Never mind hugues, figured out that a Sean save state is good for testing Foi, and Ayn is good for Res testing.


BLDT-GAD6
Monomate works on everyone in your party (instead of just one character).  Can be used with 98DT-GG58 code below.


98DT-GG58
Monomate restores all HP.  Can be used with BLDT-GAD6 code above.


AWNA-GB12
Res works on everyone in your party (instead of just one character).  Only works in battle.


CCNA-GAZ2
Foi works on all enemies (instead of just one).
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on August 19, 2012, 03:16:30 pm
For those playing Phantasy Star 3 that want all the power, but don't want to wait for it...

RH0T-A60J
Max out all your stats after one battle.  Any character that gets at least one
XP point during battle, will go to level 41, and have all their stats maxed out.
Has only been tested on Rhys so far.

====================

Info: There is some programming/code in the game that compares the amount of XP (experience points) you have, with the maximum value allowed (99,999,999).  If your XP is going to be greater than the maximum allowed, then the game loads a value of 99,999,999 instead.  Changing a conditional branch (with the Game Genie code) will make it always give you 99,999,999 XP, which maxes out your stats.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 12, 2013, 10:45:26 am
I've found an easier way to get around the problem where the CPU takes over Rhys(after you've edited the ROM file, to allow a faster walking speed.), what you can do is edit the event where you'd normally have Lena free you in the dungeon. Instead what you can do is edit this event to be true the address would be E37E. Set that to true, save & then reload your file. Go into a building if necessary, the old man blocking the exit will disappear.

Also I've found that if you make edits like being able to use Wren's Aerojet parts, or Laya's Pendant, then use the Inn to save your game. Then delete the GS0 file, load the SRM your edits will still work  ;D
Also if you use a Retrode II you could copy this edited SRM file to the cart & play it on the Megadrive itself.

Tony, if you would be so kind as to tell me the offset in which sets "No enemies attack" & "No MP/HP lost to enemy attacks" are?
Thanks.

   
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: tryphon on November 12, 2013, 12:13:04 pm
For the original question, I've just made a patch that doubles the speed and allows diagonal movements. Available from here (http://www.pscave.com/forums/viewtopic.php?f=6&t=3260) (second post).

I've played the half of the first generation with no problem.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 12, 2013, 04:45:01 pm
For the original question, I've just made a patch that doubles the speed and allows diagonal movements. Available from here (http://www.pscave.com/forums/viewtopic.php?f=6&t=3260) (second post).

I've played the half of the first generation with no problem.

Thanks for this patch Typhon, comes in very handy. It does indeed move like the remakes, also makes for more enjoyable game play. Will play about with it some more. :D if you're interested you can try this: http://www.tortuga-cove.com/forums/viewtopic.php?f=113&t=5672

Its my take on Wacky Adventures Of Rhys, to see who could complete it with the first gen party. I had first heard about this from Hugues's website & so I thought I'd try my hand at it. I've only just recently stumbled upon this website so i decided to add the Increased walking speed part.

Is it ok if I use your file, in my tutorial instead of Tony's edit? It would be alot easier for others to do. Also it solves the issue of getting stuck. I've noticed that Rhys walks alot smoother in Tony's hack, although youre's looks more natural i wonder why that is. :) Great work to all none the less.   
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: tryphon on November 12, 2013, 05:26:55 pm
Thanks for this patch Typhon, comes in very handy. It does indeed move like the remakes, also makes for more enjoyable game play. Will play about with it some more. :D if you're interested you can try this: http://www.tortuga-cove.com/forums/viewtopic.php?f=113&t=5672

Its my take on Wacky Adventures Of Rhys, to see who could complete it with the first gen party. I had first heard about this from Hugues's website & so I thought I'd try my hand at it. I've only just recently stumbled upon this website so i decided to add the Increased walking speed part.

Is it ok if I use your file, in my tutorial instead of Tony's edit? It would be alot easier for others to do. Also it solves the issue of getting stuck. I've noticed that Rhys walks alot smoother in Tony's hack, although youre's looks more natural i wonder why that is. :) Great work to all none the less.   

No problem if you use my patch, I made it to be used :)

I may want to polish it a little :
    - add diagonal moves for transformed Wren
    - making the fadeout/fadein between maps quickier, to prevent the impression of walking through houses when entering
    - make the team quick only when pressing button B (I made an attempt at this but it's a little tricky)

Why is Tony's hack smoother, I don't know. I didn't try it yet. Maybe because in my patch, not only the team speed was doubled, but each animation duration was halved, for synchronisation purposes. I didn't watched at what Tony exactly changed in his patch.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 12, 2013, 06:10:06 pm
No problem if you use my patch, I made it to be used :)

I may want to polish it a little :
    - add diagonal moves for transformed Wren
    - making the fadeout/fadein between maps quickier, to prevent the impression of walking through houses when entering
    - make the team quick only when pressing button B (I made an attempt at this but it's a little tricky)

Why is Tony's hack smoother, I don't know. I didn't try it yet. Maybe because in my patch, not only the team speed was doubled, but each animation duration was halved, for synchronisation purposes. I didn't watched at what Tony exactly changed in his patch.


Yeah sure, i can wait until you've corrected the offsets so its how you want it to be. I think that having the speed on permanently is probably a better idea rather than having to hold down B, as that be less painful to play as opposed to how slow it normally is. Its a shame they didn't add add these options for the Playstation 3 version of the game. Only PS2.

What Tony did is documented in the previous pages as well as on my link too. :)
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: tryphon on November 12, 2013, 06:29:21 pm
Don't wait, because I don't know when I'll do that, if I ever do :)

I have several projects ongoing, some PS-related :

- I finalize the hack and the translation of Phantasy Star Generations 2

- I help Hugues to edit some new things with Aridia (I think it will be possible to edit virtually all graphics and maps in the game, maybe someone will at last be able to fix all the multiple flaws in the game)

- I code my own Phantasy Star engine, with two projects in mind : a pixel-perfect port of Phantasy Star Generations 2 and a remake of Phantasy Star 3.

And aside all of that, I work on the hack of PSP Princess Crown and Genesis Psy-O-Blade  :crazy:

All of that with virtually no free time.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 12, 2013, 07:28:57 pm
Don't wait, because I don't know when I'll do that, if I ever do :)

I have several projects ongoing, some PS-related :

- I finalize the hack and the translation of Phantasy Star Generations 2

- I help Hugues to edit some new things with Aridia (I think it will be possible to edit virtually all graphics and maps in the game, maybe someone will at last be able to fix all the multiple flaws in the game)

- I code my own Phantasy Star engine, with two projects in mind : a pixel-perfect port of Phantasy Star Generations 2 and a remake of Phantasy Star 3.

And aside all of that, I work on the hack of PSP Princess Crown and Genesis Psy-O-Blade  :crazy:

All of that with virtually no free time.

Oh wow, that's really awesome. I've always wanted to have an updated version of Phantasy Star III to play - just like the revamped versions of Generations One & Two. In my spare time I work on Playstation 3 related stuff, writing tutorials, finding glitches, loopholes too. Written quite alot over the years, and found a lot of information too.

I wonder if anyone here would be able to hex edit the Playstation 3 version of Phanatasy Star III. I think that its just a standard ROM port, as it would be nice to add your walking speed hack to it, also the Event Hacks/Item Hacks too.

Ok i won't wait I'll update it right now. Thanks :)   *EDIT* Updated post. :D
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Klaviaturist on November 12, 2013, 07:39:29 pm
For the original question, I've just made a patch that doubles the speed and allows diagonal movements. Available from here (http://www.pscave.com/forums/viewtopic.php?f=6&t=3260) (second post).

I've played the half of the first generation with no problem.

Sounds great. I will check that out.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: Tony H on November 12, 2013, 09:13:54 pm
Tony, if you would be so kind as to tell me the offset in which sets "No enemies attack" & "No MP/HP lost to enemy attacks" are?
Thanks.

 

gliitch, if you go to this page, you'll find all the offsets you're asking about: http://gamehacking.org/?game=15663

To see the offsets, just click on the down arrow that says "Expand Code Box".

Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 13, 2013, 03:49:11 am
gliitch, if you go to this page, you'll find all the offsets you're asking about: http://gamehacking.org/?game=15663

To see the offsets, just click on the down arrow that says "Expand Code Box".

Ahh, perfect,  thank you no need to put the code in any more. :D Just what I was looking for.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on November 15, 2013, 11:55:18 pm
- I help Hugues to edit some new things with Aridia (I think it will be possible to edit virtually all graphics and maps in the game, maybe someone will at last be able to fix all the multiple flaws in the game)
Yes, thanks again! I'm hoping to make some progress at adding this to Aridia soon, it will probably take a little while but I'm optimistic that it will support editing all the maps and compressed graphics when all is said and done.

Somewhat related to this - one of the flaws in the game is the missing dungeons connecting some of the domes (like all the ones to/from Terminus for example). Unfortunately I think it's unlikely any unfinished data for them exists in the ROM. I'm basing this on treasure chest data. There are only 1-2 treasure chests that don't map to any dungeon and they contain items from early in the game like monomate. I won't rule out that they started these maps and never assigned any treasure chests to them though.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: tryphon on November 16, 2013, 05:03:28 am
I have dumped all the maps in the game, I can't say if they are all used (I don't know the game well enough for that).

But even if they aren't in the game, I'm pretty sure I'm able to add one or several new map(s) in the game, with connexions to others. More, I'm pretty sure they can use tiles from the game, or custom tiles.

It would be great to redesign Terminus completely  :P
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 16, 2013, 05:29:51 pm
Hugues, is it possible to edit Rhys so he can go to level 85? Just like Wren & Mieu?  :)..Or perhaps even more.

Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on November 17, 2013, 02:17:49 pm
Hugues, is it possible to edit Rhys so he can go to level 85? Just like Wren & Mieu?  :)..Or perhaps even more.
In Phantasy Star III each character* has a level table that lists the XP required for each level gain. Rhys is capped at 40 entries making his maximum level 41. There are two ways I can think of to change that:

1) Expand his level table and adjust the pointers for all the other characters tables' to account for the new data offsets since his is first. The problem with this approach is that there's no empty space immediately after the level tables so there would be more things to repoint. It would be messy but not impossible.

2) Repoint him to a table with more entries. This would also change his statistic growth. So if he shared a table with Wren then he could go up to level 85. Expanding that would introduce the challenges previously noted.

(* - Mieu and Gwyn share a level table for some reason)
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: tryphon on November 17, 2013, 04:07:54 pm
If the pointer to the table is stored as a long, you may create a new table in some empty space (add it to the end of the rom) and modify the pointer accordingly.

You may have then to modify the rom header (there's a 'Last Address in ROM' somewhere, most of the time ignored by emulators, and a checksum ; my patch delete the checksum detection).
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on November 17, 2013, 08:14:51 pm
That's a good suggestion. There is a ton of empty space in the Phantasy Star III ROM, expansion shouldn't be necessary for something small.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 18, 2013, 08:21:50 am
In Phantasy Star III each character* has a level table that lists the XP required for each level gain. Rhys is capped at 40 entries making his maximum level 41. There are two ways I can think of to change that:

1) Expand his level table and adjust the pointers for all the other characters tables' to account for the new data offsets since his is first. The problem with this approach is that there's no empty space immediately after the level tables so there would be more things to repoint. It would be messy but not impossible.

2) Repoint him to a table with more entries. This would also change his statistic growth. So if he shared a table with Wren then he could go up to level 85. Expanding that would introduce the challenges previously noted.

(* - Mieu and Gwyn share a level table for some reason)

Could I use Arida to repoint Rhys's level? Would that mean I would have to change his type to Wren's or would that only effect what weapons he can use? I found that if you change any characters hold item range, when you've used all their items up, it will take the next in line's items as their own. ie: Rhys will end up "stealing" Meiu's Claws for example. Then the game will crash.

I read your earlier post about hex editing the correct values, then that fixed it. :) I'm getting a Retrode II for Christmas - it allows read & write functions of save files to the original carts (god send).

What i was wondering is, do you know how saves are maintained in the SRM file itself? is there a way to edit them once they are in the battery save? 
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on November 18, 2013, 07:12:20 pm
Could I use Arida to repoint Rhys's level? Would that mean I would have to change his type to Wren's or would that only effect what weapons he can use?
That only changes what weapons he can use (which you can also accomplish by editing the weapons in Aridia). I have not implemented a feature to change the level tables for characters simply because it never occurred to me to do that. I guess I figured no one would ever want to level up Rhys that high :)

I found that if you change any characters hold item range, when you've used all their items up, it will take the next in line's items as their own. ie: Rhys will end up "stealing" Meiu's Claws for example. Then the game will crash.
You mean in the RAM? Yes because between Rhys' inventory and Mieu's is the item count for Mieu. That value wouldn't map to a valid item code. I have some documentation about editing items here -  http://ps3.huguesjohnson.com/hacking.html#Inventory

What i was wondering is, do you know how saves are maintained in the SRM file itself? is there a way to edit them once they are in the battery save?
Sorry but I do not. It would take a decent amount of hacking to make the game use them if there was room there (i.e. changing all the save/load menus and the routine to test if the save data is good).
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: tryphon on November 19, 2013, 02:11:13 am
That's a good suggestion. There is a ton of empty space in the Phantasy Star III ROM, expansion shouldn't be necessary for something small.

Are you sure this empty space is REALLY empty ? Experience showed that it's safer to add some space (it's quite easy with the Genesis) rather than using what seem to be dummy data.
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: gliitch on November 19, 2013, 08:27:42 am
That only changes what weapons he can use (which you can also accomplish by editing the weapons in Aridia). I have not implemented a feature to change the level tables for characters simply because it never occurred to me to do that. I guess I figured no one would ever want to level up Rhys that high :)
You mean in the RAM? Yes because between Rhys' inventory and Mieu's is the item count for Mieu. That value wouldn't map to a valid item code. I have some documentation about editing items here -  http://ps3.huguesjohnson.com/hacking.html#Inventory
Sorry but I do not. It would take a decent amount of hacking to make the game use them if there was room there (i.e. changing all the save/load menus and the routine to test if the save data is good).

I thought as much, changing the Type to Wren would make sense that Rhys could then use Wren's weapons.Ahh! I get it now, just all suddenly made sense! So one set lets you change what weapons can be equipped(Type on the left), the other is what type of Magic he can use (Tech Power), if any. (I have edited Rhys's type to able to use magic with no ill effects.)

As for Item count I have mostly likely overshot it, because people can only carry a certain amount of items - i think you said it was about 15, so anything higher would result in some odd stuff happening, unless it was hacked properly.

The best idea I've come up with in regards to SRM (hacking) more of a loop hole really, is to State Save then hack that save. Go to an Inn so the game will save it as SRM, then choose another slot and do the same. Because for some odd reason, when you hack your save state then save it into RAM it thinks all your edits are true so it keeps them stored. Pretty neat I thought.  ::)

 
Title: Re: A Possible Hack For Phantasy Star 3?
Post by: hugues on November 19, 2013, 06:32:26 pm
Are you sure this empty space is REALLY empty ? Experience showed that it's safer to add some space (it's quite easy with the Genesis) rather than using what seem to be dummy data.
Not 100% sure but there are many blocks that are all FF and a couple smaller ones that are 00. I can't imagine what value the all FF data would have. At some point I'll turn this half-finished, slightly out of date ROM map into a real document: http://ps3.huguesjohnson.com/hacking-rom.html#RomMap - it shows where there is possibly dead space in the ROM.