lfnetwork.com mark read register faq members calendar

Thread: Modding the .tga's
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 03-28-2006, 12:03 AM   #1
Three60
Rookie
 
Join Date: Jan 2006
Posts: 239
Modding the .tga's

I've been looking at the .TGA file that includes all of the button icons, and I am wondering if anyone has tried editing this file. It's the MT_COMMANDBAR.TGA file. And if anyone can figure out how to edit the .mtd file that would be good. I searched it and got digital music.


Three60 is offline   you may: quote & reply,
Old 03-28-2006, 12:42 AM   #2
†Saint_Killa†
Junior Member
 
†Saint_Killa†'s Avatar
 
Join Date: Aug 2005
Location: At home listening to Slipknot...
Posts: 279
well I only know how to edit the DDS files. You need to download an adobe photoshop DDS plugin from nVidia.



"You cannot kill which you did not create."

-Duality
†Saint_Killa† is offline   you may: quote & reply,
Old 03-28-2006, 12:43 AM   #3
Bob Lion54
Jr. Malkavian Detective
 
Bob Lion54's Avatar
 
Join Date: Jan 2005
Location: On the case! Both my minds!
Posts: 2,103
Forum Veteran Helpful! 
Well, you can edit it somewhat. As a test, I made everything red. Looked horrible, but it worked.

I don't think you can add to it yet. I haven't been keeping up with the game as much as I had planned to, so that may have changed. Until there is an .mtd editor, we can't do anything but change the existing icons.

You can open the .mtd in notepad, but good luck making sense of it. You might be a better cryptologist than me though. I tried to google "mtd edit" and "mtd editor." All I found were a bunch of mazagine editors. hehe I'm sure someone is working on it though.


Bob Lion54 is offline   you may: quote & reply,
Old 03-28-2006, 01:28 AM   #4
Three60
Rookie
 
Join Date: Jan 2006
Posts: 239
I'll see what I can do to make sense of it.

Here's a sample I will use:

 I_BUTTON_COMMAND_BAR_REINFORCEMENTS.TGA 9 ‘ $ $ I_BUTTON_GRAVITY_CONTROL_GEN.TGA § ˜ 2 2 I_SA_WEAKEN_ENEMY.TGA ́ ¿   I_MULTI_INCREASED_MOBILITY.TGA

I think, when formated readably, it should look like this:



I_BUTTON_COMMAND_BAR_REINFORCEMENTS.TGA 9

$ $
I_BUTTON_GRAVITY_CONTROL_GEN.TGA §
˜
2 2
I_SA_WEAKEN_ENEMY.TGA ́
¿



I_MULTI_INCREASED_MOBILITY.TGA

OR something like this. But the little squares, that mean new line in other texts that I've looked at, appear to follow the pattern if you don't format a few of them. But that doesn't work. I think maybe it's coordinates, I don't know how they would work. But it looks like coordinates.



Last edited by Three60; 03-28-2006 at 01:40 AM.
Three60 is offline   you may: quote & reply,
Old 03-28-2006, 02:33 AM   #5
Mike.nl
Rookie
 
Mike.nl's Avatar
 
Join Date: Jan 2006
Location: Netherlands
Posts: 52
Yes, those weird bytes are coordinates (X, Y, Width, Height and some other byte).

And actually, I've been working on an editor for this for the past couple of days.
It allows you to open a MTD and corresponding TGA file, modify them and save them again. After opening it lists the 'files' inside, allows you to view those files and will allow you to extract files, insert new files and rename existing files.

There is an existing editor for this I believe, but it can only change the MTD file by adding/deleting coordinates manually, so you still have to modify the TGA yourself and be careful not to overwrite some existing image.

My program will figure out on its own where the new file can be placed in the TGA based on the used area as indicated in the MTD file. So it'll be nice and transparant, making it seem just like an archive

It uses the FreeImage library, so it'll support quite a number of file formats (bmp, psd, tga, gif, jpeg, etc.) to import from or export to.

I'll have this finished somewhere this week, once I have fully tested it.

Btw, anyone have any clues what MT and MTD stands for? I'm thinking Multi-Texture and Multi-Texture Directory.

PS: You don't do file format reverse engineering in notepad or some other text editor. Get yourself a hex editor if you want results.

Last edited by Mike.nl; 03-28-2006 at 03:26 AM.
Mike.nl is offline   you may: quote & reply,
Old 03-28-2006, 01:33 PM   #6
Three60
Rookie
 
Join Date: Jan 2006
Posts: 239
Where can I get one?
And please make sure to post the editor when you're done.

From cknow.com, it stands for Music Transfer Document.


Three60 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Empire At War > EaW General Discussion > Modding forum > Modding the .tga's

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:02 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.