![]() |
|
Outputting In Game Debug Information to File - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion) +--- Thread: Outputting In Game Debug Information to File (/Thread-outputting-in-game-debug-information-to-file) |
Outputting In Game Debug Information to File - maxsei - 07-18-2019 I have recently just started a modding project on SSBM for GC. I am using these libraries if anyone is interested in writing mods for the game in c: https://github.com/sherman5/MeleeModdingLibrary this tool for injecting c code into icos: https://github.com/sherman5/wiimake I have no problem injecting data and instructions into the game, I need to find a way to log game data to a file. Does Dolphin have any features in it that support this? I have not been able to find anything that can do this kind of a thing for me. Anyways if anyone knows any resouces to point me to I would be very greatful. Thanks in advance
RE: Outputting In Game Debug Information to File - JosJuice - 07-18-2019 Dolphin will intercept any calls to OSReport and print the text to its own log, which you can configure to be shown in the Dolphin window or to be saved to a file. RE: Outputting In Game Debug Information to File - maxsei - 07-18-2019 (07-18-2019, 03:05 AM)JosJuice Wrote: Dolphin will intercept any calls to OSReport and print the text to its own log, which you can configure to be shown in the Dolphin window or to be saved to a file.Where did you find out this information? I have been having a hard time finding where to look for documentation on these kind of things. I'm completely new to dolphin so I apologize if I am asking basic questions. Is there somewhere I could read more about this? RE: Outputting In Game Debug Information to File - JosJuice - 07-18-2019 I don't think I really read that anywhere... It's just a thing I know from working with Dolphin for a while. I don't know of any good resource that I could point you towards for these kinds of things. And no, I wouldn't consider this a basic question. RE: Outputting In Game Debug Information to File - maxsei - 07-18-2019 (07-18-2019, 03:15 AM)JosJuice Wrote: I don't think I really read that anywhere... It's just a thing I know from working with Dolphin for a while. I don't know of any good resource that I could point you towards for these kinds of things.How would I use OSReport or configure it to output to a file? Also that is very reassuring to know. RE: Outputting In Game Debug Information to File - Leseratte10 - 07-19-2019 Dolphin has a "Log Configuration" window where you can enable or disable all available logging types - OSReport is one of them. Just deselect all the others and select OSReport, and click "log to file" (or similar) and it'll log to the file. As for using it, OSReport is a function that is available in all (or almost all) Wii games. It takes a format string and parameters. You'd need to find out where (at what RAM address) that is for Brawl, then you can call it as if it were printf. RE: Outputting In Game Debug Information to File - maxsei - 07-23-2019 I know this a few days later but I found a way to do what I would like to do with the dolphin memory watcher feature detailed in this github thread https://github.com/dolphin-emu/dolphin/pull/3403 |