Need for Speed No Limits BARG Files

Textures, recreate headers, conversions, algorithms and parsing of image files
Cornal_Ec
Posts: 36
Joined: Fri Jun 24, 2016 6:26 am

Need for Speed No Limits BARG Files

Post by Cornal_Ec »

Hi everyone, is possible create a script to convert the BARG files to .PNG.
Here some samples:
Textures.rar


Thanks and Regards.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Need for Speed No Limits BARG Files

Post by Acewell »

they're just pngs without extension and some with custom bytes before header :D

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get SIZE asize
get NAME basename
string NAME + .png
get MAGIC long
if MAGIC == 0
   math OFFSET = 0x10
   math SIZE - 0x10
else
   math OFFSET = 0x0
endif
log NAME OFFSET SIZE
Cornal_Ec
Posts: 36
Joined: Fri Jun 24, 2016 6:26 am

Re: Need for Speed No Limits BARG Files

Post by Cornal_Ec »

Acewell wrote:they're just pngs without extension and some with custom bytes before header :D

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get SIZE asize
get NAME basename
string NAME + .png
get MAGIC long
if MAGIC == 0
   math OFFSET = 0x10
   math SIZE - 0x10
else
   math OFFSET = 0x0
endif
log NAME OFFSET SIZE



Thanks a lot @Acewell you're awesome !!!!