[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

agentw4b
Traffic Manager
Traffic Manager
Posts: 155
Joined: 14 Apr 2017 15:51
Location: Czech Republic

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

Post by agentw4b » 31 Mar 2018 16:48

Unfortunately, with this "Copy / Paste patch" I did not find a way to make templates.
It is not possible to save the template out of the game.
It's probably deliberately blocked, so I do not use it anymore.
Owner and admin of servers:Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779), Experimental games 04 (92.63.57.152:3679), Experimental games 05 (92.63.57.152:3579).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS

eisenbahner
Engineer
Engineer
Posts: 5
Joined: 01 Dec 2017 19:19

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

Post by eisenbahner » 01 Jun 2018 21:49

but why save them outside the game. its fair enough to just build an intersection, station or junction only one time on a map and then just copy it on places where its needed. but i am anyway to stupid to integrate it in jokers patch pack :(

Starbud
Traffic Manager
Traffic Manager
Posts: 207
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

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

Post by Starbud » 02 Jun 2018 01:00

Oh i can live with it, altho a save function would be nice.
Either way i happily use the lovely patch, thank you all who have coded it =)
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se

eisenbahner
Engineer
Engineer
Posts: 5
Joined: 01 Dec 2017 19:19

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

Post by eisenbahner » 07 Jun 2018 20:09

Starbud wrote:Oh i can live with it, altho a save function would be nice.
Either way i happily use the lovely patch, thank you all who have coded it =)
wich patchpak do you use? I really want to start playing again (after 5 years of break) but i cant play without clipboard as my maps and networks are really huge and i would smash my mouse and keyboard if i have to build over 1000 intersections, stations and other stuff manually

Starbud
Traffic Manager
Traffic Manager
Posts: 207
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

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

Post by Starbud » 10 Jun 2018 11:40

I'll paste the startup screen of my clipboard version.
I'm not sure exactly where i got it but i think i picked it up from one of the posts in this thread.
I have used many diffrent versions and patchpacks with diffrent clipboard versions over the years.
Right now i don't have the time to do the research for wich ones there are, it would be interesting to me to make a list of the ones in existence so if you like you can remind me of this post in like 3 weeks i think.
Not promising to do it but i'd like to assemble that list at some point.

Oh by the way, i'd love to se screenshots from your games, i love those huge networks :)
Maybe some savegames?
Attachments
OTTD clipboard version used.png
(1.54 MiB) Not downloaded yet
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se

mysloksztaltny
Engineer
Engineer
Posts: 1
Joined: 10 Jul 2018 18:45

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

Post by mysloksztaltny » 10 Jul 2018 18:50

Can someone share not to old version (maybe 1.8.0) precompiled binaries with this patch for windows?

agentw4b
Traffic Manager
Traffic Manager
Posts: 155
Joined: 14 Apr 2017 15:51
Location: Czech Republic

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

Post by agentw4b » 08 Aug 2018 09:35

I would also like to welcome some new version :-)
Owner and admin of servers:Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779), Experimental games 04 (92.63.57.152:3679), Experimental games 05 (92.63.57.152:3579).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS

cadufour
Engineer
Engineer
Posts: 2
Joined: 21 Sep 2018 15:58

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

Post by cadufour » 21 Sep 2018 16:13

Hi all, any chance someone can help me to make this Patch work for MacOS?

Nidhoegger
Engineer
Engineer
Posts: 1
Joined: 29 Oct 2018 07:33

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

Post by Nidhoegger » 29 Oct 2018 07:42

For anyone interested: I made the patch work on 1.8.0. There was just a minor mashup in the patch. Have fun.

P.S.: No, i wont do precompiled binaries. I am a Linux user and do not have Windows. Any other Linuxuser should be able to compile this themselves. Its not that hard.

P.P.S: Thanks for the original author for his work. This patch is NOT MY WORK, I have just ported it to 1.8.0!
Attachments
clipbrd-1.8.0.patch
(1.68 MiB) Downloaded 111 times

Letharion
Engineer
Engineer
Posts: 8
Joined: 18 Feb 2009 12:33

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

Post by Letharion » 02 Jan 2019 14:22

The patch from Nidhoegger doesn't appear correct to me. It could be, but I can can't apply it, it's three times larger than the previous patch, and a manual inspection suggests it doesn't apply to 1.8.0 any way.

I've applied the previous patch instead, "the_clipboard_2.0.0_beta1-ottd_r27875-svn.patch" and rebased it onto 1.8.0. This worked really well except for a small conflict in clear_cmp.cpp. I must confess I don't entirely know if I resolved the conflict correctly, but with a quick gameplay it seems to be working.
Attachments
clipboard-1.8.0.patch
(582.64 KiB) Downloaded 117 times

chmistry
Engineer
Engineer
Posts: 3
Joined: 26 Feb 2019 22:36

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

Post by chmistry » 26 Feb 2019 22:50

Thanks Letharion, your patch creates a working binary on my system.
I've compiled openttd 1.8.1 from source on Ubuntu 18.04.2 LTS with your patch applied.

I can only get it working by running the openttd executable directly from the command line with the clipboard.cfg in the same folder as the executable.

After removal of the apt version it still does not run (in Gnome I only see a flash then nothing). On the command line I get a complaint about the clipboard.cfg file missing :

Error: Cannot open file 'clipboard.grf'

Could somebody explain to me where I should place this file?

agentw4b
Traffic Manager
Traffic Manager
Posts: 155
Joined: 14 Apr 2017 15:51
Location: Czech Republic

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

Post by agentw4b » 27 Feb 2019 05:47

chmistry wrote:Thanks Letharion, your patch creates a working binary on my system.
I've compiled openttd 1.8.1 from source on Ubuntu 18.04.2 LTS with your patch applied.

I can only get it working by running the openttd executable directly from the command line with the clipboard.cfg in the same folder as the executable.

After removal of the apt version it still does not run (in Gnome I only see a flash then nothing). On the command line I get a complaint about the clipboard.cfg file missing :

Error: Cannot open file 'clipboard.grf'

Could somebody explain to me where I should place this file?
download/file.php?id=202300
Owner and admin of servers:Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779), Experimental games 04 (92.63.57.152:3679), Experimental games 05 (92.63.57.152:3579).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS

chmistry
Engineer
Engineer
Posts: 3
Joined: 26 Feb 2019 22:36

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

Post by chmistry » 27 Feb 2019 09:04

agentw4b wrote:
chmistry wrote: I can only get it working by running the openttd executable directly from the command line with the clipboard.cfg in the same folder as the executable.

After removal of the apt version it still does not run (in Gnome I only see a flash then nothing). On the command line I get a complaint about the clipboard.cfg file missing :

Error: Cannot open file 'clipboard.grf'

Could somebody explain to me where I should place this file?
download/file.php?id=202300
Thanks, but I already have the clipboard.grf file, my problem is that I don't know where to place it in Ubuntu in order to run the executable.

Letharion
Engineer
Engineer
Posts: 8
Joined: 18 Feb 2009 12:33

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

Post by Letharion » 27 Feb 2019 09:34

I'm not sure I understand what your problem is, since you say you can get it running provided you use the CLI?
You want to use a short cut, like on the desktop or something similar? If so, setting the short cut to use the clipboard file's directory as working directory might work.

If you're asking where openttd in general might look for grfs, I don't know what the answer is, but I would try checking where the other grf-files end up being installed.
See this question for how to locate the files: https://askubuntu.com/questions/32507/h ... -a-package

agentw4b
Traffic Manager
Traffic Manager
Posts: 155
Joined: 14 Apr 2017 15:51
Location: Czech Republic

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

Post by agentw4b » 27 Feb 2019 09:57

Thanks, but I already have the clipboard.grf file, my problem is that I don't know where to place it in Ubuntu in order to run the executable.
/home/(youruser)/.openttd/NeWGRF
Owner and admin of servers:Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779), Experimental games 04 (92.63.57.152:3679), Experimental games 05 (92.63.57.152:3579).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS

chmistry
Engineer
Engineer
Posts: 3
Joined: 26 Feb 2019 22:36

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

Post by chmistry » 27 Feb 2019 13:33

Thanks all, I managed to fix the issue by placing the clipboard.grf file in /usr/local/share/games/openttd/baseset/

Apparently this is the location where my clipboard version is looking for the file at startup.

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 2 guests