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

Long product codes are truncated #35

Open
JukePlz opened this issue Jul 17, 2022 · 4 comments
Open

Long product codes are truncated #35

JukePlz opened this issue Jul 17, 2022 · 4 comments

Comments

@JukePlz
Copy link

JukePlz commented Jul 17, 2022

Using the BIOS built-in SoundScope function to record a macro, and then saving the macro to memory card produces a save file with the product code "BPLAYSTATION" but MemcardRex only shows "LAYSTATION" and the header editor doesn't support editing text longer than 10 characters. Proper behaviour should support displaying and editing text to at least 12 characters instead.

Region also shows up as "0x5042" could probably add an human readable name for the region, either as "World", "None" or "BIOS", but more research should be done to determine if that specific region code is used on all BIOS versions or if any other game or software uses that region code.

Attached is an example MMC with a SoundScope save, produced in SCPH-101 BIOS.

soundscope.zip

@ShendoXT
Copy link
Owner

ShendoXT commented Nov 14, 2022

Well, here is the deal. The region+product code+identifier is actually a raw save file name on the file system, a 20 character string.
Sony forced developers to use the naming scheme in this format but they themselves as you can see were not following
this standard. So 0x5042 is not a region per se, it's actually "BP" in hex.

Regions are "BA" - America, "BE" - Europe "BI" - Asia. For example Tomb Raider save is "BASLUS-00152TOMBRAID" file in the filesystem. So, "BA" - America, "SLUS-00152" - Product code, "TOMBRAID" - Identifier.

For this nonstandard saves something else needs to be implemented because by this logic that save is
"BP" - Region, "LAYSTATION" - Product code, "" - Identifier.

I could just lie and when I detect that kind of a save with the invalid region say that the complete file name is "Product Code".

@ShendoXT
Copy link
Owner

Screenshot 2023-11-29 at 09 41 19

What do you think about this solution?
Editor is lying about product code but header editor is revealing the truth.

@JukePlz
Copy link
Author

JukePlz commented Nov 29, 2023

I think it's an acceptable compromise if it's a a hardcoded exception for the SoundScope tool.

Will these 2.0 changes eventually make their way into the Windows builds too?

@ShendoXT
Copy link
Owner

Yes, all the changes will be ported back to Windows version too.

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

2 participants