WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Arudo on May 14, 2011, 12:01:11 AM

Title: Weirdness with an activator and a RAM Write
Post by: Arudo on May 14, 2011, 12:01:11 AM
So I'm doing some very minor revisions with the JP version of Rune Factory Frontier.

Here is the water code.

Inf. water (watering can)[Ricky23i]
04492778 00000064

And here is the

Time Stop/Start Code [ricky23i]
203B8DCE 00000084
CC000000 00000000
0048BE25 00000000

The only change I've made was to the activator, making it for the CCPlus instead of WiiMote+Nunchuk.

Now here's where things get weird.

Only when the Time Stop code is actively stopping time, my Water count remains at 99. When time moves again my water count starts to decrease.

Anybody have any ideas what's going on?
Title: Re: Weirdness with an activator and a RAM Write
Post by: dcx2 on May 14, 2011, 01:48:53 AM
Where's your terminator?
Title: Re: Weirdness with an activator and a RAM Write
Post by: Arudo on May 14, 2011, 01:56:33 AM
The original didn't have one, so I didn't put one in.
I'm assuming there should be a E00000000 80008000 at the end, but I don't see how the time freeze code would affect a RAM write.
Title: Re: Weirdness with an activator and a RAM Write
Post by: dcx2 on May 14, 2011, 02:00:13 AM
The RAM write doesn't need one but the button activator does.  A CC switch must follow an if code, and if codes must be terminated (or end-if'd).

If you don't use a terminator, then the CC code is still active when it gets to the Inf Water.  If the CC is on, then inf water will work.  If the CC is off, inf water won't work.

EDIT: you will only have this problem if inf water comes after the button activator.  If it comes before, the problem will go away.  However, any other codes after the time code, up until the first terminator after the time code, will not work.

The original coder probably didn't even know this was a problem, because if his code is last, then it won't screw anything up.  It only screws up codes that come after it.
Title: Re: Weirdness with an activator and a RAM Write
Post by: Arudo on May 14, 2011, 02:13:24 AM
...ah! I see what you mean. It's one of those issues. Thanks
Title: Re: Weirdness with an activator and a RAM Write
Post by: Bully@Wiiplaza on May 17, 2011, 07:42:21 AM
always use terminators with button conditionals and there won´t be issues!
Title: Re: Weirdness with an activator and a RAM Write
Post by: Arudo on May 17, 2011, 04:49:24 PM
Tell that to the guy 2-3 years ago. Hahaha