Page 1 of 1

Single right click for pathfinding move

Posted: Tue Sep 18, 2012 8:19 pm
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.

Re: Single right click for pathfinding move

Posted: Wed Sep 19, 2012 11:30 am
by marzo
You do know that holding the right mouse button makes you continually walk in the direction of the mouse, right?

Re: Single right click for pathfinding move

Posted: Wed Sep 19, 2012 12:48 pm
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.

Re: Single right click for pathfinding move

Posted: Wed Sep 19, 2012 2:38 pm
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...

Re: Single right click for pathfinding move

Posted: Wed Sep 19, 2012 6:32 pm
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.

Re: Single right click for pathfinding move

Posted: Wed Sep 19, 2012 6:48 pm
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)

Re: Single right click for pathfinding move

Posted: Fri Sep 21, 2012 6:38 am
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.

Re: Single right click for pathfinding move

Posted: Fri Sep 21, 2012 4:35 pm
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)

Re: Single right click for pathfinding move

Posted: Sat Sep 22, 2012 3:50 pm
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.

Re: Single right click for pathfinding move

Posted: Sat Sep 22, 2012 4:33 pm
by Dominus
So Ovo can you send your patched file or put it up on pastebin?

Re: Single right click for pathfinding move

Posted: Thu Sep 27, 2012 6:16 pm
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. :)

Re: Single right click for pathfinding move

Posted: Thu Sep 27, 2012 6:59 pm
by Dominus
thanks, I made a proper diff and added it to the patches tracker [url]https://sourceforge.net/tracker/?func=d ... 302335[url]

Re: Single right click for pathfinding move

Posted: Thu Sep 27, 2012 8:35 pm
by Dominus
I'll try to get this into svn and name the option "pathfind via right mouse click" and values "once, twice, disabled"

Re: Single right click for pathfinding move

Posted: Sat Sep 29, 2012 2:04 pm
by Ovo
Nice, thanks !

Re: Single right click for pathfinding move

Posted: Sat Sep 29, 2012 2:27 pm
by Dominus
When you look at the tracker I made some progress but am stumped at three points....

Re: Single right click for pathfinding move

Posted: Sat Oct 27, 2012 9:15 pm
by Dominus
This is now in the snapshots.