Teleporting code

Started by toonlink444, November 21, 2011, 09:54:20 PM

Previous topic - Next topic

toonlink444

So simply storeing the coords in registers may not work. How would I go about making it a c2 code? Sounds a little more complicated. Should I use a read/write breakpoint and use that data? If so how would I turn that into a c2 code.(still not good with asm :p)
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

dcx2

You must find a good C2 hook address that runs after the write and before the read.  You need to use breakpoints to do that.

Here's the SMG2 multi-teleport/levitation code I wrote.  Not the best example, because I do a lot of ASM hacks to optimize code length, and I have four teleport slots, and I also permit levitation.  But hey, it's already written.

http://wiird.l0nk.org/forum/index.php/topic,6517.msg55339.html#msg55339

toonlink444

Hmmm thats confusing. So to get the hook I would get a coord and break when moving and find an instruction in between the read and write?
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

dcx2

I used a write breakpoint on the coordinates.  Once the BP hit, I would step over the write, and then manually poke the coordinates during the breakpoint.  Then I would hit run; if my poke worked, I found the right hook.  If it didn't work, I would ignore that BP address and look for a new one.

One of the problems you'll run into is that there's a common function used to copy three floats from one place to the next.  If you hook this function, you'll affect every actor (the mushrooms, the goombas, coins, Yoshi, etc).  You can verify this by using an execute BP on the potential hook.  If it runs more than once per frame, it's probably working on everyone.

So when the BP hits, you walk the stack backwards to the caller, and repeat the execute BP check.  If it runs once per frame, you've probably found the right hook.

toonlink444

Alright I'll give it a shot. But the address I found breaks as soon as I set it.
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Bully@Wiiplaza

Quote from: toonlink444 on December 01, 2011, 11:33:42 PM
Alright I'll give it a shot. But the address I found breaks as soon as I set it.
take some looks at my assembly teleporters, too.
The general idea is to store and load to/from unused memory.
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully

toonlink444

Can you post one of your codes with comments so I can see an example?
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Bully@Wiiplaza

Quote from: toonlink444 on December 03, 2011, 06:04:03 AM
Can you post one of your codes with comments so I can see an example?
I made one for MKWii & TLOZ TP on geckocodes.
As I said above, it´s ideas was to load store from unused memory.
Also, the stack frame is needed to receive free registers.
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully

toonlink444

In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

toonlink444

I managed to crash the game using the code. So I don't think I have the right address is there some fool proof way to find x y and z coords.
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Anarion

yes. if you already made a teleport code for a game, whatever you did to find the xyz coordinates for that code will be the same thing you do to find coordinates on other games. but if you need,
[spoiler]be on a flat surface. start on one spot.
search unknown.
search again for equal.
move to another spot and stop moving. *
search unknown, not equal.
search again for equal.
repeat from *

if its still too hard, see if there is a moonjump code for the game you wanna make the teleport code, and take the address used in the moonjump code. xyz coordinates are usually found before the 'moonjump' address. so view that part of the memory.[/spoiler]
what game are you trying to make the teleport code?
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.
¦}

toonlink444

Super Mario Galaxy and I thought I found the Y coord but it was the Y speed so what I thought was the X and Z were the X and Z speed.
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Anarion

i think you just have to keep trying. if you follow the steps i mentioned on the spoiler, you're bound to find the coordinates eventually.
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.
¦}

toonlink444

In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

toonlink444

Sorry for the long break between posts my grandad died so I was at his funeral. So I think I found the address and there was a few instances of lwz and stw. How would I  test to see if this is the right address with out making a code that might crash the game?
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/