Important information: this site is currently scheduled to go offline indefinitely by end of the year.

BattleField 4 (.cat .cas)

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 438
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 189 times
Contact:

BattleField 4 (.cat .cas)

Post by cra0 »

Firstly a bit of dev humor :keke:
Image

Image
I've tried looking through the code for the encryption key but no luck
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 46 times

Re: BattleField 4 (.cat .cas)

Post by luxox18 »

You can extract all data with a script by "Frankelstner" from bfeditor.org
also work for bf3.

with this you can extract all *.chunk files (sound, model , textures, anims) and the .itexture data, DBX data, etc

http://www.bfeditor.org/forums/index.ph ... 15731&st=0

(I don't know if can I post links from other forums here.)
User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 438
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 189 times
Contact:

Re: BattleField 4 (.cat .cas)

Post by cra0 »

luxox18 wrote:You can extract all data with a script by "Frankelstner" from bfeditor.org
also work for bf3.

with this you can extract all *.chunk files (sound, model , textures, anims) and the .itexture data, DBX data, etc

http://www.bfeditor.org/forums/index.ph ... 15731&st=0

(I don't know if can I post links from other forums here.)
ah thanks has anyone worked on the model geometry data chunks?
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 46 times

Re: BattleField 4 (.cat .cas)

Post by luxox18 »

cra0 wrote:ah thanks has anyone worked on the model geometry data chunks?
Only on textures and sounds
User avatar
Savage
VIP member
VIP member
Posts: 559
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 18 times

Re: BattleField 4 (.cat .cas)

Post by Savage »

Hi tried with the python code but i get errors

Code: Select all

Traceback (most recent call last):
  File "dumper.py", line 418, in <module>
    main()
  File "dumper.py", line 415, in main
    dump(fname,outputfolder)
  File "dumper.py", line 229, in dump
    casHandlePayload(entry,ebxPath+entry.elems["name"].content+".ebx")
  File "dumper.py", line 379, in casHandlePayload
    catEntry=cat.entries[entry.elems["sha1"].content]
KeyError: '\xdf+\xdb\xc7(\xef\x18\xbe\xa9d\x16\x00TV\xebT\xfc\xd6\x1c\xb3'
Where i can get/found a BMS/Py working with Battlefiled 4?

Thanks 8D
Image
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: BattleField 4 (.cat .cas)

Post by Acewell »

luxox18 wrote:You can extract all data with a script by "Frankelstner" from bfeditor.org
also work for bf3.

with this you can extract all *.chunk files (sound, model , textures, anims) and the .itexture data, DBX data, etc

http://www.bfeditor.org/forums/index.ph ... 15731&st=0
That site is down, you can find the scripts here

Code: Select all

http://www.mediafire.com/download/kniqderdgp5q3ce/BF_Four_Python_Scripts.zip
Video showing how to use
https://www.youtube.com/watch?v=fR4dSlG ... LUHUfcuvSA


This looks like it could work too
http://sourceforge.net/projects/daitools/
JakeGreen
mega-veteran
mega-veteran
Posts: 164
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 40 times
Been thanked: 11 times

Re: BattleField 4 (.cat .cas)

Post by JakeGreen »

AceWell wrote:
luxox18 wrote:You can extract all data with a script by "Frankelstner" from bfeditor.org
also work for bf3.

with this you can extract all *.chunk files (sound, model , textures, anims) and the .itexture data, DBX data, etc

http://www.bfeditor.org/forums/index.ph ... 15731&st=0
That site is down, you can find the scripts here

Code: Select all

http://www.mediafire.com/download/kniqderdgp5q3ce/BF_Four_Python_Scripts.zip
Video showing how to use
https://www.youtube.com/watch?v=fR4dSlG ... LUHUfcuvSA


This looks like it could work too
http://sourceforge.net/projects/daitools/
The python script doesn't seem to work on the SWBF cas files but the DAITools does but it wont extract anything from it cause it just crashes
ginev
n00b
Posts: 10
Joined: Mon Feb 15, 2016 11:53 am

Re: BattleField 4 (.cat .cas)

Post by ginev »

Man i am following your tutorial here but on the end when i click Run Module i am getting this:

Traceback (most recent call last):
File "D:\Games\Zlo_Battlefield_3_Multiplayer\BATTLEFIELD 3 EXTRACTOR\dumper.py", line 1, in <module>
import sbtoc
File "D:\Games\Zlo_Battlefield_3_Multiplayer\BATTLEFIELD 3 EXTRACTOR\sbtoc.py", line 7, in <module>
from collections import OrderedDict
ImportError: cannot import name OrderedDict
>>>


This is how its looking my path lines in the dumper.py

catName=r"D:\Games\Zlo_Battlefield_3_Multiplayer\Battlefield 3\Data\cas.cat" #use "" or r"" if you have no cat; doing so will make the script ignore patchedCatName
patchedCatName=r"D:\Games\Zlo_Battlefield_3_Multiplayer\Battlefield 3\Update\Patch\Data\cas.cat" #used only when tocRoot contains "Update"

tocRoot=r"\Battlefield 3\Update"
##tocRoot=r"D:\Games\Zlo_Battlefield_3_Multiplayer\Battlefield 3\Data\Win32"

outputfolder="D:\Games\Zlo_Battlefield_3_Multiplayer\Battlefield 3\EXTRACTS"


What i am doing wrong?Please help me if you read this. :S
Post Reply