wetor / LuckSystem

Prototype's galgame (LucaSystem Engine) tools, Decompile and Compile LucaSystem's script file
Other
43 stars 7 forks source link

Add Support to Extract Extensionless Script #5

Closed HoodedTissue closed 2 years ago

HoodedTissue commented 2 years ago

There don't seem to be any public tools that seem to support extracting scripts without an extension or header from SCRIPT.PAK so would it be possible to add support for it? I have provided the original SCRIPT.PAK file and one of the script files. The game in question is the PS Vita version of Amatsutsumi. Thanks! SCRIPT.zip

HoodedTissue commented 2 years ago

After a bit more experimentation, I seem to have figured it out. The byte that comes right before every occurrence of 0x001F03 seems to be the length of whatever is needed to display the text so adjusting that byte accordingly will allow you to edit the text without the game crashing. Hacked up a few tools here to decompile the script just in case it helps (code is garbage but hopefully its readable). 2022-08-09-093501-260714