Author Topic: 3.6.0.2: Right-clicking enemy unit for attack causes my units to move there  (Read 1455 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Sometimes (and not too rarely), when you select a group of your fighters, then right-click on an enemy unit to attack it, your units will not attack it but just move towards this enemy unit and stand there. This especially happens when CPU load is high and/or FPS is low. It happens more often (but not only) in large games with many network players from all over the world (and both network and other lag which are both caused by this setup). It may be less of a problem on faster GPUs.

I assume this happens when you click during a tick in which the game is not expecting you to give an attack order.
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 · · ·

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
I have seen this too in single player, sometimes resulting in a long delay before unit begins to attack.
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

Kiko

  • Guest
Hmm... I thought it was a case of click the Attack icon or press the A key, then LEFT-click to attack a unit. And I thought RIGHT-click was only to move my own units. (Mind you, I never read the manuals for anything).

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Hmm... I thought it was a case of click the Attack icon or press the A key, then LEFT-click to attack a unit. And I thought RIGHT-click was only to move my own units. (Mind you, I never read the manuals for anything).
Right click is a shortcut for "do whatever the most common thing to do is". This could be at move, attack, repair, et cetera. It depends on what you are clicking on.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Hmm... I thought it was a case of click the Attack icon or press the A key, then LEFT-click to attack a unit. And I thought RIGHT-click was only to move my own units. (Mind you, I never read the manuals for anything).
Right click is a shortcut for "do whatever the most common thing to do is". This could be at move, attack, repair, et cetera. It depends on what you are clicking on.
Clicking an enemy unit while you have an attack command should attack, if you don't have an attack command, should move. Clicking a friendly non-building unit should move to it. Clicking a building should repair it if not full HP, move to it otherwise. Clicking a resource should harvest it. Clicking a unit with a load command while the unit being commanded can be loaded should load the unit. Clicking a bare patch should move the unit there. Did I miss any?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Kiko

  • Guest
Did I miss any?

Probably not. I realised after reading your response that I do a lot of right-clicking intuitively. I guess that means that the game interface is designed and works well in general (ie., if users pick it up intuitively and don't have much need of a manual then 'job well done').



Edit: When thinking about the OP I realised that this happens when I right-click the forest so guys will harvest wood, for example. Sometimes they'll also do some harvesting for awhile, but then just stop and stand there. I just noticed that where only a few were harvesting (I know that when there are a large number they sometimes stop for a moment because they can't get at the resource).
« Last Edit: 24 January 2012, 11:47:51 by Kiko »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
I already looked at this issue, but had no luck so far. I will have to search a bit more...
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios