Copy & Paste patch, reworked
Moderator: OpenTTD Developers
Re: Copy & Paste patch, reworked
So, since newest copy & paste patch here is for 0.7.3 and adf88's patch is not yet finished and I needed something working so I can put it into my patchpack, I've ported the original frostregen's patch to 1.0.0 (which should make it relatively easy to port it to trunk). It can be applied, compile and it works ...
Note that I've removed support for copying rail waypoints, as the representation of waypoints changed (in 0.7.X it was in trackbits, in 1.0.0 railway waypoint seems to be a special kind of station) and I've not (yet) figured out how to implement it properly, so the affected part of code is commented out.
Rest of the patch (copying, pasting, saving and loading templates seems to be working well :)
If someone knows what happened to the railway waypoints between 0.7.5 and 1.0.0, please enlighten me, I may be able to put support for them back in :)
Note that I've removed support for copying rail waypoints, as the representation of waypoints changed (in 0.7.X it was in trackbits, in 1.0.0 railway waypoint seems to be a special kind of station) and I've not (yet) figured out how to implement it properly, so the affected part of code is commented out.
Rest of the patch (copying, pasting, saving and loading templates seems to be working well :)
If someone knows what happened to the railway waypoints between 0.7.5 and 1.0.0, please enlighten me, I may be able to put support for them back in :)
- Attachments
-
- copypaste_100.patch
- Copy & paste patch for 1.0.0
- (120.26 KiB) Downloaded 360 times
If you need something, do it yourself or it will be never done.
My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility
Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility
Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
-
- Transport Coordinator
- Posts: 340
- Joined: 06 Feb 2006 23:58
Re: Copy & Paste patch, reworked
And here comes version for trunk - for r19639
- Attachments
-
- copypaste_r19639.patch
- Copy & paste for r19639
- (120.4 KiB) Downloaded 262 times
If you need something, do it yourself or it will be never done.
My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility
Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility
Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
Re: Copy & Paste patch, reworked
Here is the 1.0.0 Copy & Paste binary built for win32
Last edited by Rubidium on 21 Apr 2010 17:15, edited 2 times in total.
Reason: The license was missing as such in violation with GPL and removed. Furthermore you're better of posting a proper bundle as you need the copy-paste language files and grfs too
Reason: The license was missing as such in violation with GPL and removed. Furthermore you're better of posting a proper bundle as you need the copy-paste language files and grfs too
Re: Copy & Paste patch, reworked
I am geting the error message "No available language packs (invalid versions?)"
I just replaced my old executable with the c&p-one and don't know what the problem is, since all lng files are in ..\lang\ folder.
I just replaced my old executable with the c&p-one and don't know what the problem is, since all lng files are in ..\lang\ folder.
Re: Copy & Paste patch, reworked
I think you need the other files from the right version.
I might be wrong but i get the feeling that you have an older version than the executable is intended for.
I might be wrong but i get the feeling that you have an older version than the executable is intended for.
Re: Copy & Paste patch, reworked
The problem is that dbncoold only included the executable and not everything from the bin.Starbud wrote:I think you need the other files from the right version.themroc wrote: I am geting the error message "No available language packs (invalid versions?)"
I just replaced my old executable with the c&p-one and don't know what the problem is, since all lng files are in ..\lang\ folder.
I might be wrong but i get the feeling that you have an older version than the executable is intended for.
And even if it worked ... there is no liscence which is against the liscence.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Copy & Paste patch, reworked
Double post, but for a good reason. 
Changed:
---------
- Some coding style in copy_paste_gui:
-> Move "struct CopyPasteWindow : Window" above "static const NWidgetPart _nested_copy_paste_widgets[]".
-> Removed a few blank lines.
- Some coding style in language files -> Move and rename STR_COPY_PASTE_LOAD_TEMPLATE to STR_SAVELOAD_LOAD_COPY_PASTE_TEMPLATE (same for ...SAVE...).
- Rename getFastestAvailableBridgeType() to GetFastestAvailableBridgeType().
Fixed:
-----
- Crash when clicking the buttons in the terraingeneration toolbar -> Introduced ShowCopyPasteToolbarGui() and removing ShowCopyPasteToolbar(int button) in terraform_gui.cpp. ShowCopyPasteToolbar() is still used for when the shortcuts are used.
- Crashes when clicking the buttons to save or load templates. -> Included the renamed save/load strings mentioned above in misc_gui.cpp.
- compiler warning: STRING1 to STRING in german.txt.
Remaining Compiler warnings:
------------------------------
- copy_paste.cpp:
line 716: name lookup of a^ tile has changed
line 514: matches this a^ tile a^ under ISO standard rules
line 549: matches this a^ tile a^ under old rules
ps:
Bilbo,
RAIL_TILE_WAYPOINT is now STATION_WAYPOINT. See station_type.h

Changed:
---------
- Some coding style in copy_paste_gui:
-> Move "struct CopyPasteWindow : Window" above "static const NWidgetPart _nested_copy_paste_widgets[]".
-> Removed a few blank lines.
- Some coding style in language files -> Move and rename STR_COPY_PASTE_LOAD_TEMPLATE to STR_SAVELOAD_LOAD_COPY_PASTE_TEMPLATE (same for ...SAVE...).
- Rename getFastestAvailableBridgeType() to GetFastestAvailableBridgeType().
Fixed:
-----
- Crash when clicking the buttons in the terraingeneration toolbar -> Introduced ShowCopyPasteToolbarGui() and removing ShowCopyPasteToolbar(int button) in terraform_gui.cpp. ShowCopyPasteToolbar() is still used for when the shortcuts are used.
- Crashes when clicking the buttons to save or load templates. -> Included the renamed save/load strings mentioned above in misc_gui.cpp.
- compiler warning: STRING1 to STRING in german.txt.
Remaining Compiler warnings:
------------------------------
- copy_paste.cpp:
line 716: name lookup of a^ tile has changed
line 514: matches this a^ tile a^ under ISO standard rules
line 549: matches this a^ tile a^ under old rules
ps:
Bilbo,
RAIL_TILE_WAYPOINT is now STATION_WAYPOINT. See station_type.h
- Attachments
-
- copypaste_r19692.diff
- (122.31 KiB) Downloaded 340 times
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
-
- Engineer
- Posts: 2
- Joined: 08 May 2010 09:29
Re: Copy & Paste patch, reworked
Hi,
i want to say thanks for developing this great patch. i needed a long time to create a complex train-cross over and over again and asked me why there is no feature to create a template. this patch makes the game much better as it anyway is. so thank you all for developing and i hope that will be continued a long time.
i want to say thanks for developing this great patch. i needed a long time to create a complex train-cross over and over again and asked me why there is no feature to create a template. this patch makes the game much better as it anyway is. so thank you all for developing and i hope that will be continued a long time.

Re: Copy & Paste patch, reworked
Where do i have to put that .diff file on my hard drive?
Re: Copy & Paste patch, reworked
Hi there, I'm afraid that putting the patch file on your hard drive is not enough. You would actually have to compile OpenTTD from source codes as explained in the wiki and apply the patch as explained in the "Howto apply a patch/diff file" thread. It's not that hard to do but it does take some time to set up everything properly for the first time. You might ask someone to compile the game for you -- I might even be able to do it myself if you're fine with playing the game without sound.
-
- Transport Coordinator
- Posts: 283
- Joined: 08 May 2004 07:48
- Location: Alkmaar, The Netherlands
Re: Copy & Paste patch, reworked
http://www.tt-forums.net/viewtopic.php?f=33&t=21678ClubxzBoy wrote:Where do i have to put that .diff file on my hard drive?
Beer equals power
Re: Copy & Paste patch, reworked
I made the binary for you -- without music support though.
Btw the unfixed warning mentioned by ChillCore will probably cause some build sounds coming from strange locations. It could be easily fixed by renaming the variables.
Btw the unfixed warning mentioned by ChillCore will probably cause some build sounds coming from strange locations. It could be easily fixed by renaming the variables.
- Attachments
-
- copypaste_win32_nomusic_r19692.zip
- (3.96 MiB) Downloaded 452 times
Re: Copy & Paste patch, reworked
doesnt work at all how can i getit active the Grf file orthe winzip is not to be found in game
i whant it to work becausse i donot need to do every thing when its working
Greetz Locomotor

