Author Topic: [Fixed] Selecting multiple units of same type by double-clicking often fails  (Read 1190 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
When I double-click a unit, the expected behaviour is that in addition to this unit, neighbouring units of the same type are selected, too. However, this fails more often than not, resulting in either no unit at all or just the unit below the mouse pointer being selected. It is actually very rare that the expected behaviour works.
« Last Edit: 18 April 2011, 07:49:02 by silnarm »
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 · · ·

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
It works every time for me. What I think could be happening is that you're trying to click a moving unit and you move the mouse as you double click to keep it over the unit but it activates the selection box instead. Is this the case?
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
No, the unit I'm double-clicking on is not moving.

I recorded a video to display what I'm trying to do and how it fails. It also shows how the shadows behave strangely.
This video is only 1.2 MB. It is encoded with the OGG Theora video and the OGG Vorbis audio codec, Firefox and Chrome should be able to play it back as part of their HTML5 video tag support.

I use a relatively new open source ATI 3D video drivers (gallium 0.4) on Ubuntu 11.04 (still a beta, but this should not matter in this case). So this might be an explanation if I'm the only one this is happening to. It might be good to check with others to get an idea of whether or not I'm a special case there.
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 · · ·

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
looks like they are getting selected, then its picking again and re-selecting just the one.

This may be another symptom of the missing mouseUp() events that John used to crash the drop-lists on the new game menu, will hopefully get a chance to investigate on linux tonight.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
I noticed in sdl/window.cpp Window::handleMouseDown, eventMouseDown and eventMouseDoubleClick are called together but in the Windows version they aren't.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Yep, hailstone hit the nail. Removing eventMouseDown fixed it for me.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Yes, very nice. :) This fix in f9192dd490e836bd1b5783a839228937434f32a3 does it 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 · · ·