AI Control commnad function

Bug #895850 reported by Krozalid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
New
Low
Unassigned

Bug Description

There is a weird bug with it. What happens is things which are unbuildable to a side is buildable even wihout the correct prerequisite. Even civilians are buildable and the cause is the Owner= tag and since Yuri's buildings have only Owner=YuriCountry, they are still unbuildable but his units, infantries and base defenses still can be built.

##### STEPS TO REPRODUCE #####
1)Assign a hotkey for the AI Control (you MUST NOT deploy the conyard yet).
2)Use the hotkey.
3)And the AI assume control text will appear.
4)Watch that there are missing cameos in the building,infantry,unit and base defense tab.
5)The defense tab is affected but no cameos appear at all.
6)And a crash happens if you click in the defense tab and undo the buying.

##### ADDITIONAL INFORMATION #####
Don't mind the buildings. Those ARE HolyMaster's work and I used it just for my private mod.

Revision history for this message
Krozalid (krozalid) wrote :
Revision history for this message
WoRmINaToR (worminator) wrote :

--"since Yuri's buildings have only Owner=YuriCountry."

Not true. Yuri's buildings have all countries listed as owners like all other buildings.

The real reason why all the infantry and tanks appear on the sidebar is simply the fact that at any given time the AI is for the most part able to build any unit at all from any faction at any time, given they have the correct factory and a proper AI TriggerType that tells them to create that unit.

Not entirely sure why all the buildings show up because prerequisites and AIBasePlanning all go in to limit the AI's ability to make buildings it shouldn't be making...

Revision history for this message
Krozalid (krozalid) wrote :

Sorry . My mistake worm . Didn't really take a look about what I said with yuri there . :p
Did you try what I reported Worminator ?

Edit : Could you tell me why yuri's building doesn't appear at the sidebar ?

Revision history for this message
Black Temple Gaurdian (black-temple-gaurdian) wrote :

A) Yuri buildings appear after the civilian buildings in the list.
B) Is this issue really an issue? The AI takes command of your base, the AI can build anything; so everything appears on the buildings tab.

Okay, the defence tab dissappearing IS a bug because it carries over when you reassume control (IIRC).

Revision history for this message
Krozalid (krozalid) wrote :

But the AI still obeys prerequisites and the base planning side tag right ?

Revision history for this message
WoRmINaToR (worminator) wrote :

for buildings, yes.

For units, it does not obey prerequisites, but that generally isn't a problem if you code the AITriggerTypes to fire at the appropriate times and on the appropriate countries.

Revision history for this message
Krozalid (krozalid) wrote :

Didn't know that .
Thanks .
Learn something new everyday .

Revision history for this message
Renegade (renegade) wrote :

So can we close this?

Revision history for this message
Krozalid (krozalid) wrote :

There is still an issue with this Ren. The build list doesn't appear in the defense tab.

Revision history for this message
Black Temple Gaurdian (black-temple-gaurdian) wrote :

^This includes when you retake control IIRC.

Revision history for this message
Krozalid (krozalid) wrote :

Yes. Like BTG said. The build list won't appear but you can still click. But all of these would happen if you didn't deploy the CY yet. Everything would be fine if you deploy the CY first and then use the command. No missing cameos and all that.

Revision history for this message
Krozalid (krozalid94) wrote :

Found the cause of the dissappearing cameos in the defense tab and why no Yuri buildings are buildable.
They happen just because of too much stuff that are listed in the sidebar.
I removed all the civilian and unused stuff by using this;

Owner=Neutral,British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
RequiredHouses=Neutral
ForbiddenHouses=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry

Then everything went back to normal. I can see the cameos in the defense tab and Yuri's buildings does appear.
I guess they were somehow hidden from appearing on the sidebar because of too much civie crap on it.
Conclusion, modders can fix this on their own. Not sure about the defense tab though.
And it didn't take too much time honestly to put the codes on everything that had TechLevel=-1.

Revision history for this message
Krozalid (krozalid94) wrote :

Correction. With that Owner code, all civie buildings will appear in all three sides in FA2. So, I think the only solution is to just put these (but I'm not sure about the forbidden stuff though);

Owner=Neutral
RequiredHouses=Neutral
ForbiddenHouses=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.