Can improvements have Unique names?

Amra

the Lion
Joined
Mar 13, 2006
Messages
1,036
Location
Khauran
I do not believe this can be done currently but was hoping someone with more xml knowledge could tell me if the xml could be edited to add unique names to Improvements similar to the situation with Units.

In my modpack I have created a new resource called "Lost Civilization" and an improvement that can be built on the resource called "Excavated Ruins". I thought it would add a little flavor to the game if I could give each "Excavated Ruins" improvement a unique name along the lines of "Excavated Ruins of [insert civ name here]". I would use civs that were not currently in my modpack for the names.

Is this just a matter of editing the CIV4TerrainSchema.xml and CIV4ImprovementInfos.xml files? Any info or help on this is appreciated. Thanks.
 
actually dont think it would be that straightforward ... might be wrong but the schema has you set in the improvements file for a single line of code, e.g.

Code:
<Description>TXT_KEY_IMPROVEMENT_AERATOR</Description>

In Unitinfos you have an open ended line :
Code:
<UniqueNames>
	<UniqueName>Jimbo</UniqueName>
	<UniqueName>Bart</UniqueName>
</UniqueNames>


I'd say it'd involve a schema change and probably pushes it out of my coding league, if you can do it i owe you a pat on the back! :)
 
Amra, doing something like this would take some SDK hacking to add the unique name tags to improvements. That is of course if I understand correctly what you are trying to do. Are you basically trying to get the same type of unique name tags like we already have for units?
 
TheLopez said:
Amra, doing something like this would take some SDK hacking to add the unique name tags to improvements. That is of course if I understand correctly what you are trying to do. Are you basically trying to get the same type of unique name tags like we already have for units?
Yes, but it is not that important to go thru any sdk changes for it. That's why I was hoping to just do something in xml. Please don't take on another project TheLopez, I think you have enough things on your plate.:) I'm already using a lot of your mods in my modpack's next version as it is (BIG thank you). I can live with just "Excavated Ruins" for each of the improvements.
 
I'd guess if you're really up for it, you can make one improvement for each Civilization, all of them exactly the same except for the name. It would probably make your worldbuilder menu look like rubbish with a ton of the same improvement, but it's one way to perhaps solve the problem.
 
Back
Top Bottom