• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Cheats, Hacks, & Game Patches v
« Previous 1 ... 12 13 14 15 16 ... 19 Next »

[SSBB] Need help finding the location of current game time
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[SSBB] Need help finding the location of current game time
03-22-2018, 07:21 AM
#1
NoXiousNet
Unregistered
 
I'm currently digging my way through Brawl's ASM in an attempt to make a unique application of the Mushroom Stacker Code. I've got what I think is a pretty solid footing on how the mushroom stacker code works. I've started looking into how I would hook into animations to force characters to use the growing animation (to force the characters to update to a new size). But before I can even write code to bug test, I need to find out how the game is keeping track of time.

My initial plan is to write a Gecko code that would replace the instruction that is writing the frame's time into the RAM. From there I would write the time to the ram like normal, but also be able to do a modulo on the value and check for zero remainder. When it's zero, it's time to update player sizes and force them into the grow/shrink animation.

My problem: I have no idea how brawl might even begin to store the time. Every other part of the code had an ASM hack pointing directly to the area of interest so I could learn, but no such research has been done into the timer from what I've searched. I thought I might be able to use cheat engine and search for a float increasing every few seconds, but I did some testing and came to the conclusion that memory in dolphin probably isn't at static addresses (couldn't find P1 size as I used the mushroom stacker).

Even if I had access to a method to scan the memory, I have no idea if I'm searching for a float where the whole numbers are seconds, or a float of minutes, or integer values of seconds, etc. And after all of that if I do find a RAM address, 5.0 can't do memory write breakpoints from what I've searched, it would be hard/impossible to find the write instruction without being able to freeze the registers. Does anyone know of how I might start this journey?
Reply
03-22-2018, 07:44 AM (This post was last modified: 03-22-2018, 07:46 AM by One More Try.)
#2
One More Try Offline
Posting Freak
*****
Posts: 886
Threads: 23
Joined: Dec 2014
To use cheat engine with dolphin https://smashboards.com/threads/using-cheat-engine-with-dolphin.442909/ You can use 94000000 instead of 81800000 to access mem2. Also, there's this project: https://github.com/aldelaro5/Dolphin-memory-engine and this talks about it: https://smashboards.com/threads/a-new-dolphin-ram-search-dolphin-memory-engine.449384/

There might be something timer related at 9100A76C
Find
Reply
03-22-2018, 09:25 AM
#3
NoXiousNet
Unregistered
 
I found what seems to be a frame counter at 901812a4 and 901812b4, though I didn't check if this is static across matches. Now I could just shove my code in any place that runs once a frame, but is there any easy ways to find what writes to that address (without downloading a 4.0 fastdebug version).

Edit: 901812a4 resets and counts up in menus, 901812b4 doesn't count in menus but doesn't reset until starting a match. There's also a frame counter that starts after the countdown at 901807a4 and doesn't count in menus, the other two start at the beginning of the countdown. All addresses seem static for now.

Double Edit: Forgot to mention that anything I find might be different for anyone else looking: I'm doing these tests on Brawl Infinite with subspace emissary removed.
Reply
03-22-2018, 10:29 AM
#4
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
look for a value that constantly counts up regardless of what you do
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode