Logging game events to text file
#9
So, dolphin's logs will look like this.  I set up a memory breakpoint at 80343e80 just as a test to see controller buttons being pressed, I got this (it constantly reads/writes every frame in a controller's case but does not in the case of other breakpoints):

36:22:802 Core\PowerPC\BreakPoints.cpp:381 N[MI]: MBP 80005f50 ( --- ) Write8 0 at 80343e80 ( --- )
36:22:819 Core\PowerPC\BreakPoints.cpp:381 N[MI]: MBP 801af7b0 ( --- ) Read16 80 at 80343e80 ( --- )
36:22:819 Core\PowerPC\BreakPoints.cpp:381 N[MI]: MBP 80005f50 ( --- ) Write8 1 at 80343e80 ( --- )

So if I know a particular breakpoint, I can get what bytes are being written/read. 

The other thing to note is that Chataigne can do all kinds of if/then logic, and store custom variables.  I don't need to do it all within the wii.  Really all dolphin needs to do is dump information, and I can handle the logic on the other end.  So, I have two ideas on how I could do this.

1) Assuming such breakpoints exist, add a memory breakpoint when P1-P4 hits an item block, another breakpoint when the item received is a star, another four breakpoints for when p1-p4 uses an item.  Chataigne can then remember what players have what items, and execute logic based on when a particular player uses an item.

2) A different approach not directly involving item use. When the events we're targeting happen, other things happen as well, like sound effects, model loads, etc.  Perhaps we can find a breakpoint for when the starman music plays, or when the lightning bolt/blooper sound effects play.  Or maybe find the breakpoint for when the karts get smaller due to lightning, or when the ink splashes on the screen, or when the karts change color due to a starman.

Which approach do you think would work best?
Reply


Messages In This Thread
Logging game events to text file - by seanmcnally - 03-02-2024, 09:56 PM
RE: Logging game events to text file - by Vega - 03-04-2024, 01:38 AM
RE: Logging game events to text file - by Vega - 03-04-2024, 09:37 PM
RE: Logging game events to text file - by Vega - 03-07-2024, 01:02 AM
RE: Logging game events to text file - by Vega - 03-08-2024, 12:25 AM
RE: Logging game events to text file - by seanmcnally - 03-08-2024, 05:20 PM
RE: Logging game events to text file - by Vega - 03-08-2024, 06:44 PM
RE: Logging game events to text file - by Vega - 03-12-2024, 09:13 PM
RE: Logging game events to text file - by Vega - 03-13-2024, 11:36 PM
RE: Logging game events to text file - by Vega - 03-14-2024, 06:28 PM
RE: Logging game events to text file - by Vega - 03-16-2024, 02:23 AM
RE: Logging game events to text file - by Vega - 03-16-2024, 04:54 PM
RE: Logging game events to text file - by Vega - 03-16-2024, 11:13 PM
RE: Logging game events to text file - by Vega - 03-18-2024, 05:20 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)