Jump to content

Image: Difference between revisions

From ModEnc²
Line 40: Line 40:
|files={{Categ|ini=rules}}
|files={{Categ|ini=rules}}
|values={{values|unsigned integers}}
|values={{values|unsigned integers}}
|default=?
|default=-1
|types={{Categ|Tiberiums}}
|types={{Categ|Tiberiums}}
|ts=yes
|ts=yes

Revision as of 14:09, 10 April 2025

On most objects in rules(md).ini

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 representation parameters such as cameos, firing offsets, and the like. (See also How The Engine Uses Files.)

For AircraftTypes if we specify Image=any turret (GTNKTUR,HTNKTUR,LTNKTUR) We need to add tags. Voxel=yes Go to section GTNKTUR,HTNKTUR,LTNKTUR

within Artmd.ini even though GTNKTUR,HTNKTUR,LTNKTUR are Voxel files, If you don't do this you will get Internal Error=004145BD.

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

  • VehicleTypes Image and Cameo will be displayed blank. And when it's completed, there will be a continuous READY message in the Cameo section.

File:Image=noe for Ra1.png

If you have SHP file or Voxel file which matches the name TechnoTypes which is written in rules(md).ini such as YAPOWR
Even if you didn't specify Image=YAPOWR In-game images will be available automatically.

On Tiberiums

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Image
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default:
Applicable to: Tiberiums


See Tiberiums for details.

On Animations and other objects in art(md).ini

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Image
File(s): art(md).ini
Values: Strings: Normal text. (Limited to: art(md).ini sections)
Default: same as section name
Applicable to: BuildingTypes, Animations


When used in art(md).ini, this flag also refers to an art(md).ini section as well, but it only uses the referred section to derive a filename of the SHP file to use.

This flag does not work on InfantryTypes, VehicleTypes and AircraftTypes in art(md).ini sections. This is evident by looking at the following code snippets from unmodded artmd.ini:

[CAML]
Image=JOSH
 
[BFRT]
Image=SREF

Note

  • Image located in the section Projectiles will ignore file display. voxeltur,voxelbarl,voxelwo.
  • Image located in the section Projectiles Will not be affected by new image changes, such as

[Cannon]
Image=120MM

[120MM]
Image=YACNST

  • It's funny for Image located in the section Projectiles if it's a SHP file, it can have shadows + play animations + remap colors but can't set it to rotate in 32 directions.

Using the tag Rotates=yes allows the SHP file to rotate in 32 directions but can't play as animation.
Voxel files can rotate in 32 directions + but can't play as animations + can't remap colors+Images from files with the extensions .TUR and .BRAL cannot be displayed.