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

NewTheater: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Adding HP (forgot)
McPwny (talk | contribs)
No edit summary
Line 15: Line 15:
{{HorizontalBar|Although this flag is parsed on all object types, it only works properly on [[SHP]] art.}}
{{HorizontalBar|Although this flag is parsed on all object types, it only works properly on [[SHP]] art.}}


Specifies if an alternate [[image]] should be loaded for the object based on the map's [[theatres|theatre]]. If this is set, the game will replace the second character of the default filename into a different one, depending on the theatre. If the game cannot find an appropriately named image, it will fall back to "G" (for generic) as the second character in the image filename. Additionaly, this tag means the unit palette is used to draw this image.
This tag specifies whether or not the game uses special naming logic to get the objects image based on the theater of the map; .shp assets formatted with alternate snow art utilizing this tag should have their files organized such that the second letter of the file corresponds to the theater type. A for "Arctic" and G for "Generic". in a snow map, the game will look for files with the A prefix first, and if there are none, it will fall back to using files with the G prefix. In the games art and rules .ini entries, the A prefix is always used. 
The characters used for each theatre can be found on the [[Theatres]] page. In Tiberian Sun, the tag will only work if the ID for the object starts with either {{Tt|G}}, {{Tt|N}} or {{Tt|C}} and its second letter is {{Tt|A}} (for Arctic/Snow theater) or {{Tt|T}} (for Temperate theater). In RA2, for the tag to work, it must start with either {{Tt|G}}, {{Tt|N}} or {{Tt|C}}, and its second letter must be {{Tt|A}}, {{Tt|T}} or {{Tt|U}} (Urban theater). Both conditions are case-insensitive. In Yuri's Revenge, the ID can also start with {{Tt|Y}}.
 
For example, if one were to make a new refinery and made separate snow and temperate art for it, then the files would be named as so 
 
Temperate version:
mgrefn
mgrefnbb
mgrefn_a ; and so on 
Snow version: 
marefn 
marefnbb
marefn_a
And in the rules and art.ini entries for this building, the name [MAREFN] would always be used (whether or not there actually is the optional snow art files)
 
 
Additionally, this tag means the unit palette is used to draw this image.
 
In Tiberian Sun, the tag would only work if the first letter of the buildings name started with G, N, or C; but in Red Alert 2 any prefix letter can be used. File names can also use this logic for the other four theaters in YR, though doing so is mostly redundant as special art is typically not made for any theater besides snow.
 


==See also==
==See also==
*[[Theatres]]
*[[Theatres]]

Revision as of 13:40, 2 July 2021

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: NewTheater
File(s): art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: TechnoTypes: AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes
as well as ObjectTypes: Animations, Projectiles, TMPTiles, OverlayTypes, ParticleSystems, Particles, SmudgeTypes, TerrainTypes and VoxelAnimTypes


Although this flag is parsed on all object types, it only works properly on SHP art.

This tag specifies whether or not the game uses special naming logic to get the objects image based on the theater of the map; .shp assets formatted with alternate snow art utilizing this tag should have their files organized such that the second letter of the file corresponds to the theater type. A for "Arctic" and G for "Generic". in a snow map, the game will look for files with the A prefix first, and if there are none, it will fall back to using files with the G prefix. In the games art and rules .ini entries, the A prefix is always used.

For example, if one were to make a new refinery and made separate snow and temperate art for it, then the files would be named as so

Temperate version:

mgrefn
mgrefnbb
mgrefn_a ; and so on  

Snow version:

marefn  
marefnbb
marefn_a 

And in the rules and art.ini entries for this building, the name [MAREFN] would always be used (whether or not there actually is the optional snow art files)


Additionally, this tag means the unit palette is used to draw this image.

In Tiberian Sun, the tag would only work if the first letter of the buildings name started with G, N, or C; but in Red Alert 2 any prefix letter can be used. File names can also use this logic for the other four theaters in YR, though doing so is mostly redundant as special art is typically not made for any theater besides snow.


See also