XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Apr 28, 2017 9:14 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Deep Black Reloaded [.bsrt files]
PostPosted: Sun Apr 01, 2012 3:15 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Wed Apr 07, 2010 7:38 pm
Posts: 197
Has thanked: 35 times
Have thanks: 5 times














You can make the ads go away by registering

Global.pack contains .bsrt files, which contain some of the texts of the game. Is there a way to edit them?
I've attached one of the .bsrt files.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu


Top
 Profile  
 
 Post subject: Re: Deep Black Reloaded [.bsrt files]
PostPosted: Sun Apr 01, 2012 6:28 pm 
Offline
double-veteran
double-veteran

Joined: Mon Aug 24, 2009 10:55 pm
Posts: 984
Has thanked: 74 times
Have thanks: 588 times
I've taken a look at the file. Has a strange structure with some kind of referrers. Tried to extract the contents but something's wrong with the offsets and sizes.
If anyone wants to take a look at what I've done:
Code:
idstring "BSRT"
get FILES1 long # names
get UNK long
get FILES2 long # referrers
get INFOOFF long # sizes/offsets
set NAMEOFF 0x1c
set DATA FILES2
math DATA *= 0xc
math DATA += INFOOFF
set i 0
goto INFOOFF
for k = 1 <= FILES2
   get FILE long
   get UNK long
   get OFFSET long
   if FILE == 0
      append
      log MEMORY_FILE NAMEOFF 0x40
      append
      math NAMEOFF += 0x48
      math OFFSET += DATA
      set WRITEPOS i
      math WRITEPOS *= 4
      putVarChr MEMORY_FILE2 WRITEPOS OFFSET long
      math i += 1
   endif
next k
# get SIZE asize MEMORY_FILE
# log "NAMES_MEM" 0 SIZE MEMORY_FILE
# get SIZE asize MEMORY_FILE2
# log "OFFSETS_MEM" 0 SIZE MEMORY_FILE2
set NAMEOFF 0
goto 0 MEMORY_FILE2
for i = 1 <= FILES1
   get OFFSET long MEMORY_FILE2
   savepos MYOFF MEMORY_FILE2
   if i != FILES1
      get SIZE long MEMORY_FILE2
   else
      get SIZE asize
   endif
   math SIZE -= OFFSET
   goto NAMEOFF MEMORY_FILE
   getDstring NAME 0x40 MEMORY_FILE
   string NAME += ".txt"
   savepos NAMEOFF MEMORY_FILE
   log NAME OFFSET SIZE
   goto MYOFF MEMORY_FILE2
next i

_________________
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: zlksmlnu, Zoetropes and 9 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