Hubert Cater
Posts: 5199
Joined: 7/22/2013 Status: offline
|
quote:
ORIGINAL: Ason I'm trying to replace Abyssinia and Afghanistan (country ID 1 and 2) with my own factions. Most of the .png's in the bitmaps folder had 2 free slots on #1 and #2, so I placed my own flags there, but in the interface folder I found that the "game_screen_flag_sprites.png" only have 1 free space on the first slot, then at #2 it's the Albanian flag.. Edit: I decided to just switch the Hungarian and Romanian flags instead of Abyssinia and Afghanistan, but I've run into another problem.. I now saw that on the "Unit_Counter_Flag_Sprites.png in the bitmap folder the german flag seems to be on spot #25 even though the country id is 45... How come? I also tried to make a grid to easier see where each spot is but I can only get the grid to match the icons on one axis, if X-axis matches current flags, Y-axis doesn't match, and vice versa.. So I guess i'm asking how do i know where to place the new flags ? (I'm not a pro when it comes to photoshop and especially not when it comes to editing things like this, are there any tutorials about editing these files? ) Hi Ason, What I would suggest here is to look at the png file width and height dimensions. Usually then from the sprites you can see how many go across and then how many sprites go down in the file. For example, in the unit_Counter_Flag_Sprites.png file, you'll see it is 20 sprites across, and 6 sprites down. The file is then 1300x282, so to set the grid you can divide 1300 by 20 to give you 65 for the vertical grid spacing, and 282 divided by 6 to give you 47 for the horizontal grid spacing. In other words the individual flag sprites are 65x47 pixels. Note, Germany is still in slot 45 in this file, it is just 20 across instead of 10 like in the other file. Hope this helps, Hubert
_____________________________
|