[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 » 15 Aug 2013 11:53

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 » 15 Aug 2013 18:47

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 504 times
:] don't worry, be happy and checkout my patches

User avatar
kyosuke1989
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 24 Mar 2008 13:04
Location: Finland

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

Post by kyosuke1989 » 06 Sep 2013 11:48

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 » 22 Nov 2013 12:21

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 » 26 Dec 2013 16:42

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: 7371
Joined: 17 Jan 2007 00:14

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

Post by Eddi » 26 Dec 2013 18:35

no, that is not possible.
You might not exactly be interested in Ferion, but if you are, have fun :)

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 » 26 Dec 2013 21:07

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 » 15 Mar 2014 13:15

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 » 01 Aug 2014 17:04

Any progress in mac-version of the patch?

Gigigonzalez
Engineer
Engineer
Posts: 92
Joined: 12 Jun 2014 14:24

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

Post by Gigigonzalez » 01 Oct 2014 14:32

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 » 13 Oct 2014 07:32

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 » 01 Nov 2014 05:43

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: 92
Joined: 12 Jun 2014 14:24

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

Post by Gigigonzalez » 02 Nov 2014 15:15

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: 4718
Joined: 09 Sep 2007 05:03
Location: home

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

Post by Alberth » 02 Nov 2014 15:19

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 OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.

aberro
Engineer
Engineer
Posts: 64
Joined: 20 May 2013 20:20

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

Post by aberro » 05 Nov 2014 23:55

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 » 06 Nov 2014 14:40

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 » 07 Nov 2014 12:16

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: 9276
Joined: 07 Nov 2007 22:44
Location: Sol d

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

Post by planetmaker » 07 Nov 2014 12:33

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 » 11 Nov 2014 02:33

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 » 29 Nov 2014 20:07

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 5 guests