gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

Technical Issues For bug reports, problem solving, and help running Japanese software.

Reply
 
Thread Tools Display Modes
  #1  
Old 2008-06-08, 06:21
Ojamajo_LimePie's Avatar
Ojamajo_LimePie Ojamajo_LimePie is offline
Local
 
Join Date: Jun 2008
Posts: 103
Default Script Extraction Help - Ashita no Kimi to Autame Ni

I'd like to translate Purple Software's Ashita no Kimi to Autame Ni. Unfortunately, I can't figure out how to extract the script. I can use ExtractData to unpack the CPZ files, but they turn into PS2 files, which I can't find a way to open. Is there a way to turn these into TXT files or something similar? I'd just like something I can easily translate line-by-line, minus messing around with any encoding (which I'll worry about once I actually finish the initial scripts.)
Reply With Quote
  #2  
Old 2008-06-08, 13:23
roxfan roxfan is offline
Local
 
Join Date: Jan 2004
Posts: 101
Default

Can you post some of the smaller/obviously script files? And the main executable, if it's not too big.
Reply With Quote
  #3  
Old 2008-06-08, 23:40
Ojamajo_LimePie's Avatar
Ojamajo_LimePie Ojamajo_LimePie is offline
Local
 
Join Date: Jun 2008
Posts: 103
Smile

Can do! I've made a ZIP containing three sample files, and attached it to this post. The EXE was just a tiny bit too big to attach, so I uploaded it here. Hopefully, I did everything correctly.

Thanks for your help.

Last edited by Ojamajo_LimePie; 2009-03-31 at 23:18.
Reply With Quote
  #4  
Old 2008-06-12, 18:36
roxfan roxfan is offline
Local
 
Join Date: Jan 2004
Posts: 101
Default

Okay, I'll have a look...
Reply With Quote
  #5  
Old 2008-06-17, 02:20
Rasqual Twilight's Avatar
Rasqual Twilight Rasqual Twilight is offline
Local
 
Join Date: Mar 2004
Location: ゆめ・が・かなう・場所
Posts: 195
Default

Quote:
解析しちゃう悪い子はお仕置きなんだよ、メッ!♪…誰に言ってるの?
Header size is 48 bytes.
[0x24] is compressed size
[0x28] is uncompressed size
[0x2C] zero?

Decompression algorithm should be the same as usual, untested:
Quote:
Originally Posted by insani/AGS Majipuri demo uncompress algo
Code:
n = 0x7df;
tmp_store = 0;
{
3:
	num = store;
	num >>= 1;
	tmp_store = num;
	if (*((char *)num+1) != 0) { goto 1; } //test ah, 1
	if (src == end_of_src) { break; }
	long1 = src[i];
	++i;
	long1 |= 0x0FF00;
	tmp_store = long1;
1:
	if (*((char *)tmp_store) & 1) { goto 2; } //test byte store, 1
	if (src == end_of_src) { break; }
	long1 = src[i];
	++i;
	dest[ii] = *((char *)long1);
	++ii;
	scratch[iii] = *((char *)long1);
	++iii;
	++n;
	n &= 0x7ff;
	goto 3;
2:
	if (src == end_of_src) { break; }
	long2 = src[i];
	++i;
	if (src == end_of_src) { break; }
	long1 = src[i];
	long3 = long1;
	long3 &= 0x0e0;
	long3 <<= 3;
	long1 &= 0x1f;
	long4 |= long3;
	++i;
	++long1;
	long3 = long1;
	long1 = 0;
	//js goto 3;
4:
	long5 = long1+long4;
	long5 &= 0x7ff;
	long5 = scratch+long5;
	dest[ii] = *((char *)long5);
	++ii;
	scratch[n] = *((char *)long5);
	++n;
	n &= 0x7ff;
	++long1;
	if (long1 <= long3) { goto 4; }
	goto 3;
}
Attached Files
File Type: zip purple_analysis.zip (3.0 KB, 143 views)
__________________
ヴゥぃ! V - AniDB latest votes


Last edited by Rasqual Twilight; 2008-06-17 at 07:39.
Reply With Quote
  #6  
Old 2008-06-17, 19:20
roxfan roxfan is offline
Local
 
Join Date: Jan 2004
Posts: 101
Default

Here's a working decryptor/unpacker/dumper. Don't know when/if I can get time to dig through bytecode interptreter, but this should at least allow you to start on the translation.
Attached Files
File Type: zip asukimi_001.zip (33.9 KB, 183 views)
Reply With Quote
  #7  
Old 2008-06-17, 19:34
Ojamajo_LimePie's Avatar
Ojamajo_LimePie Ojamajo_LimePie is offline
Local
 
Join Date: Jun 2008
Posts: 103
Default

Thanks for all your hard work!
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
Little Busters! Graphic and Audio Extraction Sieg Production & Help 29 2008-10-22 02:36
Kimi ga Nozomu Eien And Issues With rUGP Airrider Technical Issues 3 2008-06-24 11:32
Yume Miru Kusuri game data extraction Unregistered Technical Issues 8 2007-11-27 03:23
To Heart script extraction Krunch Technical Issues 0 2007-11-25 23:08
Kimi Ga Nozomu Eien Patch talvon General Discussion 9 2004-03-04 13:00


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


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.