Popular Post JrMasterModelBuilder Posted September 25, 2013 Popular Post Share Posted September 25, 2013 (edited) origamiguy has created a GUI tool to make your game MOD-ready (requires .NET 4.0 framework). UNGTCUNGTC - ATD archive tool. Download Link Description: This tool will extract and rearchive LEGO Racers 2 and Drome Racers archives (the Attention To Detail or ATD LEGO video games). A while back, I started reverse engineering the LEGO Racers 2 and Drome Racers archive file formats (hence forth refered to as GTC). I figured out what almost everything was, but got stuck on the compression used in the GTC. In my extended absence from the site, and have been tinkering with the files, tagging up bytes in a hex editor, determining which bytes were litterals, which were backreferences, and which ones said what did what thorugh experimental byte injection. This would likely have never happened if not for this amazing find by Cyrem. Fast forward to September 1st, I finished writing code that would successfully decompress GAMEDATA.GTC. It didn't extract the files, and couldn't write its own COMPRESS.INF file, but the game would load and play, with some minor speed improvements. Fast forward again to today, and I have finished writing UNGTC, a tool that can both unpack the archives and create new ones! UNGTC is writtin in pure C++, and is very fast. How fast it runs depends on the IO speeds of your drive. With a RAM disk, it can be as fast as a few seconds (5400 RPM drives are much slower). Full source code is included, as are binaries for Windows and Mac. If you are running Linux, compile the source yourself, there are too many processor architectures for me to provide binaries for all of them. Usage: UNGTC is a command-line application, simple give it the folder containing GAMEDATA.GTC, FILELIST.INF, and COMPRESS.INF to extract, or the extracted folder to archive, as the first argument. On Windows, this is easily done by draggin-and-dropping the folder onto ungtc.exe. Some technical notes: UNGTC does create slightly differently than the GTC's that come with the game, but they are 100% compatible, and more efficient. UNGTC does not compress the archives it creates in any way. Since you would not save mush space on modern drives and it would be a slow waste of processor power, I do not plan on adding this ability. UNGTC automatically detects the 2 different formats and uses a meta data file called .GTC to store what version for the file forwat was extracted, for use in rearchiving. It is a plain text file. The Windows executable it 32-bit. As it uses 32-bit opperations, it would not really benefit from being 64-bit. The Mac executable is 64-bit. Compiled using MinGW g++ (Win) and Xcode g++ (Mac). Other Notes Unfortunately, I have tried everything I could think of to make it load the files from the drive instead of from the archive, monitoring the game with Process Monitor for any changes, but it seems to only work with archives. To run the game without having to keep rebuilding the archive, check out this topic. Or this tool by origamiguy (which will also extract the GAMEDATA files). Many of the files are normal files and I expect that many other files have existing tools. Good luck in deciphering the files! Edited June 7, 2015 by JrMasterModelBuilder pedroj234, RobExplorien, Quake and 15 others 18 Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted September 25, 2013 Share Posted September 25, 2013 Horray! A GTC tool has come! Been waiting for this for so long. Edit: Download is source? Link to comment Share on other sites More sharing options...
JrMasterModelBuilder Posted September 25, 2013 Author Share Posted September 25, 2013 The binaries are in there was well, under the bin folder. You could also just download the executable for your OS from here: https://github.com/JrMasterModelBuilder/UNGTC/tree/master/bin Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted September 25, 2013 Share Posted September 25, 2013 It says I'm missing some .dlls when I run the .exe (libgcc_s_dw2-1, and libstdc++-6 for examples), where do I get them? I don't see them at your place. And the only thing under bin is ungtc.exe, nothing more. Link to comment Share on other sites More sharing options...
JrMasterModelBuilder Posted September 25, 2013 Author Share Posted September 25, 2013 It says I'm missing some .dlls when I run the .exe (libgcc_s_dw2-1, and libstdc++-6 for examples), where do I get them? I don't see them at your place. Gah! That's annoying! I didn't think C++ compiled with MinGW had any dependencies. I will look into and fix this problem. Link to comment Share on other sites More sharing options...
lol username Posted September 25, 2013 Share Posted September 25, 2013 Excellent. Oh, the things I shall do... Or attempt... Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted September 25, 2013 Share Posted September 25, 2013 Excellent. Oh, the things I shall do... Or attempt... Like fixing the stupid and easy AI? (if possible) Link to comment Share on other sites More sharing options...
JrMasterModelBuilder Posted September 25, 2013 Author Share Posted September 25, 2013 Sorry about the mixup, the Windows binary is now compiled with all the dependencies merged into the code! I have deleted the old download and replaced it with the corrected one! Link to comment Share on other sites More sharing options...
lol username Posted September 25, 2013 Share Posted September 25, 2013 It successfully extracted everything for me. Now, let's see what we've got... Edit: Lots of cool TXT files from the developers explaining how things work. Why can't more devs do that? Man, I don't know what to try first... # Captain Geoff (and his salty seaman) # # (individual) # lighthouse keeper happy1 lighthouse keeper happy2 null null null null lighthouse keeper surprised1 null ... PFFFFFFFFT Ooh, I think I may have just found how to enable things for character create! Looks like editing what bricks are in what car sets is really easy - even pieces from Rocket Racer's car and the Rama cars...? Oh cool, cutscene scripts and stuff! Link to comment Share on other sites More sharing options...
RobExplorien Posted September 25, 2013 Share Posted September 25, 2013 Wow, where to start, what to do. I think we are all overwhelmed now. Jimbob 1 Link to comment Share on other sites More sharing options...
lol username Posted September 25, 2013 Share Posted September 25, 2013 [TRK_NM_SAN1] Dig-a-brick [TRK_NM_SAN2] Express Delivery [TRK_NM_SAN3] Hot Stuff [TRK_NM_SAN4] Bobby's Beat [TRK_NM_SAN5] Sandy Boss Track Name ... So, Sandy Bay had the same structure as the other worlds at one point? Link to comment Share on other sites More sharing options...
Cyrem Posted September 25, 2013 Share Posted September 25, 2013 Amazing work. R2 and Drome Racers modding forums can now be opened up for all the greatness this will produce. Link to comment Share on other sites More sharing options...
Jimbob Posted September 25, 2013 Share Posted September 25, 2013 Excellent, my LR2 disc broke a while back and now I have an excuse to buy a replacement! I can't wait to see what mods people produce Link to comment Share on other sites More sharing options...
le717 Posted September 25, 2013 Share Posted September 25, 2013 O.T. Thanks LimeKiller for such an :af: image! For those of you who saw me rejoicing last night in the SBox and my subsequent status update, this is why. Although I dislike LR2's physics, I hate the low-quality graphics more. Finally, we can change all that. JMMB, you have done it yet again. You have no idea how happy I am from this. Thank you, for the bottom of all my :af:'s. EDIT: On 9/25/2013 at 4:04 PM, RobExplorien said: Wow, where to start, what to do. I think we are all overwhelmed now. Uh-huh. Welcome to first time game modding. I think this is the first game archive cracked since you joined. Even I'm overwhelmed, and I think the LEGOLAND archives have been opened and new/updated/better tools for the Alpha Team PAC archives were written since I came here. LimeKiller 1 Link to comment Share on other sites More sharing options...
Fifi La Fume Posted September 25, 2013 Share Posted September 25, 2013 http://www.shamikaserver.com/migalley/modules.php?op=modload&name=Downloads&file=index&req=viewdownload&cid=8 Jamesster told me the textures are MIP files, in the link above is WinMip2 which can convert them back and forth. I would gladly try this if I still owned Lego Racers 2. Link to comment Share on other sites More sharing options...
le717 Posted September 25, 2013 Share Posted September 25, 2013 http://www.shamikaserver.com/migalley/modules.php?op=modload&name=Downloads&file=index&req=viewdownload&cid=8 Jamesster told me the textures are MIP files, in the link above is WinMip2 which can convert them back and forth. I would gladly try this if I still owned Lego Racers 2. Just tried it, won't work. Can't convert them or even display them. Link to comment Share on other sites More sharing options...
Fifi La Fume Posted September 25, 2013 Share Posted September 25, 2013 http://www.shamikaserver.com/migalley/modules.php?op=modload&name=Downloads&file=index&req=viewdownload&cid=8 Jamesster told me the textures are MIP files, in the link above is WinMip2 which can convert them back and forth. I would gladly try this if I still owned Lego Racers 2. Just tried it, won't work. Can't convert them or even display them.These Lego video games hold many very diabolical file formats, more than any other games I have ever modded in my lifetime. Link to comment Share on other sites More sharing options...
le717 Posted September 25, 2013 Share Posted September 25, 2013 Will be done in ~3 minutes. Link to comment Share on other sites More sharing options...
Fluffy Cupcake Posted September 25, 2013 Share Posted September 25, 2013 Xalax sky sure looks nice over Sandy Bay evening. Link to comment Share on other sites More sharing options...
JrMasterModelBuilder Posted September 26, 2013 Author Share Posted September 26, 2013 http://www.shamikaserver.com/migalley/modules.php?op=modload&name=Downloads&file=index&req=viewdownload&cid=8 Jamesster told me the textures are MIP files, in the link above is WinMip2 which can convert them back and forth. I would gladly try this if I still owned Lego Racers 2. Just tried it, won't work. Can't convert them or even display them. These Lego video games hold many very diabolical file formats, more than any other games I have ever modded in my lifetime. Unix file command to the rescue! $ file ADV_ENV_BK.MIP ADV_ENV_BK.MIP: Targa image data - Map 256 x 256 If I renaming them to .TGA, I can open them in Photoshop and Gimp. I haven't tried creating new ones yet. Interestingly, the textures for Drome Racers are different, and unknown to the Unix file command. They appear to be some kind of custom uncompressed bitmap image. le717 1 Link to comment Share on other sites More sharing options...
le717 Posted September 26, 2013 Share Posted September 26, 2013 Unix file command to the rescue! $ file ADV_ENV_BK.MIP ADV_ENV_BK.MIP: Targa image data - Map 256 x 256 If I renaming them to .TGA, I can open them in Photoshop and Gimp. I haven't tried creating new ones yet. Interestingly, the textures for Drome Racers are different, and unknown to the Unix file command. They appear to be some kind of custom uncompressed bitmap image. T...T...Targa? That's it? Awesome! If I had thought about it at the time, I would have run it through ffmpeg at got the same info. Oddly, I opened the font sheet tga and it worked, but didn't attempt the MIP right beside it. Anyway, thanks! I'll try this myself ASAP. Drome Racers, possible custom? Well, you can't win them all. *sigh* Also, I am already drafting my Custom SFX tutorial to go along with my video above. ;) Link to comment Share on other sites More sharing options...
Biorune Posted September 26, 2013 Share Posted September 26, 2013 The extractor isn't working for me; when I tried to use it the first time, it showed the extraction of all the files but no new folder was created, and now every time I try again the command line comes up for a split second then goes away? Link to comment Share on other sites More sharing options...
le717 Posted September 26, 2013 Share Posted September 26, 2013 The extractor isn't working for me; when I tried to use it the first time, it showed the extraction of all the files but no new folder was created, and now every time I try again the command line comes up for a split second then goes away?Run it from command-line as in just click it, or through cmd.exe? Either way, start by right-clicking on the exe, clicking properties then compatibility tab, check the "Run with administrator rights" box, save, then drag the folder on it. It sounds like you are extracting in Program Files, and it doesn't have the permission to write the files. Biorune 1 Link to comment Share on other sites More sharing options...
Biorune Posted September 26, 2013 Share Posted September 26, 2013 Run it from command-line as in just click it, or through cmd.exe? Either way, start by right-clicking on the exe, clicking properties then compatibility tab, check the "Run with administrator rights" box, save, then drag the folder on it. It sounds like you are extracting in Program Files, and it doesn't have the permission to write the files. *facepalm* Forgot to run it as administrator, thanks In Characters; 'WHAT IS ALL THIS ABOUT EH'. Good to know the devs had a sense of humor. Link to comment Share on other sites More sharing options...
le717 Posted September 28, 2013 Share Posted September 28, 2013 One quick edit to GAME DATASCRIPTSSANDY ISLANDINTRO2.TXT to comment out the last section, boom! Speechless Sparky. Link to comment Share on other sites More sharing options...
Recommended Posts