WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Bully@Wiiplaza on August 15, 2011, 10:33:36 PM

Title: Game timer still counts up/down during a pause through breakpoint?
Post by: Bully@Wiiplaza on August 15, 2011, 10:33:36 PM
... how can that be?
Thought that a breakpoint stops everything.
Would that mean that I can´t freeze the value with a nop either?
Title: Re: Game timer still counts up/down during a pause through breakpoint?
Post by: Stuff on August 16, 2011, 06:54:34 AM
I thought it was just monster hunter. What game were you pausing?

I noticed that the address I was looking at that counts down would freeze when I paused, but it would then jump down to what it would've been when I unpause it. I had to send the infinite time code so I don't fail while paused >.<.

Well I guess you could still freeze the timer with nop, since inf time works and without it I can fail if I'm paused for too long.
Title: Re: Game timer still counts up/down during a pause through breakpoint?
Post by: Bully@Wiiplaza on August 16, 2011, 11:13:30 AM
it was pokemon battle revolution´s battle timer (offline)
I´ll try to do it again, though.
Title: Re: Game timer still counts up/down during a pause through breakpoint?
Post by: dcx2 on August 16, 2011, 03:11:13 PM
There are a few different timers in the Wii.

One of them is the Time Base register.  It's sortof hidden, in that Gecko.NET and WiiRD won't show it.  The Time Base is a free-running counter that ticks with the PPC's oscillator, so it will continue counting during a breakpoint or pause.

http://wiird.l0nk.org/forum/index.php/topic,8739.msg73063.html#msg73063

The Memory Interface also has timers.  But my first guess would be the Time Base register.

http://hitmen.c02.at/files/yagcd/yagcd/chap5.html#sec5.5

There are also performance monitoring registers and a decrementer register on the PPC, but I have yet to mess with those.