The rules have been updated, read them now: Rules!
StarWars Battlefront unpacker / decoder
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
StarWars Battlefront unpacker / decoder
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.
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.
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront .cas unpacker / audio decoder
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 wrote:your chunk and mesh tool,itexture tool and 3ds max script
-
- 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
Ah i got your name and his mixed up oops lol anyways here is what i'm talking aboutdaemon1 wrote: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 wrote:your chunk and mesh tool,itexture tool and 3ds max script
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
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront .cas unpacker / audio decoder
All these tools may be working already. At least nothing was changed in sound format, only .CAS structure itself.
-
- 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
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.daemon1 wrote:All these tools may be working already. At least nothing was changed in sound format, only .CAS structure itself.
-
- Moderator
- Posts: 949
- Joined: Sun Mar 27, 2011 8:42 pm
- Has thanked: 10 times
- Been thanked: 138 times
Re: StarWars Battlefront .cas unpacker / audio decoder
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/
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0
Downloads from DropBox : https://dl.dropboxusercontent.com/u/
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront .cas unpacker / audio decoder
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?michalss wrote:Can you please share structure of cas files ? Im highly interested about this... Thx
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront .cas unpacker / audio decoder
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.
-
- 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
Will it extract .mesh files with proper names and textures like this t_hero_jedi_darthvader_body_c e6fbd4c48ccd094f 0b000000010000000000000000000000.unknownres 6bde20ba ?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.
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront .cas unpacker / audio decoder
It extracts files like
meshp_chunk_generic_01_mesh d37b9d34210486c3 5003000000000000380000009000c000.mesh
t_metalchunk_01_s 7c6f454767c46a27 0b000000010000000000000000000000.unknownres 6bde20ba
meshp_chunk_generic_01_mesh d37b9d34210486c3 5003000000000000380000009000c000.mesh
t_metalchunk_01_s 7c6f454767c46a27 0b000000010000000000000000000000.unknownres 6bde20ba
-
- Moderator
- Posts: 949
- Joined: Sun Mar 27, 2011 8:42 pm
- Has thanked: 10 times
- Been thanked: 138 times
Re: StarWars Battlefront .cas unpacker / audio decoder
I would like to understad the format and make repacker for F3 games... Im kind of person who makeing repacker for complicated games/enginesdaemon1 wrote: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?michalss wrote: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/
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0
Downloads from DropBox : https://dl.dropboxusercontent.com/u/
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront .cas unpacker / audio decoder
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.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/enginesF3 is one of them...
Last edited by daemon1 on Mon Nov 30, 2015 5:54 pm, edited 1 time in total.
-
- M-M-M-Monster veteran
- Posts: 2277
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 54 times
- Been thanked: 1916 times
Re: StarWars Battlefront unpacker / audio decoder
The first version of python scripts are here in the title post.
Re: StarWars Battlefront unpacker / audio decoder
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.
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.