Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

YANI: Travel command improvements

1 view
Skip to first unread message

Alexis Manning

unread,
Mar 26, 2002, 2:33:19 AM3/26/02
to
I love the new travel command. Being in Gehennom, and being able to go
_>. and _<. is just wonderful (I have a Barbarian about to borrow the
Book from the Library of Rodney; consider this a YAAP since I took no
notes while playing).

The only downside of the travel command is that it's easily interrupted.
While this probably isn't an issue if you play the graphical version,
it's a pain in the posterior otherwise. Stopping to kill the odd balrog
here and there, no problems. But it also stops for traps, most of which
are harmless after a certain point in the game. Friendlies that get in
the way are also rather irritating.

So how about having the travel command cache its last target, accessible
through, say, hitting the travel command twice or something similar?

-- A.

a. l. c h a r l e s

unread,
Mar 26, 2002, 10:54:55 AM3/26/02
to
Alexis Manning wrote:
> I love the new travel command. Being in Gehennom, and being able to go
> _>. and _<. is just wonderful

Oh, My, Word.

Just discovered it, and yes, it's wonderful.

> The only downside of the travel command is that it's easily interrupted.

[...]

> Friendlies that get in
> the way are also rather irritating.


Like overly affectionate pets, yes.

> So how about having the travel command cache its last target, accessible
> through, say, hitting the travel command twice or something similar?

Sounds great to me.

Can you code? I can't...

Alexis Manning

unread,
Mar 26, 2002, 11:03:59 AM3/26/02
to
alcharNOT_...@sunbeach.net says...

> Alexis Manning wrote:
> > I love the new travel command. Being in Gehennom, and being able to go
> > _>. and _<. is just wonderful
>
> Oh, My, Word.
>
> Just discovered it, and yes, it's wonderful.

The travel command can be aptly described as "sex on a stick" for that
part of the game.


> > The only downside of the travel command is that it's easily interrupted.
[...]

> > So how about having the travel command cache its last target, accessible
> > through, say, hitting the travel command twice or something similar?

> Sounds great to me.
>
> Can you code? I can't...

Hey! The I in YANI was "Idea" not "Implementation". I was even kind
enough to point out a possible way of writing it. The cheek!

But yeah, I'll add it to my "to do" list. :)

-- A.

a. l. c h a r l e s

unread,
Mar 26, 2002, 11:27:42 AM3/26/02
to
Alexis Manning wrote:

> The travel command can be aptly described as "sex on a stick" for that
> part of the game.

You've been reading the Internet Oracle, haven't you...

>>>So how about having the travel command cache its last target, accessible
>>>through, say, hitting the travel command twice or something similar?
>>
>
>>Sounds great to me.
>>
>>Can you code? I can't...
>
>
> Hey! The I in YANI was "Idea" not "Implementation". I was even kind
> enough to point out a possible way of writing it. The cheek!

I have 4 ;)


> But yeah, I'll add it to my "to do" list. :)


<evil titter>

<rubs hands together>

It worked, my precious!

IT WORKED!!!


-adrian-

Alexis Manning

unread,
Mar 26, 2002, 12:13:32 PM3/26/02
to
alcharNOT_...@sunbeach.net says...

> Alexis Manning wrote:
> > The travel command can be aptly described as "sex on a stick" for that
> > part of the game.
>
> You've been reading the Internet Oracle, haven't you...

Not just reading it. <g>


[of amending it to cache the previous position]


> <evil titter>
>
> <rubs hands together>
>
> It worked, my precious!
>
> IT WORKED!!!

Yeah.

Well.

The change is so small, I may as well just post it here. Hacky? Oh
yes, definitely. Since it's just a trivial hack and primarily for my
own use, I'm not going to sweat it.

It caches off the last position of the 'travel' cursor, and clears this
cache when a travel seems to succeed. I really should also have cleared
out the cache when you navigate between levels, but didn't.

I've only lightly tested this. Worst that could happen is that the
travel cursor does not appear where you expect it to.

-- A.


src\cmd.c
147a148
> coord cctravel = {-1, -1};
2146,2147c2147,2155
< cc.x = u.ux;
< cc.y = u.uy;
---
> cc.x = cctravel.x;
> cc.y = cctravel.y;
> if (cc.x == -1 && cc.y == -1)
> {
> /* Last travel attempt was successful,
> start attempt from current position */
> cc.x = u.ux;
> cc.y = u.uy;
> }
2153,2154c2161,2162
< u.tx = cc.x;
< u.ty = cc.y;
---
> cctravel.x = u.tx = cc.x;
> cctravel.y = u.ty = cc.y;


src\hack.c
6a7,8
> extern coord cctravel;
>
718a721
> cctravel.x = cctravel.y = -1;

Dion Nicolaas

unread,
Mar 26, 2002, 5:10:49 PM3/26/02
to

Alexis Manning wrote in message ...
[...]

>So how about having the travel command cache its last target,
accessible
>through, say, hitting the travel command twice or something similar?


Hitting _ twice will make you travel to an altar. Hitting _<Enter>
might be a better idea.
Although <Enter> used to move you south...

Dion


Alexis Manning

unread,
Mar 26, 2002, 5:27:08 PM3/26/02
to
di...@altavista.net says...

