XenonRecomp icon indicating copy to clipboard operation
XenonRecomp copied to clipboard

(SONIC 06) xenonrecomp.exe does nothing when given toml and ppc_context.h

Open RiRiRawrZ615 opened this issue 9 months ago • 7 comments

for fun i tried this program, the analyzer seems to have created a toml that doesn't match the format shown in the readme, and when attempting to pass this and ppc_context.h path to the program it simply paused for some seconds and finishes with no output, error, or similar. am i just using this wrong after i went to the trouble of compilation? i have attached my toml for example, as you can see it is just missing many important fields to work.

test.toml.zip

RiRiRawrZ615 avatar Mar 05 '25 20:03 RiRiRawrZ615

hey friend! Similar problem here. Trying to do NHL 08

I’m encountering a consistent access violation crash (0xC0000005: Access violation reading location 0x0000000000000000) when running XenonRecomp.exe locally on Windows, both from PowerShell and Visual Studio 2022. The crash occurs in the ParseImage function (image.cpp:34), resulting in no output being generated in the specified output directory (D:\testhame). I’m trying to recompile jump tables for NHL 08’s default.xex and would appreciate assistance in resolving this issue. I’ve followed the README instructions and attempted various troubleshooting steps, but the problem persists. I plan to continue debugging in Visual Studio 2022 tomorrow to provide more details, but I’m opening this issue now to share my findings and seek guidance.

Log is showing nothing and digging a little deeper before bed last night I figured out the crash occurs in the ParseImage function after running w debug in VS

SAitken91 avatar Mar 05 '25 22:03 SAitken91

here are my first 20 lines of jump table for nhl

Generated by XenonAnalyse

---- ABSOLUTE JUMPTABLE ----

[[switch]] base = 0x82235B58 r = 10 default = 0x82235B94 labels = [ 0x82235B88, 0x82235B88, 0x82235B94, 0x82235B88, 0x82235B94, 0x82235B88, ]

[[switch]] base = 0x82950DD0 r = 11 default = 0x8295147C labels = [

SAitken91 avatar Mar 05 '25 22:03 SAitken91

hey friend! Similar problem here. Trying to do NHL 08

I’m encountering a consistent access violation crash (0xC0000005: Access violation reading location 0x0000000000000000) when running XenonRecomp.exe locally on Windows, both from PowerShell and Visual Studio 2022. The crash occurs in the ParseImage function (image.cpp:34), resulting in no output being generated in the specified output directory (D:\testhame). I’m trying to recompile jump tables for NHL 08’s default.xex and would appreciate assistance in resolving this issue. I’ve followed the README instructions and attempted various troubleshooting steps, but the problem persists. I plan to continue debugging in Visual Studio 2022 tomorrow to provide more details, but I’m opening this issue now to share my findings and seek guidance.

Log is showing nothing and digging a little deeper before bed last night I figured out the crash occurs in the ParseImage function after running w debug in VS

usually when you get this issue its because the config.toml isnt setup correctly path wise

TheNotZen364 avatar Mar 06 '25 01:03 TheNotZen364

hey friend! Similar problem here. Trying to do NHL 08 I’m encountering a consistent access violation crash (0xC0000005: Access violation reading location 0x0000000000000000) when running XenonRecomp.exe locally on Windows, both from PowerShell and Visual Studio 2022. The crash occurs in the ParseImage function (image.cpp:34), resulting in no output being generated in the specified output directory (D:\testhame). I’m trying to recompile jump tables for NHL 08’s default.xex and would appreciate assistance in resolving this issue. I’ve followed the README instructions and attempted various troubleshooting steps, but the problem persists. I plan to continue debugging in Visual Studio 2022 tomorrow to provide more details, but I’m opening this issue now to share my findings and seek guidance. Log is showing nothing and digging a little deeper before bed last night I figured out the crash occurs in the ParseImage function after running w debug in VS

usually when you get this issue its because the config.toml isnt setup correctly path wise

I feel dumb, I have no config.toml? I genuinely must have missed the file and it doesn't show up on a git pull

your comment makes total sense though, because I used the Unleashed tables and got the same access violation crash with the same code. I just need to fix this piece of the puzzle

double edit: I get it. Using Ghidra now and analyzing for the bytes!

SAitken91 avatar Mar 06 '25 01:03 SAitken91

you need 2 toml files. one is output from the analyzer, this contains the jump tables. The second toml file you have to create yourself. This will reference the first toml file (the switch table one) in the line: switch_table_file_path = "SWA_switch_tables.toml"

To create the second toml file you will need to open the game xex in a disassembler and find the parts needed (refer to instructions in the main readme).

gxyMODn avatar Mar 06 '25 13:03 gxyMODn

hey friend! Similar problem here. Trying to do NHL 08

I’m encountering a consistent access violation crash (0xC0000005: Access violation reading location 0x0000000000000000) when running XenonRecomp.exe locally on Windows, both from PowerShell and Visual Studio 2022. The crash occurs in the ParseImage function (image.cpp:34), resulting in no output being generated in the specified output directory (D:\testhame). I’m trying to recompile jump tables for NHL 08’s default.xex and would appreciate assistance in resolving this issue. I’ve followed the README instructions and attempted various troubleshooting steps, but the problem persists. I plan to continue debugging in Visual Studio 2022 tomorrow to provide more details, but I’m opening this issue now to share my findings and seek guidance.

Log is showing nothing and digging a little deeper before bed last night I figured out the crash occurs in the ParseImage function after running w debug in VS

Have you managed to get NHL running? Native 08 or Legacy is the dream, but I don't think I have the technical ability to do it myself.

Jakkerz avatar Mar 08 '25 01:03 Jakkerz

for fun i tried this program, the analyzer seems to have created a toml that doesn't match the format shown in the readme, and when attempting to pass this and ppc_context.h path to the program it simply paused for some seconds and finishes with no output, error, or similar. am i just using this wrong after i went to the trouble of compilation? i have attached my toml for example, as you can see it is just missing many important fields to work.

test.toml.zip

Hi RiRi Sorry to tag you here but I looking to contact you @Kraiwit007

fuengfah avatar Mar 13 '25 02:03 fuengfah