Jump to content

Script Extraction Thread


Recommended Posts

On 1/28/2021 at 2:00 PM, Brandon DC115 said:

Hi i´m search a tool to translate Mashiro Iro Simphony use .DAT archives but i don´t know what tools to use

This might work
I havn't check it though
ましろ色シンフォニー sana edition will be released sometime in the future so you could wait it

https://web.archive.org/web/20190309075007/http://www.geocities.jp/hoku_hoshi/souko/souko078.html

Edited by rinnow
Link to comment
Share on other sites

  • 2 months later...

Hey together, I hope this is the right place. I have created a collection of tools for the game "Tropical Kiss" (https://vndb.org/v2516) and thought they might be helpful here. You can extract and repack all the .pak files the game uses as well as disassemble the scripts in the file called "Scenario.dat". And now I finally also managed to write a compiler that re-assembles the modified scripts to work for the game.

Link to the GitHub repository: https://github.com/Anonym271/ts-system-tools

The disassembled scripts are not really comfortable to write new scenarios with, but translation should be possible without any doubt. It is a rather old eroge, so I'm not sure if anyone is even interested in translating it or anything but I still thought this might be helpful here.

Link to comment
Share on other sites

  • 2 weeks later...
On 4/12/2021 at 3:45 AM, Anonym271 said:

Hey together, I hope this is the right place. I have created a collection of tools for the game "Tropical Kiss" (https://vndb.org/v2516) and thought they might be helpful here. You can extract and repack all the .pak files the game uses as well as disassemble the scripts in the file called "Scenario.dat". And now I finally also managed to write a compiler that re-assembles the modified scripts to work for the game.

Link to the GitHub repository: https://github.com/Anonym271/ts-system-tools

The disassembled scripts are not really comfortable to write new scenarios with, but translation should be possible without any doubt. It is a rather old eroge, so I'm not sure if anyone is even interested in translating it or anything but I still thought this might be helpful here.

I guess I am gonna do this...read the manga way back in time , it has several routes but only after princess Lover !

Link to comment
Share on other sites

Hi, I'm working on a translation of Dragon Knight 4 by élf. I have managed to extract .mes (game script) files from a file called "mes.arc" from the Windows version of the game. I have done this with GarBro, YUNOArcTools, and AE VN Tools. I can read and translate the text (currently translating in Seabose port town, village #6 in chronological order) but repacking it creates a huge .arc file (over 2x as big as the original one) that crashes the game.  As of now, I don't think I can do much but a text-only translation to be uploaded to Gamefaqs and the like, but I wanted to exhaust all options before giving up on hacking the game of DK4 itself. Going by AE VN tools, it seems DK4 for Windows has a proprietary file system, and AE can only read it, not write to it (the aforementioned exporting with AE was done in various .arc formats. that support reading and writing.) I've tried hacking the PC-98 .hdi file for DK4, but this is even harder.  I can provide more information if asked. I'm more knowledgable in Japanese than coding (though not fluent in Japanese, I have taken several years of classes.) So the help I need is technical. If anyone has any ideas, please do assist.

Link to comment
Share on other sites

On 4/21/2021 at 7:34 PM, Just Translate it said:

Can someone tell me how do I extract script for Princess Lover! vn...I have got a iso file for it...used winiso but there are several files and I don't know which one contains the script file for it....

Thanks!!!

I am not sure if I understood this correctly, but if you have the ISO of the game you should probably install it from this ISO first (mount it and then run the installer). After that navigate to the directory where you installed the game and then into "GameData". There you will find some .pack archives that contain the game files. You can unpack them using GARbro, but for repacking you will need to use another tool (I found this one after a quick search). The scripts are in the "data4.pack" archive, have a .s extension and are Shift-JIS encoded (I suggest editing them using Notepad++).

Link to comment
Share on other sites

On 4/25/2021 at 4:27 AM, ShintoCetra said:

Hi, I'm working on a translation of Dragon Knight 4 by élf. I have managed to extract .mes (game script) files from a file called "mes.arc" from the Windows version of the game. I have done this with GarBro, YUNOArcTools, and AE VN Tools. I can read and translate the text (currently translating in Seabose port town, village #6 in chronological order) but repacking it creates a huge .arc file (over 2x as big as the original one) that crashes the game.  As of now, I don't think I can do much but a text-only translation to be uploaded to Gamefaqs and the like, but I wanted to exhaust all options before giving up on hacking the game of DK4 itself. Going by AE VN tools, it seems DK4 for Windows has a proprietary file system, and AE can only read it, not write to it (the aforementioned exporting with AE was done in various .arc formats. that support reading and writing.) I've tried hacking the PC-98 .hdi file for DK4, but this is even harder.  I can provide more information if asked. I'm more knowledgable in Japanese than coding (though not fluent in Japanese, I have taken several years of classes.) So the help I need is technical. If anyone has any ideas, please do assist.

Are the original files smaller than 4 GB and the new ones bigger? If so, I guess the archive format only supports files up to 4 GB (2 GB may also be a possible limit). The format probably contains support for a compression algorithm that was used to compress the original archives but your repacker didn't implement this compression. This is why your new files are so much bigger and probably also why they exceed the maximum supported size of the archive format while the original ones didn't.

Link to comment
Share on other sites

1 hour ago, Anonym271 said:

Are the original files smaller than 4 GB and the new ones bigger? If so, I guess the archive format only supports files up to 4 GB (2 GB may also be a possible limit). The format probably contains support for a compression algorithm that was used to compress the original archives but your repacker didn't implement this compression. This is why your new files are so much bigger and probably also why they exceed the maximum supported size of the archive format while the original ones didn't.

Hi, thank you for responding. The original .arc file size is 4 MB (not GB). GarBro's repacked .arc file that crashes is 12.5 MB. I should clarify AE VN Tools usually extracts smaller .mes files that do repack properly, but they are presumably compressed as I cannot read the script within them. I've extracted/repacked with the .arc format "Will V2/V1" on Gabro, as they were the only .arc formats listed. With AE VN Tools, I've extracted with the .arc formats "Dragon Knight 4" "elf A16" and "Will v2", and repacked "elf A16" and "Will v2" that support repacking (again, the "Dragon Knight 4" format is read-only.) I tried all other .arc formats on AE, they did not produce results. Please let me know if you have any ideas, especially with either the repacking the .arc file and keeping the file size, or decompressing-then-recompressing the smaller .mes files.

Link to comment
Share on other sites

On 5/1/2021 at 5:08 AM, Anonym271 said:

I am not sure if I understood this correctly, but if you have the ISO of the game you should probably install it from this ISO first (mount it and then run the installer). After that navigate to the directory where you installed the game and then into "GameData". There you will find some .pack archives that contain the game files. You can unpack them using GARbro, but for repacking you will need to use another tool (I found this one after a quick search). The scripts are in the "data4.pack" archive, have a .s extension and are Shift-JIS encoded (I suggest editing them using Notepad++).

Hello thanks for replying, but the iso file is not for pc , it is PS2 iso file...I would attach a download link if you could help me with it...

Link to comment
Share on other sites

15 minutes ago, Just Translate it said:

Hello thanks for replying, but the iso file is not for pc , it is PS2 iso file...I would attach a download link if you could help me with it...

Oh, okay. This makes more sense now. I am pretty sure that is it not allowed to share pirated software here, but I will find my own way to the ISO ;)

Link to comment
Share on other sites

18 minutes ago, Anonym271 said:

Oh, okay. This makes more sense now. I am pretty sure that is it not allowed to share pirated software here, but I will find my own way to the ISO ;)

The iso contains a big .bin file , I believe it contains the script but I don't know how do I extract , so lt will be helpful if you can do it😊😊

Edited by Just Translate it
Link to comment
Share on other sites

On 5/2/2021 at 3:29 PM, Just Translate it said:

The iso contains a big .bin file , I believe it contains the script but I don't know how do I extract , so lt will be helpful if you can do it😊😊

Hm, the BIN file does not really have any obvious structure and also I am not very common with MIPS architecture (the one the PS2 uses). Do you really need the PS2 version? Because the files of the PC version are already well known...

Link to comment
Share on other sites

On 5/4/2021 at 11:49 PM, Anonym271 said:

Hm, the BIN file does not really have any obvious structure and also I am not very common with MIPS architecture (the one the PS2 uses). Do you really need the PS2 version? Because the files of the PC version are already well known...

The problem is that the pc version of this game is nowhere to be found , it is not available to even buy...and luckily I found the PS2 version of the same...o I was hoping to play it through emulator after I am done with scripts 😃😃

Link to comment
Share on other sites

On 5/4/2021 at 11:49 PM, Anonym271 said:

Hm, the BIN file does not really have any obvious structure and also I am not very common with MIPS architecture (the one the PS2 uses). Do you really need the PS2 version? Because the files of the PC version are already well known...

Hey bro , hopefully I found the pc version as you told I used Garbro to extract the files and yes I found the scripts but the link you shared to repack the script , I don't seem to understand that...can you give me some basic info how to perform the actions , plzz...I have been waiting for a long time to play this game in English translation...

Link to comment
Share on other sites

On 5/10/2021 at 7:55 PM, Just Translate it said:

Hey bro , hopefully I found the pc version as you told I used Garbro to extract the files and yes I found the scripts but the link you shared to repack the script , I don't seem to understand that...can you give me some basic info how to perform the actions , plzz...I have been waiting for a long time to play this game in English translation...

I guess the tool I sent you was actually for another version of the PACK files. But it looks like you found your solution in the data extraction thread already, right?

Link to comment
Share on other sites

Okay So I found a real awesome site that has a bunch if script unpacker and repackers. http://asmodean.reverse.net/pages/exmed.html and https://proger.me/vn/old/#arctool are great sites.

