gemot encubed  

Go Back   gemot encubed > Gemot > Production & Help

Production & Help For discussions regarding production aspects, especially localisation, of visual novels and related games.

Reply
 
Thread Tools Display Modes
  #16  
Old 2010-05-20, 10:20
dsp2003
Guest
 
Posts: n/a
Default

AnimED is capable of repacking SOFTPAL ADV SYSTEM archives since the v0.6.7.390 (2009.07.24), but it seems the Flyable Heart uses newer modification... never mind, implemented it in about 10 minutes. ^_^ For the archive creation, select SOFTPAL ADV SYSTEM PAC-32. The only difference between older PAC-16 is the length of filename field. :3

The DL link: http://wks.arai-kibou.ru/download/an..._2010_05_21.7z

P.S. Bad news: I was finally able to test my script reconverter with the VN itself, and unfortunately, the game crashes. It's not my fault though, it seems the first byte of text.dat is not the part of the header itself but rather an checksum(?), which is not possible to calculate without EXEcutable's reverse engineering.

Last edited by dsp2003; 2010-05-20 at 12:31.
Reply With Quote
  #17  
Old 2010-05-20, 11:55
Unregistered
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by dsp2003 View Post
it seems the first byte of text.dat is not the part of the header itself but rather an checksum
What makes you think so? If you check the other .dat files, it's the same for all of them.
Maybe you forgot to fix the offset values in the .src file?
Simply fixing them is easy and worked for me, but if you want to insert new lines instead of just changing the old ones you'll probably have to reverse most of the bytecode in script.src. The basic structure is very simple, but it's still quite some work.
Reply With Quote
  #18  
Old 2010-05-20, 12:16
dsp2003
Guest
 
Posts: n/a
Default

Unregistered, I truly beg your pardon. Further debugging revealed that I didn't paid attention to script.src. More than that, I've found that text.dat itself is encrypted in the game (all this time I only had access to the zipped script file uploaded at the first post of this topic, which wasn't). Yeah-yeah, shame on me... -_-

The archive repacker works for non-modified files though, since the extraction and "compression" are utilising raw mode (i.e. with no encode\decode).
Reply With Quote
  #19  
Old 2010-05-20, 15:15
Unregistered
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by dsp2003 View Post
AnimED is capable of repacking SOFTPAL ADV SYSTEM archives since the v0.6.7.390 (2009.07.24), but it seems the Flyable Heart uses newer modification... never mind, implemented it in about 10 minutes. ^_^ For the archive creation, select SOFTPAL ADV SYSTEM PAC-32. The only difference between older PAC-16 is the length of filename field. :3

The DL link: http://wks.arai-kibou.ru/download/an..._2010_05_21.7z

P.S. Bad news: I was finally able to test my script reconverter with the VN itself, and unfortunately, the game crashes. It's not my fault though, it seems the first byte of text.dat is not the part of the header itself but rather an checksum(?), which is not possible to calculate without EXEcutable's reverse engineering.
Thank you. I think the repacker is quite enough. Good luck on debugging the text tool!

Quote:
If you just want to test your edited script files in the game: some Anon posted tools for that on /jp/, somewhere in this thread: http://archive.easymodo.net/cgi-boar...thread/5096685

He also said he'll take care of repacking, so you'd probably be best off following the FH threads on /jp/.
That would be helpful if I wanted to translate the full game. I wanted to translate the trial though. [Less text, no apparent choices...]
Reply With Quote
  #20  
Old 2010-05-20, 15:26
Unregistered
Guest
 
Posts: n/a
Default

Quote:
Unregistered, I truly beg your pardon. Further debugging revealed that I didn't paid attention to script.src. More than that, I've found that text.dat itself is encrypted in the game (all this time I only had access to the zipped script file uploaded at the first post of this topic, which wasn't). Yeah-yeah, shame on me... -_-
Oops, found out too late...
Reply With Quote
  #21  
Old 2010-05-20, 16:46
Vivio's Avatar
Vivio Vivio is offline
Visitor
 
Join Date: May 2010
Posts: 1
Default

This is getting too confusing. I'm making an account.
Quote:
Originally Posted by dsp2003 View Post
More than that, I've found that text.dat itself is encrypted in the game (all this time I only had access to the zipped script file uploaded at the first post of this topic, which wasn't).
I checked out the encryption. It's a simple 4-byte XOR cipher with some initial rotations.

1) Take the first 4 byte block (after the 16 byte .dat header).
2) ROL the first byte of that block (x+3) times, where x is the block number. That means you ROL the first byte in the first block 4 times and the first byte in the second block 5 times, and so on. When you reach 255 ROLs, start at 0 again (0, not 4!).
3) XOR each block with 0x9D85D5F7.

That's all. All .dat's are encrypted that way.

EDIT: I made something to take care of that.

http://www.mediafire.com/?0emdymmw21j

Syntax: fhcrypt.exe input.dat output.dat
This script will automatically determine if decryption or encryption is needed. Source code is included.

Last edited by Vivio; 2010-05-21 at 10:38.
Reply With Quote
  #22  
Old 2010-05-21, 17:27
ムム
Guest
 
Posts: n/a
Default

Quote:
I checked out the encryption. It's a simple 4-byte XOR cipher with some initial rotations.

1) Take the first 4 byte block (after the 16 byte .dat header).
2) ROL the first byte of that block (x+3) times, where x is the block number. That means you ROL the first byte in the first block 4 times and the first byte in the second block 5 times, and so on. When you reach 255 ROLs, start at 0 again (0, not 4!).
3) XOR each block with 0x9D85D5F7.

That's all. All .dat's are encrypted that way.

EDIT: I made something to take care of that.

http://www.mediafire.com/?0emdymmw21j

Syntax: fhcrypt.exe input.dat output.dat
This script will automatically determine if decryption or encryption is needed. Source code is included.
I'm not a genius at using this kind of programs, so would any spare their time to guide me on using this?
Reply With Quote
  #23  
Old 2010-05-22, 04:51
ムム
Guest
 
Posts: n/a
Default

Quote:
I'm not a genius at using this kind of programs, so would any spare their time to guide me on using this?
Nevermind, found out.

Though apparently editing the lines and testing them results in either messed up text or none at all, and/or crashing. Will tinker around with the files again~.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help extracting Little Busters! Ecstasy's script jyuichi Production & Help 3 2023-02-28 23:10
Help extracting script for Kanogi Unregistered Technical Issues 0 2012-07-21 22:10
Help with extracting Script Unregistered Production & Help 0 2011-03-29 19:59
To Heart ThatGuy General Discussion 1 2008-07-31 03:44
To Heart script extraction Krunch Technical Issues 0 2007-11-26 00:08


All times are GMT -8. The time now is 05:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2023, vBulletin Solutions, Inc.