Resizing Icons

Yup, that will work. No special care needed.
 
Thanks!

For some weird reason though, DXTBMP is refusing to save 45x45 or 80x80 icons without corrupting them (other sizes work fine). Even stranger, it saves atlases of other sizes correctly, but not atlases composed of 45x45 or 80x80 icons.

Is there another (free) program which can convert DDS files? Other than GIMP that is, since despite me having the GIMP DDS Plugin it can't load DDSes.
 
I use Paint.NET
 
GIMP works just fine for me, although I do take one extra step: I do the half-sizes first, and then scale down everything only from the max size.

That is, 2048 -> 1024 -> 512, then 2048 -> 1712, 2048 -> 640, and 2048 -> 360 as needed. This really cuts down on the number of strange graphical quirks I've run into, since factors of 2 are really easy for the interpolation scheme. Or at least, that's how it's looked.
 
GIMP works just fine for me, although I do take one extra step: I do the half-sizes first, and then scale down everything only from the max size.

That is, 2048 -> 1024 -> 512, then 2048 -> 1712, 2048 -> 640, and 2048 -> 360 as needed. This really cuts down on the number of strange graphical quirks I've run into, since factors of 2 are really easy for the interpolation scheme. Or at least, that's how it's looked.

Yes, that is also my experience. About GIMP, it is supposed to work, yes, and used to work for me with .dds files, but now it isn't for some reason.

By the way, my impression is that you resized the original Alpha Centauri icons to be 75% of their original size. Is that correct?

EDIT: I've found that for 256x256 icons to look correctly, the "material" part of the icon should be at most 122x122.
 
By the way, my impression is that you resized the original Alpha Centauri icons to be 75% of their original size. Is that correct?

66.7%. I scaled the base template up to 3072x3072, placed the icons in that, scaled it down to 2048, then scaled as necessary down from there.

For the Mythology mod, I didn't bother with that and just scaled every input image immediately to fit into a 2048 template. Since this mod used detailed pictures instead of the very stark icons of the AC mod, scaling artifacts just weren't as obvious.

EDIT: I've found that for 256x256 icons to look correctly, the "material" part of the icon should be at most 122x122.

122x122 if you want the entire square to fall inside the circle. 174 is the maximum visible width to fit within the circle, so I generally scale my pictures down to 176 on the shortest dimension and then fit it from there.
 
Something strange is happening. I have added a building and it's icon is showing everywhere correctly, except for the tech tree screen:



The icon for the building "Command Center" should be showing up under the Doctrine: Mobility tech, but isn't. When I hover the mouse over where the icon would be though, it's description appears as if the icon were there.

