MakeInfantryOwner does not work in Mpmodes

Bug #1320962 reported by Ting Zhou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Fix Released
Wishlist
AlexB

Bug Description

In a custom mpmode ini, I redirected all the infantry death anims to anim [MUTATED], and have in artmd.ini these lines:

[MUTATED]
Scorch=yes
Layer=ground
MakeInfantry=1
MakeInfantryOwner=killer
Report=VirusVictimSwell
SpawnsParticle=VirusCloud1
NumParticles=3

For testing purpose I also changed the [Virus] warhead in rulesmd.ini so that it has InfDeathAnim=MUTATED. So in brief, I should be able to create a target type of infantry in both the custom mode and all usual modes. In the other normal Modes it run correctly and creates infantry for me when I kill something, but when I run the custom mode, MakeInfantryOwner is ignored and all infantry created belongs to Neutral. (Also, since I copied the VIRUSD animation for MUTATED, the animation is rendered differently in the normal modes and the custom mode, too: In normal modes it is rendered with the incorrect palette, while in the custom mode it renders correctly. Given that I have not done any modification to the animation, the opposite is probably at work here: ARES 'fixes' the mutation animation for normal modes, but does nothing for the custom mode. These are my mere guesses, though.

The infantry type, the AnimToInfantry list and the [MUTATED] animation are all declared in rulesmd.ini. The main changes in the custom mode ini are these:

[General]
InfantryExplode=MUTATED;S_BANG34 ; animation when infantry just explodes
FlamingInfantry=MUTATED ; anim to use for special onfire infantry logic
InfantryHeadPop=MUTATED;gs other generic death anims
InfantryNuked=MUTATED
InfantryVirus=MUTATED
InfantryBrute=MUTATED
InfantryMutate=MUTATED
InfantryElectrocuted=MUTATED

Thanks!

Revision history for this message
Ting Zhou (zhoutingneyc) wrote :
Revision history for this message
AlexB (alexander-b) wrote :

Hello,
at the moment MakeInfantryOwner only works for specific animations, namely the ones defined as InfDeathAnim, DeathAnims and the ones used by map triggers. Thus, InfantryMutate, InfantryBrute and others do not make use of it. This is why your InfDeathAnim=MUTATED works.

When the tag takes effect, the unit palette is used instead of anim.pal (same behavior as InfDeath=9). If it doesn't take effect, the animation will be rendered in anim.pal, ignoring house remap colors.

I'll regard this as a feature request to expand MakeInfantryOwner to work with InfantryExplode, FlamingInfantry, InfantryElectrocuted / the electro death, InfantryNuked, InfantryVirus, InfantryMutate, and InfantryBrute.

Btw, InfantryElectrocuted goes under [AudioVisual], not [General].

Changed in ares:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Ting Zhou (zhoutingneyc) wrote : Re: [Bug 1320962] Re: MakeInfantryOwner does not work in Mpmodes

Thanks!Ting Zhou
Haverford College '16

On Tue, Jun 3, 2014 at 12:25 AM, AlexB <email address hidden> wrote:

> Hello,
> at the moment MakeInfantryOwner only works for specific animations, namely the ones defined as InfDeathAnim, DeathAnims and the ones used by map triggers. Thus, InfantryMutate, InfantryBrute and others do not make use of it. This is why your InfDeathAnim=MUTATED works.
> When the tag takes effect, the unit palette is used instead of anim.pal
> (same behavior as InfDeath=9). If it doesn't take effect, the animation
> will be rendered in anim.pal, ignoring house remap colors.
> I'll regard this as a feature request to expand MakeInfantryOwner to
> work with InfantryExplode, FlamingInfantry, InfantryElectrocuted / the
> electro death, InfantryNuked, InfantryVirus, InfantryMutate, and
> InfantryBrute.
> Btw, InfantryElectrocuted goes under [AudioVisual], not [General].
> ** Changed in: ares
> Status: New => Triaged
> ** Changed in: ares
> Importance: Undecided => Wishlist
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1320962
> Title:
> MakeInfantryOwner does not work in Mpmodes
> Status in Ares:
> Triaged
> Bug description:
> In a custom mpmode ini, I redirected all the infantry death anims to
> anim [MUTATED], and have in artmd.ini these lines:
> [MUTATED]
> Scorch=yes
> Layer=ground
> MakeInfantry=1
> MakeInfantryOwner=killer
> Report=VirusVictimSwell
> SpawnsParticle=VirusCloud1
> NumParticles=3
> For testing purpose I also changed the [Virus] warhead in rulesmd.ini
> so that it has InfDeathAnim=MUTATED. So in brief, I should be able to
> create a target type of infantry in both the custom mode and all usual
> modes. In the other normal Modes it run correctly and creates infantry
> for me when I kill something, but when I run the custom mode,
> MakeInfantryOwner is ignored and all infantry created belongs to
> Neutral. (Also, since I copied the VIRUSD animation for MUTATED, the
> animation is rendered differently in the normal modes and the custom
> mode, too: In normal modes it is rendered with the incorrect palette,
> while in the custom mode it renders correctly. Given that I have not
> done any modification to the animation, the opposite is probably at
> work here: ARES 'fixes' the mutation animation for normal modes, but
> does nothing for the custom mode. These are my mere guesses, though.
> The infantry type, the AnimToInfantry list and the [MUTATED] animation
> are all declared in rulesmd.ini. The main changes in the custom mode
> ini are these:
> [General]
> InfantryExplode=MUTATED;S_BANG34 ; animation when infantry just explodes
> FlamingInfantry=MUTATED ; anim to use for special onfire infantry logic
> InfantryHeadPop=MUTATED;gs other generic death anims
> InfantryNuked=MUTATED
> InfantryVirus=MUTATED
> InfantryBrute=MUTATED
> InfantryMutate=MUTATED
> InfantryElectrocuted=MUTATED
> Thanks!
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ares/+bug/1320962/+subscriptions

Revision history for this message
AlexB (alexander-b) wrote :

It should now work with InfantryExplode, FlamingInfantry, InfantryElectrocuted, InfantryNuked, InfantryVirus, InfantryMutate, and InfantryBrute.

Changed in ares:
status: Triaged → Fix Committed
assignee: nobody → AlexB (alexander-b)
milestone: none → 0.7
Revision history for this message
Skyler (shadowsky09) wrote :

I can confirm that MakeInfantryOwner works for InfantryExplode, FlamingInfantry, InfantryElectrocuted, InfantryNuked, InfantryVirus, InfantryMutate, InfantryBrute and if changed in custom game modes.

AlexB (alexander-b)
Changed in ares:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.