I hope you don't mind Minagi but I upped the source of nipa in github https://github.com/Wilhansen/nipa and modified the code to be non-japanese-locale-friendly (i.e. it can extract japanese file names even if the system locale is not Shift-JIS).

I guess my only request is that you include a binary release every once in a while (especially when/if you add new games) since I intended for this to be for the average person (mostly just those working on fan translations using the N2System engine) and not just people who knew how to compile the code.

I'm kinda curious, is there any particular reason you wanted to fix it up? I know my code isn't all that great but I figured it would have been too specific of a tool for anyone besides me to care about maintaining.

Ooooh, ok. I'll merge the changes as soon as I can (probably over this weekend). Is this purely a bugfix or did you add something?

Quote:

Originally Posted by Minagi

I guess my only request is that you include a binary release every once in a while (especially when/if you add new games) since I intended for this to be for the average person (mostly just those working on fan translations using the N2System engine) and not just people who knew how to compile the code.

I'm kinda curious, is there any particular reason you wanted to fix it up? I know my code isn't all that great but I figured it would have been too specific of a tool for anyone besides me to care about maintaining.

I was working with the people on the Lamento project and well, it seems that the executable requires resources to be encrypted for it to be loaded. So I implemented encryption for repacking (thank goodness the cipher is symmetric). So don't worry, I'm not on a code-cleaning crusade :)

Also, as what I've said previously, I want it to be usable for people who are too lazy to set their system locale to Japanese (like me :P). Actually... this is the initial reason why fudged with the code.

Ooooh, ok. I'll merge the changes as soon as I can (probably over this weekend). Is this purely a bugfix or did you add something?

Just adding stuff. At this point the only time it gets updated is to add new games. I'll probably still be updating it for as long as the engine is still in use or until I no longer care.

Quote:

Originally Posted by Tsukiko

Also, as what I've said previously, I want it to be usable for people who are too lazy to set their system locale to Japanese (like me :P). Actually... this is the initial reason why fudged with the code.

Not a big deal but your modifications make all of the Japanese display as ?s for me in the command prompt.

Incorporated the additions you made. If you have a github handle, I can add you as a project collaborator if ya want.

As for the japanese text issue, well, I sorta "fixed" the issue with the new build (you may want to test it out again). It's not 100% bullet-proof because Unicode support in windows is... shall I say... broken:

For example, if you pipe the output to a text file, "type dump.txt" will show you garbage but if you open it in notepad, it will show you the text properly. Saving the text and typing "type dump.txt" in the command line will show you the fixed output.

Another is when you have a non-japanese console, the output will contain the dreaded "[]". But if you copy-paste it to something like notepad... it appears fine.

I'll see what I can do after I manage to get the game running (3 gigs wow)... But Minagi might beat me to it :P

Eh, sorry. :P You could can usually just download patch data if it's available since they usually include the EXE.

Updated first post with new versions.

By the way, I've been kinda working on a Go version in my free time just to play around with the language a little bit. It fixes a lot of the issues I had with my original design and the code is nicer. It's just a little bit slower, though. I may start only maintaining the Go version once it's near finished.

Thanks for the report of a possible new encryption but it looks to be the same as the first trial's encryption. Use the following parameters: "nipa.exe -xg (file).nss LostXTrailer". It works for me on the nss.npa and cg.npa files I tried.