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

Name: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
 
Testid123 (talk | contribs)
mNo edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
The name of the object this flag belongs to. Was used in games prior to [[Red Alert 2]] to output a unit's name. It is now superceded by [[UIName]], as an approach with strings makes for easier localization.
{{Flag
|name={{PAGENAME}}
|files={{Categ|ini=rules}}, {{Categ|ini=ai}}, {{Categ|Maps}}
|values=strings
|default=none
|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
|cs=yes
|am=yes
|ts=yes
|fs=yes
|ets=yes
|ra2=yes
|yr=yes
|rp=yes
}}
== On Houses / Countries / ObjectTypes / SuperWeaponTypes / TeamTypes ==
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 ===
* {{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>
*For [[Red Alert]],[[Tiberian Sun]],[[Firestorm]] you can change the name immediately, for example Name=GI.<br>
[[File:Name change for Ra1.png]]<br>
* 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>
* [[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>
== 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.


Note that [[Final Alert 2]] uses <tt>Name=</tt> to determine the names of objects, and that you can't see strings in plain text editors. It is therefore highly recommended to set these flags correctly, even though the game won't show them.
== 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.)
As with UIName, there is a <tt>Name=</tt> 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.

Latest revision as of 04:54, 29 September 2024

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: 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.


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.)