Page 11 of 14

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

Posted: 06 Feb 2016 20:51
by Streckenläufer
Hello,
Thanks for the implementation, the binary works but when compiling appear error.

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

Posted: 08 Mar 2016 16:05
by Streckenläufer
Hello adf88, I get the following error when compiled with mingw under Win7.
Openttd 1.6.0 RC1 - the_clipboard_2.0.0_beta1-ottd_r27325-svn.patch
Error in map.cpp you can help me?

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

Posted: 11 Mar 2016 07:25
by adf88
Try changing

Code: Select all

TileTransformation ret = { dtr, { to_x - tile.x, to_y - tile.y } };
to

Code: Select all

TileTransformation ret = { dtr, { (int16)(to_x - tile.x), (int16)(to_y - tile.y) } };

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

Posted: 12 Mar 2016 00:12
by Streckenläufer
Hello adf88,

this line produces more errors.

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

Posted: 16 Mar 2016 23:11
by Starbud
I have noticed an error when pasting.
It seem to occur sometimes but not always, to me it seems to pick up bad data to put into the copybuffer because some layouts works fine but then i pick something up that cant be pasted exept if i use full terraform.
Some crashes at the exact moment of pushing paste.

Added two screenshots

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

Posted: 16 Mar 2016 23:13
by Starbud
Can the terraforminlimit be increased?
I often hit that limit when pasting big layouts.

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

Posted: 19 Mar 2016 02:59
by Eddi
you can change that from the console

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

Posted: 20 Mar 2016 09:41
by adf88
Starbud wrote:It seem to occur sometimes but not always, to me it seems to pick up bad data to put into the copybuffer because some layouts works fine but then i pick something up that cant be pasted exept if i use full terraform.
Some crashes at the exact moment of pushing paste.

Added two screenshots
By "crashes" did you mean just red "Can't paste here..." boxes? Or the game really crashes? On the first screenshoot it looks like you are just trying to paste something which is too high and the land cannot be terraformaed because of a bridge in a way, nothing unusual... It's too little information. If there is an issue I'll fix it but you must provide me a better description. Give me a savegame, show me (e.g. on a screenshot) what exactly to copy and where exactly to paste and describe me why do you thing that results should be different. I must be able to reproduce the thing on my computer.

There are some caveats that you may be unaware of:
  • In multiplayer, this is rather a clone tool than a copy-paste tool. There is no clipboard buffer. When copying you actually just select a piece on the map. When pasting, contents from the previously selected area will be cloned onto paste area (with all the changes that occurred on the copy area since it was selected).
  • Minimal terraforming is not "terraform as less as possible", it's almost like that. The actual rule is "if there's anything on the tile that is about to be copy-pasted then also copy-paste height from all 4 corners surrounding the tile".
Starbud wrote:Can the terraforminlimit be increased?
I often hit that limit when pasting big layouts.
Try changing construction.terraform_per_64k_frames and/or construction.terraform_frame_burst in console.

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

Posted: 13 Apr 2016 10:39
by musznik
Hello!

Here is patch for "openttd-trunk-r27537" and precompiled binaries

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

Posted: 22 Nov 2016 21:54
by vredko
hellou need help :( how can i install "copy and paste mod" under ver 1.6.1 and running servers under 1.6.1?

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

Posted: 23 Nov 2016 04:59
by Alberth
vredko wrote:hellou need help :( how can i install "copy and paste mod" under ver 1.6.1 and running servers under 1.6.1?
You cannot.

First of all, 1.6.1 comes without copy/paste patch. If you change the code in any way, for example, by adding the copy/paste patch, it is not 1.6.1 any more, it's a modified 1.6.1 ("1.6.1 + copy/paste" would be its name, for example, but at least not just plain "1.6.1").

Secondly, all games in a multi-player game must be the exact same version. An 1.6.1 multi-player game only runs if all participating machine runs the exact same 1.6.1 version (which is easy, as there is only one version named 1.6.1),

If you want to use a modified version in a multi-player game, then all participating machines must use that exact same modified version.

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

Posted: 17 Apr 2017 14:52
by agentw4b
musznik wrote:Hello!

Here is patch for "openttd-trunk-r27537" and precompiled binaries
I cannot load/save template with this patch.

I do not see any button for it.
How do I do that ?

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

Posted: 25 May 2017 22:23
by htk0708
Here is patch for "openttd-trunk-r27875" and precompiled binaries

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

Posted: 07 Jul 2017 12:34
by agentw4b
htk0708 wrote:Here is patch for "openttd-trunk-r27875" and precompiled binaries
missing clipboard.grf .

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

Posted: 17 Jul 2017 18:14
by birsk
i thing it the most useful patch ever when making big maps :-)
I have upgraded, and need help from some one to compile it for working in r27886" !! :bow:

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

Posted: 10 Oct 2017 14:23
by aberro
Enjoy. Barely tested, for now. Will test in my gameplay later. You can get required clipboard.grf from first message in this topic.
Upd.: it's working, kinda, but has many bugs.

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

Posted: 31 Mar 2018 13:10
by Starbud
agentw4b wrote:
htk0708 wrote:Here is patch for "openttd-trunk-r27875" and precompiled binaries
missing clipboard.grf .
Uploading clipboard.grf extracted from one of the files in the current original post.

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

Posted: 31 Mar 2018 14:16
by agentw4b
Starbud wrote:
agentw4b wrote:
htk0708 wrote:Here is patch for "openttd-trunk-r27875" and precompiled binaries
missing clipboard.grf .
Uploading clipboard.grf extracted from one of the files in the current original post.
I know, but I do not need to deal with it for a long time.

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

Posted: 31 Mar 2018 14:29
by Starbud
agentw4b wrote:I know, but I do not need to deal with it for a long time.
Ok, fair enough.
I uploaded it because i had the same problem of finding clipboard.grf.
When i found it i figured i save those comming after me some time by simply uploading it :)

Here is a game with 9 000 000 T pounds in a company and somewhat raised terraforming limits and magic bulldozer

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

Posted: 31 Mar 2018 14:42
by Starbud
Btw, anyone feeling like hosting that map?
I dont know how to get trough my linux gateway, Xubuntu if anyone happen to know how to forward ports.
I happily host it myself if i just know how.