How to extract *.GSC file of Transformers: The Game
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
How to extract *.GSC file of Transformers: The Game
Ok, so I've heard in some places that GSC files contain multiple DDS files in them, so in that case, it should be possible to extract them. So I really hope someone is able to help me with that. Thanks in advance.
Here's the file: http://www.mediafire.com/file/3d34z0x7eyhdn82/CYBERTRON_PC.GSC/file
Here's the file: http://www.mediafire.com/file/3d34z0x7eyhdn82/CYBERTRON_PC.GSC/file
-
- Posts: 88
- Joined: Tue May 08, 2018 7:48 pm
Re: How to extract *.GSC file of Transformers: The Game
Code: Select all
get BNAME basename
idstring "\xC0\xF0\x66\x00"
get TEXCOUNT short
for i = 0 < TEXCOUNT
get WIDTH long
get HEIGHT long
get MIPCOUNT long
get UNK1 long # 0C
get ZERO long # 00
get FSIZE long
SavePos OFFSET
string FNAME p "%s_%02d.dds" BNAME i
log FNAME OFFSET FSIZE
math OFFSET + FSIZE
goto OFFSET
math i + 1
next
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
Re: How to extract *.GSC file of Transformers: The Game
It doesn't work on this one though. This is from the PS3 version of the game however.
http://www.mediafire.com/file/a37520orl ... 3.GSC/file
http://www.mediafire.com/file/a37520orl ... 3.GSC/file
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: How to extract *.GSC file of Transformers: The Game
Game Extractor can extract the textures from your PC gsc sample too.
https://sourceforge.net/projects/gameextractor/
and i wrote a Noesis python script for fun with akintos' findings to open and view/export the PC gsc contents.
*updated Jan 2, 2019*
your PS3 gsc sample is a different beast.
it has a big-endian header and index table with only relative offsets and size of data,
no width, height or format info.
edit:
the first integer at the beginning of the gsc is an offset further down the file,
in a table under the OTST chunk is where you can find the header info.
i will post a new script in next post.
https://sourceforge.net/projects/gameextractor/
and i wrote a Noesis python script for fun with akintos' findings to open and view/export the PC gsc contents.
*updated Jan 2, 2019*
your PS3 gsc sample is a different beast.
it has a big-endian header and index table with only relative offsets and size of data,
no width, height or format info.
edit:
the first integer at the beginning of the gsc is an offset further down the file,
in a table under the OTST chunk is where you can find the header info.
i will post a new script in next post.
Last edited by Acewell on Wed Jan 02, 2019 11:29 pm, edited 6 times in total.
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
Re: How to extract *.GSC file of Transformers: The Game
Also, is there any way to extract Models (like OBJ) from the PC GSC as well as the PS3 GSC? If so can you please help me with that? Other than that, I would also like to know something. Is it possible to convert the PS3 GSC so that its format is the same as the PC GSC and vice versa?
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: How to extract *.GSC file of Transformers: The Game
okay this bms script will extract texture data as dds from PS3 gsc and ghg files.
*modified Jan 1, 2019*
*modified Jan 1, 2019*
Last edited by Acewell on Wed Jan 02, 2019 1:50 am, edited 1 time in total.
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
Re: How to extract *.GSC file of Transformers: The Game
Well, the DDS files so extracted can't be opened/edited as they say they have an invalid DDS header. Also is it possible to extract Model data (eg OBJ files) from them too? Also is it possible to convert the PS3 GSC files to be of the same format as that of the PC GSC files?
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: How to extract *.GSC file of Transformers: The Game
Sun Rays wrote:Well, the DDS files so extracted can't be opened/edited as they say they have an invalid DDS header.
the bms script is only for PS3 platform gsc ghg files and it worked on all samples tested.
upload problem samples for examination.
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
Re: How to extract *.GSC file of Transformers: The Game
Literally all the DDS files so extracted can't be opened. Here are two examples:
https://www.mediafire.com/view/ku8j6tb6 ... 1.dds/file
https://www.mediafire.com/view/ueh9ubte ... 0.dds/file
Also is it possible to extract Model data (eg OBJ files) from them too? Also is it possible to convert the PS3 GSC files to be of the same format as that of the PC GSC files?
https://www.mediafire.com/view/ku8j6tb6 ... 1.dds/file
https://www.mediafire.com/view/ueh9ubte ... 0.dds/file
Also is it possible to extract Model data (eg OBJ files) from them too? Also is it possible to convert the PS3 GSC files to be of the same format as that of the PC GSC files?
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: How to extract *.GSC file of Transformers: The Game
no i said upload the problem samples (the gsc files), not your broken dds.
edit
nevermind i tested every gsc file in the PS3 platform and it worked
on all samples except 6, so i will still call that a success.
i find it odd that you managed to run the script only on those 6...
i modified the script to extract from the others that had textures
and added it to the post of my previous release.
i guess you might try converting the model data using Hex2Obj or something,
and modding is not my area so i've no interest there.
edit
nevermind i tested every gsc file in the PS3 platform and it worked
on all samples except 6, so i will still call that a success.
i find it odd that you managed to run the script only on those 6...
i modified the script to extract from the others that had textures
and added it to the post of my previous release.
i guess you might try converting the model data using Hex2Obj or something,
and modding is not my area so i've no interest there.
-
- Posts: 88
- Joined: Tue May 08, 2018 7:48 pm
Re: How to extract *.GSC file of Transformers: The Game
those broken DDS files are in DXT1 format. @Acewell's bms script fails to detect format but you can manually edit dwFourCC bytes with hex editor.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: How to extract *.GSC file of Transformers: The Game
akintos wrote:Acewell's bms script fails to detect format ....
no it detects format fine, there was actually 6 samples in the game files with a
slight difference in structure which corrupted the building of headers, but this
has been fixed now, just re-extract the dds files with the modified bms script.
download the modified script here and discard previous
viewtopic.php?p=41734#p41734
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
Re: How to extract *.GSC file of Transformers: The Game
For whatever reason, it still doesn't open. And so its not possible to extract any kind of models from it by using Quickbms? Because what I hoped for was that I would extract files from the PS3 and reimport them into the PC one (There are others with higher file sizes). And if that's not possible, then is it possible to like port the PS3 files (I will provide the PS3 files that are required and they aren't many just 6 or 7 I think and One of them is the one I sent too) to the PC?
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: How to extract *.GSC file of Transformers: The Game
Sun Rays wrote:For whatever reason, it still doesn't open.
what isn't opening?!
upload the gsc sample that you have problems with please or else nothing more i can do.
i tested the modified bms script on all gsc files in the PS3 game and it works on all of them.
don't know why you can't get it to work, maybe you use ancient version of Quickbms?
anyway, i also tested all the PC platform gsc files with the python script i posted earlier
and discovered the files variable is not consistent with the actual number of textures.
so i modified the Noesis python script here to perform signature rip instead.
viewtopic.php?f=9&t=9129&p=41693#p41693
the gsc files are containers that can hold all kinds of data including textures, models and sounds.
i see a name table in the gsc also that i might be able to match strings with the files to give proper names.
-
- Posts: 21
- Joined: Thu Mar 08, 2018 10:51 am
Re: How to extract *.GSC file of Transformers: The Game
Ok, my bad. I had an older version of Quickbms, I'm sorry for that. Now I would ask for one more help - Can you extract models (hopefully in OBJ) from the PS3 as well as PC GSC files? Hex2Obj only extracts the OBJ files and I can't reimport them, so I need something so that I can extract models from the PS3 file and reimport them in the PC one. If that isn't possible, is it possible to port the PS3 file for the PC?