XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Nov 24, 2017 2:21 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: The Surge .toc/.dat
PostPosted: Tue May 16, 2017 11:50 am 
Offline
advanced

Joined: Mon Feb 14, 2011 8:09 am
Posts: 78
Has thanked: 18 times
Have thanks: 40 times














You can make the ads go away by registering

Code:
comtype lz4f
endian big
goto 0x5A
get DAT_NAME_SIZE short
getdstring DAT_NAME DAT_NAME_SIZE
string DAT_NAME += "_"
xmath ZERO_SIZE "4 - (DAT_NAME_SIZE % 4)"
if ZERO_SIZE < 4
   getdstring DUMMY ZERO_SIZE
endif
get DATS byte
get FILES long
math DAT_INDEX = -1
for i = 0 < FILES
   getdstring DUMMY 0x0E
   get NAME_SIZE short
   getdstring NAME NAME_SIZE
   xmath ZERO_SIZE "4 - (NAME_SIZE % 4)"
   if ZERO_SIZE < 4
      getdstring DUMMY ZERO_SIZE
   endif
   get OFFSET long
   if OFFSET == 0
      math DAT_INDEX += 1
      string NAME_INDEX p= "%01d" DAT_INDEX
      set NEW_DAT_NAME string DAT_NAME
      string NEW_DAT_NAME += NAME_INDEX
      string NEW_DAT_NAME += ".dat"
      open FDSE NEW_DAT_NAME 1
   endif
   get ZSIZE long
   get SIZE long
   getdstring DUMMY 0x0A
   clog NAME OFFSET ZSIZE SIZE 1
next i


Top
 Profile  
 
 Post subject: Re: The Surge .toc/.dat
PostPosted: Sat Jul 22, 2017 11:05 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2155
Location: Nexus, searching for Jim Kirk
Has thanked: 426 times
Have thanks: 1100 times
thx!


Attachments:


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


_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
 Post subject: Re: The Surge .toc/.dat
PostPosted: Thu Aug 10, 2017 10:38 am 
Offline
beginner

Joined: Mon Dec 27, 2010 9:24 pm
Posts: 30
Has thanked: 0 time
Have thanks: 4 times
Is there any chance I could get one of you wonderful people to figure out how to decompress/decompile The Surge's .bin files?
Linked is a rar with the lot of them (it's not very big, only like 9mb).

https://www.dropbox.com/s/b3r4k9uxg64ql ... n.rar?dl=0


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 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