+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Need a little help using Geiger's Snes9x.
Pages: [1]
Author Topic: Need a little help using Geiger's Snes9x.  (Read 2 times)
Ryusui
Guest
« on: May 27, 2008, 01:01:28 am »

I can't figure out how to get trace logging to work. I've tried various combinations of options but nothing will produce a trace log the way I want it: I have to step through the code line-by-line to trace code, which is a pain in the ass in this particular case as I need to compare two versions of a routine, one that works, one that doesn't, and I honestly don't know what the difference is between the two.

The annoying thing is I could've sworn I got this to work once before. Is it saving the logs somewhere I'm not looking, maybe? I'm trying both the project directory and the Snes9x directory and no trace log has materialized in either...
Lenophis
Guest
« Reply #1 on: May 27, 2008, 01:11:21 am »

When tracing CPU, it should output a .txt file matching the name of the rom you opened. Unless something's funky, it should be in the same directory as the rom. If you do breakpoints, nothing will be saved to text, and the only time you'll see code is when it snaps. At that point, it'll show up in that tiny window, and you'll have to work from there.

To get working, all that should be needed is to check "CPU" in the logging window. To keep it from spitting out 75 files almost immediately, you should check "trace once," which won't log repeat code. It's handy if you're only looking for a specific routine, but if you need to check one routine with various values (A, X, and Y), then you're probably better off not checking it.

--Edit--
If your rom is in the C:\\, and you're using an OS like XP, you may have issues with a program trying to create files there (like it won't happen). To solve this, run as an admin, or put the rom on a different drive/partition.
Ryusui
Guest
« Reply #2 on: May 27, 2008, 01:18:49 am »

Here's the annoying part: just now I got it to produce 94MB worth of trace file (forgot to select "Trace Once"). Now I can't get it to repeat this miracle. >_<#
Lenophis
Guest
« Reply #3 on: May 27, 2008, 01:24:44 am »

Quote from: Ryusui on May 27, 2008, 01:18:49 am
Here's the annoying part: just now I got it to produce 94MB worth of trace file (forgot to select "Trace Once"). Now I can't get it to repeat this miracle. >_<#
Most of the time when switching tracing options, you'll need to close and re-open the program. You'll also have to delete the log that it produces (can't do so while it's running) if it comes across a routine that is already logged.

Yes, I know, annoying...
Ryusui
Guest
« Reply #4 on: May 27, 2008, 01:33:11 am »

Idiot me. I thought the release notes said "leave any options I don't want at 0", not that "0 means 0 and it'll ignore your parameters and dump nothing". Got it running now, hopefully. Thanks.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC