xenia-canary / game-patches

Game patches for the Xenia emulator
370 stars 197 forks source link

Banjo-Tooie infinite eggs not working #328

Open petehepple opened 1 month ago

petehepple commented 1 month ago

The infinite egg patches don't appear to do anything when enabled - for example, when activating unlimited blue eggs, I can still only collect 100 max, the counter runs down as soon as I fire one, and when reaching zero I can't fire any more.

Other patches work fine - I enabled Banjo Kazooie Fire Breath and tested, and it worked fine.

I'm running canary_experimental from Sept 2nd 2024.

petehepple commented 1 month ago

tooie

retrobenny commented 1 month ago

Upsetting as I just confirmed the address is correct but it refuses to write the value for some odd reason.

Going into Cheat Engine shows the default value and writing manually works for the desired effect. No idea why it refuses to write the specific address when I can edit memory directly just fine. Doesn't make any sense at all why it can't do something so basic as writing that value.

After isolating the code into a small file, it still doesn't do what is desired. I managed to see that the value in fact gets written to FFFE when initially booting the game if I look at the memory viewer in CE, but then changes afterward to the default value with no further writing of the patch code. Why is it not repeatedly writing the value and only writing it one time, how do I make it repeatedly write the value, where might I find a syntax/formatting code-types list to accomplish that?