Posted: Tue Feb 18, 2020 11:24 am Post subject:
Building requirements, sides, and AI problem.
I made a new house, for Yuri in particular, plus I created new buildings, defenses, and units for that new country.
Now here's the problem. So I tried using my new house and my newly added defenses are not buildable although my newly added buildings and units are buildable. I tried checking their Prerequisites, Owner, RequiredHouses but there were properly inputted for my new house so I'm really at lost. I tried changing Owner and RequiredHouses and what surprises me is that they were buildable on my other houses but not on my newly made house.
Second problem is I tried the AI for my new house. Granted that it should not do anything because I have not put any single AI codes for the new country but what is weird is that they do not build anything after building the power plant. AIBasePlanningSide should be correct so I believe AI should still build buildings even if I have not set any AI codes.
If there's something I forgot to share or anything else you want to know to help me on this issue, please do tell and I appreciate it. QUICK_EDIT
Try adding YuriCountry try as an owner. I think a unit/structure requires one of the original 10 countries as an owner to be buildable, or at least to be a starting unit in skirmish. QUICK_EDIT
Keeping all houses in Owner is better and easier when doing changes. Human players can build anything if prereqs are met, Forbidden/Required houses permit and any one house from that side is listed, even if that particular house is left out in Owner. But AI can't build it, if not listed in Owner. For country specific AI needs for teams, can give it in the AITrigger.
Ares also gives option to define defense building in that Side's section. QUICK_EDIT
Keeping all houses in Owner is better and easier when doing changes. Human players can build anything if prereqs are met, Forbidden/Required houses permit and any one house from that side is listed, even if that particular house is left out in Owner. But AI can't build it, if not listed in Owner. For country specific AI needs for teams, can give it in the AITrigger.
Ares also gives option to define defense building in that Side's section.
It worked that if I put the rest of Yuri houses on Owner tag, the defenses will be buildable on my newly made Yuri house. However, AI with old Yuri houses will build those defenses in which I made exclusively for my new Yuri house.
And the Ares defining build defense is for Sides section, not Country section, unfortunately. I am currently still trying to figure how to solve this problem though...
Also, I just made AI teams and triggers for the newly made Yuri house but still its AI will still not build past power plant... I properly defined Owner tags of all Yuri buildings. QUICK_EDIT
As you want an exclusive defense for your new country, it might be better to give that country to a new side.
I really and seriously don't want to reach that point if seriously possible as that would mean there are way lots of stuffs I need to add and change.
I don't truly understand why this happened when I made other new Yuri house before and I made their own exclusive defenses, same goes for Allied and Soviet ones, yet this kind of problem never occurred until this one.
I'm starting to think if this caused by some faulty coding on the engine or Ares part. QUICK_EDIT
I use the YR battle bunker as a house-specific defensive structure using Owner= only. It is declared alongside other defenses in the global values, and has standard prereqs.
Given both the ai.ini and Owner= allow you to be highly specific, there's very little need to have multiple sides for even wildly different factions, the only thing you give up is a unique MCV. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
Have you updated the prerequisites for all Yuri structures for your new power plant? It's possible the AI struggles to build past as the Refinery/Slave Miner or Barracks have no valid prereqs met.
Also, ThirdSide would use AIBasePlanningSide=2 instead of the 3 you have entered into the YAGGUNEX which could be causing issues as well. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum