Author Topic: reduced damage due to slow moving projectiles bug  (Read 3003 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
reduced damage due to slow moving projectiles bug
« on: 29 January 2011, 23:25:49 »
Hi another little glitch i found:

If a ranged unit fires a projectile then a move command is given before the projectile reaches its target the amount of damage would be less than if the unit was left in its attack cycle. This reduce damage effect is not due to variable damage, i've experimented with units with out variable damage just base damage.
This is problematic with: Slow moving projectiles, long range attack (15+ squares), and projectiles that are fired toward the end of the animation cycle. For my case it interferes with a unit that's designed for hit and run attack.

I'm using MegaGlest but i think projectiles are calculated the same on Glest and GAE.

Thanks again!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: reduced damage due to slow moving projectiles bug
« Reply #1 on: 2 February 2011, 22:07:05 »
Yes its exactly like it should be! Its a very cool feature and not a bug!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Zoythrus

  • Guest
Re: reduced damage due to slow moving projectiles bug
« Reply #2 on: 2 February 2011, 22:11:03 »
Yes its exactly like it should be! Its a very cool feature and not a bug!

wait, why? this seems like a problem that should be fixed!

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: reduced damage due to slow moving projectiles bug
« Reply #3 on: 3 February 2011, 01:10:33 »
Yes its exactly like it should be! Its a very cool feature and not a bug!
How does that make sense?  You fire an arrow then move, and the arrow hurts less? :confused:

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: reduced damage due to slow moving projectiles bug
« Reply #4 on: 3 February 2011, 06:52:33 »
Don't you meant if the unit the arrow is intended for gets less damage because the arrow missed?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: reduced damage due to slow moving projectiles bug
« Reply #5 on: 3 February 2011, 16:32:34 »
Don't you meant if the unit the arrow is intended for gets less damage because the arrow missed?

The target never moves (so he is directly hit, no misses) its the attacker who is moving before the projectile reaches its target. Thus somehow reducing damage.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: reduced damage due to slow moving projectiles bug
« Reply #6 on: 3 February 2011, 21:45:07 »
Don't you meant if the unit the arrow is intended for gets less damage because the arrow missed?

The target never moves (so he is directly hit, no misses) its the attacker who is moving before the projectile reaches its target. Thus somehow reducing damage.
O, I didn't know that...
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: reduced damage due to slow moving projectiles bug
« Reply #7 on: 5 February 2011, 20:51:20 »
The only way i know to work around (non-source editing) is to make sure that the projectile reaches its destination BEFORE his (the attacker) attack animation ends. As long as projectile is still active, or hasn't been fired yet and his attack animation has not ended, he can not follow an order. so he will remain in attack mode, therefore preventing this.

Its an issue with the hero character in Annex, who has an ability to call down a nuke strike at a target. I wanted her to spawn the projectile far away from herself (to simulate a missile being fired off screen) toward the end of her long attack animation cycle (to give the defending player a chance to prevent the launch by killing her). After launch but before nuke impact the player would be able to move her away from the blast zone, however due to this glitch if she does move the nuke will do far less damage than if she stayed and continued to target. :(
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: reduced damage due to slow moving projectiles bug
« Reply #8 on: 6 February 2011, 00:01:29 »
I was unable to reproduce this, so I would suggest it is a MG only bug.

I think titi simply misunderstood you, and I think this will probably be fixed in MG before too long :)
Glest Advanced Engine - Code Monkey

Timeline | Downloads

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: reduced damage due to slow moving projectiles bug
« Reply #9 on: 15 March 2011, 12:45:48 »
I moved this topic here so it does not get lost!
Ishmaru can you give us a unit-xml example of something that will cause it?

Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: reduced damage due to slow moving projectiles bug
« Reply #10 on: 16 March 2011, 13:15:50 »
Here is xml of unit and projectile with problem:

(click to show/hide)

(click to show/hide)

note that unit "super skill" is the skill in question. The attack animation is about 120 frames its suppose to be long. and projectile is launched near end. Attack start time is 0.9.
The problem can be seen in this video:
https://www.youtube.com/watch?v=TR61-x3Jz-A

Hope this helps!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: reduced damage due to slow moving projectiles bug
« Reply #11 on: 5 April 2011, 13:42:15 »
refresh
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: reduced damage due to slow moving projectiles bug
« Reply #12 on: 7 April 2011, 22:09:34 »
I verified this very carefully and I cannot establish this bug!
You must have done some thing wrong. Maybe you had set the attack var of the attack skill to something != 0
ich you set
<attack-var value="0"/>
You always get the same damage without variation.

 I tried it with an attack and always got the same order of damages in a game. So everything is ok here!

Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: reduced damage due to slow moving projectiles bug
« Reply #13 on: 9 April 2011, 20:15:05 »
The attack var value is 0  ::)... This happens to all my units when under same circumstances. no worries I have work around. Just need to make projectile reaches target before someone can move attcker.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Hagekura

  • Archmage
  • ******
  • Posts: 524
    • View Profile
    • Hageus_Iaponicus(@Hageus_Hagekura)さん | Twitter
Re: reduced damage due to slow moving projectiles bug
« Reply #14 on: 9 April 2011, 22:08:44 »
I have experienced same problem when shinobi throws bomb. If shinobi withdraws before his bomb reaches target, the bomb damge is significantly reduced.
btw the nuke attack showed in the vid is very cool.
Bushido to iu wa shinu koto to mitsuketari.

Japanese Faction Mod

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: reduced damage due to slow moving projectiles bug
« Reply #15 on: 9 April 2011, 23:27:02 »
maybe this has something to do with splash?
did your attacks use splash?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything