View Issue Details

IDProjectCategoryView StatusLast Update
0002071Spring engineGeneralpublic2011-03-06 12:22
ReporterGoogle_Frog Assigned To 
PrioritynormalSeveritymajorReproducibilityrandom
Status closedResolutionfixed 
Product Version0.82.3 
Summary0002071: Invulnerable Unit
DescriptionIn a recent game of CA(1fac r8333) there was an invulnerable unit. The unit displayed negative HP and would not take damage or be killed, it acted as a normal unit in every other way.

This may be a bug with applying damage via lua as there were flame units in the battle and flame has a gadgetted damage over time effect.
Additional InformationUnable to provide replay due to replay desync bug.
TagsNo tags attached.
Attached Files
invulnerable_thug_0.82.5.sdf (Attachment missing)
infolog.txt (Attachment missing)
20110304_002222_Tropical_0.82.7.sdf (Attachment missing)
Checked infolog.txt for Errors

Relationships

has duplicate 0002180 resolvedabma Units with shield get HP -nan becoming invincible 
related to 0002606 closed Invulnerable unit 

Activities

Google_Frog

2010-10-12 10:27

reporter   ~0005726

I have accidentally reproduced this bug using Spring 0.82.5.1. Here is a replay that shows an invulnerable unit as described by the ticket.

Map: Comet Catcher Redux.smt
Mod: Complete Annihilation PZK test-98

At 8:30 near (3000,3600) there are 2 shielded units. At this point the unit the unit on the right takes damage and becomes invulnerable, health is set to -1. At 13:30 Spring crashes while the invulnerable unit is under heavy fire.

Google_Frog

2010-10-13 11:43

reporter   ~0005728

I have observed this two more times. Both times it occurred with a Thug which makes me think it is specific to that unit.

This is the only unit that has a personal shield small enough that it can take damage from average AOE leak through. I think this bug has something to do with taking shield damage and dying at the same time, maybe it occurs when hit by the projectile of a dead unit as this is what happens in the attached replay.

hoijui

2010-11-30 14:36

reporter   ~0006019

tried to reproduce with:
Complete Annihilation PZK test-766

shot at a fixed spot with flame-tank and artillery, and ran lots of thuds in there. was not able to get an invulnerable unit, they all died normally.

what i did get though, was this (may be of use, in case you want to fix it):

[f=0051117] LuaRules::RunCallIn: error = 2, UnitDamaged, [string "LuaRules/Gadgets/unit_shield_mortal.lua"]:43: DestroyUnit() recursion is not permitted
stack traceback:
    [C]: in function 'DestroyUnit'
    [string "LuaRules/Gadgets/unit_shield_mortal.lua"]:43: in function 'UnitDamaged'
    [string "LuaRules/gadgets.lua"]:1303: in function <[string "LuaRules/gadgets.lua"]:1299>
    (tail call): ?
    [C]: in function 'DestroyUnit'
    [string "LuaRules/Gadgets/unit_shield_mortal.lua"]:43: in function 'UnitDamaged'
    [string "LuaRules/gadgets.lua"]:1303: in function <[string "LuaRules/gadgets.lua"]:1299>
    (tail call): ?

Google_Frog

2010-11-30 14:57

reporter   ~0006020

That is because in the lastest versions we have added a gadget to workaround this issue, this was added in 733.

A particularly good unit for causing this bug was the wolverine with it's missile firing mine. In version 719 I changed the missile to a cannon to workaround the projectile disappearance bug. So try to reproduce with a version before 719 and a battle with Thugs and Wolverines.

abma

2011-03-04 00:50

administrator   ~0006464

added an other demo with an invul-unit (Tech Annihilation 2.02)

abma

2011-03-04 01:49

administrator   ~0006465

Last edited: 2011-03-04 01:52

happens in replay at ~ 14:30 with Century ship at pos 0002582:0007252, 5522

unit hp was 0

Kloot

2011-03-04 18:37

developer   ~0006467

mod bug (TA 2.02's Century is missing a script, so the unit is never cleaned up because deathScriptFinished remains false)

/give armhls ==> Could not load COB script for unit "armhls" from: scripts/armhls.cob

Google_Frog

2011-03-06 05:23

reporter   ~0006471

What?

An engine bug has been "reproduced" with another mod and in that case it turned out to be a mod bug so this is closed? The real bug with shielded units is not fixed, I don't care what happens in Tech Annihilation 2.02.

Kloot

2011-03-06 12:22

developer   ~0006472

then make a new report demonstrating your "real bug" in 82.7 and/or master, I'm not going to look for it in an old engine build. good day.

Issue History

Date Modified Username Field Change
2010-09-02 09:27 Google_Frog New Issue
2010-10-12 10:22 Google_Frog File Added: invulnerable_thug_0.82.5.sdf
2010-10-12 10:27 Google_Frog Note Added: 0005726
2010-10-12 10:28 Google_Frog File Added: infolog.txt
2010-10-13 11:43 Google_Frog Note Added: 0005728
2010-11-22 11:39 abma Relationship added related to 0002180
2010-11-30 14:36 hoijui Note Added: 0006019
2010-11-30 14:57 Google_Frog Note Added: 0006020
2011-01-01 21:46 abma Relationship replaced has duplicate 0002180
2011-03-04 00:50 abma File Added: 20110304_002222_Tropical_0.82.7.sdf
2011-03-04 00:50 abma Note Added: 0006464
2011-03-04 01:49 abma Note Added: 0006465
2011-03-04 01:51 abma Note Edited: 0006465
2011-03-04 01:52 abma Note Edited: 0006465
2011-03-04 18:37 Kloot Note Added: 0006467
2011-03-04 18:37 Kloot Status new => closed
2011-03-04 18:37 Kloot Resolution open => won't fix
2011-03-06 05:23 Google_Frog Note Added: 0006471
2011-03-06 05:23 Google_Frog Status closed => new
2011-03-06 05:23 Google_Frog Resolution won't fix => reopened
2011-03-06 12:22 Kloot Note Added: 0006472
2011-03-06 12:22 Kloot Status new => closed
2011-03-06 12:22 Kloot Resolution reopened => fixed
2011-08-06 17:08 abma Relationship added related to 0002606