XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Aug 19, 2017 6:00 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Darkness Within BIN files
PostPosted: Wed May 26, 2010 8:38 pm 
Offline
beginner

Joined: Tue Mar 02, 2010 7:29 pm
Posts: 25
Has thanked: 8 times
Have thanks: 3 times

Hi,

I would like to translate this game into spanish but i cannot open the bin files. I have tried everything, I think, but nothig. :(

There is a some-like BMS script for this game and its bin files?

I have uploaded a Bin file, the smallest one, to Megaupload.

File

Thanks.

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Thu May 27, 2010 2:08 pm 
Offline
VVIP member
VVIP member
User avatar

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 1925
Location: www.ZENHAX.com
Has thanked: 4 times
Have thanks: 629 times
Code:
get DUMMY long
for FILES = 0
    get DUMMY long
    if DUMMY == 0
        break
    endif
    get SIZE long
    get NAMESZ byte
    getdstring NAME NAMESZ
next FILES

savepos OFFSET
goto 4
for i = 0 < FILES
    get DUMMY long
    get SIZE long
    get NAMESZ byte
    getdstring NAME NAMESZ
    string NAME += _
    string NAME += i
    string NAME += ".lua"
    log NAME OFFSET SIZE
    math OFFSET += SIZE
next i


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Thu May 27, 2010 7:47 pm 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 76 times
I think, you are looking for the "local.bin" file, whitch has this structure:

Code:
   -> Header: (4 bytes)
         NrofFiles : WORD;
         Unknown : WORD; // $1000
   -> Directory: (NrOfFiles * 16 bytes)
       for each file:
       -> FileID : DWORD;
       -> RelativeFilePos : DWORD; // from the Start of The "File Data"
       -> FileSize : DWORD; // size of the file, no compression used
       -> CheckSum : DWORD; // the negative of the data's CRC32 value
   -> File Data...

The game text file is the file with FileID 0xFCD0A552

I also created a primitive BIN extractor for the "local.bin" file

Usage: darkeXtr.exe <BIN_File> <TargetDir>
example: darkeXtr.exe local.bin e:\temp\target

A .BIN updater also included!

Usage: darkUpdater.exe <BIN_File> <DataFile_to_Update> <IDnumber>
example: darkUpdater.exe local.bin e:\mytranslation\mytext.txt FCD0A552


Last edited by bacter on Thu Jun 23, 2011 6:40 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Sun May 30, 2010 3:08 pm 
Offline
beginner

Joined: Tue Mar 02, 2010 7:29 pm
Posts: 25
Has thanked: 8 times
Have thanks: 3 times
Firstly, thanks to both for your support.

You're right bacter, this is the file I needed to translate the game. Anyway, always is a good idea to explore all the files to see if there are some files to change as well. Really there are a couple of files out of Local to change but local.bin is what I needed. Really, you're great! with your executable all bin files has been decompressed, except scripts.bin, but without your updater executable an effective translation would have been impossible. Really, you're great!

Best regards!


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Sun May 30, 2010 4:32 pm 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 76 times
Important!
I found a bug in the previous version of my BIN updater, so I replaced it with a new,
hopefully bugfree version!


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Wed Jun 30, 2010 4:35 pm 
Offline
ultra-n00b

Joined: Wed Jun 30, 2010 4:58 am
Posts: 1
Has thanked: 1 time
Have thanks: 0 time
Hi guys, I have a problem. After updating the file, the game continues in English. So I extracted the local.bin file again and noticed the file FCD0A552 is the same that I translated. Does anyone know why the game was not translated? It is necessary do more than update local.bin? Thanks :keke:


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Wed Jun 30, 2010 10:05 pm 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 76 times
I created the GUI version of the BIN extractor,updater. Try that. I hope it's not too hard to use.
See the Darkness Within 2 forum topic: http://forum.xentax.com/viewtopic.php?f=10&t=4530&p=40053#p40053


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Mon Jul 12, 2010 8:34 pm 
Offline
ultra-n00b
User avatar

Joined: Tue Jun 29, 2010 3:48 pm
Posts: 6
Has thanked: 3 times
Have thanks: 0 time
hi mate the tool work almost all files but one :( and i think the text files are there its the scripts.bin i send a photo of the error that give me :

http://img682.imageshack.us/img682/7911/erroo.png

please can you fix this on your tool to read that file ? :(


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Tue Jul 13, 2010 4:52 am 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 76 times
Hey!
Why don't you read carefully this topic?

My proggy not supports the scripts.bin file, because it uses a completely different structure, and because there are no useful game resources in that file.
There are no images, text files etc. It contains only compiled lua scripts. I don't think that anyone wants to edit them.
But, if you REALLY need the files inside the script.bin, you need to use the QuickBMS program.
See the comment of aluigi, (second entry of this topic) posted at: Thu May 27, 2010 2:08 pm
If you are looking for the ingame texts, then see my comment (third entry of this topic) posted at: Thu May 27, 2010 7:47 pm


Top
 Profile  
 
 Post subject: Re: Darkness Within BIN files
PostPosted: Wed Jul 14, 2010 2:21 pm 
Offline
ultra-n00b
User avatar

Joined: Tue Jun 29, 2010 3:48 pm
Posts: 6
Has thanked: 3 times
Have thanks: 0 time
tks mate my bad tks a lot for the answer :keke:



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot], lovosolitario13 and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group