Join also our Discord channel! Click here.

StarWars Battlefront unpacker / decoder

The Original Forum. Game archives, full of resources. How to open them? Get help here.
daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

StarWars Battlefront unpacker / decoder

Post by daemon1 » Fri Nov 27, 2015 5:39 pm

Modified "FrankElstner's" scripts to unpack StarWars Battlefront:

swbf_dump contains dumper script sw_dumper.py

fb3decoder contains audio conversion script fb3decoder.py

NOTE Don't forget to modify folder names in both scripts!

swbf_cas folder - the old simple extractor, just in case

p.s. old mesh tool is working, audio is extracted properly, updated texture tool included.
You do not have the required permissions to view the files attached to this post.
Last edited by daemon1 on Tue Dec 29, 2015 5:01 pm, edited 8 times in total.

JakeGreen
mega-veteran
mega-veteran
Posts: 163
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 39 times
Been thanked: 11 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by JakeGreen » Fri Nov 27, 2015 11:15 pm

Will you be updating your chunk and mesh tool,itexture tool and 3ds max script once you get the file names complete?

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by daemon1 » Sat Nov 28, 2015 8:04 am

JakeGreen wrote:your chunk and mesh tool,itexture tool and 3ds max script
These were done by somebody else. Ask them. I just see that nobody still made an extractor and did this quick solution. I can look into that though, if you explain what are you talking about.

JakeGreen
mega-veteran
mega-veteran
Posts: 163
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 39 times
Been thanked: 11 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by JakeGreen » Sat Nov 28, 2015 8:59 am

daemon1 wrote:
JakeGreen wrote:your chunk and mesh tool,itexture tool and 3ds max script
These were done by somebody else. Ask them. I just see that nobody still made an extractor and did this quick solution. I can look into that though, if you explain what are you talking about.
Ah i got your name and his mixed up oops lol anyways here is what i'm talking about

viewtopic.php?f=33&t=13145

and here is a mesh and chunk tool that worked with the beta and most likely would with the main game if not i can edit it to possible work with it.

https://dl.dropboxusercontent.com/u/881 ... 20tool.rar

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by daemon1 » Sat Nov 28, 2015 9:47 am

All these tools may be working already. At least nothing was changed in sound format, only .CAS structure itself.

JakeGreen
mega-veteran
mega-veteran
Posts: 163
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 39 times
Been thanked: 11 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by JakeGreen » Sat Nov 28, 2015 7:58 pm

daemon1 wrote:All these tools may be working already. At least nothing was changed in sound format, only .CAS structure itself.
Um a few people tried the itexture and 3ds max script and they both either don't work or give errors when you try to use them with the beta stuff.

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 137 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by michalss » Sat Nov 28, 2015 8:02 pm

daemon1 wrote:Here's the very first and quick solution.

Just use swbf_cas.exe on any .cas file and it will unpack it to 1000's of chunks without names. If some of them will be audio chunks, they'll have .EXA extension.

Then you can decode them with my decoder (latest version included).

Later I plan to check the new sb/toc format to have proper filenames.

Can you please share structure of cas files ? Im highly interested about this... Thx
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by daemon1 » Sat Nov 28, 2015 9:02 pm

michalss wrote:Can you please share structure of cas files ? Im highly interested about this... Thx
Sure. The structure is relatively simple. The trick with frostbyte engine is in sb/toc files that are much more complex. But CAS files are basically all unnamed chunks packed together, and its structure is changing a bit from game to game. What exactly would you like to know?

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by daemon1 » Sun Nov 29, 2015 9:29 pm

Good news. The modified Frank's python script is working, and it unpacks all the sounds with proper names. I only need to check it a little more. I think tomorrow it will be ready.

JakeGreen
mega-veteran
mega-veteran
Posts: 163
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 39 times
Been thanked: 11 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by JakeGreen » Sun Nov 29, 2015 9:33 pm

daemon1 wrote:Good news. The modified Frank's python script is working, and it unpacks all the sounds with proper names. I only need to check it a little more. I think tomorrow it will be ready.
Will it extract .mesh files with proper names and textures like this t_hero_jedi_darthvader_body_c e6fbd4c48ccd094f 0b000000010000000000000000000000.unknownres 6bde20ba ?

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by daemon1 » Sun Nov 29, 2015 9:38 pm

It extracts files like

meshp_chunk_generic_01_mesh d37b9d34210486c3 5003000000000000380000009000c000.mesh

t_metalchunk_01_s 7c6f454767c46a27 0b000000010000000000000000000000.unknownres 6bde20ba

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 137 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by michalss » Sun Nov 29, 2015 9:53 pm

daemon1 wrote:
michalss wrote:Can you please share structure of cas files ? Im highly interested about this... Thx
Sure. The structure is relatively simple. The trick with frostbyte engine is in sb/toc files that are much more complex. But CAS files are basically all unnamed chunks packed together, and its structure is changing a bit from game to game. What exactly would you like to know?
I would like to understad the format and make repacker for F3 games... Im kind of person who makeing repacker for complicated games/engines :) F3 is one of them...
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront .cas unpacker / audio decoder

Post by daemon1 » Mon Nov 30, 2015 4:10 pm

michalss wrote:I would like to understad the format and make repacker for F3 games... Im kind of person who makeing repacker for complicated games/engines :) F3 is one of them...
Ok, but as I said, format changes from game to game, and you need to start from something. In addition to Frank's scripts there's DAI tools opensource project, so if you know Python or C#, it will be easier for you to start with these. Yet, DAI tools developers are still unable to unpack CAS chunks properly, although I told them how to do that.
Last edited by daemon1 on Mon Nov 30, 2015 5:54 pm, edited 1 time in total.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2224
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1829 times

Re: StarWars Battlefront unpacker / audio decoder

Post by daemon1 » Mon Nov 30, 2015 5:51 pm

The first version of python scripts are here in the title post.

nilentry
ultra-n00b
Posts: 3
Joined: Mon Oct 12, 2015 4:50 am
Has thanked: 1 time

Re: StarWars Battlefront unpacker / audio decoder

Post by nilentry » Mon Nov 30, 2015 8:50 pm

I've followed the instructions and changed the file paths accordingly for the swbf_dump script, yet all I'm getting are empty folders in the dump directory. The console is simply spewing "chunk not found ...", and I've let it run for about thirty minutes now to see if maybe it was just missing some files.

It also prints the correct path to the file it would have created, such "C:\BattlefrontDump/bundles/ebx/characters/imperial/hero_jedi_darthvader/texture/t_hero_jedi_darthvader_glove_n.ebx", yet upon inspection, the file does not exist.

Post Reply