Jump to content

Remapable: Difference between revisions

From ModEnc²
en>Nighthawk200
m Best of both worlds. :P
m 13 revisions imported
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|values={{values|boolean}}
|values={{values|boolean}}
|default=no
|default=no
|games
|ts=yes
|ts=yes
|fs=yes
|fs=yes
|ets=yes
|ra2=yes
|rp=yes
|yr=yes
|ra2obsolete=yes
|tsobsolete=yes
}}
}}
If this is set to yes, then this tells the game that the unit's image file (SHP or Voxel) contains special pixels ({{co|red|red}} by default) that may be automatically recolored to the color of the owner of the unit. These special pixels are located in the unittem.pal, the unitsno.pal, and the uniturb.pal. These pixels are index 16 to 31.  
Presumably, this flag was intended to control whether or not this [[TechnoType]]'s image has pixels that should be remapped according to the [[House|owner's]] [[color]]. However, in all the games that it's present, the flag is entirely redundant: it is only read, no logic is tied to it. If the object uses the unit* [[PAL|palette]] and remappable colors are present in the object's art (color indexes 16–31), then those colors are always remapped.
 
{{Bugs}}
{{TTL|Remapable}} has no effect in either {{Ra2}} or {{Yr}} (as demonstrated by its inclusion in the Tesla Coil's art entry). It is always treated as if it is set to "yes". This is most likely just a simplification of logic; if something doesn't use remapping, it just won't use the remap colors.

Latest revision as of 22:03, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Remapable
File(s): Art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no

Logic related to Remapable, as a whole or in part, is obsolete in Tiberian Sun, Red Alert 2 and/or Yuri's Revenge.



Presumably, this flag was intended to control whether or not this TechnoType's image has pixels that should be remapped according to the owner's color. However, in all the games that it's present, the flag is entirely redundant: it is only read, no logic is tied to it. If the object uses the unit* palette and remappable colors are present in the object's art (color indexes 16–31), then those colors are always remapped.