Author Topic: [QoL] Right clicking Don't Reselect Unit button undoes last selection  (Read 1272 times)

Offline Tamren

  • Captain
  • ***
  • Posts: 63
    • View Profile
The idea is that right clicking on the Don't Reselect Unit button undoes the last selection. So it would cycle through all units selected that way in reverse order and also undo the "don't reselect part". This would put the button more in line with other parts of the UI where right clicking can be used to cycle a button in reverse order such as the unit selection button and the deployment inventory tabs.

Sometimes I hit the Don't Reselect button by mistake when trying to switch to the next unit, this would provide a way to undo that. Another common scenario is that I'm using the Don't Reselect button to "clean up" a bunch of units that have no TUs left but I click the button one too many times and have to go back and search for the one I just "deleted".
« Last Edit: October 25, 2024, 07:05:12 pm by Tamren »

Offline Delian

  • Commander
  • *****
  • Posts: 503
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #1 on: October 25, 2024, 03:43:42 pm »
I also rarely accidentally click the Don't Reselect button and there's no way to undo that.
I wish that button acted the same as the Kneel button, being pressed down when the property is set, and to be able to click on it again to undo it.
For people who use it often, I suppose the right-click solution to find the previous don't-reselect-me soldier could also be useful.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #2 on: November 03, 2024, 04:04:41 pm »
The idea is that right clicking on the Don't Reselect Unit button undoes the last selection.

The "last action" is not remembered anywhere (and thus cannot be undone).

So it would cycle through all units selected that way in reverse order and also undo the "don't reselect part".

The "sequence in which the units were actioned" is not remembered anywhere (and thus cannot be iterated through).


Remembering them is possible to implement, but not really worth the effort IMHO.

Offline Tamren

  • Captain
  • ***
  • Posts: 63
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #3 on: November 04, 2024, 07:18:15 am »
Hmm okay, I think I was overcomplicating this.

What if instead of trying to remember the entire sequence you just have the Don't Reselect button remember the (single) previous unit whenever you click the button and allow you to jump back to it with right click? Basically adding a 1-step undo button with no further features required. This would solve the two most common issues with that button which are:

1. You click Don't Reselect by mistake instead of Next Unit
2. You click Don't Reselect one too many times

Offline psavola

  • Commander
  • *****
  • Posts: 835
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #4 on: November 04, 2024, 07:50:32 am »
I haven't used Don't Reselect for a long time (since OG days), but..

If you clicked it by accident, couldn't you just manually cycle through ALL your soldiers to find the one you misclicked? It's not like there are usually dozens of troops to go through. After you have done so, you could finish the work you want that soldier to do. Or maybe there you could undo (with tighter meaning) "Don't Reselect" e.g. by RMB action so that if you shuffle through the soldiers again with TAB, this soldier would also come up again. This way the engine would not been to remember the history of last action.

Offline Tamren

  • Captain
  • ***
  • Posts: 63
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #5 on: November 04, 2024, 08:32:39 am »
If you clicked it by accident, couldn't you just manually cycle through ALL your soldiers to find the one you misclicked?
No you can't because Don't Reselect flags the soldier as hidden and the Next Soldier button will no longer select it. The only way to control that soldier again is to click on them directly, which may be difficult if you don't know exactly what soldier that was and where they are on the map.

Offline psavola

  • Commander
  • *****
  • Posts: 835
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #6 on: November 04, 2024, 09:27:29 am »
No you can't because Don't Reselect flags the soldier as hidden and the Next Soldier button will no longer select it. The only way to control that soldier again is to click on them directly, which may be difficult if you don't know exactly what soldier that was and where they are on the map.

This only affects TAB and "Select next unit" buttons.

You can still find the soldier you misclicked on the battlescape. Or when opening a soldier's inventory, cycle through all the soldiers with "<" and ">" buttons next to "OK" (don't reselect does not affect this). Most likely going back with "<" once is the thing you want (unless there are soldies in between where you already had correctly clicked don't reselect). These are the options to mitigate the issue I was referring to. It's not like there are hundreds of soldiers out there. If you misclicked, it should be relatively painless to check at most about a dozen soldiers.

Offline Tamren

  • Captain
  • ***
  • Posts: 63
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #7 on: November 04, 2024, 01:22:21 pm »
It's not that easy, in my current XPiratez game a base defense against my main headquarters would require me to control 85 soldiers, not including the cats. For offensive missions I might deploy soldiers in groups of 24. Furthermore visual conditions are not always ideal. I give you an example in the attached picture, this mission takes place at night and to protect my soldiers I have deployed several smoke grenades. Even if there are "only" 14 soldiers within one screen worth of space it's still possible to "lose" a soldier with TUs and finding them again if I can't use the next soldier button is very difficult. Your trick with opening the inventory and pressing the back button doesn't work because I don't select and control my units in descending order.

I rely heavily on the Next Soldier and Don't Reselect button for these reasons. Next soldier will rapidly cycle through anyone I haven't moved yet while skipping over the soldiers I have hidden. The issue is that it's easy to accidentally hide a soldier by accident though misclicking, this is why I'm requesting an undo feature. Being able to undo just one single click would solve almost all of my problems.

Offline Juku121

  • Commander
  • *****
  • Posts: 1799
  • We're all mad here.
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #8 on: November 04, 2024, 02:45:17 pm »
Your trick with opening the inventory and pressing the back button doesn't work because I don't select and control my units in descending order.
Why does this matter? You can still find the 'lost' fellow, even if it takes more clicks and maybe some examination of TUs to find the right person.

Or, in other words, it's a question of some inconvenience vs implementing and maintaining a wholly new functionality.


I also use the 'skip' function a lot (mapped it to spacebar due to 4X habits :) ), and it's relatively rare that I have to find a skipped guy who hasn't moved yet. And if I do have to look for such a soldier, it's because he wasn't particularly important to the battle, otherwise I'd have manually selected and moved/acted in the first place.

Offline Tamren

  • Captain
  • ***
  • Posts: 63
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #9 on: November 04, 2024, 04:38:06 pm »
Why does this matter? You can still find the 'lost' fellow, even if it takes more clicks and maybe some examination of TUs to find the right person.

Again: Eighty. Five. Soldiers.

Your inventory based method of locating soldiers with remaining TUs is not practical for me in large scale battles (which occur several times a month in XPiratez) because unlike the Next Soldier button it does not skip the soldiers who have already moved. If I misclick and delete a soldier I have no idea where in the list of soldiers that one is located and have to trawl through everything in the way to reach them. If I scroll through the list in the right direction it could take me as little as one click to find them, if I scroll in the wrong direction it could take me as many as eighty four clicks, potentially even more than that if I confuse them for a different soldier and have to start the search again.

Or, in other words, it's a question of some inconvenience vs implementing and maintaining a wholly new functionality.

I understand that programmer man hours are finite and valuable. I would not have suggested this in the first place if I didn't think it was worth implementing based on the player QoL vs dev time ratio. I even amended it to make it simpler in scope based on Meridian's feedback, there is no need to remember a list of previous soldiers as just one would suffice to enable an Undo function.

Offline Juku121

  • Commander
  • *****
  • Posts: 1799
  • We're all mad here.
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #10 on: November 04, 2024, 05:12:18 pm »
In that case, it's not a matter of what order you select your soldiers in. It's a matter of there being way too many units on the battlefield, which is more of a mod design issue. I've seen plenty of people only move a quarter of their 16 or 24 troopers on the map when there's nothing much happening. 


Hmm, maybe the easier solution that wouldn't need any new info to be saved would be for the right-click to cycle through 'skipped' soldiers, like the default is to do it for 'unskipped'? There'd be no need to remember any new data, just a modification of the existing routine to negate the 'skipped' flag.
« Last Edit: November 04, 2024, 06:15:36 pm by Juku121 »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #11 on: November 04, 2024, 05:35:42 pm »
If this happens to me, I just press "I" to open inventory of the next soldier and then I go back one time to find the soldier I skipped by mistake.

Offline Tamren

  • Captain
  • ***
  • Posts: 63
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #12 on: November 04, 2024, 06:21:16 pm »
In that case, it's not a matter of what order you select your soldiers in. It's a matter of there being way too many units on the battlefield

No the issue is that there is no way to undo pressing the Don't Reselect button, a problem that has existed since the DOS release in 1994. Adding an undo feature will fix the problem for everyone regardless of any other factors such as number of soldiers deployed or mods used.

If this happens to me, I just press "I" to open inventory of the next soldier and then I go back one time to find the soldier I skipped by mistake.

The only way this works consistently is if you only ever select new soldiers using the Next Soldier button. For instance if I had soldiers 123456789, and I hide soldiers 4567, if I were controlling soldier 3 and hit Don't Reselect by mistake, the game will jump me to soldier 8. If I back up one step in the inventory screen I would get soldier 7 instead of 3. The problem gets worse as the number of soldiers increases. This is why remembering the previous selected unit is necessary for an Undo feature to work properly.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #13 on: November 04, 2024, 06:59:04 pm »
The only way this works consistently is if you only ever select new soldiers using the Next Soldier button. For instance if I had soldiers 123456789, and I hide soldiers 4567, if I were controlling soldier 3 and hit Don't Reselect by mistake, the game will jump me to soldier 8. If I back up one step in the inventory screen I would get soldier 7 instead of 3. The problem gets worse as the number of soldiers increases. This is why remembering the previous selected unit is necessary for an Undo feature to work properly.

I fail to see the problem. Yes, I'd have to move back 5 times instead of 1, but how often does this happen? Once per 10 hours of playing? And even if that's the case, what's so hard about this?

Offline shinr

  • Colonel
  • ****
  • Posts: 140
    • View Profile
Re: [QoL] Right clicking Don't Reselect Unit button undoes last selection
« Reply #14 on: November 04, 2024, 09:07:47 pm »
Had a thought about it:

Don't Reselect gets cleared for all units on next turn;

Is it possible to trigger that without going into next turn?