Single right click for pathfinding move

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Ovo

Single right click for pathfinding move

Post by Ovo »

Hello, I'm playing U7 for the first time. I'm glad I found Exult, it makes the experience much more enjoyable.
One thing annoying me is to have to double right click to move to a location.
So I had a look at the source files and was able to change it so that it only needs a single click for this, replacing the useless "one step in mouse direction" default right click action.

If you want my modified exult.cc file, let me know. I don't have time for a proper implementation and learning how to use SVN, but I'd be happy to see this modification implemented in the trunk.
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by marzo »

You do know that holding the right mouse button makes you continually walk in the direction of the mouse, right?
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Ovo

Re: Single right click for pathfinding move

Post by Ovo »

I do but there is a sensible difference between clicking somewhere and letting the character find the best path by himself, and pulling him around like a donkey.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

I'd wager that most people that played U7 before Baldurs Gate and the go-to-click do called RPGs, prefer the holding down of the button...
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Ovo

Re: Single right click for pathfinding move

Post by Ovo »

@DominusMobile2:
It doesn't really matter. My modification doesn't remove the right click&drag. It only changes "point and double click" to "point and click".

As to why I prefer point and click to move:
- The avatar won't hit and get stuck on walls and small objects, otherwise requiring you to move the mouse all around the screen to get him out of the blocked way.
- I can do something else while he's walking, like starting a conversation, clicking a signpost...
- No finger aching after hours of play.

I do appreciate the click&drag way in some cases (walking through large unobstructed areas) so I'm glad the option is available.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

Ah, it read to me as if it did away with the click and drag.

Can you put it on our patches tracker on sourceforge? (Sourceforge project page)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Paddywhacker

Re: Single right click for pathfinding move

Post by Paddywhacker »

Gripping the right mouse button through the Ultima 7s gave me painfully swollen tendons in my right hand that took a year and a half to subside. These mouse and keyboard controls would best be reconfigurable. Reconfigurable single and double clicking is not something that I recall seeing before, but it is an idea that I like.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

I'm not happy with the movement on trackpads or touchscreens either. Best would be a way to toggle dragging mode that just follows cursor movement. For example single right click toggle (sorry, that is slightly ignoring the topic ;)) and/or some key (so you can toggle it via the key too)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Shodanbot

Re: Single right click for pathfinding move

Post by Shodanbot »

I wouldn't mind this as a patch. Sounds convenient.

Also playing U7 for the first time and from what I can see of this project, convenience seems to be one of it's goals, so this would hardly be a bad(but optional) addition.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

So Ovo can you send your patched file or put it up on pastebin?
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Ovo

Re: Single right click for pathfinding move

Post by Ovo »

Yes sorry, I stopped playing Ultima, forgot about this entirely. :P
It's here: http://pastebin.com/gTYqc1ma

The file version was the one from the unstable archive at the date of my first post.

I've played with this for some hours, worked fine.

You'll want to rename the options in the menu from "double right click" to "single right click".

Thanks! I'm glad it will be useful to other people. :)
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

thanks, I made a proper diff and added it to the patches tracker [url]https://sourceforge.net/tracker/?func=d ... 302335[url]
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

I'll try to get this into svn and name the option "pathfind via right mouse click" and values "once, twice, disabled"
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Ovo

Re: Single right click for pathfinding move

Post by Ovo »

Nice, thanks !
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

When you look at the tracker I made some progress but am stumped at three points....
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Single right click for pathfinding move

Post by Dominus »

This is now in the snapshots.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked