ENDLESS™ Space is a turn-based 4X strategy game, covering the space colonization age in the ENDLESS™ Universe. You control every aspect of your civilization as you strive for galactic dominion.
When I was using AIL's AI mod, it provided a function of hiding unnecessary improvements like "Sustainable Farming" at jungle planet only system. I would like to know, how it is done so I could include it to my personal mod compilation. So far I've found code, which makes the improvement unbuildable:
StarSystemImprovement.xml
[CODE]
StarSystemImprovementFood1
$(ClassStarSystem/PlanetTypeDesert,PlanetStatusColonized) or $(ClassStarSystem/PlanetTypeArid,PlanetStatusColonized) or $(ClassStarSystem/PlanetTypeArctic,PlanetStatusColonized) or $(ClassStarSystem/PlanetTypeTundra,PlanetStatusColonized)
(($(ClassStarSystem:ConsumptionPerFood) ge $(ClassStarSystem:PopOfMax) and $(ClassStarSystem:Population) lt $(ClassStarSystem:MaxSystemPopulation)) or $(ClassStarSystem:FoodSurplusToProductionBonus) gt 0 or $(ClassStarSystem:FoodSurplus) lt 0) and ($(ClassStarSystem/PlanetTypeDesert,PlanetStatusColonized) or $(ClassStarSystem/PlanetTypeArid,PlanetStatusColonized) or $(ClassStarSystem/PlanetTypeArctic,PlanetStatusColonized) or $(ClassStarSystem/PlanetTypeTundra,PlanetStatusColonized))
%StarSystemImprovementFood1Title
%StarSystemImprovementFood1Description
[/CODE]
But it doesn't make the icon for improvement to disappear. Could someone tell me the right way to make it work?
It makes it unbuildable but doesn't make the icon disappaer? That's strange. It always worked like that for me.
I even have something similar with the Emergency-Money-Building. It always disappears when the requirements are not met and reappears once they are fullfilled again.
Edit: I also always use the to test what the AI would see when I'm not sure. I really wonder why even davea says it woulnd't work anymore. oO Probably a bug that in some configurations it works and in others it doesn't.
Hmm so it's not only my case. Anyway thanks a lot for response. Also I wasn't aware who was the original creator of this mod. Maybe some patch will fix it. I'm just wondering why devs don't put it into the game, but they have more important issues to deal with maybe.
JustSpectre wrote: Hmm so it's not only my case. Anyway thanks a lot for response. Also I wasn't aware who was the original creator of this mod. Maybe some patch will fix it. I'm just wondering why devs don't put it into the game, but they have more important issues to deal with maybe.
JustSpectre
Newcomer
JustSpectre
Newcomer
100g2g ptsReport comment
Why do you report JustSpectre?
Are you sure you want to block JustSpectre ?
BlockCancelAre you sure you want to unblock JustSpectre ?
UnblockCancelAil
VIP
Ail
VIP
6 400g2g ptsReport comment
Why do you report Ail?
Are you sure you want to block Ail ?
BlockCancelAre you sure you want to unblock Ail ?
UnblockCanceldavea
Newcomer
davea
Newcomer
700g2g ptsReport comment
Why do you report davea?
Are you sure you want to block davea ?
BlockCancelAre you sure you want to unblock davea ?
UnblockCancelJustSpectre
Newcomer
JustSpectre
Newcomer
100g2g ptsReport comment
Why do you report JustSpectre?
Are you sure you want to block JustSpectre ?
BlockCancelAre you sure you want to unblock JustSpectre ?
UnblockCancelchromodynamics
Newcomer
chromodynamics
Newcomer
6 000g2g ptsReport comment
Why do you report chromodynamics?
Are you sure you want to block chromodynamics ?
BlockCancelAre you sure you want to unblock chromodynamics ?
UnblockCancelVIPadder
Old Timer
An eye for an eye leaves the whole world monocular.
VIPadder
Old Timer
25 400g2g ptsReport comment
Why do you report adder?
Are you sure you want to block adder ?
BlockCancelAre you sure you want to unblock adder ?
UnblockCancelJustSpectre
Newcomer
JustSpectre
Newcomer
100g2g ptsReport comment
Why do you report JustSpectre?
Are you sure you want to block JustSpectre ?
BlockCancelAre you sure you want to unblock JustSpectre ?
UnblockCancel