Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
User avatar
Thorin
Noobzor
Noobzor
Posts: 8
Joined: Wed Oct 02, 2024 11:02 am
Reputation: 0

Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by Thorin »

Maybe this is old news, but last year I stumbled upon an article which delves into how the Gameshark works. (the functions/commands 'D0', '30', '80', 'C0' etc.) It was a loooooong document which helped you deal with the Gameshark on the various platforms. Anyways, finally found a way to write the value from one address into another address. (Max Value into Current Value.)

Ok, why is this important you'd say? Well, in certain games, mostly RPGS, we all know that Health is never a static value. You have your initial Health value, but as you level up, so does your stats and Health/HP being one of those stats always increases up to a certain point. For that reason, I always found it annoying (or tedious) to use infinite HP codes for games such as FF7, Castlevania, Suikoden, etc. Say your initial HP is 500. Using Infinite HP and writing 500 into your value, your HP would look like this: 500/500. But as you level up, it will look like 500/550, 500/600, 500/950, 500/2600, etc. One work around would be to just put 9999 into your HP value. Your Initial HP would look like this then: 9999/500, 9999/750, 9999/2600, etc. and my OCD would just not allow me to do the latter. However, little did I know that the Gameshark had a way to write one value into another; programmed into it which functions in much the same way as the other aforementioned functions. Amazing little gizmo that Gameshark! (However, AFAIK, this only works on the PS1. Tried this on the N64 and Dreamcast and it didn't work. PS2 is a whole other story as the structure of those codes are a bit different.)

Anyways, by using the 'C2' command you can write the value from one address into another. Lets use Castlevania SOTN as an example here;

Your current HP value is located at 80097BA0
Your Max/CAP HP value is located at 80097BA4

To constantly write your Max/CAP HP into your Current, write your code as this:

C2097BA4 0002 [ Max HP Address]
80097BA0 0000 [Current HP Address]

And voila!! You now have true infinite health! And every time you level up, your new cap value will be written into your current value. (Don't really know what the value 0002 stands for. Haven't really tested other values outside of 0001 and 0002 but so far 0002 is the one that yielded favorable results so that's the one I use. Maybe its telling the system the amount of bytes to use from the one address and write that same amount into the address below and '80' codes are two byte codes. Haven't tested on one byte '30' codes as there aren't many games with one byte health or ammo values.)

That's it. You can also do this with the MP and Heart values from Castlevania, as well as say the Health value in Mega Man X 4/5/6, Health and Ammo values from Metal Gear Solid, HP and MP in the FF games, Chrono Cross, Valkyrie Profile, Suikoden, etc. In other words, you can do this in any game that has a Max/Cap value and a current value providing you know the addresses. Again, the need for this is mostly for games that have changing values where the one value you want to be infinite is dependent on another value located at another address. There is little to no use for this in games where your desired infinite value's max value is a static value (i.e. Health in Resident Evil series, Fear Effect series, fighting games, etc.)

User avatar
Crashyyy
Expert Cheater
Expert Cheater
Posts: 56
Joined: Tue Aug 02, 2022 7:23 pm
Reputation: 34

Re: Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by Crashyyy »

Nice

you could also do this very useful for learning Purpose

1.first lets use some Free Memory From 8000C000 to 8000D000

Max Health 80097BA4
Current Health 80097BA0

C2097BA4 0002 , if the game use 8 bits ... C2 = Copy The Max Health
8000C000 0000 ... 80 Simple Paste it Here or Write it to there

C200C000 0002 ... Lets Copy Our Custom Memory Max Health
80097BA0 0000 ... Paste in to Our Current HP

User avatar
Thorin
Noobzor
Noobzor
Posts: 8
Joined: Wed Oct 02, 2024 11:02 am
Reputation: 0

Re: Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by Thorin »

Didn't know about that free memory bit. Noice!! Thanks mate. 😎👍

I got tired of experimenting with cheat engine on pc games. I'm currently trying my luck with ps1 games. Managed to create a true infinite health code for Dino Crisis 2 and Mortal Kombat Mythologies: Sub-Zero, where you nop out the instruction rather than freezing the value at the address (both games are notorious for having dynamic addresses when changing areas or dying)

User avatar
Crashyyy
Expert Cheater
Expert Cheater
Posts: 56
Joined: Tue Aug 02, 2022 7:23 pm
Reputation: 34

Re: Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by Crashyyy »

Thorin wrote:
Fri Oct 11, 2024 2:32 pm
Didn't know about that free memory bit. Noice!! Thanks mate. 😎👍

I got tired of experimenting with cheat engine on pc games. I'm currently trying my luck with ps1 games. Managed to create a true infinite health code for Dino Crisis 2 and Mortal Kombat Mythologies: Sub-Zero, where you nop out the instruction rather than freezing the value at the address (both games are notorious for having dynamic addresses when changing areas or dying)
good xD

this is my discord if you ever wanted to talk with me:crashyyyn_byte

User avatar
Thorin
Noobzor
Noobzor
Posts: 8
Joined: Wed Oct 02, 2024 11:02 am
Reputation: 0

Re: Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by Thorin »

Crashyyy wrote:
Tue Oct 15, 2024 5:06 am

good xD

this is my discord if you ever wanted to talk with me:crashyyyn_byte
I don't really use Discord. I only visited the site that one time to complete my registration here. But, I'll keep it in mind if I ever decide to use it in the future. 👍😎

On another note, I thought this site would be more alive aside from current or new game releases. But people are barely discussing older gen games.

User avatar
Crashyyy
Expert Cheater
Expert Cheater
Posts: 56
Joined: Tue Aug 02, 2022 7:23 pm
Reputation: 34

Re: Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by Crashyyy »

Thorin wrote:
Wed Oct 16, 2024 2:45 pm
Crashyyy wrote:
Tue Oct 15, 2024 5:06 am

good xD

this is my discord if you ever wanted to talk with me:crashyyyn_byte
I don't really use Discord. I only visited the site that one time to complete my registration here. But, I'll keep it in mind if I ever decide to use it in the future. 👍😎

On another note, I thought this site would be more alive aside from current or new game releases. But people are barely discussing older gen games.
yeah you're right, legends are less for old gen 8-)

drsdad
Noobzor
Noobzor
Posts: 5
Joined: Sun Mar 12, 2017 4:04 am
Reputation: 0

Re: Gameshark (ps1) - Write Max Value into Current Value (valuable for RPG type games...)

Post by drsdad »

The content about Gameshark is very interesting!

Post Reply

Who is online

Users browsing this forum: No registered users