i whant it to work becausse i donot need to do every thing when its working
Greetz Locomotor


Re: Copy & Paste patch, reworked
Look at the first post in this thread, there are the instructions. You need to download copypaste.grf from this link http://www.tt-forums.net/download.php?id=50279 and extract it to ...\My Documents\OpenTTD\data. You'll also need to unzip the file I posted to some folder. Best to get 7zip for this (since the grf file is compressed using 7z).
Re: Copy & Paste patch, reworked
whe need the 1.0.1 patch version for Copy & Paste becausse it still doesnt accept the older 1
even the 1.0.0 off the Copy & Paste patch doesnt work on Openttd build 1.0.1
i hope you can get it working again
becausse every 1 liked it from the start even i used 1 off the old version when openttd whas just out
greetz
even the 1.0.0 off the Copy & Paste patch doesnt work on Openttd build 1.0.1
i hope you can get it working again
becausse every 1 liked it from the start even i used 1 off the old version when openttd whas just out
greetz
Re: Copy & Paste patch, reworked
The version I posted is somewhere between 1.0.1-RC2 and 1.0.1. Do you have any problem running it?
- Vaulter
- Traffic Manager
- Posts: 185
- Joined: 21 Dec 2004 05:35
- Skype: andrey-zaharov
- Location: St. Petersburg, Russia
- Contact:
Re: Copy & Paste patch, reworked
Bus wrote:The version I posted is somewhere between 1.0.1-RC2 and 1.0.1. Do you have any problem running it?
Code: Select all
-0.37 vaulter@vaulter-laptop:~/src/openttd/1.0.1$ svn update
At revision 19929.
-0.33 vaulter@vaulter-laptop:~/src/openttd/1.0.1$ svn info
Path: .
URL: svn://svn.openttd.org/tags/1.0.1
Repository Root: svn://svn.openttd.org
Repository UUID: 6aa0318a-3be1-0310-93fa-89fd2396df07
Revision: 19929
Node Kind: directory
Schedule: normal
Last Changed Author: rubidium
Last Changed Rev: 19742
Last Changed Date: 2010-05-01 01:24:33 +0400 (Sat, 01 May 2010)
-0.50 vaulter@vaulter-laptop:~/src/openttd/1.0.1$ make
make[1]: Entering directory `/home/vaulter/src/openttd/1.0.1/objs/lang'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vaulter/src/openttd/1.0.1/objs/lang'
make[1]: Entering directory `/home/vaulter/src/openttd/1.0.1/objs/release'
[SRC] Compiling command_queue.cpp
/home/vaulter/src/openttd/1.0.1/src/command_queue.cpp: In function 'void CallCommandQueueTick()':
/home/vaulter/src/openttd/1.0.1/src/command_queue.cpp:72: error: 'struct GUISettings' has no member named 'cp_paste_speed'
/home/vaulter/src/openttd/1.0.1/src/command_queue.cpp:73: error: 'struct GUISettings' has no member named 'cp_paste_speed'
make[1]: *** [command_queue.o] Error 1
make[1]: Leaving directory `/home/vaulter/src/openttd/1.0.1/objs/release'
make: *** [all] Error 2
Code: Select all
wget --output-document="copypaste.patch" \
--no-clobber --timeout=30 --dns-timeout=2 -- \
http://www.tt-forums.net/download/file.php?id=128044
Re: Copy & Paste patch, reworked
Erm I was talking about the binary file I posted
. The latest patch in this thread clearly says that it's for revision 19692 so use that one, not the latest one.

Who is online
Users browsing this forum: No registered users and 9 guests