Page 6 of 14

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

Posted: 01 Nov 2011 21:35
by Starbud
Even tho the last previous posts are right about their comments you still did have a good intention from what i can tell.
That is apreciated :)

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

Posted: 01 Nov 2011 22:36
by ChillCore
Starbud wrote: you still did have a good intention from what i can tell.
That is apreciated :)
I never said the effort is not appreciated nor that the intentions of dbncoold were wrong, I agree completely with what you are saying. ;)

I admit I have posted my share of incorrect binaries myself until I was made aware that I was doing it the wrong way.
I just mentioned the correct way to create a (legally) distributable binary and wondered why the previous downloaders did not report ... excuse me if I sounded too harsh, not my intention at all, but written language often comes across differently than intended.

Anyway, I will leave it at that as I think that discussing it further will just derail the topic.

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

Posted: 01 Nov 2011 22:41
by Starbud
I didnt think it was the wrong way, i just noticed that noone had written anything positive about it so i pointed out the positive :)

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

Posted: 01 Nov 2011 22:55
by Eddi
Starbud wrote:i just noticed that noone had written anything positive about it
"not being yelled at is praise enough" :p

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

Posted: 02 Nov 2011 00:21
by Starbud
No, i dont agree.

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

Posted: 02 Nov 2011 17:09
by dbncoold
@Starbud, thank you... @Chillcore, not so much :lol:

If I get time I will clean it up, but I would really much rather see this in trunk and not have to rebuild /rework the patch with every new OpenTTD release. I have done this so much that I really got sick of it. It is not as easy to patch and build for Windows as it is for Linux where most software is built from code.

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

Posted: 04 Nov 2011 09:14
by adf88
The patch is under development. I'm working now on a harder part of it. It's not trunk ready, it hasn't been released yet.

Release gets delayed because of a lack of feedback. Actually only Starbud gave me any technical info (thanks again!).

In case of crashes, most valuable for me are savegames made BEFORE running "copy" command. I need a savegame and description about what to copy and where to paste to cause a crash. That's because usually when the game crashes important data is already lost.

Until the patch is stable and well tested we can't even think of including it into trunk.

I will upload win32 binaries soon.

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

Posted: 05 Nov 2011 05:00
by ThaPear
adf88 wrote:I will upload win32 binaries soon.
Looking forward to this so I can try it out. :)

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

Posted: 10 Nov 2011 15:37
by adf88
Ok, beta 3 is ready. Win32 binaries available. Download link is here http://www.tt-forums.net/viewtopic.php?p=824651#p824651.

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

Posted: 12 Nov 2011 17:02
by smile64
Thanks for your work. I downloaded the Windows binary, and it works well. However, when I tried to compile the patch myself, I got a lot of error messages. I downloaded and patched r23178 with TortoiseSVN, then I tried to compile it with MSVS 2008. It compiled everything fine, but then:

Code: Select all

Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
   Creating library ..\objs\Win32\Release\\openttd.lib and object ..\objs\Win32\Release\\openttd.exp
command.obj : error LNK2001: unresolved external symbol "class CommandCost __fastcall CmdCopyPaste(struct TileIndexT,enum DoCommandFlag,unsigned int,unsigned int,char const *)" (?CmdCopyPaste@@YI?AVCommandCost@@U?$TileIndexT@UMainMap@@@@W4DoCommandFlag@@IIPBD@Z)
hotkeys.obj : error LNK2001: unresolved external symbol "enum EventState __fastcall ClipboardGlobalHotkeys(unsigned short,unsigned short)" (?ClipboardGlobalHotkeys@@YI?AW4EventState@@GG@Z)
openttd.obj : error LNK2001: unresolved external symbol "public: static void __fastcall Clipboard::MakeEmpty(void)" (?MakeEmpty@Clipboard@@SIXXZ)
rail.obj : error LNK2001: unresolved external symbol "public: static unsigned int Clipboard::size" (?size@Clipboard@@2IA)
rail.obj : error LNK2001: unresolved external symbol "public: static struct Tile * Clipboard::m" (?m@Clipboard@@2PAUTile@@A)
tile_map.obj : error LNK2001: unresolved external symbol "public: static unsigned int Clipboard::size_x" (?size_x@Clipboard@@2IA)
tile_map.obj : error LNK2001: unresolved external symbol "public: static unsigned int Clipboard::log_x" (?log_x@Clipboard@@2IA)
tile_map.obj : error LNK2001: unresolved external symbol "public: static unsigned int Clipboard::size_y" (?size_y@Clipboard@@2IA)
viewport.obj : error LNK2001: unresolved external symbol "struct TilePastePreviewInfo __fastcall GetTilePastePreviewInfo(struct TileIndexT)" (?GetTilePastePreviewInfo@@YI?AUTilePastePreviewInfo@@U?$TileIndexT@UMainMap@@@@@Z)
terraform_gui.obj : error LNK2001: unresolved external symbol "struct Window * __fastcall ShowClipboardToolbar(void)" (?ShowClipboardToolbar@@YIPAUWindow@@XZ)
rail_cmd.obj : error LNK2001: unresolved external symbol "public: static unsigned int Clipboard::content_width" (?content_width@Clipboard@@2IA)
rail_cmd.obj : error LNK2001: unresolved external symbol "class CommandCost __fastcall DoPasteCommand(struct TileIndexT,unsigned int,unsigned int,enum DoCommandFlag,unsigned int)" (?DoPasteCommand@@YI?AVCommandCost@@U?$TileIndexT@UMainMap@@@@IIW4DoCommandFlag@@I@Z)
rail_cmd.obj : error LNK2001: unresolved external symbol "enum CopyPasteMode _current_cmd_copy_paste_mode" (?_current_cmd_copy_paste_mode@@3W4CopyPasteMode@@A)
rail_cmd.obj : error LNK2001: unresolved external symbol "public: static struct TileExtended * Clipboard::me" (?me@Clipboard@@2PAUTileExtended@@A)
rail_cmd.obj : error LNK2001: unresolved external symbol "void __fastcall CollectPasteCost(class CommandCost const &,enum DoCommandFlag,struct TileIndexT,unsigned short)" (?CollectPasteCost@@YIXABVCommandCost@@W4DoCommandFlag@@U?$TileIndexT@UMainMap@@@@G@Z)
rail_cmd.obj : error LNK2001: unresolved external symbol "void __fastcall CollectPasteError(struct TileIndexT,unsigned short,unsigned short)" (?CollectPasteError@@YIXU?$TileIndexT@UMainMap@@@@GG@Z)
rail_cmd.obj : error LNK2001: unresolved external symbol "bool __fastcall IsPasteInterrupted(void)" (?IsPasteInterrupted@@YI_NXZ)
rail_cmd.obj : error LNK2001: unresolved external symbol "public: static unsigned int Clipboard::content_height" (?content_height@Clipboard@@2IA)
terraform_cmd.obj : error LNK2001: unresolved external symbol "class OverflowSafeInt<__int64,9223372036854775807,-9223372036854775808> __fastcall GetAvailableMoneyForPasteCommand(void)" (?GetAvailableMoneyForPasteCommand@@YI?AV?$OverflowSafeInt@_J$0HPPPPPPPPPPPPPPP@$0?IAAAAAAAAAAAAAAA@@@XZ)
terraform_cmd.obj : error LNK2001: unresolved external symbol "int _current_cmd_copy_paste_height_delta" (?_current_cmd_copy_paste_height_delta@@3HA)
tunnelbridge_cmd.obj : error LNK2001: unresolved external symbol "unsigned short _paste_cmd_err_message" (?_paste_cmd_err_message@@3GA)
tunnelbridge_cmd.obj : error LNK2001: unresolved external symbol "struct TileIndexT _paste_cmd_err_tile" (?_paste_cmd_err_tile@@3U?$TileIndexT@UMainMap@@@@A)
..\objs\Win32\Release\\openttd.exe : fatal error LNK1120: 22 unresolved externals
It's not the first time I compiled OpenTTD, and I haven't changed anything in the configuration since the last time. What have I missed then?

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

Posted: 12 Nov 2011 17:53
by Yexo
It looks like the patch misses some files (something like copypaste.cpp / copypaste.h maybe?).

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

Posted: 12 Nov 2011 18:56
by smile64
Well, I just told TortoiseSVN to apply the patch, and I thought every necessary files will be there. :)
Copypaste.cpp and copypaste.h are are not in the patch, copypaste_cmd.cpp and copypaste.h are both there in the src directory, where they should be.

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

Posted: 12 Nov 2011 19:02
by Yexo
Perhaps they're missing from the msvc project file. Try running generate.vbs from the projects directory.

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

Posted: 12 Nov 2011 19:18
by smile64
That was the problem. Everything's fine now. Thank you!

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

Posted: 02 Apr 2012 20:43
by unitedhate
Hi,
thank you for your work. This is a very nice feature for openttd and I think it is the most important enhancement for the game. I've just checked out the revision 23178 and patched it with the diff file. It works fine. In previous version (other copy & paste threads) was a feature to save and load templates. Is it still possible? Maybe I haven't seen it. Is there any progress to make it compatible with the newest trunk version (24087 - 1.2.0)? I've tried it, but it does not compile...
Regards,
Uni

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

Posted: 02 Apr 2012 23:18
by handrake
unitedhate wrote:Hi,
thank you for your work. This is a very nice feature for openttd and I think it is the most important enhancement for the game. I've just checked out the revision 23178 and patched it with the diff file. It works fine. In previous version (other copy & paste threads) was a feature to save and load templates. Is it still possible? Maybe I haven't seen it. Is there any progress to make it compatible with the newest trunk version (24087 - 1.2.0)? I've tried it, but it does not compile...
Regards,
Uni
I'm not 100% sure, but I do remember remotely somebody mentioning that template save files will be incompatible from version to version by its fundamental design.

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

Posted: 16 Jun 2012 10:45
by schorfi
Hey,
thank you for the development of openttd ;)
I like it...

and thanks to the developers of the copy&paste and/or clipboard patches

it is an essential tool for the game play in the middle and end of the game when playing on huge maps as I do (max size)
as it alleviates the construction of stereotypical architectures like complex tracklayouts, like 10 tracks lanes with repetitive intersections, signals, depots n stuff
I dont know how ppl expect me to play that game after i grew up my company, but doing that by hand, even with all the shortcuts, takes ages to make reasonable progress (i am not able to spend all my money anymore), even more it becomes a repetitive clicking which is boring, if i want to have such a game-play, I would play Diablo III instead :P
I wonder why such a tool didnt make it yet to the main tree yet, I would like to see it in single player but also in multiplayer...

However, I couldnt make the clipboard patch work for the latest openttd, hope you can release a version which can do that
I like the new release as it makes the game a little bit harder...

thank you all ;)

best wishes
schorfi

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

Posted: 23 Jun 2012 01:06
by Frostregen
I wonder why such a tool didnt make it yet to the main tree yet, I would like to see it in single player but also in multiplayer...
Because it will be extremely hard to maintain afterwards.

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

Posted: 23 Jun 2012 07:39
by Alberth
Nope, it is because nobody created a version of sufficient quality yet.

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

Posted: 03 Dec 2012 14:22
by lordwurst
hey is this project still on???

It would be nice if somebody could upload a compiled 1.2.3 version with the copy paste patch included.

Thanks a lot!!!