[patch] Clipboard (a/k/a "Copy and Paste")

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

bcmpinc
Engineer
Engineer
Posts: 19
Joined: 18 Nov 2008 00:10

Re: Clipboard (a/k/a "Copy and Paste")

Post by bcmpinc »

adf88 wrote:You are simply wrong and you didn't even bother to check how does it work. The tool works as intended. There is a "select" tool, you can pick a tile area with it. And There is a "copy & paste" tool which copies selected area into clipboard buffer and then pastes it instantly at a given location.
Ok, I did not know that in your new version you make clear to the user in what order the tiles are being copied from the selected area. Sorry, for that.
Lupurus wrote:Isn't it the decision of the user, how much he wants to creative or not? I, for one, don't have the patience to build each cross with every signal from the start on. But am I really the only one, wo thinks like this?
I would very much like the ability to save and load templates, as that would encourage me to use my creativity and design really efficient and complex junctions. Now that just feels like a total waste of time and I end up brainlessly copy-pasting trivial junctions.
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: Clipboard (a/k/a "Copy and Paste")

Post by adf88 »

New version available - Clipboard 1.0.3 for OpenTTD r25722. Download at usual place.
  • bug fix: crash when switching clipboards by a hotkey (1/2/3/4) while paste preview is active
  • feature: if a GRF-ed station supports 1x1 pieces then copy also station type instead of resetting it
  • fix MSVC warning
And a mini patch pack :)
Clipboard 1.0.3 + Polyline Track Tool 8c for OpenTTD r25722
Attachments
clipboard_1.0.3_and_polyline_v8c_for_ottd_r25722.zip
(139.43 KiB) Downloaded 719 times
:] don't worry, be happy and checkout my patches
User avatar
kyosuke1989
Transport Coordinator
Transport Coordinator
Posts: 273
Joined: 24 Mar 2008 13:04
Location: Finland

Re: Clipboard (a/k/a "Copy and Paste")

Post by kyosuke1989 »

Could you post 1.0.3 Windows binary in first post, applied against current trunk? :) Also mini-patchpack binary (here) could be useful. Thank you for these very useful patches.
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: Clipboard (a/k/a "Copy and Paste")

Post by Trond »

I use this (via the YAPP pack) and I must say I like it... When I make the stationlayout for say an orestation, I copy the tracks to the clipboard and just paste it when building next same station. I dont copy the station, coz when using stations like ISR it messes it up and all tiles become the same after pasting. Still, it makes it so much easier to make the roro stations :) Thanks!
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
AdrEniX
Engineer
Engineer
Posts: 2
Joined: 26 Dec 2013 16:37
Contact:

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by AdrEniX »

Excuse... I m from many time that follow this patch. Isn't possibile to get it working as official grf? I use the mobile openttd android and it is only compatible with official mods..

I hope to have explained cleared with my not perfect english ;p

Inviato dal mio LG-P880 utilizzando Tapatalk
Using Tapatalk
Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Eddi »

no, that is not possible.
AdrEniX
Engineer
Engineer
Posts: 2
Joined: 26 Dec 2013 16:37
Contact:

Re: R: [patch] Clipboard (a/k/a "Copy and Paste")

Post by AdrEniX »

Eddi wrote:no, that is not possible.
Ah.. Ok..

Thanks

Inviato dal mio LG-P880 utilizzando Tapatalk
Using Tapatalk
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by adf88 »

Version 1.1.0 is ready:
- improved station copy/pasting
- button to turn stations on/off
:] don't worry, be happy and checkout my patches
pabben
Engineer
Engineer
Posts: 1
Joined: 01 Aug 2014 17:02

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by pabben »

Any progress in mac-version of the patch?
Gigigonzalez
Engineer
Engineer
Posts: 91
Joined: 12 Jun 2014 14:24

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Gigigonzalez »

pabben wrote:Any progress in mac-version of the patch?
A Mac version ? Afaik the patch is just applied to source i doubt OS matters, unless you mean a precompiled binary.

So em, this patch does or does not work in multi player? Its a bit vague.
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by adf88 »

