Opened 20 months ago

Last modified 11 months ago

#6617 reopened defect

Mouse pointer incorrect when units are selected that can't be garrisoned in own or allied building

Reported by: Andy Alt Owned by:
Priority: If Time Permits Milestone: Alpha 27
Component: UI – In-game Keywords:
Cc: Patch:

Description (last modified by Langbart)

If you have units selected that can't be garrisoned in a building, then hold down ctrl and hover the mouse over an allied building (or your own), the mouse pointer becomes a sword.

Examples: if infantry is selected and the pointer is over an elephant cage

if elephants are selected, and the pointer is over a barracks.


EDIT

The ticket was originally closed as a wontfix, but after further testing, the red color of the new action-attack-move cursor does make it look just something is wrong. The old cursor was more gray, and the problem was perhaps never reported for that reason.

Image with women trying to put them on a wall with the old & new cursor.

possible solution

Attachments (6)

0ad-6617.png (1.6 MB ) - added by Andy Alt 16 months ago.
Shows attack/move cursor when a unit can't be garrisoned in own or allied building
a25_siege.png (435.2 KB ) - added by Langbart 16 months ago.
latest_dev_siege.png (1.3 MB ) - added by Langbart 16 months ago.
a25_soldier.png (425.7 KB ) - added by Langbart 16 months ago.
latest_dev_soldier.png (427.4 KB ) - added by Langbart 16 months ago.
o_n_act_cursor.png (145.1 KB ) - added by Langbart 13 months ago.

Change History (17)

comment:1 by Stan, 20 months ago

Milestone: Alpha 26Alpha 27

Sounds like A27 Material.

comment:2 by Freagarach, 16 months ago

Milestone: Alpha 27
Resolution: invalid
Status: newclosed

The sword is (probably) due to the action being attack-move.

comment:3 by Andy Alt, 16 months ago

Resolution: invalid
Status: closedreopened

This is a bug. Please review again.

by Andy Alt, 16 months ago

Attachment: 0ad-6617.png added

Shows attack/move cursor when a unit can't be garrisoned in own or allied building

comment:4 by Stan, 16 months ago

Milestone: Alpha 27

comment:5 by Langbart, 16 months ago

Difference A25 vs latest dev1 for Siege

  • cursor color/ design changes [26448]
  • behavior of the ctrl key press was changed
    • unknown changeset

A25 Siege

Latest dev1 Siege


Difference A25 vs latest dev1 for Soldier

  • cursor color/ design changes [26448]
  • Switch default behavior from capture to attack. [27399]

A25 Soldier

Latest dev1 Soldier


Footnote

1 latest dev = [27433]

---

Decision required

  1. close the ticket as wontfix
  2. change the cursor when pressing ctrl for siege units

by Langbart, 16 months ago

Attachment: a25_siege.png added

by Langbart, 16 months ago

Attachment: latest_dev_siege.png added

by Langbart, 16 months ago

Attachment: a25_soldier.png added

by Langbart, 16 months ago

Attachment: latest_dev_soldier.png added

comment:6 by Andy Alt, 16 months ago

Description: modified (diff)
Summary: If only siege selected, hovering over allied building the mouse pointer is a swordMouse pointer incorrect when units are selected that can't be garrisoned in own or allied building

I realized it happens not only with siege but other units as well. I've tried to update the title and description to be more accurate.

And thanks for all your detective work and pics, Langbart. :)

comment:7 by Freagarach, 15 months ago

I vote for option 1, if that wasn't clear yet. Or convince @wowgetoffyourcellphone that a different cursor is needed.

in reply to:  7 comment:8 by Langbart, 15 months ago

Milestone: Alpha 27
Resolution: wontfix
Status: reopenedclosed

Replying to Langbart:

1. close the ticket as wontfix
2. change the cursor when pressing ctrl for siege units

Replying to Freagarach:

I vote for option 1

Ticket will be closed as wontfix.

Below are some Options that I considered to meet the ticket's request and my opinion for each.


Option A: Add an additional check

If another check is added the issue described in the ticket resolves. The default source:ps/trunk/binaries/data/mods/mod/art/textures/cursors/default-arrow.png@27531 cursor will be displayed, instead of the attack-move source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-attack-move.png@27531 cursor. Ctrl + right-clicking would be the same as just right-clicking. The entity simply walks towards the building.

  • opinion: If you attempt to use Attack Move during combat, the cursor could change while accidentally hovering over one of your own units.
  • binaries/data/mods/public/gui/session/unit_actions.js

    a b var g_UnitActions =  
    128128        {
    129129            if (!entState.unitAI)
    130130                return false;
     131            if (targetState && playerCheck(entState, targetState, ["Player", "Ally"]))
     132                return false;
    131133            return { "possible": true };
    132134        },
    133135        "hotkeyActionCheck": function(target, selection)

Option B: Display a different cursor

The ones listed below are included in the base game.

  • opinion: None of the cursors currently match the use case, and if you create one, it would be confusing to have two cursors for the same thing.
name icon
default-arrow.png source:ps/trunk/binaries/data/mods/mod/art/textures/cursors/default-arrow.png@27531
action-attack-move.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-attack-move.png@27531
action-attack.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-attack.png@27531
action-blank.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-blank.png@27531
action-build.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-build.png@27531
action-cancel-setup-trade-route.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-cancel-setup-trade-route.png@27531
action-capture.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-capture.png@27531
action-collect-treasure.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-collect-treasure.png@27531
action-flare.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-flare.png@27531
action-garrison-disabled.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-garrison-disabled.png@27531
action-garrison.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-garrison.png@27531
action-gather-fish.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-fish.png@27531
action-gather-fruit.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-fruit.png@27531
action-gather-grain.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-grain.png@27531
action-gather-meat.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-meat.png@27531
action-gather-milk.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-milk.png@27531
action-gather-ore.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-ore.png@27531
action-gather-rice.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-rice.png@27531
action-gather-rock.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-rock.png@27531
action-gather-ruins.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-ruins.png@27531
action-gather-tree.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-gather-tree.png@27531
action-guard-disabled.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-guard-disabled.png@27531
action-guard.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-guard.png@27531
action-heal-disabled.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-heal-disabled.png@27531
action-heal.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-heal.png@27531
action-herd.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-herd.png@27531
action-occupy-turret-disabled.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-occupy-turret-disabled.png@27531
action-occupy-turret.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-occupy-turret.png@27531
action-patrol.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-patrol.png@27531
action-remove-guard.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-remove-guard.png@27531
action-repair-disabled.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-repair-disabled.png@27531
action-repair.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-repair.png@27531
action-return-food.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-return-food.png@27531
action-return-metal.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-return-metal.png@27531
action-return-stone.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-return-stone.png@27531
action-return-wood.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-return-wood.png@27531
action-setup-trade-route-disabled.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-setup-trade-route-disabled.png@27531
action-setup-trade-route.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-setup-trade-route.png@27531
action-unload.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-unload.png@27531
action-unset-rally.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-unset-rally.png@27531
arrow-default-down.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/arrow-default-down.png@27531
cursor-flare.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/cursor-flare.png@27531
cursor-help.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/cursor-help.png@27531
cursor-no.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/cursor-no.png@27531
cursor-rally.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/cursor-rally.png@27531
cursor-wait.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/cursor-wait.png@27531

Option C: Change

Change back to the old cursor or change the existing one.

  • opinion: Besides the new default source:ps/trunk/binaries/data/mods/mod/art/textures/cursors/default-arrow.png@27531 cursor, all other cursors look great, I would not change it.
name icon revision
action-attack-move.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-attack-move.png@26447 [26447]
action-attack-move.png source:ps/trunk/binaries/data/mods/public/art/textures/cursors/action-attack-move.png@26448 [26448]
Last edited 13 months ago by Langbart (previous) (diff)

comment:9 by Langbart, 13 months ago

Description: modified (diff)
Milestone: Alpha 27
Priority: Should HaveIf Time Permits
Resolution: wontfix
Status: closedreopened

Update description with reason for reopening.

by Langbart, 13 months ago

Attachment: o_n_act_cursor.png added

comment:10 by Stan, 12 months ago

Milestone: Alpha 27Alpha 28

comment:11 by Stan, 11 months ago

Milestone: Alpha 28Alpha 27

Push back

Note: See TracTickets for help on using tickets.