Author Topic: Problem selecting the units  (Read 1337 times)

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
Problem selecting the units
« on: 12 January 2011, 00:16:52 »
Hi all i have a problem selecting the units. This is the problem: i want to select some units but some units close get selected too. This is very annoying especially when i select units to attack a target but a worker gets selected too and then i can't attack. I put here some pictures to explain better:

Romans:
Here i wanted to select the archers but as you can see when i select them two workers gets selected too:
http://img228.imageshack.us/img228/2817/romansn.png

Japanese:
Same thing even in this case a worker gets selected too:
http://img262.imageshack.us/img262/6176/japanesev.png

Is this a bug? Or should the selecting thing get improved Or is it me selecting wrong the units?? I posted here and not in the mods place because happens with various mods and not only one. I tried with the default factions of mg and seems there is no problem.

Im on windows xp.

Greetings :)
« Last Edit: 12 January 2011, 00:54:24 by Pizza90 »
I translated Megaglest in italian and i keep the translation updated.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Problem selecting the units (happens only with mods i think)
« Reply #1 on: 12 January 2011, 00:41:19 »
That is a bug in all versions of Glest, MG and GAE included. It has nothing to do with which mod used, as I've seen it on magitech.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
Re: Problem selecting the units (happens only with mods i think)
« Reply #2 on: 12 January 2011, 00:50:56 »
Oh okay :) Thanks for the info. To me happens sometimes with various factions and i play many mods so i thought it was related to them. If it's a known bug, well good it's a first step to fix it  :D Hope it will get fixed soon (yes im sure everyone says the same for every bug  :| ) because is an important thing since selecting unit it's a main thing of the game.

ps: i modified the title of the post since this problem is not related only to the mod.
« Last Edit: 12 January 2011, 01:00:16 by Pizza90 »
I translated Megaglest in italian and i keep the translation updated.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Problem selecting the units
« Reply #3 on: 12 January 2011, 01:22:34 »
The only work-around I know of is unselecting the extra units, which is easier in GAE because you can do it by shift-clicking on the units' icons (is this also in MG?).

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
Re: Problem selecting the units
« Reply #4 on: 12 January 2011, 01:28:38 »
I will copy here the same idea i wrote on the "bugs/works that needs to be fixed/done before release" thread (but as i said im not a developer so dont know if it would work or not):

Forcing the units to attack: When selecting the units example: 4 archers and 1 worker and then you click for attack the units would be forced to attack so at that point only the units with an attack option would attack while the rest would not move. Vice versa when you would select for example 4 workers to harvest the wood and an archer would get selected for error, you could click "harvest" and force the units to harvest, so the workers could go to harvest and the archer would not since he can't harvest.
I translated Megaglest in italian and i keep the translation updated.

Conzar

  • Guest
Re: Problem selecting the units
« Reply #5 on: 12 January 2011, 02:09:48 »
In other games, this situation is handled by moving the unit that cannot perform the command along with the units that can perform the command. 

An example in SC2: 2 zealots (melee attacks) and 1 high templar (no melee nor ranged attacks, spell class only).  With 2 zealots and 1 high templar selected, if the player attacks say 1 marine, then the zealots and high templar will move to the marine's position.  The high templar will just move along with the zealots until it too reaches the marine.

Why would you want this behavior?  Because the high templar has spells that might be useful for the attack.  You wouldn't want to box select and move/attack your units only to find out that your high power spell casters are still at home b/c they couldn't actually attack anything. 

Likewise, with the example of the worker, maybe you want an escort for your workers to the gold/wood/stone patches.  If the archer doesn't go along with the workers, you will have to issue yet another command to insure that, slowing down your micro.

I've got some other things to work on ... but I think this is an important gameplay feature, so when I have time, I'll look into the code for this one.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Problem selecting the units
« Reply #6 on: 12 January 2011, 02:35:08 »
In other games, this situation is handled by moving the unit that cannot perform the command along with the units that can perform the command.
Currently, a right click with a mixed selection like that will result in your workers walking up to the enemy and just getting in the way or getting killed.  I would think the ideal solution would be for them to stay just behind the fighters.  Maybe a formation system is in order?  I doubt that's an easy thing to implement, though.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Problem selecting the units
« Reply #7 on: 14 January 2011, 10:36:54 »
I think this problem is fixed now ( on my local copy   :P )
Will be checked in shortly before next release .... ( still a little secret  ;) )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios