Tiles production display

juni_be_good

Black mage
Joined
Jun 26, 2005
Messages
115
Location
Caen, France
Hello modders

I am actually working on a mod that allows some tiles to produce more than 10 units of food, hammers or gold. And there is a problem with this.

The game can not display two 5-icons on the same tile. So when your tile produces 11, you see 6. I found the Vertical_Symbols.dds file, that contains all the icons, but I don't know if it can help me. Is it possible to add more icons (for 6, 7, 8, 9, 10, and then for 11 it would display 10-icon and 1-icon) ?

And if it is not possible, does someone know where this display is defined ? Maybe I could change it and just display the 1-icon and the number ot units next to it, or allow it to display two 5-icons on the same tile.

Thanks
 
juni_be_good said:
Hello modders

I am actually working on a mod that allows some tiles to produce more than 10 units of food, hammers or gold. And there is a problem with this.

The game can not display two 5-icons on the same tile. So when your tile produces 11, you see 6. I found the Vertical_Symbols.dds file, that contains all the icons, but I don't know if it can help me. Is it possible to add more icons (for 6, 7, 8, 9, 10, and then for 11 it would display 10-icon and 1-icon) ?

And if it is not possible, does someone know where this display is defined ? Maybe I could change it and just display the 1-icon and the number ot units next to it, or allow it to display two 5-icons on the same tile.

Thanks


Yes go to this folder: XML\Terrain\ and open CIV4YieldInfos.xml

That is the file which determines the art as well, strangely enough.

Problem is it specifies the .nif Files and not dds types. So unless you can add 5 more .nif files then I think what you're suggesting cannot be done.

I had a similar issue while making my mod, my solution was to make cities use only 1 food per pop. ;)
 
Like most of us, I don't have much money to spend in a Gamebryo plugin to edit .nif files :rolleyes:

Thanks for your answer, I will take your easier solution and decrease growth costs ;)
 
juni_be_good said:
Like most of us, I don't have much money to spend in a Gamebryo plugin to edit .nif files :rolleyes:

Thanks for your answer, I will take your easier solution and decrease growth costs ;)


Hey np ;)

However, I discovered another issue with food/city growth I think I should metion to you.

If you aren't aware, in world builder you can make a city up to size 1000. However, when you are playing a game it shouldn't go past 182. The reason for this is because the game is 32-bit, 2 to the power of 31 = 2.1 Billion approx.

So, what I am saying is if you have a city at the size of 182 you get a population number of 2.1 billion. If the city goes to size 183, you get that same number in the negative. :p

Word of advice, don't allow cities to grow past 182. ;)
 
I am not going to make my cities grow so much. My idea was to make people consum 4 food / turn, and to double food production on tiles, so that the growth status is not changed (a city growing in normal game will grow in my mod, same for starvation) but I wanted it to be faster (in both ways)

But it seems that just decreasing growth cost would do this as well.

However, I found the bug you noticed very interesting. Programmers can not think to everything :rolleyes:
 
juni_be_good said:
I am not going to make my cities grow so much. My idea was to make people consum 4 food / turn, and to double food production on tiles, so that the growth status is not changed (a city growing in normal game will grow in my mod, same for starvation) but I wanted it to be faster (in both ways)

But it seems that just decreasing growth cost would do this as well.

However, I found the bug you noticed very interesting. Programmers can not think to everything :rolleyes:


Actually, having the cities consume 1 food per pop will make them never starve because they grew.

Think about it. Let's say a city is size 5. So it uses 5 food. However, it has 6 Output. In fact it could have 7... it doesn't matter... cause it will get there eventually. See where I am going with this?

Don't get me wrong though, stavation will still be a factor with a food consumtion of 1. They just will not start to stave due to growth as they did before, and only because of sickness or because you are involved in a lengthy war and your laborers start refusing to work. A city will use more food if the sickness is greater than the health. ;)

With a food consuption of 2, a city can be size 9, using 18 food and be outputting 19 food. Once it grows, (Assuming it doesn't start working another tile.) it will use 20 food with an output still of 19 and thus start to starve. Basically what I am saying is, with a food consumption of 1 this aspect is not a factor. ;)

I hope I made sense with all of this, I am quite tired as I've been awake working hard testing my mod. :p
 
Back
Top Bottom