Phez Posted March 18, 2006 Posted March 18, 2006 (edited) This is an advanced quick tutorial. ---------------- Step 1 ----------------- Extracting, Opening and Editing the image * Extract Mt_commandbar.mtd and Mt_commandbar.tga from Textures.meg (data/art/textures)* Hex edit Mt_commandbar.tga -> Change offset 17 from 00 to 08 (alpha fix for Gimp, Photoshop may not need this)* Add your image to a blank area in Mt_commandbar.tga * Remember your icon's x, y coordinates Notes:Unit icons (tie fighter, xwing, etc...) are 50x50Pay attention to your alpha channelDo Not use RLE (run length encoding) and Do Not use "origin at bottom left" when saving (tested GIMP 2.3.7). - - - - - - - - - - Step 2 - - - - - - - - - - Editing Mt_commandbar.mtd using MTDEdit Make a backup of Mt_commandbar.mtd Open Mt_commandbar.mtd in MTDEdit Type your icon's Name X, Y, W, H into the boxes Press save to accept the new entry (the button should turn green)File -> Save Mt_commandbar.mtd has been rewritten to include your new icon info - - - - - More info for programmers - - - - - - - -Mt_commandbar.mtd+ This file contains 786 records: + Numbers are littleendian (intel)+ Each record is 81 bytes long + Each contains a string followed by zeros, 4 32 bit integers (X Y W H), and 1 byte (either 0 or 1) To add your icon overwrite the first number with one larger (787, 788, ...)Add a unique name for your image to the end of the file followed by zeros (64 bytes total I think)record the position of your icon as 4 byte integers (x, y) record the width and height of your icon as 4 byte integersend the file with a single byte: 1 (not '1' but 01 the number).----------------------------------------------------------------------- There you go! now you don't need to keep using Katarn's icon for everything! Phez Edited March 21, 2006 by Phez
DragonShadow Posted March 18, 2006 Posted March 18, 2006 Ah, Phez, you are a Godsend... Mwahahaha, now my Sith Lord gets his own icon... http://i61.photobucket.com/albums/h65/NightshadowDragon/RyuuKageSIG.jpg http://i61.photobucket.com/albums/h65/NightshadowDragon/AoSW-JCW_Banner.jpg
Malikovski Posted March 18, 2006 Posted March 18, 2006 Great...now some programmer get to work on a frontend for that!
Mikan Cyclone Posted March 18, 2006 Posted March 18, 2006 MWAHAHAHAHA! PATHETIC FOOLS! NOW YOU WILL TASTE THE WRATH OF MY NEW ICONS! http://i12.photobucket.com/albums/a245/loverdog/pffuserbar1.jpghttp://i74.photobucket.com/albums/i276/At-At_controller/leetspeak4cz1jr.gif
JaiOwl Posted March 18, 2006 Posted March 18, 2006 Good digging there Prez, nice and simple when we all know how nicely done
traceless Posted March 21, 2006 Posted March 21, 2006 Hi, nice idea but 2 questions 1. Which hex-editor did you use? 2. i can't find the numbers. Do you can make scrennshots with marks, were the numbers and other things are? and sry, my english is very bad. hope for answer
Mikan Cyclone Posted March 21, 2006 Posted March 21, 2006 THIS PWNS! AWESOME! http://i12.photobucket.com/albums/a245/loverdog/pffuserbar1.jpghttp://i74.photobucket.com/albums/i276/At-At_controller/leetspeak4cz1jr.gif
Phez Posted March 21, 2006 Author Posted March 21, 2006 I like http://www.catch22.net/software/hexedit.asp It's free and it gets the job done. I wish it would show more data types in the status bar evaluation. There's an editor up there now, It requires .NET 2.0. Should take the pain / annoyance out of MTD editing. Now all you need is Gimp or Photoshop, etc for the TGA file. Phez
traceless Posted March 21, 2006 Posted March 21, 2006 F**K#i dont find the numbers or other things in that file. Can anyone give me an example please?
Phez Posted March 21, 2006 Author Posted March 21, 2006 Which Step is giving you problems? What image editor are you using? Did you try the editor attached to the first post? Phez
traceless Posted March 22, 2006 Posted March 22, 2006 I used hex-Editor-MX I never work with hexaprogramms bevor. I think i found het first littleend-number 786 at the front on the first four numbers but i don't find the other numbers. And finally i don#t know were the other positions of the x/y coordinates or width and height are. i know nothing :-\ ??? maybe someone can mehe a screenhot of the prgoramm an mak marks on the Image, where i can find the things?
Phez Posted March 24, 2006 Author Posted March 24, 2006 The MTD editor is available. Skip the Hex Editor I modified the top post with the file and some new instructions. Happy Modding Phez
AdmarilRyan Posted March 24, 2006 Posted March 24, 2006 Very useful tool and tutorial, it has helped me a great deal.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now