Jump to content

Recommended Posts

Posted (edited)

Can someone who knows about data structures help me figure out this data files?
Here are the data files and the extraction/repack script if anyone wants to give it a try and help me.
https://www.mediafire.com/file/qfi8d5gfo46mq6g/data_files_and_extraction_script.zip/file

I don't really know anything about data extraction, but as far as I know all the strings are in plain text on the data files... just need to figure out the data struct and adjust the script so it can properly collect the strings and repack them in the right place.
The included files are actually only 2 of the data files extracted from the game data because of the size. The game is Dragon Carnival from Splush Wave.

So...
Someone made a script to extract the dialogue text from SPLUS_WAVE games but unfortunately it doesn't extract the RPG text.
I've just found out where those rpg texts are. But I don't have enough knowledge about data structures to figure it out how to properly extract/repack them.

For reference, the dialogue text are extracted using these structs

Spoiler


class SplushMBT(Structure):
    _fields_ = [
                ('Magic', c_char * 4),
                ('Sections', c_uint32),
                ('Events', c_uint32),
                ('SectionPos', c_uint32),
                ]
class SplushMBTSectionEntry(Structure):
    _fields_ = [
                ('Start', c_uint32),
                ('Num', c_uint32),
                ('FilenamePos', c_uint32),
                ]

 


And this is the data file (just the first part where SplusMBT struct is):

Spoiler

mes-0-dat.jpg


Now.... this is the file where the items descriptions text is:

Spoiler

DID-DN-PARA-dat-2.jpg

It uses the identifier DAP instead of MBL0 and is very different with how its structed.

Any help pointing me to the right direction is welcome.
Thanks.

 

--------------------------- Edit:

I've made a really stupid script that can extract and replace the strings on the data file which have the game rpg elements.

I don't have the proper knowledge to figure out how the headers work so I basically just brute force the whole file.  Seaching for japanese text and replacing it.
It all seems to work but you need to be carefull not to overflow onto the next string or header as can't change the position where the strings are referenced.

Here is the script:  https://www.mediafire.com/file/ygg52jnelscwm1b/extract_repack_RPG_text.rar/file

You pass the data file name so in the case of Dragon Carnival:

python rpg_out.py DID_DN_PARA_DAT

will create a DID_DN_PARA_DAT_RPG_TXT.txt with the strings

python rpg_in.py DID_DN_PARA_DAT

will actually create a DID_DN_PARA_DAT_parsed with the strings replaced based on DID_DN_PARA_DAT_RPG_TXT.txt

Edited by darksshades
Link to post
Share on other sites
  • 4 weeks later...
  • 2 weeks later...
On 6/25/2021 at 2:24 PM, Tgsaudoi said:

So About Silky engine, im use Gabro to extract MES files from script.arc and done with edit MES files. So how can I pack it in Script.arc again or how to use it?

You don't need to actually repack it. More data about translation the games on Silky Engine can be found here (warning: Russian only!). See " Как работать с архивами? " section there.
Also you may want to use this tool to edit MES files.

Link to post
Share on other sites
11 hours ago, Tester said:

You don't need to actually repack it. More data about translation the games on Silky Engine can be found here (warning: Russian only!). See " Как работать с архивами? " section there.
Also you may want to use this tool to edit MES files.

So how can i use the edited MES files?, where i have to put it?

Link to post
Share on other sites
  • 3 weeks later...

Once again, this thread should be updated, because there was new tool created.
See this topic.

===

After some time tampering with SLG System engine, I did create a tool to work with it's scripts. And not just simple string editor, no.

SLGScriptTool is dual languaged GUI tool for (de)compiling and (de/en)crypting (with key finding) scripts of SLG System engine. Supports all known versions of SLG System: 0, 1, 2, 3 (3.0, 3.1), 4 (4.0, 4.1), but may lack of support of some it's variations. With this tool you can: decompile and compile script of SLG System, (en/de)crypt script of any game on SLG System, find key of any game on SLG System via cryptoattack.

Link for the tool: https://github.com/TesterTesterov/SLGSystemScriptTool
Built release (for x64 and x32): https://github.com/TesterTesterov/SLGSystemScriptTool/releases/tag/v1.0

Why SLG System is so noteworthy? Legendary series Sengoku Hime and Sangoku Hime (PC version) does use this engine (well, Sengoku Hime 7 and probably Sangoku Hime 5 does use Unity, but pay it no mind).

Now with SLGSystemDataTool and some HEX-editing of supplement data files it is possible to translate whose game series.

Edited by Tester
New topic.
Link to post
Share on other sites
  • 4 weeks later...

