Create ASM codes for "specific players"?

Started by Bully@Wiiplaza, September 18, 2010, 12:32:29 AM

Previous topic - Next topic

Bully@Wiiplaza

Hey guys,
always when I use assembly instructions 1 line codes (li, nop,...) or maybe more lines and there are for example computer players, they also gain the effect from this code! I nop the health, they are invincible,too! >:D But how can I force an ASM code to only work/gain the effect on myself? This was a big problem for me till now, hopefully someone can explain the way I need to look through disassembly or to structure the code. It doesn´t matter, how long the code will be, it only needs to work "player specific"

Example breakpoint and disassembly are coming later, IF I don´t understand it yet!
Thanks for answers :smileyface:
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully


Bully@Wiiplaza

but if the adress from your health is moving, it won´t work like this, will it?
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

matt123337

#3
Well does the game have a player HP pointer?  I could show an example if you like...

edit: due to my lazyness, I will repost a moded version of my post that I linked you to.

Ok, lets say r30 is free, r29 has the HP value, and r28 contains the pointer made by the game
Player HP Pointer: 0x80123337
Pointer offset : 0x000C

lis r30, 0x8012 # loads upper half of HP pointer
addi r30, r30, 0x3337 # adds lower half of HP pointer
lwz r30 , 0(r30) # loads the value of the HP pointer (player HP address)
addi r30, r30 0x000C # adds pointer offset
cmpw r30, r28 # compairs address
beq- 0x0008 # if addresses are the same, skip address storing (no dmg taken)
stw r29, 0(r28) # otherwise, store HP


As you can see, only two extra lines of ASM, or one if there is no offset.

Bully@Wiiplaza

and you need to use pointer search to find out the pointer offset, am I right? ^-^
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

matt123337

the offset is the number after the pointer address in the pointer search :S
ex:
[80000000] + 1000

Bully@Wiiplaza

argh, then you need to do this ASWELL.
But thanks for the answers ;)
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

Skiller

Quote from: Bully@Wiiplaza on September 18, 2010, 12:32:29 AM
Hey guys,
always when I use assembly instructions 1 line codes (li, nop,...) or maybe more lines and there are for example computer players, they also gain the effect from this code! I nop the health, they are invincible,too! >:D But how can I force an ASM code to only work/gain the effect on myself? This was a big problem for me till now, hopefully someone can explain the way I need to look through disassembly or to structure the code. It doesn´t matter, how long the code will be, it only needs to work "player specific"

Example breakpoint and disassembly are coming later, IF I don´t understand it yet!
Thanks for answers :smileyface:

There are other ways to do this using ASM >.
99% of the time if it uses the same Function for both then there is normaly a Branch or a Compare that will be above it or it be on the Branch Return Op ..
looking for this could help u look for the example of Swords . it also used the same address for the HP but it had a Compare and jumped to another area :P

another way to do it is to look threw the Player section From offset 0 and then compare it to the Enemy section from offset 0 and u might find something Stating CPU controlled and Player controlled i did this with a game but i cant remember what one lol

then all u do is make a SUb code that checks that offset for player controlled and your set ..

Bully@Wiiplaza

could you give a code example with line explanations?
That would be great :D
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

Anarion

I was also wondering this. How would this be done for a game that doesn't use pointers?
I'm not here much. If you have a problem with any of my codes, let me know through my youtube account and I'll help you.
¦}

matt123337

Yes, Mathew_Wi is right, all games use pointers in ASM, it's how the ASM knows where to write the data in memory :p

Bully@Wiiplaza

do also all use moving adresses?
Because Fifa didn´t as I hacked it, not a single time.
I like this behaviour 8) I could hack this game like crazy... ;D
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

Anarion

#12
Ahh. I see. I thought matt was talking about regular pointers :p

alright. since i can't tell what is what, what would be the asm pointer?  :(
I'm not here much. If you have a problem with any of my codes, let me know through my youtube account and I'll help you.
¦}

matt123337

the "asm pointer" is the register in the brackets on the stw instruction and the offset is the number (NOT the register) outside the brackets.

Anarion

oh. well thanks! i tried. the code didn't work e_e
I'm not here much. If you have a problem with any of my codes, let me know through my youtube account and I'll help you.
¦}