sonar changes in q to dragon eye (7.66 - test417)

sonar changes in q to dragon eye (7.66 - test417)

Classic game design, maintained to please you...

Moderator: Content Developer

Post Reply
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

sonar changes in q to dragon eye (7.66 - test417)

Post by dansan »

In BA 7.66 until (incl.) BA-test417

way to reproduce:
* queue a sonar with a con or the com with the shift-key pressed
* when the mouse (with the semi-transparent sonar) is moved once to several times over a built unit (tidal/mex/sea lab) it changes into a dragons eye
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: sonar changes in q to dragon eye (7.66 - test417)

Post by klapmongool »

dansan wrote:In BA 7.66 until (incl.) BA-test417

way to reproduce:
* queue a sonar with a con or the com with the shift-key pressed
* when the mouse (with the semi-transparent sonar) is moved once to several times over a built unit (tidal/mex/sea lab) it changes into a dragons eye
Lol that could explain why I made a dragon eye instead of sonar the other day. I thought i just misclicked it in the menu.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: sonar changes in q to dragon eye (7.66 - test417)

Post by very_bad_soldier »

That actually is a feature of the widget cmd_context_build.lua.

It automatically changes the selected building to the appropriate one when moving mouse from water <-> land.

So when you select a land mex and move your mouse to a water mex spot it automatically changes to water mex.
klapmongool wrote: Lol that could explain why I made a dragon eye instead of sonar the other day. I thought i just misclicked it in the menu.
Hm that might happen in shallow water where it is possible to build sonar as well as dragon eye. I will exclude eye/sonar from that mechanism.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: sonar changes in q to dragon eye (7.66 - test417)

Post by dansan »

very_bad_soldier wrote:That actually is a feature of the widget cmd_context_build.lua.

It automatically changes the selected building to the appropriate one when moving mouse from water <-> land.
It's triggered when mouse moves over a unit (floating unit?) inside the water.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: sonar changes in q to dragon eye (7.66 - test417)

Post by Niobium »

The context build widget is poorly written, the main problem being that it permanently switches your build option each time, forgetting what you originally selected.

Here's a scenario:
- You want to build a sonar
- You select the sonar from the list
- By chance the the buildmenu is 'over' land, and so the context build widget immediately switches your building selection to the dragons eye
- Because dragons eyes can be build on land and water, any location is valid and thus it never switches back to the sonar that you originally clicked.

While you could rewrite the widget to not be fail, a better solution would be to merge each of the equivalent land/sea units into a single amphibious/floating unit, resulting in a tidier mod and removing the need for the widget in the first place.
User avatar
LulzTyphon
Posts: 24
Joined: 15 Mar 2012, 22:57

Re: sonar changes in q to dragon eye (7.66 - test417)

Post by LulzTyphon »

why would I want sonar to change to DT ?

just seems totally random and I already have a DT keybind :|
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: sonar changes in q to dragon eye (7.66 - test417)

Post by very_bad_soldier »

Niobium wrote: While you could rewrite the widget to not be fail
The problem is that the dragon eye can be build everywhere and therefore it does not qualify to be used in that widget.
How can that be solved by a different widget implementation?
Post Reply

Return to “Balanced Annihilation”