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

nmm2gci fails to convert GPZJ01 (Nintendo Puzzle Collection) save #22

Open
GoogleCodeExporter opened this issue Jun 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create save for GPZJ01 with NMM
2. Take GPZJ01 folder with nmm save inside and drag to nmm2gci.exe

What is the expected output? What do you see instead?
I expected a converted GCI, instead it gives me the error:
Failed to open:"âjâôâeâôâhü[âpâYâïâRâîâNâVâçâô"
No such file or directory

However, the file "âjâôâeâôâhü[âpâYâïâRâîâNâVâçâô" does 
exist, and after testing/editing the code, I figured out that the program is 
actually trying to open a file called 
"ƒjƒ“ƒeƒ“ƒh�[ƒpƒYƒ‹ƒRƒŒƒNƒVƒ‡ƒ“", which is the 
filename encoded in Windows-1252, instead of CP437.

Of course, the actual filename is supposed to be 
ニンテンドーパズルコレクション encoded in Shift-JIS, but NMM 
saves it using CP437 (âjâôâeâôâhü[âpâYâïâRâîâNâVâçâô).

A similar problem exists in gci2nmm, except it will fully convert and give an 
incorrect filename which NMM won't read 
(ƒjƒ“ƒeƒ“ƒh�[ƒpƒYƒ‹ƒRƒŒƒNƒVƒ‡ƒ“).  Renaming it fixes 
the issue.

I attached a modified version of nmm2gci and gci2nmm which fixes the issue by 
checking for the gameName GPZJ, and giving the appropriate filename based on 
that.

Original issue reported on code.google.com by [email protected] on 12 Nov 2014 at 2:53

Attachments:

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

No branches or pull requests

1 participant