XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Aug 22, 2017 10:00 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 84 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: StarWars Battlefront unpacker / decoder
PostPosted: Fri Nov 27, 2015 5:39 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times














You can make the ads go away by registering

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.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Last edited by daemon1 on Tue Dec 29, 2015 5:01 pm, edited 8 times in total.

Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Fri Nov 27, 2015 11:15 pm 
Offline
veteran

Joined: Sun Aug 22, 2010 10:14 pm
Posts: 155
Has thanked: 33 times
Have thanks: 9 times
Will you be updating your chunk and mesh tool,itexture tool and 3ds max script once you get the file names complete?


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sat Nov 28, 2015 8:04 am 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
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.


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sat Nov 28, 2015 8:59 am 
Offline
veteran

Joined: Sun Aug 22, 2010 10:14 pm
Posts: 155
Has thanked: 33 times
Have thanks: 9 times
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


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sat Nov 28, 2015 9:47 am 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
All these tools may be working already. At least nothing was changed in sound format, only .CAS structure itself.


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sat Nov 28, 2015 7:58 pm 
Offline
veteran

Joined: Sun Aug 22, 2010 10:14 pm
Posts: 155
Has thanked: 33 times
Have thanks: 9 times
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.


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sat Nov 28, 2015 8:02 pm 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 933
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sat Nov 28, 2015 9:02 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
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?


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sun Nov 29, 2015 9:29 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
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.


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sun Nov 29, 2015 9:33 pm 
Offline
veteran

Joined: Sun Aug 22, 2010 10:14 pm
Posts: 155
Has thanked: 33 times
Have thanks: 9 times
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 ?


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sun Nov 29, 2015 9:38 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
It extracts files like

meshp_chunk_generic_01_mesh d37b9d34210486c3 5003000000000000380000009000c000.mesh

t_metalchunk_01_s 7c6f454767c46a27 0b000000010000000000000000000000.unknownres 6bde20ba


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Sun Nov 29, 2015 9:53 pm 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 933
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront .cas unpacker / audio decoder
PostPosted: Mon Nov 30, 2015 4:10 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
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.

Top
 Profile  
 
 Post subject: Re: StarWars Battlefront unpacker / audio decoder
PostPosted: Mon Nov 30, 2015 5:51 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1169
Has thanked: 19 times
Have thanks: 540 times
The first version of python scripts are here in the title post.


Top
 Profile  
 
 Post subject: Re: StarWars Battlefront unpacker / audio decoder
PostPosted: Mon Nov 30, 2015 8:50 pm 
Offline
ultra-n00b

Joined: Mon Oct 12, 2015 4:50 am
Posts: 3
Has thanked: 1 time
Have thanks: 0 time
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 84 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group