Jump to content

Image: Difference between revisions

From ModEnc²
ATHSE (talk | contribs)
No edit summary
ATHSE (talk | contribs)
mNo edit summary
Line 29: Line 29:


==In {{ini|art}}==
==In {{ini|art}}==
When used in art(md).ini, this acts like a redirect. Image therefore instructs the game to use another object for the art, but it retains many or all of the traits of the first object with the <tt>Image=</tt> tag. Many [[BuildingTypes|building]] animations, especially for damaged states, reuse to the undamaged artwork this way, redirecting the virtual damaged art object to use the real undamaged art.
When used in art(md).ini, this acts like a redirect. Image therefore instructs the game to use another object for the art, but it retains many or all of the traits of the first object with the <tt>Image=</tt> tag. Many [[BuildingTypes|building]] animations, especially for damaged states, reuse the undamaged artwork this way, instructing the virtual damaged art object to use the real undamaged art.


Image is also ignored when added to the various unit types. One example of this is the [CAML] infantry in YR has Image=JOSH, and yet it correctly displays CAML.SHP anyway. Projectile art is handled similarly, the art can only be selected from {{ini|rules}}.
Image is also ignored when added to the various unit types. One example of this is the [CAML] infantry in YR has Image=JOSH, and yet it correctly displays CAML.SHP anyway. Projectile art is handled similarly, the art can only be selected from {{ini|rules}}.

Revision as of 12:47, 11 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Image
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: art(md).ini sections)
Default: same as section name
Applicable to: InfantryTypes, VehicleTypes, AircraftTypes, BuildingTypes, Projectiles, ParticleSystems, Particles, OverlayTypes, VoxelAnims


Specifies the section from art(md).ini which contains this object's graphical parameters such as cameos, firing offsets, attached animations, movement sequence, etc. When not specified, the object art used is that of its own name, so having Image=CAWS01DM in [CAWS01DM] is redundant.

The exception to this is Tiberium in TS (and Ore/Gems in RA2) which uses a lookup table of values. See Tiberiums for details.

In rules(md).ini

The substitute art requested by Image= must have a valid art(md).ini entry, and where appropriate, specifies what type of art, such as a voxel. This is especially important when specifying substitute voxel art, as the game assumes art is in sprite format, unless specified in its art section, and without it bad things can happen. Therefore referencing voxel turret art directly in VoxelAnims, requires first creating a section for it in art(md).ini with Voxel=yes.

In Red Alert, setting Image=none for VehicleTypes, AircraftTypes, BuildingTypes will give the following results:

In art(md).ini

When used in art(md).ini, this acts like a redirect. Image therefore instructs the game to use another object for the art, but it retains many or all of the traits of the first object with the Image= tag. Many building animations, especially for damaged states, reuse the undamaged artwork this way, instructing the virtual damaged art object to use the real undamaged art.

Image is also ignored when added to the various unit types. One example of this is the [CAML] infantry in YR has Image=JOSH, and yet it correctly displays CAML.SHP anyway. Projectile art is handled similarly, the art can only be selected from rules(md).ini.

See Also

AltImage

AlternateArcticArt

NoSpawnAlt

How The Engine Uses Files