Gigigonzalez wrote:So em, this patch does or does not work in multi player? Its a bit vague.
If you want to use the Clipboard in a multiplayer game, you must connect to a patched server. This most likely means that you or (one of your friends) will have to host a network game. If you want to play on a not-patched server - sorry, no Clipboard.
:] don't worry, be happy and checkout my patches
Lechuza
Engineer
Engineer
Posts: 16
Joined: 30 Oct 2014 01:33

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Lechuza »

Any plans on updating it to work with the latest version? This is one of those tools I cannot live without, wish it was added to trunk to be honest, amazing work!
Gigigonzalez
Engineer
Engineer
Posts: 91
Joined: 12 Jun 2014 14:24

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Gigigonzalez »

adf88 wrote:
Gigigonzalez wrote:So em, this patch does or does not work in multi player? Its a bit vague.
If you want to use the Clipboard in a multiplayer game, you must connect to a patched server. This most likely means that you or (one of your friends) will have to host a network game. If you want to play on a not-patched server - sorry, no Clipboard.
Heh, i get what you mean.

Im sure there are ways to make it work just client side though, hence my question.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Alberth »

Gigigonzalez wrote:Im sure there are ways to make it work just client side though, hence my question.
Yeah, most server owners with competitive play will greatly appreciate that some advanced users that can copy/paste large chunks of infra structure in less than a second.
Being a retired OpenTTD developer does not mean I know what I am doing.
aberro
Engineer
Engineer
Posts: 64
Joined: 20 May 2013 20:20

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by aberro »

Eh... I've updated it to last trunk, but on my heavily patched build... So now it's quite hard to get the .diff file compatible with clean trunk or even to separate diffs for this patch from all other diffs. Though, it wasn't that hard to make this patch work, just replace all "_m[<x>].m<y>" with "GetTile(<x>)->m<y>" and then make all "GetTile(<x>)->m6" to "GetTileEx(<x>)->m6" because m6 was moved from _m to _me in trunk. Requires only some time to make such replacements.
Ah, and there was something with INVALID_EXPENSES which should be replaced with CONSTRUCTION_EXPENSES, but I not sure if it wasn't some minor incompatibility with other patch.
Lechuza
Engineer
Engineer
Posts: 16
Joined: 30 Oct 2014 01:33

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Lechuza »

aberro wrote:Eh... I've updated it to last trunk, but on my heavily patched build... So now it's quite hard to get the .diff file compatible with clean trunk or even to separate diffs for this patch from all other diffs. Though, it wasn't that hard to make this patch work, just replace all "_m[<x>].m<y>" with "GetTile(<x>)->m<y>" and then make all "GetTile(<x>)->m6" to "GetTileEx(<x>)->m6" because m6 was moved from _m to _me in trunk. Requires only some time to make such replacements.
Ah, and there was something with INVALID_EXPENSES which should be replaced with CONSTRUCTION_EXPENSES, but I not sure if it wasn't some minor incompatibility with other patch.
Thank you aberro, I will see if I can make it work when I get back home and if I do I will post the patch here for other people to use.
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by adf88 »

Lechuza wrote:Any plans on updating it to work with the latest version?
Yes. Soon (~2 weeks).
New version will support scenario editor.
:] don't worry, be happy and checkout my patches
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by planetmaker »

adf88 wrote:
Lechuza wrote:Any plans on updating it to work with the latest version?
Yes. Soon (~2 weeks).
New version will support scenario editor.
That's actually the place where it does make most sense to me :)
shorty66
Engineer
Engineer
Posts: 3
Joined: 11 Nov 2014 02:30

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by shorty66 »

I really like this patch.

I am currently using the Spring 2013 Pachpack and would love to use this patch in combination with it.
Would it be possible to get a compatible version?

Do you think this patch will make it to the trunk soon?
Klaatu
Engineer
Engineer
Posts: 43
Joined: 04 Aug 2003 14:58

Re: [patch] Clipboard (a/k/a "Copy and Paste")

Post by Klaatu »

shorty66 wrote:I really like this patch...Do you think this patch will make it to the trunk soon?
Don't hold your breath.

Playing OTTD without this patch is like using a text editor without basic copy and paste functionality, and who in their right mind would do that?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 12 guests