Skip to content

How to compile .nss scripts, created using nsbparse/nsbparse2 to nsb+map? #15

@paxidently

Description

@paxidently

When I trying decompile and compile script using nsbparse2 and nsbcompile2:

$ nsbparse2 sg09_01.nsb sg09_01.nss en_US.UTF-8
$ nsbcompile2 sg09_01.nss en_US.UTF-8
Error: syntax error
zsh: abort (core dumped)  nsbcompile2 sg09_01.nss en_US.UTF-8

When I trying to decompile and compile again using nsbparse and nsbcompile I can't create .map file for sg09_01.new.nsb:

$ nsbparse sg09_01.nsb en_US.UTF-8
$ nsbcompile sg09_01.nss sg09_01.new.nsb en_US.UTF-8
$ ls *.map
sg09_01.map

When I trying to decompile sg09_01.new.nsb using sg09_01.map, strings apparently become broken (I haven;t tested neither FGRE nor SG with this files):

sg09_01.nss:

<....>
00173 ParseText(text00010, @box00, <PRE @box00>[text00010]
--The feeling of another warm hand.

Slips through my fingers with a strong sense of vertigo.

</PRE>);
<....>

sg09_01.new.nss:

<....>
00173 CallFunction(00173ParseText, text00010, @box00, <PRE@box00>[text00010]--Thefeelingofanotherwarmhand.Slipsthroughmyfingerswithastrongsenseofvertigo.</PRE>);
<....>

Is there right way to decompile nsb, edit it and compile to nss+map?

P.S. I used Fuwanovel version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions