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

Difference between revisions of "Image"

From ModEnc
Jump to: navigation, search
(adding tiberiums in YR)
(Updating and testing stuff...)
Line 1: Line 1:
 +
== On most objects in rules(md).ini ==
 +
 
{{Flag
 
{{Flag
 
|name={{PAGENAME}}
 
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}, {{Categ|Art(md).ini}}
+
|files={{Categ|ini=rules}}
|values=Strings (References to art(md).ini sections) or unsigned integers
+
|values={{values|Strings|art(md).ini sections}}
 
|default=same as section name
 
|default=same as section name
|types= Depending on the file:
+
|types={{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}, {{Categ|Projectile|Projectiles}}, {{Categ|ParticleSystems}}, {{Categ|Particles}}, {{Categ|OverlayTypes}}, {{Categ|VoxelAnims}}
;{{Tt|[[Rules|Rules(md).ini]]}}
 
: {{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}, {{Categ|Projectile|Projectiles}}, {{Categ|ParticleSystems}}, {{Categ|Particles}}, {{Categ|OverlayTypes}}, {{Categ|Tiberiums}}, {{Categ|VoxelAnims}}
 
;{{Tt|[[Art|Art(md).ini]]}}
 
: {{Categ|Animations}}
 
 
|ra=yes
 
|ra=yes
 
|cs=yes
 
|cs=yes
Line 19: Line 17:
 
|rp=yes
 
|rp=yes
 
}}
 
}}
{{clr}}<br>
+
 
<!-- whytf is that header glued to the box? -->
+
Specifies the section from {{Tt|[[Art|art(md).ini]]}} which contains this object's graphical representation parameters such as cameos, firing offsets, and the like.
:''This flag has several meanings:''
+
(See also [[How The Engine Uses Files]].)
  
 
== On '''{{TTL|Tiberiums}}''' ==
 
== On '''{{TTL|Tiberiums}}''' ==
 +
 +
{{Flag
 +
|files={{Categ|ini=rules}}
 +
|values={{values|unsigned integers}}
 +
|default=?
 +
|types={{Categ|Tiberiums}}
 +
|ts=yes
 +
|fs=yes
 +
|ets=yes
 +
|ra2=yes
 +
|yr=yes
 +
|rp=yes
 +
}}
 +
 
{{NeedTesting}}
 
{{NeedTesting}}
  
Line 41: Line 53:
 
* All other values will use OverlayType index #102.
 
* All other values will use OverlayType index #102.
  
== On all other objects in rules(md).ini ==
+
== On Animations and other objects in art(md).ini ==
  
Specifies the section from {{Tt|[[Art|art(md).ini]]}} which contains this object's graphical representation parameters such as cameos, firing offsets, and the like.
+
{{Flag
(See also [[How The Engine Uses Files]].)
+
|files={{Categ|ini=art}}
 
+
|values={{values|Strings|art(md).ini sections}}
== On Animations and other objects in art(md).ini ==
+
|default=same as section name
 +
|types={{Categ|BuildingTypes}}, {{Categ|Animations}}
 +
|ts=yes
 +
|fs=yes
 +
|ets=yes
 +
|ra2=yes
 +
|yr=yes
 +
|rp=yes
 +
}}
  
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, all the other flags stay as the original section defines them.
+
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 most likely AircraftTypes and BuildingTypes in art(md).ini sections. This is evident by looking at the following code snippets from unmodded artmd.ini:
+
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]
 
  [CAML]
 
  Image=JOSH
 
  Image=JOSH

Revision as of 21:09, 10 June 2008

On most objects in rules(md).ini

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: 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.)

On Template:TTL

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: 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


Template:NeedTesting

Depending on the value given (0 to 4), the game will use a certain index in the OverlayTypes array, plus the following 11 entries.

in TS

  • Image=0 and Image=1 will use OverlayType index #102.
  • Image=2 will use OverlayType index #28 and will only use that one entry, it is hardcoded to use only one entry.
  • Image=3 will use OverlayType index #127.
  • Image=4 will use OverlayType index #150.

In YR

  • Image=2 will use OverlayType index #27 and will only use that one entry, it is hardcoded to use only one entry.
  • Image=3 will use OverlayType index #127.
  • Image=4 will use OverlayType index #147.
  • All other values will use OverlayType index #102.

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

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: 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