Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve param.sfo entry values? #76

Open
kkaazzee opened this issue May 30, 2021 · 1 comment
Open

Retrieve param.sfo entry values? #76

kkaazzee opened this issue May 30, 2021 · 1 comment

Comments

@kkaazzee
Copy link

kkaazzee commented May 30, 2021

Hi @maxton, I'm trying to script PkgTool to extract CONTENT_ID and TITLE values from (edit: PS4) pkg files. I'm running into a knowledge gap and/or functionality gap that I'm hoping you can help with.

I've been able to extract PARAM_SFO binary data using its entry index. Once extract I'm unsure how to proceed. Naively I spotted sfo_setentry and went looking for sfo_getentry <input.pkg> <entry_name>.

If it's not too much trouble, will you help me understand how to pull all or individual param.sfo entry values as plain text? Even a bit of "here's what you're missing" would be super handy.

Thanks so much. :)

@kkaazzee
Copy link
Author

kkaazzee commented May 30, 2021

I found code which is building a table of all values which later has its entries iterated to find values for entry names: https://github.com/xXxTheDarkprogramerxXx/PS3Tools/blob/master/PARAM.SFO%20Editor/PARAM.SFO/PARAM_SFO.cs#L249-L250.

Luckily I also learned it's possible to extract the entries as an SFX XML file using an SCE tool. 😬😅

Edit: Here's an example python implementation with mixed tooling: https://gist.github.com/kkaazzee/8067bbf4f89b90f641316faff950b2b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant