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

Image: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m Added category art(md).ini flags
Testid123 (talk | contribs)
mNo edit summary
 
(15 intermediate revisions by 6 users not shown)
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}}
|special=None
|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}}
;{{TTL|Rules(md).ini}}
|ra=yes
: {{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}, {{Categ|Projectile|Projectiles}}, {{Categ|ParticleSystems}}, {{Categ|Particles}}, {{Categ|OverlayTypes}}, {{Categ|Tiberiums}}, {{Categ|VoxelAnims}}
|cs=yes
;{{TTL|Art(md).ini}}
|am=yes
: {{Categ|Animations}}
|ts=yes
|games=[[RA]] (where applicable), [[TS]], [[RA2]], [[YR]]
|fs=yes
|ets=yes
|ra2=yes
|yr=yes
|rp=yes
}}
}}
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.
(See also [[How The Engine Uses Files]].)


<!-- whytf is that header glued to the box? -->
For [[AircraftTypes]]
This flag has several meanings:
if we specify Image=any turret <b>(GTNKTUR,HTNKTUR,LTNKTUR)</b> We need to add tags. {{f|Voxel|yes|Link}} Go to section <b>GTNKTUR,HTNKTUR,LTNKTUR</b>


== On {{TTL|Tiberiums}} ==
within [[Artmd.ini]] even though <b>GTNKTUR,HTNKTUR,LTNKTUR</b> are [[Voxel]] files, If you don't do this you will get {{f|Internal Error|004145BD|Link}}.
 
For [[Red Alert]], setting <b><font style="color:red">Image=none</font></b> 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 <b>READY</b> message in the [[Cameo]] section.
[[File:Image=noe for Ra1.png]]
*[[AircraftTypes]] [[Image]] and [[Cameo]] will be displayed blank.
 
*[[BuildingTypes]] [[Cameo]] will be displayed blank.<br>
If you have SHP file or Voxel file which matches the name [[TechnoTypes]] which is written in [[ rules(md).ini]] such as <b>YAPOWR</b><br>
Even if you didn't specify <b>Image=YAPOWR</b> In-game images will be available automatically.
 
== On '''{{f|Tiberiums|link}}''' ==
 
{{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
}}


{{NeedsTesting}}
{{NeedsTesting}}


The comments say
Depending on the value given (0 to 4), the game will use a certain index in the OverlayTypes array, plus the following 11 entries.
'';image to use &#91;1=small, 2=large, 3=vine&#93;''
 
, but little more is known.  
=== 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.


== On all other objects ==
=== In YR ===


Specifies the section from {{Tt|[[Art|art(md).ini]]}} contains this object's graphical representation parameters such as cameos, firing offsets, and the like.
* Image=2 will use OverlayType index #27 and will only use that one entry, it is hardcoded to use only one entry.
(See also [[How The Engine Uses Files]].)
* 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 ==
 
{{Flag
|files={{Categ|ini=art}}
|values={{values|Strings|art(md).ini sections}}
|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 of the SHP file to use.


''Note:'' 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]
<pre>[CAML]
Image=JOSH
Image=JOSH
   
   
[BFRT]
[BFRT]
Image=SREF
Image=SREF</pre>
==Note==
*<b>Image</b> located in the section [[Projectiles]] will ignore file display. <b>voxeltur</b>,<b>voxelbarl</b>,<b>voxelwo</b>.
*<b>Image</b> located in the section [[Projectiles]] Will not be affected by new image changes, such as
'''[Cannon]'''<br>
'''Image=120MM'''<br>
 
'''[120MM]'''<br>
'''Image=YACNST'''<br>

Latest revision as of 14:29, 13 November 2024

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

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.

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


This needs testing
The following section contains information that has not been personally confirmed by the revision's author; readers are encouraged to test it themselves and update the section accordingly.


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

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