Jump to content

Name: Difference between revisions

From ModEnc²
en>TAK02
m A sentence I wrote makes no sense wat-so-ever. Is no-one re-reading the modifications?
m 16 revisions imported
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Flag
{{Flag
|name={{PAGENAME}}
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}, {{Categ|Maps}}
|files={{Categ|ini=rules}}, {{Categ|ini=ai}}, {{Categ|Maps}}
|values=strings
|values=strings
|default=none
|default=none
|types={{Categ|General}}, {{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}, {{Categ|Basic}}, {{Categ|Countries}}, {{Categ|SuperWeaponTypes}}
|types={{Categ|General}}, {{Categ|Houses}}, {{Categ|Countries}}, {{Categ|TechnoTypes}}, {{Categ|TerrainTypes}}, {{Categ|OverlayTypes}},  {{Categ|VoxelAnims}}, {{Categ|Tiberiums}}, {{Categ|SuperWeaponTypes}}, {{Categ|TeamTypes}}, {{Categ|Basic}}
|ra=yes
|ra=yes
|cs=yes
|cs=yes
Line 15: Line 15:
|rp=yes
|rp=yes
}}
}}
 
== On Houses / Countries / ObjectTypes / SuperWeaponTypes / TeamTypes ==
== On Infantry/Vehicle/Aircraft/Building/SuperWeapon Types / Countries ==
Plain-text name of this object used to output the object's name. In {{ra2}} and {{yr}}, it is largely superceded by {{f|UIName|link}}, as an approach with strings makes for easier localization.
 
=== Notes ===
Plain-text name of this object. Was used in games prior to [[Red Alert 2]] to output a unit's name. It is now superceded by {{f|UIName|link}}, as an approach with strings makes for easier localization.
* {{f|Name}} strings are truncated to 23 characters maximum regardless of how long of a string you enter. In {{ts}}, this limit is 48 characters.<br>
 
* If the name string is empty ({{tt|Name<nowiki>=</nowiki>}}), the game will use the type name instead, e.g. {{tt|GACNST}}.<br>
In [[Tiberian Sun]], the cameos are without text. {{f|Name|link}} is written on these by the game.
*For [[Red Alert]],[[Tiberian Sun]],[[Firestorm]] you can change the name immediately, for example Name=GI.<br>
 
[[File:Name change for Ra1.png]]<br>
Note that [[Final Alert 2]] does NOT use {{f|Name|link}} to determine the names of objects, but {{f|UIName|link}} as well like the game. This means that {{f|Name|link}} can only be used to tell whose code you're looking at if you can't determine that from it's identifier (you know, the name between the [ and ]) when in Rules(md).ini
* In [[Tiberian Sun]], [[cameos]] are without text. {{f|Name}} is written on these by the game. This feature also remains in RA2, but is disabled.<br>
This 'Identifier' in turn is the only way to identify TechnoTypes by hovering the cursor is hovering over them in [[Final Alert 2]]. The ID is displayed at the bottom-left.
* [[Final Alert 2]] does ''not'' use {{f|Name|link}} to determine the names of [[TechnoTypes]], but {{f|UIName|link}} as well like the game.<br>
 
The Name is truncated to 23 characters maximum regardless of how many you enter.
 
== In [{{f|General|link}}] ==
== In [{{f|General|link}}] ==
 
As with {{f|UIName}}, there is a {{f|Name}} flag at the beginning of the [{{f|General|link}}] section. Yet again, it seems to be of no use, however [[The Guide]] mentions how it was supposedly possible to use several rule*.ini (rule1.ini, rule2.ini, ...) files in [[RA]], and then to differentiate between them by name. This was, however, never seen in use and was probably dropped in favor of differently named, overriding INIs.
As with UIName, there is a {{f|Name|link}} flag at the beginning of the [{{f|General|link}}] section. Yet again, it seems to be of no use, however [[The Guide]] mentions how it was supposedly possible to use several rule*.ini (rule1.ini, rule2.ini, ...) files in [[RA]], and then to differentiate between them by name. This was, however, never seen in use and was probably dropped in favor of differently named, overriding INIs.


== In [{{f|Basic|link}}] ==
== In [{{f|Basic|link}}] ==


In maps, this flag specifies the map name as shown in the game. (In RA2/YR, {{Tt|.map}} maps ignore this value and take their name from the {{f|mission.ini|link}} or {{f|PKT|link}} files.)
In maps, this flag specifies the map name as shown in the game. (In RA2/YR, {{Tt|.map}} maps ignore this value and take their name from the {{f|mission.ini|link}} or {{f|PKT|link}} files.)

Latest revision as of 22:00, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Name
File(s): rules(md).ini, ai(md).ini, Maps
Values: strings
Default: none
Applicable to: General, Houses, Countries, TechnoTypes, TerrainTypes, OverlayTypes, VoxelAnims, Tiberiums, SuperWeaponTypes, TeamTypes, Basic


On Houses / Countries / ObjectTypes / SuperWeaponTypes / TeamTypes

Plain-text name of this object used to output the object's name. In Red Alert 2 and Yuri's Revenge, it is largely superceded by UIName, as an approach with strings makes for easier localization.

Notes

  • Name strings are truncated to 23 characters maximum regardless of how long of a string you enter. In Tiberian Sun, this limit is 48 characters.
  • If the name string is empty (Name=), the game will use the type name instead, e.g. GACNST.
  • For Red Alert,Tiberian Sun,Firestorm you can change the name immediately, for example Name=GI.

File:Name change for Ra1.png

In [General]

As with UIName, there is a Name flag at the beginning of the [General] section. Yet again, it seems to be of no use, however The Guide mentions how it was supposedly possible to use several rule*.ini (rule1.ini, rule2.ini, ...) files in RA, and then to differentiate between them by name. This was, however, never seen in use and was probably dropped in favor of differently named, overriding INIs.

In [Basic]

In maps, this flag specifies the map name as shown in the game. (In RA2/YR, .map maps ignore this value and take their name from the mission.ini or PKT files.)