XenonRecomp icon indicating copy to clipboard operation
XenonRecomp copied to clipboard

File could not be opened for reading

Open DeSullyMan3 opened this issue 9 months ago • 10 comments

I'm trying to use XenonRecomp tool and i'm getting this:

sully@sully-veritonx4610g:~/ts3-pc/build/XenonRecomp$ sudo ./XenonRecomp TS3.toml /home/sully/ts3-pc/XenonRecomp/XenonUtils/ppc_context.h terminate called after throwing an instance of 'toml::v3::ex::parse_error' what(): File could not be opened for reading Aborted

I have no idea what this means. The file TS3.toml does exist in the folder.

DeSullyMan3 avatar Mar 02 '25 16:03 DeSullyMan3

Is the .toml file itself formatted incorrectly? Maybe the error is misleading.

blueskythlikesclouds avatar Mar 02 '25 16:03 blueskythlikesclouds

I also tried to use the .toml from sonic unleashed recompiled and got the same thing.

DeSullyMan3 avatar Mar 02 '25 16:03 DeSullyMan3

If you're using the Unleashed toml, do all the file paths match? I got this error when I didn't comment out the patch and patched file paths that weren't applicable for my use case

JillianTo avatar Mar 02 '25 19:03 JillianTo

I think i do. [main] file_path = "../private/default.xex" patch_file_path = "../private/default.xexp" patched_file_path = "../private/default_patched.xex" out_directory_path = "../ppc" switch_table_file_path = "SWA_switch_tables.toml" This is the main part of my .toml file,

Image and this is the folder structure where XenonRecomp and everything else is. in the private folder is the .xex file and such Maybe that is help full.

DeSullyMan3 avatar Mar 03 '25 14:03 DeSullyMan3

Just to confirm, SWA_switch_tables.toml is in the XenonRecomp folder right (meaning the same folder as the XenonRecomp executable)? If so, maybe try making an empty ppc folder

JillianTo avatar Mar 04 '25 04:03 JillianTo

Sorry for the long wait but i've updated the .toml this is now the main part

[main] file_path = "/home/sully/ts3-pc/build/private/default.xex" out_directory_path = "/home/sully/ts3-pc/build/private/ppc" switch_table_file_path = "/home/sully/ts3-pc/build/private/TS3_switch_tables.toml"

and this is the contents of the private folder

Image

and it's still giving the same exact error

Image

DeSullyMan3 avatar Mar 06 '25 14:03 DeSullyMan3

Your paths all look right, the only thing I can think of is that it might not like the '-' in the 'ts3-pc' part of your file path? Your toml is the exact UnleashedRecomp one, just with the file paths changed and the patched_file_path removed right? If you did that, I can't see the tabs getting messed up or something like that

JillianTo avatar Mar 06 '25 16:03 JillianTo

I'll look if i can change the name of ts3-pc

DeSullyMan3 avatar Mar 06 '25 17:03 DeSullyMan3

Nope still the same.

Image I also updated the lines in the ts3.toml file

DeSullyMan3 avatar Mar 06 '25 17:03 DeSullyMan3

I found that Unleashed doesn't work with XenonRecomp without the invalid_functions defined, maybe your game is the same? Does recompiling Unleashed work on your system?

JillianTo avatar Mar 12 '25 01:03 JillianTo