Jump to content

Palette (INI flag): Difference between revisions

From ModEnc²
en>Nighthawk200
Palette
 
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Flag
{{Flag
|name={{PAGENAME}}
|name=Palette
|files={{Categ|ini=art}}
|files={{Categ|ini=art}}
|types={{Categ|Animations}}
|types={{Categ|Animations}}
|values={{values|strings}}
|values={{values|strings}}
|rp=yes
|ra2=yes
|rponly=yes
|yr=yes
|ares=yes
}}
}}
{{RockPatchFlag
This flag lets you use any palette with animations. Simply add the {{f|Palette|link}} tag to the animation in question. The value for this tag is the filename of the palette with the .PAL extension, e.g.
|intversion=1.07
}}
This flag lets you use any palette with animations. Simply add the {{TTL|Palette}} tag to the animation in question. The value for this tag is the filename of the palette with the .PAL extension, e.g.
<pre>Palette=MYANIN.PAL</pre>
<pre>Palette=MYANIN.PAL</pre>
You are limited to 31 characters on the filename.
You are limited to 31 characters on the filename.
Line 19: Line 17:
then the game will try to load 'myanimtem.pal' on temperate maps; 'myanimsno.pal' on arctic maps; 'myanimdes.pal' on desert maps; 'myanimurb.pal' on urban maps; 'myanimlun.pal' on lunar maps; and 'myanimubn.pal' on new urban maps. The actual 'myanim.pal' file would not be used at all.
then the game will try to load 'myanimtem.pal' on temperate maps; 'myanimsno.pal' on arctic maps; 'myanimdes.pal' on desert maps; 'myanimurb.pal' on urban maps; 'myanimlun.pal' on lunar maps; and 'myanimubn.pal' on new urban maps. The actual 'myanim.pal' file would not be used at all.


<b>Note:</b> Do not use the {{TTL|AltPalette}} tag along with this one, as {{TTL|AltPalette}} will override the function of this tag.
<b>Note:</b> Do not use the {{f|AltPalette|link}} tag along with this one, as {{f|AltPalette|link}} will override the function of this tag.
==Note==
Found this in [[Art.ini]] and [[Artmd.ini]] By specifying the value as follows.<br>
<b>Palette=City</b> (City likely comes from [[Theatres]]) which is disabled.<br>
I tried turning it on. The game crashed immediately. If your current map is not <b>City</b><br>
 
Didn't notice any difference when using it on supported maps.
 
=={{Bugs}}==
Although this logic originally existed and was used for the Statue of Liberty in the original game, Westwood limited the number of times this function could be used.
 
They used an array to check how many times it was used, and if it exceeded 1, it caused an internal error.
*This limitation has been removed in {{Ares}} and is allowed for [[Voxel]] art in [[Phobos]]

Latest revision as of 17:41, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Palette
File(s): art(md).ini
Values: Strings: Normal text.
Applicable to: Animations


This flag lets you use any palette with animations. Simply add the Palette tag to the animation in question. The value for this tag is the filename of the palette with the .PAL extension, e.g.

Palette=MYANIN.PAL

You are limited to 31 characters on the filename. If the above tag was added to an animation, it would then be drawn using 'myanim.pal' rather than the default palette.

Removing the .PAL file extension causes the theater to be appended to the filename ingame. Going with the previous example, using:

Palette=MYANIM

then the game will try to load 'myanimtem.pal' on temperate maps; 'myanimsno.pal' on arctic maps; 'myanimdes.pal' on desert maps; 'myanimurb.pal' on urban maps; 'myanimlun.pal' on lunar maps; and 'myanimubn.pal' on new urban maps. The actual 'myanim.pal' file would not be used at all.

Note: Do not use the AltPalette tag along with this one, as AltPalette will override the function of this tag.

Note

Found this in Art.ini and Artmd.ini By specifying the value as follows.
Palette=City (City likely comes from Theatres) which is disabled.
I tried turning it on. The game crashed immediately. If your current map is not City

Didn't notice any difference when using it on supported maps.

Bugs/Side-Effects/Unexpected Limitations

Although this logic originally existed and was used for the Statue of Liberty in the original game, Westwood limited the number of times this function could be used.

They used an array to check how many times it was used, and if it exceeded 1, it caused an internal error.

  • This limitation has been removed in Ares and is allowed for Voxel art in Phobos