Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old July 13, 2010, 20:13   #1
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
minor bug - can shoot but not target

Thanks to overpowered randarts, I have a heavy xbow with might+3 that lets me shoot 20 squares away. But the targeting code won't let me target that far. I can hit if I can aim using direction keys.

So should the range be reduced or targeting be changed?
PowerDiver is offline   Reply With Quote
Old July 14, 2010, 16:39   #2
Tiburon Silverflame
Swordsman
 
Join Date: Feb 2010
Posts: 405
Tiburon Silverflame is on a distinguished road
Interesting problem.

Best solution would appear to me to be:

a) Targeting examines all your spells and equipment, and determines the max range for any attack.

b) If something has a shorter range, you get an Out of Range warning. I know this already exists for some attacks.

My feeling is, there's probably insufficient smarts in the targeting.
Tiburon Silverflame is offline   Reply With Quote
Old July 14, 2010, 17:24   #3
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,830
Derakon is on a distinguished road
I'd say that a better solution would simply be to cap the max range on missile weapons so it doesn't exceed your sight range.
Derakon is offline   Reply With Quote
Old July 14, 2010, 18:08   #4
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by Derakon View Post
I'd say that a better solution would simply be to cap the max range on missile weapons so it doesn't exceed your sight range.
There is always detection instead of sight. Or ESP. I have no idea whether the monster I shot was in sight range.

Spells have a maximum range. Targeting is set up based on that range. It is only with the new ranges and an x7 launcher that the problem appears, I believe. I am pretty sure that sight range exceeds spell range, but that may be a confusion on my part about targeting in the past.

I think the question is whether missiles should be capped at spell range. I think that, at least with attack-then-target mechanics, targeting should use the range for the attack rather than let you choose out of range and then give an error. Of course, that doesn't apply to my problem of not being able to target in range, but it would probably get fixed coding for the general situation.
PowerDiver is offline   Reply With Quote
Old July 14, 2010, 18:55   #5
Timo Pietilš
Prophet
 
Join Date: Apr 2007
Location: Climbing up from hole I just dug.
Posts: 4,096
Timo Pietilš is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
Spells have a maximum range. Targeting is set up based on that range. It is only with the new ranges and an x7 launcher that the problem appears, I believe. I am pretty sure that sight range exceeds spell range, but that may be a confusion on my part about targeting in the past.
Spell max range is your LoS range (not counting splash damage). Any spell requiring targeting stops two squares short of that max range, but any LoS spell affects max range.

Testing x7 launcher gets exactly max visual range (20 grids), but targeting is possible way longer away than that. I just tested by targeting a grid about 300 feet away (ten grid off visual range). Game complains that "Target out of range. Fire anyway [y/n]" and when pressing y it shoots but obviously doesn't reach target.
Timo Pietilš is offline   Reply With Quote
Old July 14, 2010, 19:57   #6
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by Timo Pietilš View Post
Testing x7 launcher gets exactly max visual range (20 grids), but targeting is possible way longer away than that. I just tested by targeting a grid about 300 feet away (ten grid off visual range). Game complains that "Target out of range. Fire anyway [y/n]" and when pressing y it shoots but obviously doesn't reach target.
I'm not talking about positional targeting. When you cycle through monsters in basic targeting, I did not get the option to target the monster I could shoot down the corridor.
PowerDiver is offline   Reply With Quote
Old July 14, 2010, 21:01   #7
Timo Pietilš
Prophet
 
Join Date: Apr 2007
Location: Climbing up from hole I just dug.
Posts: 4,096
Timo Pietilš is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
I'm not talking about positional targeting. When you cycle through monsters in basic targeting, I did not get the option to target the monster I could shoot down the corridor.
OK. I wondered what kind of problem you had because I haven't that problem myself. Testing confirms that you can't automatically target something that is further than two grids short max visual range: shoot nearest says "no available target", and pressing "*" which should automatically select nearest doesn't select anything.
Timo Pietilš is offline   Reply With Quote
Old July 15, 2010, 16:59   #8
Tiburon Silverflame
Swordsman
 
Join Date: Feb 2010
Posts: 405
Tiburon Silverflame is on a distinguished road
If you set targeting range == max range of any attack, and the target is out of attack range for that attack, then an alternative is to treat this the same as when you've got "repeat last target" as a default, but that last target moved out of range or even broke LoS.
Tiburon Silverflame is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minor bug in 'n' command fyonn Vanilla 7 July 14, 2010 09:59
Minor bug with messages and color. [V3.1.2 r1973] Twilight Vanilla 1 June 21, 2010 23:16
svn-1452 bug: wielding morning star firestar wants to target d_m Vanilla 6 June 25, 2009 04:11
3.1 char dump bug (minor) Zikke Vanilla 0 January 13, 2009 14:16
3.1.0 Very minor bug perost Vanilla 0 January 9, 2009 21:48


All times are GMT +1. The time now is 11:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.