Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Thu Mar 28, 2024 3:04 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 0xD4 hack??
PostPosted: Sat Jun 06, 2009 8:03 am 
Offline
Kommunist
Kommunist

Joined: Sun Dec 30, 2007 4:44 am
Posts: 32
Hi there,

I want to make a code (ARDS MPH) that saves my Energy and add the saved value to my Energy
Example: I have 30 HP and now i want to save this and add it to my HP so that i have now 60 HP

well the D4 code type adds. but it adds the value that I give in the argument
I need a code type hack to add the value loaded by the DA code type. there might already be a hack for that. if yes could you post that code here? or if not could anybody tray to make one?



Dalle


Top
 Profile  
Reply with quote  
 Post subject: Re: 0xD4 hack??
PostPosted: Sat Jun 06, 2009 12:41 pm 
Offline
Komrade
Komrade
User avatar

Joined: Tue Mar 27, 2007 6:23 pm
Posts: 1354
Location: Mario Raceway, 1509.831, 217.198, -564.429
Title: Mario Kart 64 Hacker
...are you just trying to double it? I'm pretty sure there's a code type for multiplying.

_________________
Image 143
HyperNova Software is now live (but may take a few tries to load) currently down; check out my PSP/DS/Game Boy/Windows/Linux homebrew, ROM hacks, and Gameshark codes!


Top
 Profile  
Reply with quote  
 Post subject: Re: 0xD4 hack??
PostPosted: Sun Jun 07, 2009 2:23 am 
Offline
Kommunist
Kommunist

Joined: Sun Dec 30, 2007 4:44 am
Posts: 32
HyperHacker wrote:
...are you just trying to double it? I'm pretty sure there's a code type for multiplying.


No I want to do this:
I save the ponts of all players (using F type). Then i'll set all ponits to 0. And later on i want to add the old amount of ponts to the new amount.


Top
 Profile  
Reply with quote  
 Post subject: Re: 0xD4 hack??
PostPosted: Sun Jun 21, 2009 12:51 am 
Offline
Kommunist
Kommunist

Joined: Sat Jun 20, 2009 10:54 pm
Posts: 4
RxZ95sssPG wrote:
Hi there,

I want to make a code (ARDS MPH) that saves my Energy and add the saved value to my Energy
Example: I have 30 HP and now i want to save this and add it to my HP so that i have now 60 HP

well the D4 code type adds. but it adds the value that I give in the argument
I need a code type hack to add the value loaded by the DA code type. there might already be a hack for that. if yes could you post that code here? or if not could anybody tray to make one?

Dalle


I wanted to take a crack at it. I was just looking through all the codes now, and there's only 1 add command, the one you mentioned, there's not even a multiply stored register command. This is as far as I could get.


D9000000 xxxxxxxx 32bit load ‘stored’ from memory location xxxxxxxx (get original health)
or if it's a 2 or 1 byte value only:
DA000000 xxxxxxxx 16bit load ‘stored’ from address
DB000000 xxxxxxxx 8bit load ‘stored’ from address

Then:
D6000000 xxxxxxxx 32bit store and increment (put the health value from stored into the memory location xxxxxxxx)
or if it's a 2 or 1 byte value only:
D7000000 xxxxxxxx 16bit store and increment
D8000000 xxxxxxxx 8bit store and increment

... no add command...


Top
 Profile  
Reply with quote  
 Post subject: Re: 0xD4 hack??
PostPosted: Mon Jun 22, 2009 12:30 pm 
Offline
Kommunist
Kommunist

Joined: Tue Oct 10, 2006 9:32 am
Posts: 445
You'll have either to write your own asm routine to achieve your goal (well you can use some regular codes, but you'll have to use asm to be able to add two "unknown" values), or use the C4 code type (works on AR 1.54 and Trainer Toolkit) to edit the D4 code type on the fly (set the D4 code type value to 0, then save the score to the D4 code's value, and maybe clear it once the value has been added?) (however I'm not quite sure the C4 code type would work 100%, and it might give a huge code in the end - so I'll choose the asm way).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 148 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group