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

JAST USA nsb files don't get decompiled properly. #16

Open
DaZombieKiller opened this issue Oct 13, 2015 · 10 comments
Open

JAST USA nsb files don't get decompiled properly. #16

DaZombieKiller opened this issue Oct 13, 2015 · 10 comments

Comments

@DaZombieKiller
Copy link
Contributor

When using nsbparse2 with nsb scripts from the JAST USA release of Steins;Gate, the scripts do not get decompiled properly:

https://i.imgur.com/JTPpsZC.png

@krofna
Copy link
Member

krofna commented Oct 13, 2015

Did you set locale to be en_US.UTF-16? (IIRC that is the default one for jast usa rel. Can't check now, am at uni >.<)

@DaZombieKiller
Copy link
Contributor Author

Not much of an improvement:

@krofna
Copy link
Member

krofna commented Oct 13, 2015

Did you extract it with correct locale?

@DaZombieKiller
Copy link
Contributor Author

I actually extracted it with Steins;Gate Archive Decompiler, and when I try to extract it with npaextract (locale en_US.UTF-16), the output is... well, strange.

If I don't supply a locale, it attempts to write to paths like "n s s / s y s _ t i t l e . n s b", thus only the last file actually gets extracted (in the form of a file called "n" with no extension)

@krofna
Copy link
Member

krofna commented Oct 13, 2015

I suspect that nptools is windows-unfriendly (it generates ja_JP.UTF-8 output, and was only tested on linux). It shouldn't be too hard to fix. I will look into it later today.

@DaZombieKiller
Copy link
Contributor Author

Alright, thanks. In that case I should note that there were specific changes I had to make to the CMakeLists files, and a few changes to the source files themselves in order to get it to compile under MinGW32. I'll see if I can get a pull request together later.

I should also note that nsbcompile2 doesn't seem to work, I get a "syntax error" when I try to compile scripts from the original Japanese version that I've decompiled.

@krofna
Copy link
Member

krofna commented Oct 13, 2015

Or en_US.UTF-8 output... i forgot xD

@krofna
Copy link
Member

krofna commented Oct 13, 2015

nsbcompile2 is an experimental tool for development purposes only, broken on most original scripts (bison probably fails on either array syntax or "select" event loops), works only on trivial custom scripts. I haven't bothered to fix it yet because i use it only on steins-gate/test.nss.

@jamescallen246
Copy link

Any updates?

@krofna
Copy link
Member

krofna commented Jun 2, 2019

I don't use windows so it's difficult for me to tackle this. I'm pretty sure it works fine on linux.

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

3 participants