Looks like we finally get some decent tools for .MSD extraction and md_scr.med archive files. Inside are multiple scenario files and they are different types.

Upon extracting the main MSD archive file Each scenario is listed as a S001.MED, S002.MED, etc. You can not extract further. Extracting from an md_scr.me d archive will produce scripts with no extension, just a file name. An example would be 001_Ayana. However there is no extension and you can't extract further. So I'm kind of  looking for a universal text/script editor to translate and edit directory paths to images as I'm also doing decensor work. I tried pulling this into notepad++ but it looks like changing the encoding to JIS does not  do anything. Garbled mess most of the time. The .MSD files read better and I can see the lines in proper Japanese, but the directory trees that is supposed to show in script files are a garbled mess. Any scripts extracted from a md_scr.med archive won't even try to appear normal. Can't even see the lines to translate. Just garbage text. I think it has to do with computing language that's related to the games engine. In Notepad++ you can see how there is options for C++, python (in latest version), html, etc.  And I'm no sure which engine some of these games run on, nor am i sure of the scripting language that the games are programmed in. I think Notepad++ needs a plugin. But since I can't find any decent information I am in need of just a universal script editor that will work for any game's extract files.  The two archive files I listed above are archives from westvision's bakyuunyu kissa, released in 2006.(MSD archive type which I think uses kirikiri engine), and fudegaki-soft's Saiminjutsu series, starting with saiminjustsu3 and saiminjutsu 4. 

So what do I did to do? I don't want to use a different editor each time I'm want to use a different game.  Do I use a standard text editor or do I need some type of script editor? I'm in need of lot of help. And don't get me talking about games from Lune. I have been trying to edit script files from those games and they are a nightmare. All images for character sprites are x & y coordinates oriented when they are generated  on the screen. For Lune games image placement coordinate files have their own special script in a separate directory. That's why in the main scenario scripts may only call a back to an image file name but it won't call back to the coordinate files.  A long time ago I was able to kind of decipher in script files partially for Saiminjutsu 4 that the character's faces and body sprites are separate. Main scenario files usually call to only the sprite body. But the face is separate. An also depending on how zoomed in the character is there is may have a category for small and normal. But it's called back to a different script file which then has  it's own naming convention. But because script files are a garbled mess I can't see the call commands. I'm guessing. And this is why it's vital for me to see directory branch scripting and call back scripting properly when editing scripts.

So if anyone has any advise of a good text editor/script editor to use for both decensoring of images and for translating that would be really really helpful.

Link to comment
Share on other sites

Okay so an update. I was able to some what get notepad++ working to correctly show japanese for the script files that came from the md_scr.med file. NOw that I have gone and translated a short route and edited some pictures I am using exmed and merge_mpark2.exe to try to remerge the extracted script files back into an archive file called md_scr.med. But I don't know how.  the exmed.exe file works fine by draging and droping the archive to extract things. But I have no clue how to recompile. Help!

here is the original script file by Fudegaki soft.  Somebody give a wack at it and create a proper unpacker and repacker for the scenario archive file below. By the way I can't run python. I've tried to figure the damn thing out but I have no clue how it works. I'm a GUI type person.

https://drive.google.com/file/d/1RAorYKwc_QnMLUqPgyMVHywQaeTZLAH1/view?usp=sharing

Edited by Haiyami
Link to comment
Share on other sites

guys can I need help I wanted to translate Atelier Sakura Team.NTR games but everytime i repack after using garbro for .xp3 file and replace that with the game folder i get error . it maybe due to I'm using visual code studio editor to change the subtittles if so what should i use to change subtitles ? need help 

Link to comment
Share on other sites

On 5/26/2021 at 12:04 PM, Kcjpunk said:

guys can I need help I wanted to translate Atelier Sakura Team.NTR games but everytime i repack after using garbro for .xp3 file and replace that with the game folder i get error . it maybe due to I'm using visual code studio editor to change the subtittles if so what should i use to change subtitles ? need help 

Need a bit more information to help you there. What error?
What do you mean by subtitles, the movie subtitles or just the normal game text?
Are you repacking the whole scenario.xp3? If so, you should probably repack only your eddited files as a patch.xp3, patch2.xp3 or the next numbered patch available.

Edit: I've PM you as to not flood this thread. I can update it here when the problem is fixed for future reference.

Edited by darksshades
Link to comment
Share on other sites

1 hour ago, darksshades said:

Need a bit more information to help you there. What error?
What do you mean by subtitles, the movie subtitles or just the normal game text?
Are you repacking the whole scenario.xp3? If so, you should probably repack only your eddited files as a patch.xp3, patch2.xp3 or the next numbered patch available.

What I'm getting is .ks error with japanese text also just normal game text and I was trying to repack whole scenario.xp3 I didn't edit entire .ks files I only edited 3 or 4 lines I was trying to test it out before editing entire thing patch.xp3 didn't worked  I try to use patch2.xp3 . 

Link to comment
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...