Logo Platform
logo amplifiers simplified

Need help with UI city improvement

Reply
Copied to clipboard!
9 years ago
Nov 11, 2015, 10:58:56 PM
Hi,

Here, there is a mini-mod, only one city improvement, the mod work, you can test it.

DOWNLOAD : TinyTech_EnchanteurMod.zip



But there is something i find no way to resolve.



You see the line :

[CODE]TechnologyArmorCommonTier1,TechnologyScience0[/CODE]



in DepartmentOfIndustry+Constructibles[CityImprovement].xml :

[CODE]







75

.../ClassEmpire,AffinityReplicants

../ClassCity/CityImprovementScience0

TechnologyScience0









100

.../ClassEmpire/Uniques,CityImprovementEnchanteurSynthesizer1

.../ClassEmpire/ClassCity/CityImprovementEnchanteurSynthesizer1

TechnologyArmorCommonTier1,TechnologyScience0

$Count(../ClassEmpire/ClassCity) le 1

CityImprovementEnchanteurSynthesizer1

[/CODE]



The problem is my improvement is not show at all in tech panel.



I tryed also :

[CODE]TechnologyArmorCommonTier1

TechnologyScience0

[/CODE]



Here the problem is my improvement is show 2 times, one time in TechnologyScience0, and one time in TechnologyArmorCommonTier1, and it erase the TechnologyArmorCommonTier1 UI.

All work well (there is need of 2 other tech to unlock the improvement), except for UI.



I would like to make see the improvement into science0 only, possiby grayed when TechnologyArmorCommonTier1 isn't unlock.

Or I would like to put only the improvement into TechnologyArmorCommonTier1, but when doing that, the UI of TechnologyArmorCommonTier1 is erased. I tried this first because i wanted the improvement depend only of TechnologyArmorCommonTier1 unlock.



Notice I copied the science0 improvement before my improvement : if i don't do that, the game don't show the improvement.



Other problem I have, i don't know how to say to AI what do the improvement, in AIParameters[CityImprovement].xml :



[CODE]



[/CODE]



I put the AI parameter CityMoneyUpkeep. Of course it's wrong, but it s only for showing. How to say AI it's a titanium +1 bonus per turn ?



Thanks
0Send private message
9 years ago
Nov 12, 2015, 9:51:43 AM
I found a partial solution for problem n°1



EnchanteurTinyTechs.zip



I force the hidden improvement in armortier tech with adding additional tech "era1", and change description of armor tier. Best I can do, but it's fine, player get information.



But I still don't know how to make the AI parameter.
0Send private message
9 years ago
Nov 12, 2015, 11:27:44 AM
Hey there!



Enchanteur wrote:


Other problem I have, i don't know how to say to AI what do the improvement, in AIParameters[CityImprovement].xml :



[CODE]



[/CODE]



I put the AI parameter CityMoneyUpkeep. Of course it's wrong, but it s only for showing. How to say AI it's a titanium +1 bonus per turn ?



Thanks




Your best bet is to look at something that exists already and copy that across. For instance something that currently gives 1 Titanium per turn is a Titanium extrator. You can find its AI parameter in AIParameters[PointOfInterestImprovement].xml:



[CODE]







[/CODE]



Why should this be 20 and not 1 if it's 1 per turn? That's a very long story. We're working on the AI at the moment, and in future the parameters will be a little more straightforward to understand - in the case of extractor for instance it will look like this:



[CODE]





[/CODE]



We'll write up some sort of migration guide for you can easily update the AI parameters when that happens.
0Send private message
9 years ago
Nov 12, 2015, 11:40:48 AM
Great thanks !

I didn't found EmpireStrategicResource1 in files with multiFind tool.

But I will use CityResourceExtraction_Strategic1. And look more in AI parameters files. I could found this by myself. Or maybe I didn't look in PointOfInterest, or not sure a extractor parameters was fine, didn't remember.
0Send private message
9 years ago
Nov 12, 2015, 3:29:14 PM
Enchanteur wrote:
Great thanks !

I didn't found EmpireStrategicResource1 in files with multiFind tool..


Hmm... well the full path should be steamapps\common\Endless Legend\Public\AI\AIParameters[PointOfInterestImprovement].xml, and you should find it right at the top of the file.



Enchanteur wrote:
But I will use CityResourceExtraction_Strategic1. And look more in AI parameters files. I could found this by myself. Or maybe I didn't look in PointOfInterest, or not sure a extractor parameters was fine, didn't remember.


You'll have to wait for the update to use CityResourceExtraction_Strategic1 I'm afraid, as until the update the AI will not be on the lookout for anything with the name so will just ignore it! Best use the original version for now...
0Send private message
?

Click here to login

Reply
Comment