ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Foundation: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m clarifying
Vinifera7 (talk | contribs)
m Updated with new image and some minor edits.
Line 1: Line 1:
{{Flag
{{flag
|files={{ini|art}}
|name=Foundation
|values={{values|strings|[[hardcoded]] values{{Sup|[[{{PAGENAME}}#values|{{Arr|d}}]]}}}}
|files={{categ|ini=art}}
|values={{values|strings|[[hardcoded]] values[[{{PAGENAME}}#values|{{sup|{{arr|d}}}}]]}}
|default=1x1
|default=1x1
|types={{Categ|BuildingTypes}}
|types={{categ|BuildingTypes}}
|ts=yes
|ts=yes
|fs=yes
|fs=yes
Line 12: Line 13:
}}
}}


{{TTL|{{PAGENAME}}}} specifies the shape of the "footprint" of a [[BuildingType]], i.e. how many cells will it occupies.
{{TTL|Foundation}} determines the number of [[cell]]s a [[BuildingType]] occupies, and the arrangement of those cells.


=={{anchor|values||}}Accepted values==
=={{anchor|values||}}Accepted values==
All values are case-insensitive. Any other values will simply be ignored and the default used instead. The first number represents the cell-count along the NW-SE axis, the second along the NE-NW axis.
All values are case-insensitive. Any other values will simply be ignored and the default used instead. The first number represents the cell-count along the NW-SE axis, the second along the NE-NW axis.


  0x0, 6x4, 3x4, 4x4, 5x3, 2x5, 2x6, 1x5, 1x4, 4x3, 3x1, 1x3, 3x3Refinery, 4x2, 3x5, 3x3, 3x2, 2x3, 2x2, 1x2, 2x1, 1x1
  0x0, 6x4, 3x4, 4x4, 5x3, 2x5, 2x6, 1x5, 1x4, 4x3, 3x1, 1x3, 3x3REFINERY, 4x2, 3x5, 3x3, 3x2, 2x3, 2x2, 1x2, 2x1, 1x1


'''Note''': You cannot make up other foundations, because these are actually hardcoded in the EXE, and only appear to be modifiable.
'''Note''': You cannot make up other foundations, because these are actually hardcoded in the EXE, and only appear to be modifiable.


===3x3Refinery===
===3x3REFINERY===
[[Image:3x3Refinery.gif|frame|{{TTL|{{PAGENAME}}|3x3Refinery}} grid illustration]] <code>3x3Refinery</code> is an unusual shape. While all other foundations are rectangles, this one has an empty cell in the center of the third row.
[[Image:3x3refinery.png|frame|{{TTL|Foundation|3x3REFINERY}} grid illustration]] <code>3x3REFINERY</code> is an unusual shape. While all other {{TTL|foundation}} values are rectangles, this one has an empty cell in the center of the third row.


Albeit containing "Refinery" in the value string, this {{TTL|{{PAGENAME}}}} will not work for a {{TTL|Refinery}} because the harvester's docking point inside a refinery is [[hardcoded]] to be the second cell in the fourth row.
Albeit containing "Refinery" in the value string, this will not work for a {{TTL|Refinery}} because the harvester's docking point inside a refinery is [[hardcoded]] to be the second [[cell]] in the fourth row, which is outside of the {{TTL|foundation}} in this case.


{{Bugs}}
{{Bugs}}
Line 32: Line 33:
in rules still requires a 4x4 Foundation to place, contrary to what logic dictates - you need to remove the Foundation flag from GAYARD to get it to use NAHAND's one.
in rules still requires a 4x4 Foundation to place, contrary to what logic dictates - you need to remove the Foundation flag from GAYARD to get it to use NAHAND's one.


==Construction Yards==
===Construction Yards===
{{NeedTesting}}
{{NeedTesting}}
Also, the AI seems to have a problem using a construction yard with any foundation smaller than 2x2, it will deploy the construction yard but will not build anything. This was only tested on construction yards but may also apply to other factory types, such as war factory's or naval yards.
Also, the AI seems to have a problem using a construction yard with any foundation smaller than 2x2, it will deploy the construction yard but will not build anything. This was only tested on construction yards but may also apply to other factory types, such as war factory's or naval yards.
<hr />
<hr />

Revision as of 19:51, 1 June 2008

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Foundation
File(s): art(md).ini
Values: Strings: Normal text. (Limited to: hardcoded values)
Default: 1x1
Applicable to: BuildingTypes


Template:TTL determines the number of cells a BuildingType occupies, and the arrangement of those cells.

Accepted values

All values are case-insensitive. Any other values will simply be ignored and the default used instead. The first number represents the cell-count along the NW-SE axis, the second along the NE-NW axis.

0x0, 6x4, 3x4, 4x4, 5x3, 2x5, 2x6, 1x5, 1x4, 4x3, 3x1, 1x3, 3x3REFINERY, 4x2, 3x5, 3x3, 3x2, 2x3, 2x2, 1x2, 2x1, 1x1

Note: You cannot make up other foundations, because these are actually hardcoded in the EXE, and only appear to be modifiable.

3x3REFINERY

Template:TTL grid illustration
3x3REFINERY is an unusual shape. While all other Template:TTL values are rectangles, this one has an empty cell in the center of the third row.

Albeit containing "Refinery" in the value string, this will not work for a Template:TTL because the harvester's docking point inside a refinery is hardcoded to be the second cell in the fourth row, which is outside of the Template:TTL in this case.

Bugs/Side-Effects/Unexpected Limitations

This flag is read from art(md).ini twice: from section you specified in rules as [object]->Image , and from simply [object] , and the second one overrules the first if present. This causes weird behaviour, like setting

[GAYARD]
Image=NAHAND

in rules still requires a 4x4 Foundation to place, contrary to what logic dictates - you need to remove the Foundation flag from GAYARD to get it to use NAHAND's one.

Construction Yards

Template:NeedTesting Also, the AI seems to have a problem using a construction yard with any foundation smaller than 2x2, it will deploy the construction yard but will not build anything. This was only tested on construction yards but may also apply to other factory types, such as war factory's or naval yards.