LEGO STAR WARS CASTAWAYS [bdae, tx]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by KL3W »

Hey!

I got the game files for the Apple Arcade's video game LEGO STAR WARS CASTAWAYS (Gameloft game). I extracted the files - find an extract of the files below -, and I woud like to get 3D models or textures out of the files. But I only see .tx and .bdae files that I can't open in 3D software.

Sorry I'm not very good at extracting files for now, can someone help me out??? I don't know what to do...
I read about Neomis or QuickBMS or Hex2obj but I can't figure out what to do :(

Thx!!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by aluigi »

Both the bdae and tx files have the GCBF header, this format can be decompressed with this script for quickbms:
http://aluigi.org/bms/gcbf_versus.bms

This is just the first step since I have no knowledge about 3d models and graphics, you can ask separately in the two sections of the forum.
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by KL3W »

Thx @ aluigi for this first step!!

I succeeded to get dat files from bdae files. I tried several script to convert dat files but for the moment no result. It seems the dat version of the bdae is a BRES file, I looked for some information but no technique explained before worked. There are some broken png pictures in the files that seems to be the textures for 3D models, I converted to dat and it seems these files are KTX files, but I can't open it, even in Mila Texture Compression Tool.

Does anyone know anything about BRES and KTW and how to convert it?


You will find both bdae and png files with their converted version to dat.

Thx a lot
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by aluigi »

Both KTX and BRES are well known formats and there are many resources both here on zenhax and xentax.
You can search the topics on google in this way (replacing zenhax with xentax for more results):
"ktx" site:zenhax.com
"bres" site:zenhax.com
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by KL3W »

Hey!! Thx for the quick response

Well I searched as you said on google, but I only found a possible answer for KTX files, with something called 'crunch', and I don't know how to make it work... (https://forum.xentax.com/viewtopic.php?f=18&t=24456)

UPDATE: I suceeded with KTX files thx to PvrTexTools... But for BRES files nothing new...

Were you refering to anything specific about BRES files???

Sorry to be so annoying... thanks aluigi for your time
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by KL3W »

UPDATE

With Model Researcher I did open the BRRES file, but I can't get the UV right... only vertices and faces work
Does someone know how to find UV?

Thx
Lazov
Posts: 20
Joined: Thu Apr 06, 2017 9:47 am

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by Lazov »

v 0x0e80 1219 0 0 Float XYZ
f 0xa700 1282 0 0 Short Triangles
vt 0x47b0 1219 12 0 Float UV
vn 0x47a4 1219 8 0 Float XYZ
Last edited by Lazov on Sat Feb 05, 2022 9:20 pm, edited 1 time in total.
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by KL3W »

Lazov wrote:v 0x0e80 1219 0 0 Float XYZ
f 0xa700 1282 0 0 Short Triangles
vt 0x47b0 1219 12 0 Float UV


Hey! Thx this is perfect!! THANK YOU SO MUCH!

Do you think you could do it on other models (I added some in zip file) so I can see how you've done and I can try myself next time?
Thank you so much!
mrpood
Posts: 1
Joined: Tue Jan 10, 2023 11:18 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by mrpood »

I am doing something similar rn and I dont know how to get numbers for vertices/faces/uvs?
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: LEGO STAR WARS CASTAWAYS [bdae, tx]

Post by KL3W »

Hey @mrpood. So far it's a manual work, so quite long to understand and to work with. But if you're interested with some files, you can send me a DM. I know a little about this.

Have a nice day.