This is the code I'm using for the building:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 2012-02-11 8:55:41 AM -->
<GameData>
	<BuildingClasses>
		<Row>
			<Type>BUILDINGCLASS_COMMAND_CENTER</Type>
			<DefaultBuilding>BUILDING_COMMAND_CENTER</DefaultBuilding>
			<Description>TXT_KEY_BUILDING_COMMAND_CENTER</Description>
		</Row>
	</BuildingClasses>
	<Buildings>
		<Row>
			<Type>BUILDING_COMMAND_CENTER</Type>
			<BuildingClass>BUILDINGCLASS_COMMAND_CENTER</BuildingClass>
			<Cost>400</Cost>
			<GoldMaintenance>1</GoldMaintenance>
			<PrereqTech>TECH_DOCTRINE_MOBILITY</PrereqTech>
			<Help>TXT_KEY_BUILDING_COMMAND_CENTER_HELP</Help>
			<Description>TXT_KEY_BUILDING_COMMAND_CENTER</Description>
			<Civilopedia>TXT_KEY_BUILDING_COMMAND_CENTER_QUOTE</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_COMMAND_CENTER_STRATEGY</Strategy>
			<MinAreaSize>-1</MinAreaSize>
			<IconAtlas>COMMAND_CENTER_ATLAS</IconAtlas>
			<PortraitIndex>0</PortraitIndex>
		</Row>
	</Buildings>
	<Building_DomainFreeExperiences>
		<Row>
			<BuildingType>BUILDING_COMMAND_CENTER</BuildingType>
			<DomainType>DOMAIN_LAND</DomainType>
			<Experience>30</Experience>
		</Row>
	</Building_DomainFreeExperiences>
	<Building_Flavors>
		<Row>
			<BuildingType>BUILDING_COMMAND_CENTER</BuildingType>
			<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
			<Flavor>20</Flavor>
		</Row>
	</Building_Flavors>
	<IconTextureAtlases>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>256</IconSize>
			<Filename>CommandCenter256.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>128</IconSize>
			<Filename>CommandCenter128.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>80</IconSize>
			<Filename>CommandCenter80.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>64</IconSize>
			<Filename>CommandCenter64.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>45</IconSize>
			<Filename>CommandCenter45.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>32</IconSize>
			<Filename>CommandCenter32.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
	</IconTextureAtlases>
	<Language_en_US>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER">
			<Text>Command Center</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER_QUOTE">
			<Text>[NEWLINE][TAB][TAB]"Superior training and superior weaponry have, when taken together, a geometric effect on overall military strength. Well-trained, well-equipped troops can stand up to many more times their lesser brethren than linear arithmetic would seem to indicate."[NEWLINE][TAB][TAB] - Spartan Battle Manual[NEWLINE][TAB]</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER_HELP">
			<Text>+30 Experience for land units.</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER_STRATEGY">
			<Text>The Command Center is a building which increases the number of experience points of land units constructed in the city.</Text>
		</Row>
	</Language_en_US>
</GameData>

And this is it's .dds file (size 45, the one used by the tech tree screen):
http://dl.dropbox.com/u/1732902/Civilization V/CommandCenter45.dds

Any ideas on why this is happening?
 
Something strange is happening. I have added a building and it's icon is showing everywhere correctly, except for the tech tree screen:



The icon for the building "Command Center" should be showing up under the Doctrine: Mobility tech, but isn't. When I hover the mouse over where the icon would be though, it's description appears as if the icon were there.

This is the code I'm using for the building:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 2012-02-11 8:55:41 AM -->
<GameData>
	<BuildingClasses>
		<Row>
			<Type>BUILDINGCLASS_COMMAND_CENTER</Type>
			<DefaultBuilding>BUILDING_COMMAND_CENTER</DefaultBuilding>
			<Description>TXT_KEY_BUILDING_COMMAND_CENTER</Description>
		</Row>
	</BuildingClasses>
	<Buildings>
		<Row>
			<Type>BUILDING_COMMAND_CENTER</Type>
			<BuildingClass>BUILDINGCLASS_COMMAND_CENTER</BuildingClass>
			<Cost>400</Cost>
			<GoldMaintenance>1</GoldMaintenance>
			<PrereqTech>TECH_DOCTRINE_MOBILITY</PrereqTech>
			<Help>TXT_KEY_BUILDING_COMMAND_CENTER_HELP</Help>
			<Description>TXT_KEY_BUILDING_COMMAND_CENTER</Description>
			<Civilopedia>TXT_KEY_BUILDING_COMMAND_CENTER_QUOTE</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_COMMAND_CENTER_STRATEGY</Strategy>
			<MinAreaSize>-1</MinAreaSize>
			<IconAtlas>COMMAND_CENTER_ATLAS</IconAtlas>
			<PortraitIndex>0</PortraitIndex>
		</Row>
	</Buildings>
	<Building_DomainFreeExperiences>
		<Row>
			<BuildingType>BUILDING_COMMAND_CENTER</BuildingType>
			<DomainType>DOMAIN_LAND</DomainType>
			<Experience>30</Experience>
		</Row>
	</Building_DomainFreeExperiences>
	<Building_Flavors>
		<Row>
			<BuildingType>BUILDING_COMMAND_CENTER</BuildingType>
			<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
			<Flavor>20</Flavor>
		</Row>
	</Building_Flavors>
	<IconTextureAtlases>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>256</IconSize>
			<Filename>CommandCenter256.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>128</IconSize>
			<Filename>CommandCenter128.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>80</IconSize>
			<Filename>CommandCenter80.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>64</IconSize>
			<Filename>CommandCenter64.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>45</IconSize>
			<Filename>CommandCenter45.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>COMMAND_CENTER_ATLAS</Atlas>
			<IconSize>32</IconSize>
			<Filename>CommandCenter32.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
	</IconTextureAtlases>
	<Language_en_US>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER">
			<Text>Command Center</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER_QUOTE">
			<Text>[NEWLINE]"Superior training and superior weaponry have, when taken together, a geometric effect on overall military strength. Well-trained, well-equipped troops can stand up to many more times their lesser brethren than linear arithmetic would seem to indicate."[NEWLINE] - Spartan Battle Manual[NEWLINE]</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER_HELP">
			<Text>+30 Experience for land units.</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_COMMAND_CENTER_STRATEGY">
			<Text>The Command Center is a building which increases the number of experience points of land units constructed in the city.</Text>
		</Row>
	</Language_en_US>
