The Forum is up for sale: XeNTaX Forum looking for new owner

StarWars Battlefront Closed Beta

The Original Forum. Game archives, full of resources. How to open them? Get help here.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

StarWars Battlefront Closed Beta

Post by CZW »

hello

i'm looking to unpack .cas files

engine : FrostBite3

Image

test with DAImoddingTool, we can open it, but cannot extract or see anything ...

samples:
http://www.filedropper.com/swbf
JakeGreen
mega-veteran
mega-veteran
Posts: 164
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 40 times
Been thanked: 11 times

Re: StarWars Battlefront Closed Beta

Post by JakeGreen »

So the packages seem to be the same as DAI and BF4/H and textures are full DX11 dds files and here are some of them.

Credit goes to danielmm8888 and PistonMiner for creating the tool though.

Models are next on their list and than sound and the 5 odd videos that are in the game files.

Image
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: StarWars Battlefront Closed Beta

Post by durandal217 »

So am I right to say at the moment the battlefront files cannot be extracted I'm trying to extract the sounds.

If not I hope someone can look into adjusting the script to extract the files.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2639
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2860 times

Re: StarWars Battlefront Closed Beta

Post by daemon1 »

Checked danielmm8888's script. It just dumps all files from CAS with no names, including sounds. I can make XAS extractor, if they still didn't make it.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2639
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2860 times

Re: StarWars Battlefront Closed Beta

Post by daemon1 »

Well, it seems my decoder already supports it, because it's standard XAS audio files.

The only thing you need now is to split chunks into individual files. This must be easy.

OK so this is what you can do now:

1. extract all chunks from cas with danielmm8888's script

2. run my tool Frostbyte_chunk on each chunk to merge uncompressed chunks into raw data

3. if chunk has multiple audio files, split them somehow

4. decode XAS into WAV with my tool xas_decode

Checked it with some battlefront music and steps sounds, all worked ok.
You do not have the required permissions to view the files attached to this post.
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: StarWars Battlefront Closed Beta

Post by durandal217 »

OK here's my question though. Where do I get danielmm8888's script because I checked everywhere and can't seem to find it.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2639
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2860 times

Re: StarWars Battlefront Closed Beta

Post by daemon1 »

This is what i googled:

https://raw.githubusercontent.com/Pisto ... tractor.py

But maybe JakeGreen knows better, he was talking about some tool. I don't know who they are or how to contact them.
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: StarWars Battlefront Closed Beta

Post by durandal217 »

Thank you so much, this is different from Frank's script and I'm having a little bit of trouble with it could I trouble you for some help? I've been messing with the script but I can't seem to get it to work. I initially thought it was "OK this is a piece of cake just input the directories and hit F5"

so I'm putting.

Code: Select all

# Get a handle to the CAT file and get its size
catFileName = sys.argv[1]
catFile = open(catFileName, 'C:\Battlefront\Data\cas.cat') 
catFileSize = os.path.getsize(catFileName)

# Skip the signature
catFile.seek(0x10)

# Create the folder where we'll be dumping the content into (if necessary)
if not os.path.exists("C:/dump/"):
    os.makedirs("dump/")
every time I do I get this.

Code: Select all

Traceback (most recent call last):
  File "C:\Battlefront\Data\CASExtractor.py", line 8, in <module>
    catFileName = sys.argv[1]
IndexError: list index out of range
What am I doing wrong?
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2639
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2860 times

Re: StarWars Battlefront Closed Beta

Post by daemon1 »

This script is supposed to be run with command line arguments. If you want to run it without them, do this:

Code: Select all

catFileName = "C:\Battlefront\Data\cas.cat" 
only change 1st line, not others

p.s. also note, I'm not aware if any scripts exist to split audio chunks. The one for DAI doesn't work, maybe there are others. I was splitting them manually. If none exist, I can write a new splitter.
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: StarWars Battlefront Closed Beta

Post by durandal217 »

EDIT: n/m i got it I had to put the script in the data folder.

alright extracting the files now!
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: StarWars Battlefront Closed Beta

Post by durandal217 »

daemon1 wrote:p.s. also note, I'm not aware if any scripts exist to split audio chunks. The one for DAI doesn't work, maybe there are others. I was splitting them manually. If none exist, I can write a new splitter.
It worked I got 4,267 files they extract now I just need to work on batch extracting and converting. I haven't seen any example of splitting audio chunks yet but could you work on a tool in case? And if there are multiple files exist what hex code or tag would I be looking for in the file?

I hope all of the gunfire and vehicles sounds are here, that's what i'm after the most.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2639
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2860 times

Re: StarWars Battlefront Closed Beta

Post by daemon1 »

durandal217 wrote:And if there are multiple files exist what hex code or tag would I be looking for in the file?
No, chunks are just audio files merged together, there's no way to know how many files they contain. This information is in corresponding EBX files, and we don't have their names now.
danielmm8888
ultra-n00b
Posts: 3
Joined: Sun Jul 19, 2015 11:53 pm
Been thanked: 1 time

Re: StarWars Battlefront Closed Beta

Post by danielmm8888 »

We've already gotten model texture and sound extraction to work.

Here's an image of the sandtrooper model (viewport in Maya)
http://i.imgur.com/xuHOk51.png
Here's an image of the star destroyer (rendered using Mental ray in Maya)
http://i.imgur.com/olXszZW.jpg
Here's an image of the star destroyer in UE4 with the proper textures
http://i.imgur.com/WuEKLnu.png
http://i.imgur.com/F6lNLKT.png
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: StarWars Battlefront Closed Beta

Post by durandal217 »

danielmm8888 wrote:We've already gotten model texture and sound extraction to work.
Daniel, have you released the tool? or is it still in a work in progress? is there a way I can get my hands on it?
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2639
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2860 times

Re: StarWars Battlefront Closed Beta

Post by daemon1 »

Probably no, or it's a secret tool, he's not answering PM's either. So we don't know if their tool work correctly with sounds. Had you any success finding the sounds you wanted?
Post Reply