Improve tabbing with ranged weapons


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Crypt Cleanser

Posts: 746

Joined: Thursday, 5th December 2013, 04:01

Post Sunday, 6th November 2016, 00:02

Improve tabbing with ranged weapons

Right now, when you press tab with ranged weapons, it just picks a target like tab normally would, and then fires at them as if you'd targeted them with f. You can change it to shoot as if you'd used . instead of f all the time, but that's not always what you want either. Obviously, sometimes tab won't produce the optimal behavior, it's there to speed the game up, not play it for you, but there are a lot of straightforward cases where the behavior of tabbing with ranged weapons could be hugely improved.

  1. If there is only one enemy in line of fire, fire as if you'd used ., otherwise fire as if you'd used f. Depending on computational complexity, this could be simplified to just use . if there's only one enemy in LOS, or complexified to specifically try to fire in lines that would hit multiple enemies.
  2. Don't fire through a plan if you don't have to. To accompany this point, I provide the following diagram demonstrating a situation that occurred when pressing tab: Image

For this message the author Quazifuji has received thanks:
Cimanyd

Swamp Slogger

Posts: 170

Joined: Wednesday, 13th July 2016, 09:30

Post Friday, 11th November 2016, 18:32

Re: Improve tabbing with ranged weapons

3. Remove plants
Online Statistics
Road to: Great Ds (6/25): DsFi^Gozag 3 R, DsGl^Qaz 4 R, DsMo^Chei 5 R, {DsHu^Uska 6 R, DsAs^Uska 7 R}, DsAr^Chei 8 R.
In progress: DsWn... Currently out of time. Maybe someday.

Watch my streams here

For this message the author vergil has received thanks: 2
duvessa, nago

Ziggurat Zagger

Posts: 8786

Joined: Sunday, 5th May 2013, 08:25

Post Friday, 11th November 2016, 18:34

Re: Improve tabbing with ranged weapons

4. fix the bug where autofight with ranged weapons makes you read scrolls

For this message the author duvessa has received thanks: 3
nago, stickyfingers, vergil

Sar

User avatar

Ziggurat Zagger

Posts: 6418

Joined: Friday, 6th July 2012, 12:48

Post Friday, 11th November 2016, 19:24

Re: Improve tabbing with ranged weapons

It's not a bug that is exclusive to ranged autofight, though it does seem to happen more often with it.

Ziggurat Zagger

Posts: 8786

Joined: Sunday, 5th May 2013, 08:25

Post Friday, 11th November 2016, 19:33

Re: Improve tabbing with ranged weapons

it is, as far as i know, exclusive to ranged autofight and polearm autofight

Sar

User avatar

Ziggurat Zagger

Posts: 6418

Joined: Friday, 6th July 2012, 12:48

Post Friday, 11th November 2016, 19:37

Re: Improve tabbing with ranged weapons

Well polearms aren't really a ranged weapon ever since throwing spears got removed. Anyway, I can't say 100% that I had it happen with non-polearm melee, but it did happen to me with melee, and I don't use polearms all that much.

Ziggurat Zagger

Posts: 8786

Joined: Sunday, 5th May 2013, 08:25

Post Saturday, 12th November 2016, 01:09

Re: Improve tabbing with ranged weapons

I don't see how the situation required for it to happen could ever arise with non-polearm melee. The bug occurs because ranged/polearm autofight enters targeting mode, in which commands have different meaning than they do in the main interface. Ranged/polearm autofight ends up reading scrolls because 'r' is for reading scrolls in the main interface and 'r' is for centering the cursor on the player in the targeting interface. Ranged/polearm autofight ends up making you move towards monsters because the movement commands move the player in the main interface but move the cursor in the targeting interface.

Non-reaching melee autofight never enters targeting mode or any other screen. It just sends one movement command and that's it.

Shoals Surfer

Posts: 325

Joined: Tuesday, 13th October 2015, 06:02

Post Saturday, 12th November 2016, 04:42

Re: Improve tabbing with ranged weapons

Remove Tab

For this message the author TonberryJam has received thanks:
Cimanyd
User avatar

Tartarus Sorceror

Posts: 1762

Joined: Monday, 14th October 2013, 01:05

Post Saturday, 12th November 2016, 11:44

Re: Improve tabbing with ranged weapons

if tab was removed I can guarantee you I would never play crawl again

For this message the author Shard1697 has received thanks: 2
Cimanyd, nago
User avatar

Ziggurat Zagger

Posts: 4478

Joined: Wednesday, 23rd October 2013, 07:56

Post Saturday, 12th November 2016, 19:07

Re: Improve tabbing with ranged weapons

what tab?
DCSS: 97:...MfCj}SpNeBaEEGrFE{HaAKTrCK}DsFESpHu{FoArNaBe}
FeEE{HOIEMiAE}GrGlHuWrGnWrNaAKBaFi{MiDeMfDe}{DrAKTrAMGhEnGnWz}
{PaBeDjFi}OgAKPaCAGnCjOgCKMfAEAtCKSpCjDEEE{HOSu
Bloat: 17: RaRoPrPh{GuStGnCa}{ArEtZoNb}KiPaAnDrBXDBQOApDaMeAGBiOCNKAsFnFlUs{RoBoNeWi
User avatar

Snake Sneak

Posts: 92

Joined: Thursday, 28th July 2016, 04:11

Post Sunday, 13th November 2016, 01:02

Re: Improve tabbing with ranged weapons

vergil wrote:3. Remove plants

TonberryJam wrote:Remove Tab

To continue the list of things that could be removed to "solve" the problem in the image:

Remove ranged weapons
remove Siegurt's signature

Mines Malingerer

Posts: 36

Joined: Thursday, 6th October 2016, 15:14

Post Sunday, 13th November 2016, 11:44

Re: Improve tabbing with ranged weapons

Make tab try to skewer through as many enemies as possible, and end with `.` on the last one, giving you a chance to hit something even if you miss.
User avatar

Mines Malingerer

Posts: 40

Joined: Friday, 11th November 2016, 02:35

Post Sunday, 13th November 2016, 12:07

Re: Improve tabbing with ranged weapons

Maybe something akin to granting plants a flag (count as a wall for bow targeting purposes).

Blades Runner

Posts: 536

Joined: Friday, 1st April 2016, 18:15

Post Monday, 14th November 2016, 19:42

Re: Improve tabbing with ranged weapons

sooheon wrote:Make tab try to skewer through as many enemies as possible, and end with `.` on the last one, giving you a chance to hit something even if you miss.


Unless the targeted tile would be deep water, in which case use Enter rather than .
twelwe wrote:It's like Blink, but you end up drowning.

Crypt Cleanser

Posts: 746

Joined: Thursday, 5th December 2013, 04:01

Post Monday, 14th November 2016, 20:12

Re: Improve tabbing with ranged weapons

sooheon wrote:Make tab try to skewer through as many enemies as possible, and end with `.` on the last one, giving you a chance to hit something even if you miss.


This would be the ideal behavior as long as it's fast enough to not cause too much server load when playing online.

Slime Squisher

Posts: 395

Joined: Monday, 28th April 2014, 19:50

Post Wednesday, 16th November 2016, 03:17

Re: Improve tabbing with ranged weapons

Better solution: remove the not-super-important-but-technically-optimal-to-plan-for case where missed arrows will fly past the first target and hit a second. When a non-penet projectile hits or misses a target, make it drop to the ground underneath that creature.

Then instead of having to do this annoying micromanagey thing where you always aim *past* your target, you can simply aim at the enemy you want to shoot at without losing out on efficiency.

For this message the author genericpseudonym has received thanks: 2
Cimanyd, duvessa

Ziggurat Zagger

Posts: 6454

Joined: Tuesday, 30th October 2012, 19:06

Post Wednesday, 16th November 2016, 03:40

Re: Improve tabbing with ranged weapons

genericpseudonym wrote:Better solution: remove the not-super-important-but-technically-optimal-to-plan-for case where missed arrows will fly past the first target and hit a second. When a non-penet projectile hits or misses a target, make it drop to the ground underneath that creature.

Then instead of having to do this annoying micromanagey thing where you always aim *past* your target, you can simply aim at the enemy you want to shoot at without losing out on efficiency.

As an addional bonus it would be a very slight nerf to ranged weapons.
Spoiler: show
This high quality signature has been hidden for your protection. To unlock it's secret, send 3 easy payments of $9.99 to me, by way of your nearest theta band or ley line. Complete your transmission by midnight tonight for a special free gift!

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 25 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.