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

Difference between revisions of "Armory"

From ModEnc
Jump to: navigation, search
(minor rwrite of bugs, added armory buildings section)
(This bug is not limited to just barracks, but vehicle factories as well.)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Flag
 
{{Flag
|name=Armory
 
 
|files={{Categ|Rules(md).ini}}
 
|files={{Categ|Rules(md).ini}}
|values=boolean
+
|values={{values|boolean}}
 
|default=no
 
|default=no
 
|types={{Categ|BuildingTypes}}
 
|types={{Categ|BuildingTypes}}
|games=[[RA2]], [[YR]]
 
 
|ts=yes
 
|ts=yes
 
|fs=yes
 
|fs=yes
Line 14: Line 12:
 
}}
 
}}
  
==As a flag==
+
This flag determines whether the building will automatically promote any [[InfantryTypes|infantry]] that enter it to Elite [[veterancy]] status.
This determines whether the building will automatically promote any infantry that enter it to Elite status. The {{TTL|Ammo}} flag on the building can be used to restrict the number of infantry that can be promoted by this armory. Once it has promoted this number of infantry it is no longer functional. Multiple units can be selected at once and ordered into the armory, this causes them to form a "queue", similar to when multiple units are ordered into a transport, and wait for the people ahead of them to finish in the armory before entering.
+
 
 +
The {{f|Ammo|link}} flag ''must'' be used on an armory, otherwise it can only promote one soldier. It can also be used to restrict the number of infantry that can be promoted. Once it has used up all of its "promotions" it will no longer function as an armory. If no restriction is desired, using a value of <code>999</code> is practical. <code>-1</code> won't give it infinite ammo. The game appears to take the absolute value (positive -> positive, negative -> positive) for armories.
 +
 
 +
If an armory has {{f|Powered|yes|link}}, it will still function even in a low-power situation.
 +
 
 +
If an armory is placed offline via an in-game mechanism (like in {{Ts}}), it will ''not'' function.
 +
 
 +
In {{Ra2}}, multiple soldiers can be selected at once and ordered into the armory; forming a queue line similar to the way multiple units enter a transport when ordered simultaneously. This makes promoting your soldiers a much less arduous task than it was in Tiberian Sun, where each soldier would have to be ordered into the armory separately.
 +
 
  
 
==Bugs==
 
==Bugs==
When an infantry unit enters an Armory it dissapears and, after a short time has passed, reappears accompanied by the unit promoted effects (the unit briefly flashes and a sound effect is played), although not the EVA announcement. However, the unit appears in the upper left corner of the building and does not 'exit' (i.e. move away from the building), even if a rally point is set. In order to promote the next unit, the first unit must first be selected and ordered to move away from the building. If units are "queued" (see above) then the next unit will enter the armory automatically as soon as the unit ahead of it leaves.
 
  
==As a BuildingType==
+
===Conyard Armory: Just Don't===
 +
Applying <code>Armory=yes</code> to a construction yard ({{f|ConstructionYard|yes|link}}) causes glitchy behavior. When sending an infantry unit in to be promoted, the building will cycle through its image frames rapidly and the unit will never come back out.
 +
 
 +
===Blocked Armory (RA2)===
 +
When an infantry unit enters an Armory it disappears and reappears a short time later in the upper left corner of the building. Unfortunately, the unit does not move away from the building when it exits. The unit is partially obscured by the building and can be difficult to mouse-over the correct part of the screen in order to click to select the unit and move it away manually.
 +
Units that have just exited the building will also block other units from being ordered to enter until the offending unit is moved away. However if units are already queuing for the building (see above) then the next unit in the queue will enter automatically as soon as the unit ahead of it is moved out of the way).
 +
 
 +
===Partial Fix Accompanied by Cloning Bug (RA2)===
 +
By making the Armory a barracks ({{f|Factory|InfantryType|link}}) you are able to set a rally point in order to avoid the above problem, however doing so will cause any [[BuildingTypes]] you have with {{f|Cloning|yes|link}} set to spawn a copy of the newly-promoted unit (not promoted of course) as if you had just trained it.
 +
 
 +
===Screwy AI with Armory Factory===
 +
 
 +
Using this on a building that also has {{f|Factory|UnitType|link}} or {{f|Factory|InfantryType|link}} set causes the AI to spam only one type of unit from that factory, the first vehicle/infantry type that the AI can build (i.e. the AI [[house]] is listed as the object's {{f|Owner|link}}).
 +
 
 +
===Armory Barracks Jackpot IE of Death (TS)===
 +
Not only is the aforementioned AI bug a concern, but using a combination armory barracks has other complications as well &mdash; dire complications. If a player attempts to train infantry while promoting on the same building, there is a rare chance that both soldiers will try to exit the building at the same moment. This causes an [[IE]] '''(debug code needed)'''.
 +
 
 +
===Glitchy Ammo Logic===
 +
If the Armory has a weapon, both promoting infantry AND each firing of the weapon will decrease the Ammo counter. Once the counter is zero, the Armory will no longer fire OR promote infantry as the Armory tag prevents Ammo from reloading.
  
Armory buildings are {{TTL|BuildingTypes}} that are built from the Armory tab in-game. They have a {{TTL|BuildCat}}<tt>=</tt> value of "Combat". Not to be confused with {{TTL|BuildingTypes}} that have <tt>Armory=yes</tt> set (the effects of which are described above).
+
__NOTOC__

Latest revision as of 14:00, 12 January 2022

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: Armory
File(s): Rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: BuildingTypes


This flag determines whether the building will automatically promote any infantry that enter it to Elite veterancy status.

The Ammo flag must be used on an armory, otherwise it can only promote one soldier. It can also be used to restrict the number of infantry that can be promoted. Once it has used up all of its "promotions" it will no longer function as an armory. If no restriction is desired, using a value of 999 is practical. -1 won't give it infinite ammo. The game appears to take the absolute value (positive -> positive, negative -> positive) for armories.

If an armory has Powered=yes, it will still function even in a low-power situation.

If an armory is placed offline via an in-game mechanism (like in Tiberian Sun), it will not function.

In Red Alert 2, multiple soldiers can be selected at once and ordered into the armory; forming a queue line similar to the way multiple units enter a transport when ordered simultaneously. This makes promoting your soldiers a much less arduous task than it was in Tiberian Sun, where each soldier would have to be ordered into the armory separately.


Bugs

Conyard Armory: Just Don't

Applying Armory=yes to a construction yard (ConstructionYard=yes) causes glitchy behavior. When sending an infantry unit in to be promoted, the building will cycle through its image frames rapidly and the unit will never come back out.

Blocked Armory (RA2)

When an infantry unit enters an Armory it disappears and reappears a short time later in the upper left corner of the building. Unfortunately, the unit does not move away from the building when it exits. The unit is partially obscured by the building and can be difficult to mouse-over the correct part of the screen in order to click to select the unit and move it away manually. Units that have just exited the building will also block other units from being ordered to enter until the offending unit is moved away. However if units are already queuing for the building (see above) then the next unit in the queue will enter automatically as soon as the unit ahead of it is moved out of the way).

Partial Fix Accompanied by Cloning Bug (RA2)

By making the Armory a barracks (Factory=InfantryType) you are able to set a rally point in order to avoid the above problem, however doing so will cause any BuildingTypes you have with Cloning=yes set to spawn a copy of the newly-promoted unit (not promoted of course) as if you had just trained it.

Screwy AI with Armory Factory

Using this on a building that also has Factory=UnitType or Factory=InfantryType set causes the AI to spam only one type of unit from that factory, the first vehicle/infantry type that the AI can build (i.e. the AI house is listed as the object's Owner).

Armory Barracks Jackpot IE of Death (TS)

Not only is the aforementioned AI bug a concern, but using a combination armory barracks has other complications as well — dire complications. If a player attempts to train infantry while promoting on the same building, there is a rare chance that both soldiers will try to exit the building at the same moment. This causes an IE (debug code needed).

Glitchy Ammo Logic

If the Armory has a weapon, both promoting infantry AND each firing of the weapon will decrease the Ammo counter. Once the counter is zero, the Armory will no longer fire OR promote infantry as the Armory tag prevents Ammo from reloading.