Author Topic: [fixed] r4338: Boost may work on larger area than indicated?  (Read 681 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I've noticed that there seem to be situations where boost works outside of the range it should.

In Prax, sorcerers get a boost when they stand within reach of a stone circle (and only then). This is indicated by a small red face icon over their heads.

On this image, you can see a sorcerer who is currently being boosted by the only stone circle I had built in this game:



However, if you look at the range of this stone circle, then it shows that this sorcerer should not be boosted at all, since he is clearly standing outside of the stone circle's range.



NB: I've edited these images to be lighter, they didn't look this bad originally.

Update:

Here's another image which shows this or a related issue. This time there is a boost affecting only a single worker in a group of workers. In fact, since there is no building nearby to boost any worker (check mini map), not a single worker should be boosted there. Note that this screenshot is a few weeks old, I'm not sure whether this is already fixed (the above screenshots are current, though):

« Last Edit: 31 May 2013, 04:10:12 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: r4338: Boost may work on larger area than indicated?
« Reply #1 on: 31 May 2013, 04:31:35 »
Has the mod changed since version 0.5.3.3? Because the "steinheiligtum" unit (which appears to be the one in your picture) has an attack boost of radius of 15, yet the "show range" skill only creates particles with a radius of 6.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Boost may work on larger area than indicated?
« Reply #2 on: 31 May 2013, 04:44:06 »
v0.5.3.3 is the one I was using here. Are you saying it's a bug in the mod, i.e. Atze needs to set the show range radius to the same value as the attack boost range?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: r4338: Boost may work on larger area than indicated?
« Reply #3 on: 31 May 2013, 04:48:22 »
v0.5.3.3 is the one I was using here. Are you saying it's a bug in the mod, i.e. Atze needs to set the show range radius to the same value as the attack boost range?
I haven't tested it, but unless my understanding of the XML is wrong, it is indeed an issue on the mod level. Granted, that only explains the first image. I'm not sure what's happening in the second image.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Boost may work on larger area than indicated?
« Reply #4 on: 1 June 2013, 02:15:57 »
Thanks to Omega, the issues discusse dint he first two screen shots above (sorcerer + stone circle) is no longer relevant, it was a mod bug which Atze has fixed as of today.

What remains (does it or was there already a fix for this?) is the behavior where you have single remote units boosted when they are not in range of a boosting object. I remember this is an old bug which I've seen occasionally ever since the Roman general has received attack boost powers.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4338: Boost may work on larger area than indicated?
« Reply #5 on: 1 June 2013, 03:40:32 »
Please describe the exact test case or it will be close to impossible to fix.

Thanks

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Boost may work on larger area than indicated?
« Reply #6 on: 1 June 2013, 18:06:43 »
Sadly it's hard to provide an exact test case, since I do not exactly know which factors contribute to creating this situation.

I've made Prax 0.5.3.3 available to you, and here's my INI file and a savegame of a very busy Prax game (five Mega CPUs and me all on the same team with ~1000 total units). Before I saved this savegame, an archer on the red bottom center settlement was boosted, with no unit or structure anywhere nearby which could cause it. Sadly, when you restore this game, this is no longer the case.

However, after restoring this game i just moved a large mixed group of  fighters (hunters / Jaeger (bow/arrow unit), axemen / Axtkaempfer, spear fighters) back to the red main base on the top left where a tower is (boosting the hunters), then deselected them, reselected them and some other fighters and moved them back to bottom center. As a result, one of the hunter units remained boosted (with feet icon and faster running) well beyond the towers' range.

I then repeated this with two groups of fighters including many hunters, moving them into the towers' range, deselected them, reselected and grouped them, and moved them out of range again. To move them out of range, I just right-clicked on the mini map, then deselected them before they moved out of the towers' range, and pointed the camera elsewhere. When they finished their march to bottom center, several of the hunters were still boosted.

I understand how this may help to reproduce now, but hardly helps finding the cause. So I'll try to reduce the test case next, and report about those observations.

Edit #1:
I've got a slightly more simplified test case now. A single player Prax 0.5.3.3 game where you produce roughly two dozen archers, kill the spearman you had from the start, and only have the necessary buildings (center, smithy, farm), no upgrades, on the "6players" map. Moving as many of those hunters as you can grab to the center of the map by selecting them then right-clicking on the map will result in some of them remaining boosted although they are well outside of the towers' range.

Edit #2:

What may or may not be relevant that, using the "Edit #1" test case and moving the group of archers back and forth, it turns out those which remain boosted vary, while some of them remained boosted (when they should not) repeatedly, there were either others who had been in the last run but weren't in this, or new ones which had not incorrectly remained boosted during the last run, but now. So it does not seem to be related to low/high unit/object ID.

Edit #3:
Another observation is that it does not matter whether or not you follow those hunter units with your camera, it will happen either way. In fact with this test case it is reproducible for me every time I move those hunters out of range. And after a while some of the workers will also run into the problem, having the feet icon when they should not.

Edit #4:
Test case further reduced. Now we only have hunters, enough cows to survive, and the tower. Even the sorcerer is gone, so only one source of an attack boost is left.
With this setup, I can not reproduce the issue while moving the group (key 1) of archers to the right (maybe because of the trees they run into there), but almost always when I move them to the bottom of the map. Some hunters will remain boosted most of the time I move them there.
« Last Edit: 1 June 2013, 18:55:49 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4338: Boost may work on larger area than indicated?
« Reply #7 on: 1 June 2013, 23:02:40 »
Should be fixed now in svn

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Boost may work on larger area than indicated?
« Reply #8 on: 1 June 2013, 23:34:22 »
Thanks, I confirm r4354 is [fixed] for me.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything