Takeshi Posted April 19, 2015 Posted April 19, 2015 Oh, don't worry, there is a prelude part, with some text and choices before the video, you can have a view of what look like the display if that's the question. (The first video doesn't appear at the very beggining). Basically, I just replaced all the content of the heaviests archives with the smallest file of each original archive, you will only hear 1 sound and see 1 picture with the text. Thank you again for giving it a look Quote
Kelebek1 Posted April 19, 2015 Posted April 19, 2015 Ok yeah it's just compression, not encryption. I haven't made a decompresser yet, but here's the decompressed file: http://a.pomf.se/ixanzt.rar EDIT: Ok, made a decompresser and a fake compressor: http://a.pomf.se/qfzmbb.rar Usage is: Phantom_de_comp.exe [-e/-c] <infile> -e: Extract <infile> -c: Compile <infile> So just give it sn.bin as "Phantom_de_comp.exe -e sn.bin" to extract it, then "Phantom_de_comp.exe -c sn_decomp.bin" or whatever name it has after you edit it. sn_new.bin will be your fake compressed file to use in the game. The terrible code I'm using is just ripped from the game, but here if you want to make it better: http://pastebin.com/bg32gpXG- The compressor just adds a 0xFF byte every 8 bytes, so the game just copies the file directly and doesn't use the ring buffer. Quote
Takeshi Posted April 19, 2015 Posted April 19, 2015 Wow, you're great, I tried your program and it seems it works, but strangely, I can't edit the file. More precisely, I open the uncompressed file with notepad++, indicate the character setting to Japanese Shift JIS, find the first line (殺される), but whatever I put into this line, when I recompile the file, the game runs, but when I click on 'Start', the screen goes black and returns to the menu. So the last question is how you edited it ? Why is there still weird text and symbols around the game's text in the decrypted file ? (And did you run the game in standard locale or Japanese locale ?) So really, thank you for your work, I will add the translation of this novel to my projects (in fact it's the next one) Quote
Kelebek1 Posted April 19, 2015 Posted April 19, 2015 Well there's still a lot more to the file than just compression. Looks like some custom bytecode, in which case there's probably jump locations in the script, which break if you change the sizes of strings. I just edited the bytes that were there, and didn't change the size. It reads the script opcodes at base + 0x2F7FC. Opcode 0x45 is text. Quote
Takeshi Posted April 20, 2015 Posted April 20, 2015 So basically any replacement and original must have exactly the same size in bytes... Do you think there's'a way to edit it simply ? I even tried to erase a kana from the text and then rewrote it, it didn't work. EDIT : Ok I figured out how you did the modifications, not only there's the size restriction but also find the bytes sequences and replace them with encoded text sequences is pretty long... I hope there's a way to indicate the lines' size inside the bin, otherwise we'd have to edit the executable, and that'd be a completely different story... EDIT 2 : Well I worked on the binary file, I've noted ome patterns for displayed lines : (all the independant valors are hexadecimal, the names and lines are encoded either in Japanese Shift JIS either in ASCII (S JIS characters use 2 bytes each) ) Narrative parts : [sometimes similar pre-sequence] 00 45 [beta sequence] [line1] [closure sequence] (45 [following beta sequence] [following line] [closure sequence]...) Voiced lines : [sometimes similar pre-sequence] 90 0D 00 [character name] 00 44 [alpha sequence] 59 45 [beta sequence] [line1] (25 E4 [second part if separated]) [closure sequence] The parts in brackets () are optional Alpha sequence : for voiced lines, indicate which audio file take in vo.afs Beta sequence : line number. For the voiced lines, even those containing two lines separated by a '25 E4' have only 1 alpha sequence and 1 beta sequence ; but as narrative parts contain a lot of separated lines (see above) each line has its own beta sequence Closure sequence : 00 4A FF FF 6A FF FF FF FF 49 FF FF FF FF : the same throughout the whole file The pre-sequences are different for narrative and voiced lines, and aren't the same throughout all the file I named the alpha and beta sequences arbitrarily on my draft, they have some kind of specific form, but they have a logical order I still haven't found the string lengths in the binary file, I'm continuing to search, but I'm afraid that they could be in the executable If anything is unclear in what I said just ask me. Btw, maybe I should open a separated topic ? Anyway, I keep trying to decode the file, if you have anything new, please tell me EDIT 3 : Mea culpa, the beta sequence isn't a global counter of lines, it is reinitialized each time a scene ends. Which means, by counting occurence of the first beta sequence (+opcode) : "45 FF FF 00 00" that there are 94 scenes, of variable sizes. But I confirm that alpha sequences are indicators for voice files. And there's one more thing, I tried to add a byte in one of the very last lines, and it crashed instantly, which means that the program loads the whole binary file at the very beggining, and compare all the string lenghts in the same time. Quote
Efrieh Posted April 29, 2015 Posted April 29, 2015 I extracted Rio.arc from "If My Heart Had Wings" with exoozoarc but the ws2 Files seem to be encrypted or corrupted. Has somebody managed to get the scripts? Quote
CryingWestern Posted April 29, 2015 Posted April 29, 2015 Yeah, if you paid attention to some previous posts, we said what to do. However if you don't know how to use a hex editor just upload the files on mediafire, then and post them. Quote
Kelebek1 Posted April 29, 2015 Posted April 29, 2015 EDIT 3 : Mea culpa, the beta sequence isn't a global counter of lines, it is reinitialized each time a scene ends. Which means, by counting occurence of the first beta sequence (+opcode) : "45 FF FF 00 00" that there are 94 scenes, of variable sizes. But I confirm that alpha sequences are indicators for voice files. And there's one more thing, I tried to add a byte in one of the very last lines, and it crashed instantly, which means that the program loads the whole binary file at the very beggining, and compare all the string lenghts in the same time. Quote
Efrieh Posted April 29, 2015 Posted April 29, 2015 Yeah, if you paid attention to some previous posts, we said what to do. However if you don't know how to use a hex editor just upload the files on mediafire, then and post them. Quote
Takeshi Posted April 29, 2015 Posted April 29, 2015 Kelebek1 : It's all ok, binaryfail gave me a tool to unpack the parts of the decompressed file, and another tool to track the opcodes that the game calls while running the game, I'm currently writing some code to extract the strings into a file and then repack new file by modifying the 'goto' locations in the file. As you said, it's long and boring, but up until now, I'm done with the first script file (there are 98 script files, and 94 of them contain strings, for a total of 20106 lines (plus the choices that I didn't take into account for now) and the script my code can handle only contain 142 lines ) Btw, the extracting/repacking tool I'm writing will use the extractor you gave me, can I add your name in the credits ? Quote
SpiduhBMX Posted May 6, 2015 Posted May 6, 2015 So, i'm trying to get the text for Tokyo Alice to give to someone to translate it. I extracted the .xp3 files with xp3tools and got a bunch of compiled .pyc files. Then i decompiled the .pyc files and got a bunch of .pyc_dis. I don't know what to do with the .pyc_dis files, or which file is the text, or even if i've extracted the right files. Any help? Quote
yfytdasnp0822 Posted May 17, 2015 Posted May 17, 2015 Does anyone know how to extract the background music from eden*? The music is in a file called "bgm.paz" I tried using arc_conv, Asmodean's tool, ExtractData and Crass without success Quote
Guest Posted May 17, 2015 Posted May 17, 2015 http://asmodean.reverse.net/pages/exef2paz.html Asmodean has a tool for .paz, and for eden. It didn't work ? Quote
BananaShiki Posted May 17, 2015 Posted May 17, 2015 Anyone know how to extract sprites from the PSP/PS2 versions of Amagami? I have all files from the game and most of them seem to be .xml but I have no idea how to do this. Quote
CryingWestern Posted May 18, 2015 Posted May 18, 2015 Not many image converters for psp/ps2 games. Quote
stalinchan Posted May 18, 2015 Posted May 18, 2015 I managed to extract the file's from the Rio.arc in "Cocoro@Function!" but I don't know how to decrypt the ws2 file's using hexeditor Rio.Arc Quote
CryingWestern Posted May 19, 2015 Posted May 19, 2015 You need to "rol it by 0x06". Also archive your them before putting them up, not all of us(me) can download the files all at once, because we need an upgraded membership. Quote
stalinchan Posted May 19, 2015 Posted May 19, 2015 I'm sorry but I don't know how to roll the byte's in hexediter. I put the folder into a rar file and uploaded it here Rio.arc Quote
CryingWestern Posted May 19, 2015 Posted May 19, 2015 http://www.mediafire.com/download/7y1x3pd2ytgv17d/RIO(2).rar Here are the scripts, decrypted. Quote
doppel222 Posted May 21, 2015 Posted May 21, 2015 Here I am having a request again. Is there someone who can help me to identify which file contain the scripts and extract it for me. Game: White Album AlbumModeParts.pck BGM.pck Caution_autosave.tex CautionParts.tex Font.pck GuideParts.tex MovieReplayParts.tex MusicModeParts.tex OptionParts.tex PatternFade.pck SPVoice.pck SSMP_logo.tex STING_logo.tex SystemSE.pck thumbnails.tex TitleParts.tex VoiceMessageParts.pck AMP.pck BG.pck CalendarParts.tex EventList.bin GameParts.tex LipSync.pck MoveSelectParts.tex PanelList.bin Script.sdat SE.pck Voice.pck Quote
CryingWestern Posted May 21, 2015 Posted May 21, 2015 .......... the one that says, script.sdat Quote
doppel222 Posted May 21, 2015 Posted May 21, 2015 That's also my guess. I just want to make sure. The game already have a chinese translation but I don't know what kind of program they used for it. I hope you can help me (again) with this script. Quote
CryingWestern Posted May 21, 2015 Posted May 21, 2015 Haven't used that type before, so someone else might be able to help you. Quote
doppel222 Posted May 21, 2015 Posted May 21, 2015 Haven't used that type before, so someone else might be able to help you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.