Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Paradise Lost *.DAT (Need little help with BMS script)

Featured Replies

  • Author
  • Localization

StreamThread, posted Fri Jun 10, 2016 10:25 pm (14257)


Hello

Paradise Lost it is Based PC Arcade Machine port of Far Cry Instincts game from XBOX.
All game archives structure is same as in Far Cry Instincts. But this port also include non game used *.NFO files, in which can found full filenames by Hashes:
Image

I'm try to modify unpack BMS script for using these filenames in unpacking.
But extracting only first file from archive:
Image

Code:
Open FDDE FAT 1 
Open FDDE NFO 2
GetDString MW 4 1
Get FN Long 1
For i = 0 Get Off Long 1
Get Size Long 1
Get Hash Long 1
SavePos CP 1
FindLoc NP Long Hash 2
GoTo NP 2
Get NPO Long 2
Get FName String 2
Log FName Off Size 0 0
GoTo CP 1
Next i


I'm first time use Quick BMS. You can say where I make error?
  • Author
  • Localization

aluigi, posted Sat Jun 11, 2016 1:05 pm (14283)


It's better if you provide the whole nfo file and at least the first 2 megabytes of the dat one (you can use the filecutter script to create the small file).
  • Author
  • Localization

StreamThread, posted Sat Jun 11, 2016 4:54 pm (14302)


Ok, i'm upload a full weaponpack.dat with FAT and NFO files: http://www.mediafire.com/download/pw99a ... ponPack.7z

My modified script work with all archives and correctly export first file from any archive, as can see on previous screen. I'm still not understand where my error. I'm try with "While Do" construction instead "For" and it's same export only first file.
  • Author
  • Localization

StreamThread, posted Sat Jun 11, 2016 8:35 pm (14311)


Thanks.

Well, now what about supporting extraction with filenames from main Instincts, evolution, vengeance games? :)
These games not have NFO files, but filenames can been found in XML files from DAT in this structure:

Code:

       
       
       
       
       
   


Is possible to use these CRC info's for getting filenames? Personally I have no luck with it. But while I do not have more experience in this.


Of course, in dreams, support of Far Cry Instincts Predator archives will be best =)
  • Author
  • Localization

aluigi, posted Sat Jun 11, 2016 9:00 pm (14312)


That's not part of the format.
That one is one of the N files inside the archive.
You can only rely on the information coming from the format and not on random files in it.
  • Author
  • Localization

StreamThread, posted Sun Jul 31, 2016 10:56 am (15979)


I got it)
My working script for Far Cry Instincts Predator

Code:
Open FDDE FAT 1 
GetDString MW 4 1
Get FN Long 1
comtype lzma86dechead
For T = 1 To FN
Get Off Long 1
Get ZSIZE Long 1
Get SIZE Long 1
Get Hash Long 1
if Size != ZSIZE
clog "" Off ZSIZE SIZE 0
else
log "" off SIZE 0 0
endif
Next T



aluigi, you can update your main FAT2_FAT3 script using logic from my script.
Structure of FCIP FAT files have little differences: 16 bytes per file instead 12 bytes like in XBOX Far Cry Instincts. Same 3 longs for Offset, Size, CRC and additional long for compressed size.
In DAT archives some files have lzma compression, some uncompressed.
  • Author
  • Localization

aluigi, posted Sun Jul 31, 2016 5:01 pm (16003)


I'm a bit confused, wasn't my script already compatible with the sample you provided?
  • Author
  • Localization

StreamThread, posted Sun Jul 31, 2016 5:58 pm (16005)


aluigi wrote:
I'm a bit confused, wasn't my script already compatible with the sample you provided?


Emm..

On this topic I provide samples only from Paradise Lost game, which identical with Far Cry instincts, Evolutions, Vengeance. Your script is compatible with all of them.
But not with Instincts Predator, because structure is little changed. Because of this I offer update your script. Don't worry, my script is 100% working)
But if you guide by rule "trust but check", samples for Instincts Predator I provided in Far Cry Instincts Predator thread)
  • Author
  • Localization

aluigi, posted Sun Jul 31, 2016 7:04 pm (16008)


Yeah I need a sample because I have to instruct my script to recognize/guess the format :)
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.