Page 1 of 1

1.12c8 Test1 Version

Posted: June 26th, 2011, 1:48 pm
by DarnYak
Just kidding, its 1.12d.

DarnYak

Re: 1.12c8 Test1 Version

Posted: June 26th, 2011, 6:19 pm
by DarnYak
Known bugs:
[FIXED]-Hero respawn is sometimes
[FIXED]-Talents don't work
[FIXED]-Bounty from hero kills appears for all players
-Spawn rates feel off
[FIXED]-Heroes get exp while dead

Re: 1.12c8 Test1 Version

Posted: June 26th, 2011, 8:22 pm
by DarnYak
For those who had heroes not respawn: Did anyone (besides CokeMonkey in the Candleburg game) happen to research a strength upgrade while they were dead?

DarnYak

Re: 1.12c8 Test1 Version

Posted: June 26th, 2011, 10:29 pm
by DarnYak
Update: Looks like that was it. If you want to play this test version, do not research strength while dead.

This actually leads to an interesting bug in general. The only way i know of to test if a unit is dead is to check if its health is <= 0. However, a strength research increases a dead hero's health past 0. Thus, everything starts thinking the hero is alive again. Which means the hero does shit like earn experience while dead (explaining the other bug).

DarnYak

Re: 1.12c8 Test1 Version

Posted: June 26th, 2011, 11:49 pm
by Cokemonkey11
Use IsUnitType(u,UNIT_TYPE_DEAD).

There are a lot of documented problems with checking a unit's life, starting with the fact that a unit can have more than .405 hit points and still be alive

Re: 1.12c8 Test1 Version

Posted: June 27th, 2011, 1:11 am
by DarnYak
Awesome, didn't know that existed.

DarnYak

Re: 1.12c8 Test1 Version

Posted: June 27th, 2011, 8:27 am
by Kalrithus
War3 really is notorious for having poor death checks, I remember trying to code a number of abilities where it checked for dead units around a unit and half the time even if they were decaying corpses it wouldn't acknowledge them as dead yet.

Re: 1.12c8 Test1 Version

Posted: June 27th, 2011, 1:04 pm
by Setokaiva
What about setting the 'dead' unit/heroes HP regen to a negative upon 'death' so they will 'die' again properly? Or is that possible?

Re: 1.12c8 Test1 Version

Posted: June 27th, 2011, 3:49 pm
by Cokemonkey11
Strength also changes a unit's life regeneration rate...

It might be worth testing I suppose to change regen to -500 then back to 0 on respawn and see if it properly carries over strength

Re: 1.12c8 Test1 Version

Posted: June 29th, 2011, 10:54 am
by DarnYak
Btw, does anyone else feel spawn rates are off, or is it only me?

DarnYak

Re: 1.12c8 Test1 Version

Posted: July 2nd, 2011, 7:14 am
by Kalrithus
Anyone for more test games today?

Re: 1.12c8 Test1 Version

Posted: July 2nd, 2011, 10:47 am
by Dekar
:)

Re: 1.12c8 Test1 Version

Posted: July 2nd, 2011, 12:15 pm
by DarnYak
Probably need more forewarning to get people to show up. If people do show up, make a post here to let me know and i'll join in.

DarnYak

Re: 1.12c8 Test1 Version

Posted: July 2nd, 2011, 12:33 pm
by Cokemonkey11
Kalrithus wrote:Anyone for more test games today?
Any particular time?