Hi. I wish to translate the game "Yami no koe" / "The Voice in the Night" by Black Cyc (https://vndb.org/v3334).

I search on this forum and found Garbo. I tried this tool and can extract every game arts but not the script. The scripts are already editable.

The scripts are .spt file. I have found post talking about a tool gsppt but can't find how to download it.

Does someone have a tool for depacking / packing script file ?

Link to post
Share on other sites

Hey, i extracted the script from https://vndb.org/v5233, and i can not read it (nor can i open the cgs or the ost). I guess it's encrypted, but i have no idea how to open them, even after trying what's in the op. I don't know even if the files extracted are or not corrupted.

I put the scripts and .xp3 file in here, in case someone can help me.

https://mega.nz/folder/5oZhAAbY#EZYphfxwWIaO0szMlp9cBw

Link to post
Share on other sites
  • 2 weeks later...

Hi! I've been trying to work with Sadistic Blood scripts. Since it's from Black Cyc, gsspt tool can extract text, but when I try to insert changed text nothing in .spt file changes. So it doesn't in game.

The only difference I noticed between Gore Screaming Show scripts and Sadistic Blood's are paragraphs, but it doesn't look like an issue.

Does someone know a way to workaround it?

Link to post
Share on other sites
  • 1 month later...

I've been working on extracting the script files from Reminiscence that are in the .mjo file format(https://vndb.org/v7773) because there is someone that I am helping that is fluent in Japanese and wants to mess around with the script files. I've been able to extract every script except around 10 scripts that seem to be related to the story.

The tool that I was using to extract the scripts is https://github.com/Inori/FuckGalEngine/tree/master/Majiro/mjdev and the error I get when I try to extract the stubborn scripts is "Fatal error: exception Failure("unknown command text_control_7a at 0x00199d")", "Fatal error: exception Failure("unknown command text_control_64 at 0x006002")",  and"Fatal error: exception Failure("unknown command op845 at 0x0024c3")" seem to be the most common errors.

I found a tool that actually seems to be for the game (https://github.com/regomne/chinesize/tree/master/Majiro/hook_proj)  but I've been unable to build it.

Does anyone know a work around or another tool that might work?

Edited by kralc
Forgot to add script file format
Link to post
Share on other sites
1 hour ago, kralc said:

I've been working on extracting the script files from Reminiscence that are in the .mjo file format(https://vndb.org/v7773) because there is someone that I am helping that is fluent in Japanese and wants to mess around with the script files. I've been able to extract every script except around 10 scripts that seem to be related to the story.

The tool that I was using to extract the scripts is https://github.com/Inori/FuckGalEngine/tree/master/Majiro/mjdev and the error I get when I try to extract the stubborn scripts is "Fatal error: exception Failure("unknown command text_control_7a at 0x00199d")", "Fatal error: exception Failure("unknown command text_control_64 at 0x006002")",  and"Fatal error: exception Failure("unknown command op845 at 0x0024c3")" seem to be the most common errors.

I found a tool that actually seems to be for the game (https://github.com/regomne/chinesize/tree/master/Majiro/hook_proj)  but I've been unable to build it.

Does anyone know a work around or another tool that might work?

from the error messages, it seems that tool isn't able to understand those opcodes in the script.
0x7A, 0x64 and the third one...
usually means programmer hasn't come across those OP codes in the game engine yet, or you're working with a later version of the game engine

Link to post
Share on other sites
21 hours ago, kralc said:

I've been working on extracting the script files from Reminiscence that are in the .mjo file format(https://vndb.org/v7773) because there is someone that I am helping that is fluent in Japanese and wants to mess around with the script files. I've been able to extract every script except around 10 scripts that seem to be related to the story.

The tool that I was using to extract the scripts is https://github.com/Inori/FuckGalEngine/tree/master/Majiro/mjdev and the error I get when I try to extract the stubborn scripts is "Fatal error: exception Failure("unknown command text_control_7a at 0x00199d")", "Fatal error: exception Failure("unknown command text_control_64 at 0x006002")",  and"Fatal error: exception Failure("unknown command op845 at 0x0024c3")" seem to be the most common errors.

I found a tool that actually seems to be for the game (https://github.com/regomne/chinesize/tree/master/Majiro/hook_proj)  but I've been unable to build it.

Does anyone know a work around or another tool that might work?

I actually found a tool to view and edit the text (https://github.com/regomne/lneditor) but I'm not sure how to save it correctly because the GUI is in Chinese. Would someone be able to help me?

  p2xvdBz.png

 

Link to post
Share on other sites
  • 2 weeks later...

Hello, currently i am having Chinese version of Kajiri Kamui Kagura, i want to extract the script but so far no method has been working for me such as Enigma or Garbro. Can someone help me on this? I am suspecting that the exe file might be the same with Fortissimo Chinese.

Here's the game in case someone need: https://drive.google.com/file/d/1aXiUB6JjHEJrdkNWzH4zYhHuH2kQWxgK/view

Link to post
Share on other sites
  • 2 weeks later...

Hey there. I want to access the script files of Starless.
I managed to extract the scenario.arc file and it gave me .mjo files that seem to be encrypted since they show gibberish. What tool can I use for that? 
I must point out I extracted the script files for the ENGLISH version, in case that might the reason the script is showing as gibberish. This is just for personal use to compare and study the translation. I will extract the Japanese script later.

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
On 11/7/2021 at 10:29 AM, dullian said:

Hey there. I want to access the script files of Starless.
I managed to extract the scenario.arc file and it gave me .mjo files that seem to be encrypted since they show gibberish. What tool can I use for that? 
I must point out I extracted the script files for the ENGLISH version, in case that might the reason the script is showing as gibberish. This is just for personal use to compare and study the translation. I will extract the Japanese script later.

It's majiro engine https://github.com/Inori/FuckGalEngine/tree/master/Majiro/mjdev use that to extract the script

Link to post
Share on other sites
On 10/15/2021 at 9:36 AM, kralc said:

I actually found a tool to view and edit the text (https://github.com/regomne/lneditor) but I'm not sure how to save it correctly because the GUI is in Chinese. Would someone be able to help me?

  p2xvdBz.png 

I know how to hack reminiscence, I tried both Ineditor and mjodev, guess what it works, if you want to translate to English then it's easy. I tried with my language:unknown.png?width=754&height=452

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...