> Hitting _ twice will make you travel to an altar. Hitting _<Enter>
> might be a better idea.
> Although <Enter> used to move you south...

Yeah, you're quite right. But I ended up not doing it quite that way:
my patchette just sets the initial position of the travel "pick a
destination" cursor to be the destination of the last failed travel
attempt.

So you end up going _>. followed by repeated uses of _. (kill kill kill)
_. (push Fluffy out of the way) _. until you finally get to your
destination.

Only saves you a single keypress for each attempt in that case, though.
Would probably be better to have a dedicated single "repeat last travel
attempt" key (perhaps CTRL+_, to be similar to CTRL+A to repeat the last
command?).

-- A.

Mike

unread,
Mar 26, 2002, 6:00:30 PM3/26/02
to
Alexis Manning <alexis...@bigfoot.com> wrote in message news:<MPG.170a348a2...@news.cis.dfn.de>...

> So how about having the travel command cache its last target, accessible
> through, say, hitting the travel command twice or something similar?
>
> -- A.


Can't you just hit ^A ?

Alexis Manning

unread,
Mar 26, 2002, 6:14:30 PM3/26/02
to
splic...@hotmail.com says...
> Alexis Manning <alexis...@bigfoot.com> wrote

> > So how about having the travel command cache its last target, accessible
> > through, say, hitting the travel command twice or something similar?
>
> Can't you just hit ^A ?

No, because whatever stops you needs to be dealt with (usually with a
wallop), and CTRL-A will just repeat that last action rather than
resuming travel.

-- A.

Tina Hall

unread,
Mar 27, 2002, 5:04:00 PM3/27/02
to
Alexis Manning wrote:

[travel command improvment, to resume travel after interruption]

> So you end up going _>. followed by repeated uses of _. (kill
> kill kill) _. (push Fluffy out of the way) _. until you
> finally get to your destination.
>
> Only saves you a single keypress for each attempt in that
> case, though. Would probably be better to have a dedicated
> single "repeat last travel attempt" key (perhaps CTRL+_, to be
> similar to CTRL+A to repeat the last command?).

Um, please think of different keyboard layouts. Here, I'd have to
press shift and '-' to get '_' anyway, adding another key would
rather make it even more awkward.

Ctrl plus an unused letter would be a better solution, IMO.

--
Bye
Tina
Multiple exclamation marks are a sure sign of an insane mind!!!!
(Apologies to Terry Pratchett.)

Dylan O'Donnell

unread,
Mar 28, 2002, 6:28:02 AM3/28/02
to
ti...@kruemel.dnsalias.com (Tina Hall) writes:

[Ctrl-_ for repeated travel]

> Um, please think of different keyboard layouts. Here, I'd have to
> press shift and '-' to get '_' anyway, adding another key would
> rather make it even more awkward.
>
> Ctrl plus an unused letter would be a better solution, IMO.

Ha. Go on, name an unused letter.

(Note that ^M (carriage return) is mapped by some terminals to ^J
(linefeed); ^Q and ^S are used for flow control, so you can't rely on
their reaching the game; ^C and ^Z for terminating and suspending
processes respectively.)

--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "Let us grasp the situation, / Solve the complicated plot -- :
: Quiet, calm deliberation / Disentangles every knot." :
: -- W.S. Gilbert, "The Gondoliers" :

Tina Hall

unread,
Mar 28, 2002, 1:12:00 PM3/28/02
to
Dylan O'Donnell wrote:
> ti...@kruemel.dnsalias.com (Tina Hall) writes:
>
> [Ctrl-_ for repeated travel]
>
> > Um, please think of different keyboard layouts. Here, I'd
> > have to press shift and '-' to get '_' anyway, adding
> > another key would rather make it even more awkward.
> >
> > Ctrl plus an unused letter would be a better solution, IMO.
>
> Ha. Go on, name an unused letter.

For Ctrl I get (trying in wizardmode): u, h, k, y, b, n, leaving
out those you mentioned to already have a special meaning.

--
Tina
(insufficiently chaotic): Level 10 HP 61(63) AC 10, confused.

Sam Dennis

unread,
Mar 28, 2002, 2:50:16 PM3/28/02
to
Tina Hall wrote:
> Dylan O'Donnell wrote:
>> ti...@kruemel.dnsalias.com (Tina Hall) writes:
[Ctrl-something for repeated travel]

> For Ctrl I get (trying in wizardmode): u, h, k, y, b, n, leaving
> out those you mentioned to already have a special meaning.

Control-H is a backspace (hence the long-running ^H joke). I'm not sure about
the rest, but I wouldn't count on them not being assigned to something
already.

--
r@,,+2 'a,kd"

Tina Hall

unread,
Mar 29, 2002, 10:39:00 AM3/29/02
to
Jukka Lahtinen wrote:
> ti...@kruemel.dnsalias.com (Tina Hall) writes:
> >Dylan O'Donnell wrote:
>
> >> Ha. Go on, name an unused letter.
>
> >For Ctrl I get (trying in wizardmode): u, h, k, y, b, n,
> >leaving
>
> Movement keys. Not unused.

There aren't enough to be movement keys, whatever's missing for
the weird keys is already in use for something with Ctrl, just
like just 'k' without Ctrl for example does a kick, not movement,
with the numberpad. Might as well expand on that for the travel
command.

0 new messages