WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: goemon_guy on November 05, 2011, 11:57:24 PM

Title: Speed Modifier
Post by: goemon_guy on November 05, 2011, 11:57:24 PM
How would one go about doing a speed modifier?

From what I would do, I would stand still, and search for something, like 00000000.
Then, I would begin to move slowly, and search greater than.
Then I would begin to move quicker, and search greater than.

^ Repeat those until I find results.

But those steps don't work for me.

So, how would one find the speed?

Thanks!
Title: Re: Speed Modifier
Post by: Deathwolf on November 06, 2011, 12:00:34 AM
1)standing = 00000000
2)running = greather than
3)standing = Less than
4)standing = Equal
5)running = Greather than

after those steps you should be able to find the right address.
Title: Re: Speed Modifier
Post by: goemon_guy on November 06, 2011, 12:19:41 AM
Mmkay.

I think I found it.
There should be two addresses, right? (One for X, and one for Z [and probably another one for Y, but you don't move up or down.])

But, what do I do to make modify the speed?
Title: Re: Speed Modifier
Post by: Deathwolf on November 06, 2011, 12:22:06 AM
Correct. Sometimes there's the Jump address too.
About the speed address, try to write for example 40000000 to it.

BTW what are you trying to do? A Player speed modifier or just a run speed modifier?
Title: Re: Speed Modifier
Post by: goemon_guy on November 06, 2011, 12:27:55 AM
A movement speed modifier. (Which would probably be similar/same as run speed modifier)

If I write something to it, it makes me move without even pressing anything. :S
Title: Re: Speed Modifier
Post by: Deathwolf on November 06, 2011, 12:29:36 AM
That's the correct address  :D

Just add a button activator to enable the hack
like:

28XXXXXX 0000YYYY
04XXXXXX 40000000
E0000000 80008000
Title: Re: Speed Modifier
Post by: goemon_guy on November 06, 2011, 12:32:15 AM
That looks good.

But, since the game has more than one axis for movement... The player only moves in that one direction. What I intended for my code, was this:

Move normally, and movement speed is multiplied.... Or something... I'm not too sure if that is all that clear...
Title: Re: Speed Modifier
Post by: Deathwolf on November 06, 2011, 12:33:42 AM
Actually, to run backward you should use the value BF000000.
Title: Re: Speed Modifier
Post by: goemon_guy on November 06, 2011, 12:50:22 PM
I have another question in regards to this.

How/can you multiply a floating point? (In ASM)
Title: Re: Speed Modifier
Post by: matt123337 on November 06, 2011, 02:25:49 PM
Quote from: goemon_guy on November 06, 2011, 12:50:22 PM
I have another question in regards to this.

How/can you multiply a floating point? (In ASM)
fmul f0,f1,f2

f1 & f2 are the registers that you wish to multiply, f0 is the register you're storing the result to.
Title: Re: Speed Modifier
Post by: goemon_guy on November 06, 2011, 02:28:03 PM
Ah, thanks!

I've noticed that you're trying to contact me on MSN, but... My MSN won't let me talk back to people. So, it's not that I'm intentionally ignoring you.

EDIT:

Feeding this ASM [fmul fr0,fr1,fr2] gives..

./tmp/code.txt:3: Error: unsupported relocation against fr0


Shouldn't be fr, but should be f
Title: Re: Speed Modifier
Post by: goemon_guy on November 06, 2011, 03:00:38 PM
Speed Multiplier (X2)
C21B9718 00000004
3DC0933F 3D804000
918E0000 C1CE0000
FCC603B2 D0C30008
60000000 00000000
C21B9708 00000004
3DC0933F 3D804000
918E0000 C1CE0000
FCC603B2 D0C30000
60000000 00000000

code 1:
lis r14,-27841
lis r12,16384
stw r12,0(r14)
lfs f14,0(r14)
fmul f6,f6,f14
stfs f6,8(r3)

code 2:
lis r14,-27841
lis r12,16384
stw r12,0(r14)
lfs f14,0(r14)
fmul f6,f6,f14
stfs f6,0(r3)

The character disappears...? But it still multiplies my speed.
Title: Re: Speed Modifier
Post by: savage on November 06, 2011, 05:31:05 PM
usually when i make a speed hack, i find the coords, then usually around there you will see a 3F800000 <-- usually your max speed bump it up to 40000000 or higher... altho some times it may be a game speed mod so everything will be faster
Title: Re: Speed Modifier
Post by: Deathwolf on November 06, 2011, 05:44:31 PM
3F80 is for player speed.
Title: Re: Speed Modifier
Post by: Bully@Wiiplaza on November 06, 2011, 06:28:21 PM
okay another question:
How do I use trigonometric functions in ASM? :o
(sine, cose, tan...)
Title: Re: Speed Modifier
Post by: matt123337 on November 07, 2011, 02:05:15 AM
Quote from: Bully@Wiiplaza on November 06, 2011, 06:28:21 PM
okay another question:
How do I use trigonometric functions in ASM? :o
(sine, cose, tan...)
you would have to write/find a function in ASM to do anything like that...
Title: Re: Speed Modifier
Post by: Bully@Wiiplaza on November 07, 2011, 09:08:22 AM
Quote from: matt123337 on November 07, 2011, 02:05:15 AM
Quote from: Bully@Wiiplaza on November 06, 2011, 06:28:21 PM
okay another question:
How do I use trigonometric functions in ASM? :o
(sine, cose, tan...)
you would have to write/find a function in ASM to do anything like that...
can you come up with something, though?
Title: Re: Speed Modifier
Post by: matt123337 on November 07, 2011, 05:58:41 PM
Quote from: Bully@Wiiplaza on November 07, 2011, 09:08:22 AM
Quote from: matt123337 on November 07, 2011, 02:05:15 AM
Quote from: Bully@Wiiplaza on November 06, 2011, 06:28:21 PM
okay another question:
How do I use trigonometric functions in ASM? :o
(sine, cose, tan...)
you would have to write/find a function in ASM to do anything like that...
can you come up with something, though?

I don't know, you could try finding the model rendering method (if the game is 3d) and follow that, should (eventualy) lead you to the functions...