BuildingTypes: Difference between revisions
EvilRenegade (talk | contribs) m Replacing Template:TTL with Template:F. |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 44: | Line 44: | ||
| {{Ini|Rules}} || Object's ID || {{f|WaterBound|link}} || boolean || 0 || | | {{Ini|Rules}} || Object's ID || {{f|WaterBound|link}} || boolean || 0 || | ||
|- | |- | ||
| {{Ini|Rules}} || Object's ID || {{f|Adjacent|link}} || | | {{Ini|Rules}} || Object's ID || {{f|Adjacent|link}} || int|| 3 || | ||
|- | |- | ||
| {{Ini|Rules}} || Object's ID || {{f|Capturable|link}} || boolean || 0 || | | {{Ini|Rules}} || Object's ID || {{f|Capturable|link}} || boolean || 0 || | ||
Line 356: | Line 356: | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimPoweredLight|link}} || boolean || 0 || | ||
Line 378: | Line 378: | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimTwoYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimTwoYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimTwoPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimTwoPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimTwoPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimTwoPoweredLight|link}} || boolean || 0 || | ||
Line 400: | Line 400: | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimThreeYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimThreeYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimThreePowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimThreePowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimThreePoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimThreePoweredLight|link}} || boolean || 0 || | ||
Line 422: | Line 422: | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimFourYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimFourYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimFourPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimFourPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ActiveAnimFourPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|ActiveAnimFourPoweredLight|link}} || boolean || 0 || | ||
Line 444: | Line 444: | ||
| {{Ini|Art}} || Object's Image || {{f|ProductionAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|ProductionAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ProductionAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|ProductionAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|ProductionAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|ProductionAnimPoweredLight|link}} || boolean || 0 || | ||
Line 466: | Line 466: | ||
| {{Ini|Art}} || Object's Image || {{f|PreProductionAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|PreProductionAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|PreProductionAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|PreProductionAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|PreProductionAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|PreProductionAnimPoweredLight|link}} || boolean || 0 || | ||
Line 488: | Line 488: | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimPoweredLight|link}} || boolean || 0 || | ||
Line 510: | Line 510: | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimTwoYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimTwoYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimTwoPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimTwoPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimTwoPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimTwoPoweredLight|link}} || boolean || 0 || | ||
Line 532: | Line 532: | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimThreeYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimThreeYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimThreePowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimThreePowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimThreePoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimThreePoweredLight|link}} || boolean || 0 || | ||
Line 554: | Line 554: | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimFourYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimFourYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimFourPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimFourPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SpecialAnimFourPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SpecialAnimFourPoweredLight|link}} || boolean || 0 || | ||
Line 576: | Line 576: | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimPoweredLight|link}} || boolean || 0 || | ||
Line 598: | Line 598: | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimTwoYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimTwoYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimTwoPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimTwoPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimTwoPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimTwoPoweredLight|link}} || boolean || 0 || | ||
Line 620: | Line 620: | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimThreeYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimThreeYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimThreePowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimThreePowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimThreePoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimThreePoweredLight|link}} || boolean || 0 || | ||
Line 642: | Line 642: | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimFourYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimFourYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimFourPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimFourPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperAnimFourPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperAnimFourPoweredLight|link}} || boolean || 0 || | ||
Line 664: | Line 664: | ||
| {{Ini|Art}} || Object's Image || {{f|IdleAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|IdleAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|IdleAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|IdleAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|IdleAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|IdleAnimPoweredLight|link}} || boolean || 0 || | ||
Line 686: | Line 686: | ||
| {{Ini|Art}} || Object's Image || {{f|LowPowerAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|LowPowerAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|LowPowerAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|LowPowerAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|LowPowerAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|LowPowerAnimPoweredLight|link}} || boolean || 0 || | ||
Line 708: | Line 708: | ||
| {{Ini|Art}} || Object's Image || {{f|SuperLowPowerAnimYSort|link}} || int || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperLowPowerAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperLowPowerAnimPowered|link}} || boolean || | | {{Ini|Art}} || Object's Image || {{f|SuperLowPowerAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Art}} || Object's Image || {{f|SuperLowPowerAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Art}} || Object's Image || {{f|SuperLowPowerAnimPoweredLight|link}} || boolean || 0 || | ||
Line 730: | Line 730: | ||
| {{Ini|Rules}} || Object's ID || {{f|TurretAnimYSort|link}} || int || 0 || | | {{Ini|Rules}} || Object's ID || {{f|TurretAnimYSort|link}} || int || 0 || | ||
|- | |- | ||
| {{Ini|Rules}} || Object's ID || {{f|TurretAnimPowered|link}} || boolean || | | {{Ini|Rules}} || Object's ID || {{f|TurretAnimPowered|link}} || boolean || 1 || | ||
|- | |- | ||
| {{Ini|Rules}} || Object's ID || {{f|TurretAnimPoweredLight|link}} || boolean || 0 || | | {{Ini|Rules}} || Object's ID || {{f|TurretAnimPoweredLight|link}} || boolean || 0 || |
Latest revision as of 22:35, 15 August 2019
[BuildingTypes] in TS through YR defines an array of structures that exist in the game. Unlike most other object arrays in the game, this one's order is very important - AI Scripts can only attack a specific BuildingType via its index in this array. So, reordering it is not advised. However, there are several errors in the default array that really should be corrected by any modder. See next section.
Note that structures can be loaded into the game even without being in this list, if they are referenced by a tag that points to a BuildingType. For example, setting PrismType=ATESLA is enough to assure ATESLA will be loaded as a valid structure even without being in this array. However, this is not a good idea - such objects have no guaranteed load order, so you cannot be sure what index to address them by.
The corrected BuildingTypes arrays
Westwood messed up a lot of object arrays in the rules(md).ini. While this proved no problem for them, due to their map editor, which was built to parse the INIs the same way RA2 did, and was actually usable unlike FinalAlert, and their AI Editor, this can cause a lot of problems for modders that write all their scripts by hand.
I have previously posted the corrected Animations array for YR, and now I'm posting the corrected BuildingTypes arrays as well. When you write AI scripts, you can just use the exact number on the left of the building, no need to do funky +1 conversions (131072 in fact does affect the functionality, see ScriptActions#Building Indices).
See corrected BuildingTypes arrays for: Tiberian Sun, Red Alert 2, Yuri's Revenge
Applicable INI Flags
These tables show all INI flags applicable1 to BuildingTypes. The flags are grouped by the internal classes the flags are inherited from, and then listed in the order they are read in by the game. You can re-sort the rows by column values by clicking the arrow icons in the column headings. Each flag can be clicked to visit its page for detailed information.
Please note that this section is accurate only for Yuri's Revenge. All other C&C games use different sets of flags.
1 ↑ "Applicable" in this context means "read from the INI files". Certain flags listed here don't have any effect ingame , but they are read and in certain cases cause a crash if not present. Again, refer to each flag's individual page for detailed information.
INI File | Section | Key | Value Type | Default Value | Adds to list |
---|---|---|---|---|---|
Rules(md).ini | Object's ID | Name | string(48 symbols) | ID | |
Rules(md).ini | Object's ID | UIName | string(31 symbol) | "" |
INI File | Section | Key | Value Type | Default Value | Adds to list |
---|---|---|---|---|---|
Rules(md).ini | Object's ID | Image | string (31 symbol) | Object's ID | |
Rules(md).ini | Object's ID | AlphaImage | string (31 symbol) | "" | |
Rules(md).ini | Object's ID | CrushSound | Sound (128 symbols) | "" | |
Rules(md).ini | Object's ID | AmbientSound | Sound (128 symbols) | "" | |
Rules(md).ini | Object's ID | Crushable | boolean | 0 | |
Rules(md).ini | Object's ID | Bombable | boolean | 1 | |
Rules(md).ini | Object's ID | NoSpawnAlt | boolean | 0 | |
Rules(md).ini | Object's ID | AlternateArcticArt | boolean | 0 | |
Rules(md).ini | Object's ID | RadarInvisible | boolean | 0 | |
Rules(md).ini | Object's ID | Selectable | boolean | 1 | |
Rules(md).ini | Object's ID | LegalTarget | boolean | 1 | |
Rules(md).ini | Object's ID | Armor | Armor | 0 | |
Rules(md).ini | Object's ID | Strength | int | 0 | |
Rules(md).ini | Object's ID | Immune | boolean | 0 | |
Rules(md).ini | Object's ID | Insignificant | boolean | 0 | |
Rules(md).ini | Object's ID | HasRadialIndicator | boolean | 0 | |
Rules(md).ini | Object's ID | RadialColor | Color | 0,0,0 | |
Rules(md).ini | Object's ID | IgnoresFirestorm | boolean | 0 | |
Art(md).ini | Object's Image | UseLineTrail | boolean | 0 | |
Art(md).ini | Object's Image | LineTrailColor | Color | 0,0,0 | |
Art(md).ini | Object's Image | LineTrailColorDecrement | int | 16 | |
Art(md).ini | Object's Image | Theater | boolean | 0 | |
Art(md).ini | Object's Image | NewTheater | boolean | 0 | |
Art(md).ini | Object's Image | Voxel | boolean | 0 |