Old Lego .GSC files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Old Lego .GSC files

Post by Dolphin-1 »

Dear aluigi, could it be possible to write quickbms scripts for the following file types:


Lego Star Wars TCS:
http://www.mediafire.com/file/5l32h7c11 ... ITY_PC.GSC
Lego Indiana Jones TOA:
http://www.mediafire.com/file/iyc7kym9a ... ITY_PC.GSC
Lego Batman:
http://www.mediafire.com/file/9u6obe8su ... M_B_PC.GSC
Notes:
lego batman is backwards compatible with lego indiana jones levels, as seen here:
https://www.youtube.com/watch?v=-fJkZx8 ... e=youtu.be
However, lego indiana jones is not compatible with batman levels, meaning that they might be compressed differently. lego star wars levels aren't compatible with either two as the header is near the bottom of the file for some reason.
Last edited by Dolphin-1 on Tue Oct 23, 2018 9:42 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Old Lego .GSC files

Post by aluigi »

They are some resource formats which means that the "data" (since they are not "seen" as files) are not easy to dump.
You should use a file ripper to extract the dds images:
viewtopic.php?f=17&t=712

I made a work-in-progress script that will extract the same files like a file ripper (so it's not worth to use), I made it only to recognize the format next time:
http://aluigi.org/bms/gsc_nu20.bms
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Thank you. I've been looking for a way to extract these for a while now.
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Dear Aluigi, would it be possible to modify the script to extract content from the xbox 360 versions of these files?

Here is a link:
https://www.mediafire.com/file/6ssx6546 ... 0files.zip
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Just wondering if you had the chance to read my question from September 30th.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Old Lego .GSC files

Post by aluigi »

What I wrote in my previous post is valid for any GSC file
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Not to be rude, but I tried it and it doesn't work.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Old Lego .GSC files

Post by aluigi »

What doesn't work?
There is no solution and no format, so use the file rippers to dump the known formats.
I thought my post was very clear about that.
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

What I was referring to was your script. I had assumed that that was what you were referring to when you said, "What I wrote in my previous post is valid for any GSC file", but regardless, if your script only extracts textures, then what are these?
https://www.mediafire.com/file/kq5y1mfk ... ntents.zip
I got these after extracting from LEGO Indiana Jones's BONUS_CITY level.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Old Lego .GSC files

Post by aluigi »

Ah, no you can forget my script :)
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Well, thanks anyways. :lol:
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Dear Aluigi, can file rippers be used to rip .tga files with names?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Old Lego .GSC files

Post by aluigi »

"filenames" with "rippers" are impossible.
And tga lack both a magic in the header and a footer (no "TRUEVISION" tag) so I doubt rippers support this file format.
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

Okay. The reason I'm asking is because I found some unused levels in the xbox version of the original lego star wars that seem to crash because they are missing a file called "texture_names.txt" which lists a bunch of tga files for the levels. They come in a .nux file format, and i'd like to know if it would be possible to extract these files with a bms script.

If you're feeling up to it, Here is a sample:
https://www.mediafire.com/file/jy55i65y ... Maul_H.nux

P.S.

What were those files inside the zip file I uploaded last?
Dolphin-1
Posts: 12
Joined: Thu Jun 08, 2017 9:08 pm

Re: Old Lego .GSC files

Post by Dolphin-1 »

The main reason I created this topic was because i was hoping to find a way to port Lego star wars levels into Indy and batman without having to reverse engineer the executables. the Xbox 360 versions look like they are compressed the same, but they crash when i tried swapping and adding files on an actual modded 360. The PC versions, as you can tell, are very different. When extracting Lego Indy and batman files with your script I get files that look like this: https://www.mediafire.com/file/kq5y1mfk ... ntents.zip
However, when i extract Lego star wars files i get the textures like you said would happen. if the files in the zip i uploaded are the actual contents of a gsc, is there a chance you could make it so that it extracts the Xbox 360 versions textures? if they're not, what could they be? and could you make a script to extract whatever they are from Lego star wars?

P.S.
Sorry if I sounded rude in the past posts. The laugh was more out of nervousness than anything else.


Last bumped by Dolphin-1 on Tue Oct 23, 2018 9:51 pm.