Page 1 of 1

Spring 91 BA 7.71 - Negative Experience

Posted: 07 Sep 2012, 12:14
by LEDZ
Witnessed Manticores gaining negative experience.
They then have 0/0 health.
Any clues as to what has happened?

Image

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 08 Sep 2012, 05:04
by Forboding Angel
You pressed "L".

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 08 Sep 2012, 21:34
by Beherith
I have no clue, if you find a way to reproduce it, please post to mantis.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 09 Sep 2012, 11:06
by abma
attach a demo of such a game please.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 09 Sep 2012, 11:58
by Silentwings
I've tried to reproduce the bug but had no luck.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 09 Sep 2012, 12:14
by Beherith
Posting the replay woulr help, yeah.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 09 Sep 2012, 15:01
by LEDZ
http://replays.springrts.com/replay/85b ... 097174d8b/

Look at [BORG]LEDZ's Manticores at around 25 mins.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 20 Sep 2012, 19:52
by massive
Here is that bug too http://replays.springrts.com/replay/9d4 ... 079b8f899/
As you can see, LLT get -1 exp and lot of HP. It even cant be dguned!

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 20 Sep 2012, 20:08
by knorke
stupid guess:
since it is aa units/units that can shot air:
maybe it happens when units hit a crashing plane? iirc BA recently made gunships do the spiralcrash thing and while spiraling they have 0 hp = messes up xp?
Might be something to look out for when watching the replay.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 21 Sep 2012, 12:52
by LEDZ
When planes died before, they had "50%" health while crashing. Now they don't have that. Perhaps any missiles launched at planes that are then in this weird state gain negative experience.

I've now tested this hypothesis with a widget available here:
http://pastebin.com/vqAEcByj

It is when damage is done against an already dead plane, one that is crashing to the ground.

Re: Spring 91 BA 7.71 - Negative Experience

Posted: 21 Sep 2012, 16:23
by Beherith
Thanks LEDZ, this should solve it:

Code: Select all

function gadget:UnitPreDamaged(unitID, unitDefID, unitTeam, damage, paralyzer, weaponDefID, attackerID, attackerDefID, attackerTeam)
	if crashing[unitID] then return false
	return true
end