</GameData>

And this is it's .dds file (size 45, the one used by the tech tree screen):
http://dl.dropbox.com/u/1732902/Civilization V/CommandCenter45.dds

Any ideas on why this is happening?

Seems like an issue with the 45 dds only. Rescale it and make sure the icon comes out correctly.

The icon you provided only shows a white line. Start at 256 and scale it to 45. It should work then.

Hope this helps.

Although, to be thorough, is the 45 dds importing into the VFS?
 
Seems like an issue with the 45 dds only. Rescale it and make sure the icon comes out correctly.

I'm not sure if it's a problem with the 45 dds only. In the "to-build" list within the city interface, the icon doesn't show up either. But it does in the "already-built" list. And it shows up correctly within the civilopedia, both when hovering the mouse over it, and in the building's article.

The icon you provided only shows a white line. Start at 256 and scale it to 45. It should work then.

That's exactly what I did already :( (through Paint.NET)

Here's how it looks to me in Paint.NET:



With which tool did you see just a white line?

Hope this helps.

Although, to be thorough, is the 45 dds importing into the VFS?

Yes, and I've rechecked quite a few times.
 
Through GIMP, it came through as a white line only.

The game doesn't really treat different icons differently...as long as you provide the various sizes and what .dds's to look for, the game really does the rest. If specific icons aren't working, that means that specific size is called wrong. For no reason would the game pick and choose dds's to not work for any arbitrary reason. :p

Hence, my conclusion is the image itself.

I've had instances where my layers were bigger than the canvas, so the canvas resizes to fit itself after I closed the image. Then, my icons were all messed up because of that. Perhaps that's your issue?

Other than that, I can't help you with much more. Your tags are fine and you're not receiving errors. So, it's the specific image that's causing the problem.
 
Yes! I got it to work :)

I had previously tried putting the icon into an already-existing atlas in it's empty bottom-right corner. But it wouldn't appear then either, and worse, it wouldn't appear in even more instances than previously.

But then... upon checking other atlases, I realized the bottom-right corner icon was always empty (as well as the one to it's up and left). So it occurred to me that maybe those spots aren't read by the game as normal icons. So I deleted an unused icon at the start of the atlas and replaced it with my icon and it worked :)
 
This .png loads up fine in GIMP:

But when I convert it to .dds with Paint.NET, it doesn't show up ingame.

If you're already using GIMP, then why not just save it directly as a DDS there without having to mess around with a second program? Just go download the GIMP DDS plugin and you're done.
 
I have a question? When adding the unit icons, how do I get them to extend past the template? Is there a double layering in effect or do I just have to crop out all of the background so that just the image remains (my images come in square blocks)?
 
I see. Is there a quick way to do that with Gimp? I haven't found one but I thought I'd ask just in case :)
 
Top Bottom