Undo (Middle click?)

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

User avatar
Sionide
Director
Director
Posts: 523
Joined: 10 Oct 2004 10:54
Location: England
Contact:

Undo (Middle click?)

Post by Sionide »

Doesn't it really annoy you that if you're building a track and you make 1 mistake, you have to then go all the way up to demolish/remove that one little piece of track??

Wouldn't it be a good move to have the middle mouse button as an "Undo" type button, if you're building, accidentally make a piece of track going the wrong way, just middle-click and it undoes what you just did??

Perhaps a keyboard shortcut too?
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
User avatar
acidd_uk
Traffic Manager
Traffic Manager
Posts: 194
Joined: 08 Sep 2004 14:38

Post by acidd_uk »

When you're using the autorail tool, ctrl-click removes the highlighted track...

Once I got used to autorail, I don't use the other rail build tools any more.
User avatar
Sionide
Director
Director
Posts: 523
Joined: 10 Oct 2004 10:54
Location: England
Contact:

Post by Sionide »

ah cool - didn't know that, but still - the middle click doesn't do anything as of yet, i think it'd be good for an overall Undo-last-action thing?
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
User avatar
Jump
Traffic Manager
Traffic Manager
Posts: 147
Joined: 22 Sep 2004 21:10
Location: Belgium

Post by Jump »

R activates the bulldozer :)
Bot_40
Engineer
Engineer
Posts: 105
Joined: 27 Jan 2005 18:56
Contact:

Post by Bot_40 »

How about middle clicking acting permenantly as the bulldozer? Would be super handy imo cuz I can't always be bothered to mess around looking for keyboard shortcuts and switching between bulldozer and autorail all the time with the mouse is too much hassle :P
I'm thinking something similar to rollercoaster tycoon's right clicking to remove stuff, but also with support for dragging like the normal bulldozer.

And yes you are looking at the most lazy computer user ever :wink:
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

Actually numerous different keys activate the bulldozer depending on which build menu you have up. Hopefully they'll fix it and make it consistant one day.
Sliker_Hawk
Engineer
Engineer
Posts: 12
Joined: 12 Apr 2004 16:08

Post by Sliker_Hawk »

Well, I think having the middle mouse as undo (or the bulldozer) is a cool idea.. It would help alow.. Well, not A LOT, cos it doesn't take much to move your hand a bit but still, it'd be cool.
.:Meh:.
CaAl
Engineer
Engineer
Posts: 6
Joined: 18 Oct 2005 12:43

Post by CaAl »

Sliker_Hawk wrote:Well, I think having the middle mouse as undo (or the bulldozer) is a cool idea.. It would help alow.. Well, not A LOT, cos it doesn't take much to move your hand a bit but still, it'd be cool.
There's an important difference between "bulldoze" and "undo". With "undo" you should also get your money back - everything should be like it was a couple of seconds ago, with "bulldoze" you might get money back for clearing landtiles, but you've lost the building costs.

I'd like to see an undo button (either with a convenient shortkut-key or not). It happened twice to me yesterday that I accidently built a road-bridge instead of a rail-bridge; had to demolish the wrong bridge and in the end pay for two bridges instead of one. (Instead of a complete undo, a button that changes a bridge-type from rail to road or back would be nice as well).

A bit off-topic: is there somewhere an overview of all keyboard-shortcuts of openTTD? I searched a bit, but couldn't find one
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

i would like an undo function.

oops, just wated my money demolising the ocean :shock: :shock: :shock:

I WANT MY MONEY BACK! UNDO! UNDO!!!


atleast the remove track function is good.


an undo wouldn't work in multiplayer though.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
CaAl
Engineer
Engineer
Posts: 6
Joined: 18 Oct 2005 12:43

Post by CaAl »

bobingabout wrote:i would like an undo function.

an undo wouldn't work in multiplayer though.
true. I guess it's hardly no extra coding work to make the undo button optional; and set the undo for multiplayer off as default
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

There is an undo function. It's called a savegame. The only safe way to revert to a previous state is to revert everything, and making a savegame everytime you change something is abusurd.

Besides, how much game-time do you spend where the cost of undoing your mistake and fixing it is actually significant?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
CaAl
Engineer
Engineer
Posts: 6
Joined: 18 Oct 2005 12:43

Post by CaAl »

DaleStan wrote:There is an undo function. It's called a savegame. The only safe way to revert to a previous state is to revert everything, and making a savegame everytime you change something is abusurd.

Besides, how much game-time do you spend where the cost of undoing your mistake and fixing it is actually significant?
I didn't know that implementing an undo option by the coders could only be done by saving after each build-operation. Nevermind then.. :)
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

no it doesn't, it just has to remember the last thing you did.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

It wouldn't break anything in game if undo would simply bulldoze\remove last structure made (bulldoze track\remove signal) - of course it will cost some money...
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

but thats what the buldozer is for they want an undo option if they make a lousy click that doesnt cost anything
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Imagine one placing airport to block competitor from building track... After a month of idling he undoes what he did, and he also gets money back... Bad idea.
Only way to make undo acceptable would be just paid bulldozer.
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

maybe we could hve it detect what was next to it and check if any new road (mainly rail) faceing it appears and if it does and has nothing using it of the company who built it then they cant remove it.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

MeusH wrote:It wouldn't break anything in game if undo would simply bulldoze\remove last structure made (bulldoze track\remove signal) - of course it will cost some money...
But what if presence of the signal has caused two trains to enter what will become a single block?
And for track, what if a train is on that track?
For depots, what if a vehicle is (partway) in?
Even if you just use the checks that are already in place, this just makes the undo function a glorified bulldozer.

To do undo properly, you'd have to maintain an undo stack, and check the whole thing every time a vehicle does something that could invalidate an entry. (Enters a new tile, changes target, &c.)

Like I said. There's an undo function: a savegame. The bulldozer tool works pretty well too, but obviously isn't entirely an undo.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Yoeri
Route Supervisor
Route Supervisor
Posts: 470
Joined: 08 Aug 2005 13:42
Location: The Netherlands

Post by Yoeri »

the idea is great, but my mouse doesn't have a third button. It does have a wheel though, and it is clickable. does that count as the third button? :P
Image
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Yoeri wrote:the idea is great, but my mouse doesn't have a third button. It does have a wheel though, and it is clickable. does that count as the third button? :P
Hmmm... I believe it does in lots of games. But when you press it you might accidentally scroll too, which usually has another effect in games.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 26 guests