u3shit / neptools

Modding tools for Neptunia games. *Note*: I'm migrating away from github, see one of the mirrors instead: https://gitgud.io/neptards/neptools or https://git.neptards.moe/neptards/neptools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have problem with .cl3

Hocorog opened this issue · comments

I'm trying to translate Megadimension Neptunia VIIR into Russian and when translating, I met with such a problem:
image

The event is not exported. It made on the game engine (Orochi), and it seems that neptools does not support it.

It looks like VIIR uses some new format not supported by neptools. I never tried VIIR and neptools is pretty much on life support atm. If you can drop the file here I might be able to look into it, but no promises.

I took a quick look and it's unfortunately not that simple. Does it happen with other files?

Yes, it is. Here are some more examples. There are both imported text from VIIR and Death end re;Quest, and non-export files from both games (both games on the same engine).
Text and unexported cl3.zip

test.zip
Test this version, especially that it still works after changing text and reimporting. I'll make a proper commit tomorrow, too late now.

After importing the text, the cutscene stopped working. But the interface works in it.
And after exporting and importing cl3 files, everything works, but if you import again, an error will appear in the DERQ files. Export also stopped working. VIIR doesn't have that.
image
image
image
image
CONTENTS.zip

I think I've found the bug that broke the DERQ reimport, but I have no idea why doesn't VIIR work. I guess I'll have to get that game...

I can share with the tool that I used when packing text into games and the archive with VIIR data, if you need it.

I think I'll have to get the game, just looking at the data files is not enough. But if you have a savegame from where that broken cutscene is easily accessible, that would help.

Here. I was checking events from the gallery:
First slot. Memories => Events => View From Up High 1 (The very first cutscene on the engine)
774511.zip

Oh, I see now, they changed everything. I'm surprised it still has CL3s inside. So I think I'll need the tool to pack/unpack those dat files, I'd rather not figure out that format too if not required.

The tools unpack the archive next to the file, so it's worth putting it in a separate folder. Unpacks without any structure, so there will be more than 3000 files in the folder. The DAT file to unpack is GxArchivedFile063.dat - there is text from cl3 in English and Chinese versions. The English version starts with 02953. CL3 and ends with 03583. CL3.

I've managed to reproduce this problem with the game, but not much, I'll have to dig deeper. In the meantime, could you check that the other files that exported originally correctly do work? Make sure you add or remove enough text so that the .cl3 file size changes.

Everything works fine. Also checked .gbin and .gstr files, but replaced a couple of lines there. It seems that everything works fine there.
Do I need to check files from DERQ?
image
image
image

Try this one: https://jenkins.neptards.moe/job/neptools_build_test/48/compiler=clang-msvc,mode=rel/
Please make sure you start over with the original cl3 files, the cl3 files generated by the previous build are probably broken.

v2r 2021-01-11 21-34-32-61

Cutscenes are perfectly unpacked. But the rest of the events in cl3 are not unpacked due to a bug that was previously in DERQ.

image
image

And I also wanted to know about the error that was in version 0.3.7. When unpacking some events from DERQ, some did not want to be imported back, creating a separate file in the folder with a random extension that began with .cl3
I tried to pack it into the game, and everything worked. However, after not this event was not unpacked.

image
image
image

Is that 02952.CL3 the original one? The previous build could fuck up the file, please reextract from the original game data and try again.
That random name file: it's a temp file normally deleted by stcm-editor, but if it crashes it can leave it behind sometimes. You can delete it.

This file is original. I specifically deleted the DAT file and downloaded it again, and then unpacked it. The problem is not only with 02952.CL3, but with the rest too.
CL3Files.zip

And again about that random file: it did not replace the original one. It looks like the stcm-editor was crashing before it could be replaced. I manually renamed and packed it. Well, for me it's not so critical if everything works. This happens with certain events. Thanks for the answer.

Oh, sorry, it was a different CL3, I mixed it up 02959. Anyway, I pushed a fix, a build should show up on this URL eventually
https://jenkins.neptards.moe/job/neptools_build_test/compiler=clang-msvc,mode=rel/50/

Everything unpacked and packed perfectly! Thank you so much for your help, now you can safely translate the game!

image
image

Closing this, feel free to reopen if other issues pop up.
On an unrelated note, I should really make a release soon.