Jump to content

AIBasePlanningSide: Difference between revisions

From ModEnc²
en>Nighthawk200
m template updated
ATHSE (talk | contribs)
No edit summary
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Flag
{{Flag
|name={{PAGENAME}}
|files={{categ|ini=rules}}
|files={{ini|rules}}
|values={{values|signed integers}}
|values=0, 1, 2
|default=–1
|default=
|types={{categ|BuildingTypes}}
|types=[[BuildingTypes]]
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
}}
}}
In {{ra2}} and  {{yr}}, every [[side]] has its own version of a building, plus some special ones. Due to the wacky way the game is coded, however, many of them have their {{TTL|Owner}} set to everything, and the AI isn't particularly known for adhering the {{tt|[[Prerequisite]]s}}. This, of course, would lead to the AI building every building of every side, without any order, which is most certainly not desired. To prevent this, the coders introduced {{tt|{{PAGENAME}}}}.
{{Tt|AIBasePlanningSide}} must be set on all [[BuildingTypes]] for the AI to be able to use them correctly, only the [[Sides|Side]] it belongs to will build it.


{{tt|{{PAGENAME}}}} assigns the building it is set on to one specific side's tech tree, which is then followed by the AI<!-- (in its ''base planning'' - get it?)-->.
In {{ra2}} and {{yr}}, every [[Sides|Side]] has its own version of a building, but due to the fact that every building has its [[Owner]] set to every [[Houses|House]], and the AI tends to ignore [[Prerequisite]] values, it needs a simple method of controlling which faction builds which building.


 
Below is a table of acceptable values:
{| align="center" cellpadding="4" class="table_descrow"
{| class="wikitable"
!Value
|-
!Side
! Parameter !! Side Selected
|-
|&dash;1
|All sides
|-
|-
|0
|0
|Allied (all {{TTL|Side|GDI}})
|Allied (aka GDI)
|-
|-
|1
|1
|Soviet (all {{TTL|Side|Nod}})
|Soviet (aka NOD)
|-
|-
|2{{yro}}
|2
|Yuri (all {{TTL|Side|ThirdSide}})
|YuriCountry (YR only)
|-
|3
|Fourth Side (Requires engine extension)
|-
|...
|Etc..
|-
|-
|3{{rpo}}
|Fourth Side (See [[RockPatch Docs:Adding a new Side|here]])
|}
|}


==Notes==
On non-building [[TechnoTypes]], this tag only influences the [[Cameo Sorting]] order.


{{tt|{{PAGENAME}}}} ''must'' be set on a [[BuildingTypes|BuildingType]], or the AI will not be able to use it correctly. As indicated by the table, value "2" is only valid in {{yr}}, and value "3" is only valid in pd's [[RockPatch]].
{{Tt|AIBasePlanningSide}} affects the [[Stolen Tech Logic]].
 
==See also==
*[[BuildingTypes]]
*[[Side]]
 
[[Category:INI Flags]]
[[Category:BuildingTypes Flags]]

Latest revision as of 05:37, 22 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AIBasePlanningSide
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: –1
Applicable to: BuildingTypes


AIBasePlanningSide must be set on all BuildingTypes for the AI to be able to use them correctly, only the Side it belongs to will build it.

In Red Alert 2 and Yuri's Revenge, every Side has its own version of a building, but due to the fact that every building has its Owner set to every House, and the AI tends to ignore Prerequisite values, it needs a simple method of controlling which faction builds which building.

Below is a table of acceptable values:

Parameter Side Selected
‐1 All sides
0 Allied (aka GDI)
1 Soviet (aka NOD)
2 YuriCountry (YR only)
3 Fourth Side (Requires engine extension)
... Etc..

Notes

On non-building TechnoTypes, this tag only influences the Cameo Sorting order.

AIBasePlanningSide affects the Stolen Tech Logic.