logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,213

Administrators:
DeeZire, Redemption

There are currently 37 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 06-07-2007, 02:35 PM   #11 (permalink)
Member
 
Join Date: Mar 2007
Location: Iowa, USA
Posts: 58
Send a message via MSN to =ARSF=Thumpit
Default

Ok, I've got the image set as a 24 bit .tga at a 62x50 size. It still distorts. Any other options??
=ARSF=Thumpit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2007, 03:50 PM   #12 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 16
Default

You remapped it to match the 62x50 size right?
Do you have it as 62x50 or 50x62? Try switching it.
Renaissance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2007, 04:40 PM   #13 (permalink)
Member
 
Join Date: Mar 2007
Location: Iowa, USA
Posts: 58
Send a message via MSN to =ARSF=Thumpit
Default

Thanks for your help guys.

I never understood the whole "mapping" part but I think I'm starting to get the hang of it.

I got the two icons working, now I just have to figure out the cameo icons.

My units are still using the old build and cameo icons instead of the ones I just made.
=ARSF=Thumpit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-07-2007, 04:55 PM   #14 (permalink)
Member
 
Join Date: Mar 2007
Location: Iowa, USA
Posts: 58
Send a message via MSN to =ARSF=Thumpit
Default

Sweet, got that working as well. Thanks for the help guys.
=ARSF=Thumpit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-08-2007, 02:23 PM   #15 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 16
Default

Keep up the diligence!
Renaissance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-08-2007, 03:00 PM   #16 (permalink)
Member
 
Join Date: Mar 2007
Location: Iowa, USA
Posts: 58
Send a message via MSN to =ARSF=Thumpit
Default

Thanks Renaissance,

I've got One general and one new faction done, and I"m working on another general.

I'm very glad for the help I've recieved here so far. I wouldn't be this far without you guys.
=ARSF=Thumpit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 10:07 AM   #17 (permalink)
Super Moderator
 
BlueGalactic's Avatar
 
Join Date: Feb 2007
Posts: 167
Default

What should I do if the game breaks the images into pieces and moves them around? For example, my Phalanx Tank images are split in the middle and it appears that the halves are reversed in the menu bar.
BlueGalactic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 10:40 AM   #18 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 16
Default

Sounds like the image mapping may be off.

Does it happen with all the cameos? All the ones you added? Or does it appear to be random?

Try this:
- Find a cameo with the same dimensions
- copy and paste the entry
- rename the entry accordingly
- offset the coordinates
-> if the entry starts at 1 and your cameo starts at 250, add 249 to every lateral coordinate
-> repeat that step for the vertical coordinates.
- see if it works!

If it doesn't try this:
- open the image
- cut and paste your cameo over a working cameo
- save the image (keep a backup of the original)
- see if it works!
-> check by the unit that you replaced; if you replaced the Battlemaster cameo it should now be whatever you replaced it with
- if that cameo is messed up it may be a problem with the image.
Renaissance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-16-2008, 01:10 PM   #19 (permalink)
Super Moderator
 
BlueGalactic's Avatar
 
Join Date: Feb 2007
Posts: 167
Talking Back to the mapping board.

Quote:
Originally Posted by Renaissance View Post
Let's see if this clarifies it for you
When you are mapping images you basically have to provide to bits of info:
- which file you want
- the coordinates of the image; not the dimensions of the file.

TextureWidth = 512 <- how wide the file (tga) is
TextureHeight = 512 <- how high the file (tga) is
Coords = Left:100 Top:263 Right:386 Bottom:278

Left:100 <- starts right of this value
Top:263 <- starts below this value
Right:386 <- starts left of this value
Bottom:278 <- starts above this value

Remember to make all images a factor of 2: 64x64, 128x128, 256x256, 512x512
512x512 is generally best.
If you find the game not using the button you assigned, but the last available button in a commandset, try adding or deducting from the coordinates each time you load the game. I tried that method and it worked. Remember: the image must be a Targa file (.tga) or the game won't read it.
__________________
Was a Command and Conquer loyalist, now a loyal Supreme Commander fan and gamer. I am never going back to C&C.

UEF - Unite
Aeon Illuminate - Cleanse
Cybran Nation - Liberate

GPG > EA

Last edited by BlueGalactic; 04-07-2008 at 09:56 AM.
BlueGalactic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2008, 09:16 AM   #20 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 589
Default

The easiest way to learn how the image ini files and the image files work together is to look at the ones that come with the game. The image ini files are in INI.BIG / INIZH.BIG in:

Data\INI\MappedImages\TextureSize_512\

And the image files are in English.Big in ZH and Textures.Big in Generals.

Open one ini file and open one of the TGA files and compare them. You will see immediately how it works.

Just note that the EA games ini files are all wrong. They add one pixel to all image coordinates. Instead of following them, just use the exact pixel coordinates of the image edges that you get from your graphics editing program (paint shop pro, photoshop, whatever).

Just put your mouse cursor on the top left pixel (zoom in the view to be accuarte) and write down the coordinates your graphics software tells you for the top: and left: coords, and then put your mouse cursor on the bottom right pixel and write down the bottom: and right: coords. Do not add 1 to them like EA games does. This results in a black strip or a 1 pixel strip of another image appearing at the edge of the cameos in the game.

If you need good free graphic editor that gives you X Y coordinates of your mouse cursor, you can download PhotoFiltre:
http://www.photofiltre.com
It is small and very good.

Also note that EA games use different image sizes for both the large portraits and the smaller button images, and are not consistent. To get the best size, take a screen cap of the actual in-game user interface and measure the size of the cameo images as they are displayed in the game - that is the size you should use.
beng is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

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
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WND File Buttons Yuki Kiba Dakatsu Generals & Zero Hour Editing 13 07-15-2005 06:21 AM
Command Buttons and Fog Waraddict Generals & Zero Hour Editing 7 08-01-2004 12:06 PM
Max buttons in shortcut bar? Kuja Generals & Zero Hour Editing 5 07-12-2004 02:26 AM
adding more than 12 buttons ( help! ) ccs Generals & Zero Hour Editing 3 01-26-2004 09:10 PM
perchase since buttons help?? 4hammer Generals & Zero Hour Editing 22 01-26-2004 12:21 PM


All times are GMT -4. The time now is 05:47 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.