Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

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

Klaatu
Engineer
Engineer
Posts: 43
Joined: 04 Aug 2003 14:58

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Klaatu »

Thanks Frostregen. You do know, don't you, that this is the best patch ever in the history of patches, right? I do not play a version of OTTD without this patch. I can't, it's just too good. If only the developers were wise enough to see the value in this patch, but alas it appears not to be.

Here's hoping you find more free time in the future.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Rubidium »

Klaatu wrote:If only the developers were wise enough to see the value in this patch, but alas it appears not to be.
Too bad (for you) we are wise enough to see the extra (unneeded) maintainance cost of this incarnation of the feature this patch implements.
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Frostregen »

Rubidium wrote:
Klaatu wrote:If only the developers were wise enough to see the value in this patch, but alas it appears not to be.
Too bad (for you) we are wise enough to see the extra (unneeded) maintainance cost of this incarnation of the feature this patch implements.
Yes it is a pain to maintain ;)
Did you think of something of interest for me, when you wrote "(unneeded)"?
Because I have no idea how to make ist less relying on internal ottd structures.


PS:
@Klaatu: Thx, always good to know someone is using this :)
Grolsch
Transport Coordinator
Transport Coordinator
Posts: 283
Joined: 08 May 2004 07:48
Location: Alkmaar, The Netherlands

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Grolsch »

@Frostregen: I also use this patch and never play without it. I run four different 24/7 multiplayer servers, and wait with updating to the next stable until the latest windows build of this patch is available in here ;)
So please do keep up the good work, it is very much appreciated! In my next game, I will build a statue in a big city in honour of you :P

@Rubidium & Frostregen: Isn't there any way to make this patch easier to maintain so that it will be in trunk someday? I'm not a programmer so I hope I am not saying something completely stupid right now ;)
But are you two having contact with eachother about this? Or is this a clear case as in "devs don't like this feature, so it will never be in trunk, no matter how good it is programmed"? If it is, ofcourse I respect the choice of the devs, but if there's any chance this will be in trunk someday, it would make my life a very little bit better :lol:
Beer equals power
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Oh i can for sure tell that people use it but A LOT of people just dont know how to make it work.
I show it sometimes on the servers and like 40% or more of the people seeing it want it and i help them installing it

I assume people have some issues with the 7zip packingformat.
7zip is certainly more effective than regular zip but it give more of a hazzle to use it compared to those more wellknown ones.
Do you think you can host two packages, one with 7zip and one using zip, maybe even rar?
I can host A LOT files if you like on:
http://ottd.dyndns.org
or
http://ottd.dyndns.org/1/nano/
I can give you access to the ftp to upload them yourself or i can pack them myself and put them up if you like.

Yet some others fail to overwrite the original files.

Either way i really love copy&paste, makes my gigantic networks more detailed :)
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by DaleStan »

Starbud wrote:Do you think you can host two packages, one with 7zip and one using zip, maybe even rar?
It seems to me that there's only minimal point in providing both 7z and rar versions. Most archivers that can read one can read the other too.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Hmm, maybe it's just my favourite filehandler Total Commander that can't deal with 7zip then.
Is there any other that can?
Maybe it's not as good program as i think it is.
I liked the old filehandler Directory opus for the Amiga but the PC version is not even half as useful according to me.
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by athanasios »

Are you sure? Because mine can!
Attachments
7z.png
7z.png (27.79 KiB) Viewed 4152 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Are you using WCXs or something because i sure cant see any other way to make 7zip work in TC.
I played alittle with WCX once but notghing i did seemed to have any effect on TC :(
Was a while ago tho.
Anyway, can you tell me how you get TC to pass commands to external programs?
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
Klaatu
Engineer
Engineer
Posts: 43
Joined: 04 Aug 2003 14:58

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Klaatu »

Rubidium wrote:
Klaatu wrote:If only the developers were wise enough to see the value in this patch, but alas it appears not to be.
Too bad (for you) we are wise enough to see the extra (unneeded) maintainance cost of this incarnation of the feature this patch implements.
Well, perhaps I should have put it like this:
If only the developers were wise enough to see the value in the features this patch provides and give some feedback to the author on how it would need to be modified in order to be accepted into trunk some day, but alas it appears not to be.
Perhaps you only object to the "extra maintainance" (sic) and not the feature? It should be obvious from the length of this thread alone that having this feature in trunk would be desirable by many. Are you saying that if this feature were programmed in such a way as to not need this "extra maintainance" (sic), that its acceptance into trunk would be more likely? If so, would you perhaps have any suggestions for the patch author on the best way he might go about doing that?

Just trying to start a dialogue that may move this forward somehow.
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Frostregen »

Some reasons, why it will not be included into trunk (besides coding style etc..)(and it is OK this way...):

-Hard to maintain:
Every change to internal structures needs to be mirrored to copy&paste.
Since it copies nearly any map structure, this is quite always the case.
Currently I'm thinking of a new save format, which is somewhat more independent on
the map-structure, but it will not resolve those massive dependencies/code duplication.

-Current multi-command approach for pasting in multiplayer:
This is a design desicion, which make load&save work in multiplayer.
There is no satisfying solution to this problem.
(Dropping load&save is NOT very satisfying)
Or just no one had a good idea...


If there is a solution, or a better design, or something the devs will accept into trunk,
i will happily code it ;)


@Grolsch: Thx for the Statue :D
@Starbud: If I would provide .zip/.rar no one would switch to 7zip ;) (You can repackage/distribute yourself, if you really want. No problem with that. )
@Klaatu: I really hope someone will find a satisfying solution to those problems. (I have none)

Greetings, Frostregen
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by sulai »

Update to current revision for nomicIN.
Frostregen, hope you like to see it there =)
Attachments
copy_paste_r14471.patch
(44.01 KiB) Downloaded 177 times
Aali
Traffic Manager
Traffic Manager
Posts: 144
Joined: 01 Oct 2008 00:04
Location: Sweden

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Aali »

You missed the new files the patch is supposed to add, so your version doesn't work unless you grab those from another version of the patch.
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Bilbo »

Frostregen wrote: @Starbud: If I would provide .zip/.rar no one would switch to 7zip ;) (You can repackage/distribute yourself, if you really want. No problem with that. )
I remember packing my binary package here as .7z because of 2mb forum limit - only 7z was able to compress the binary package under that size :) Though in my case (large map patch) nobody complained.
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)
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

Hi There,

I have been trying to get this patch into my game with no success. I have Vista 64bit installed so I assume that the win32 installer is not going to work? I use the 64 bit OpenTTD installation as well.

I downloaded BuildOTTD and tried to compile the patch file, but BuildOTTD just gives me various errors.

Would someone be kind enough to either lay out for me in a step by step guide how to compile it and what all I would have to do, or provide a compiled version I can just install or add to the data folder whichever i need to do. I have no programming knowledge at all, so if writing a guide, please keep that in mind. :roll:

Thanks :D
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by DaleStan »

All Bran wrote:various errors.
1. Read the document in my sig about Useful Bug Reports.
2. Determine what you did wrong in your previous post.
3. Fix said problem.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

DaleStan,

I did not worry posting the specific errors due to noticing that the program was last updated sometime in 2007 the last time. I thought the program was perhaps replaced but was obviously incorrect in my assumption.

What I did :
1. Downloaded the .patch file from the first post. Version 0.6.3
2. Downloaded BuildOTTD
4. Installed BuildOTTD to C:\BuildOTTD
3. Run BuildOTTD
First error : The remote server returned an error: (404) Not Found.
Second error : Value cannot be null.Parameter name: items
4. Clicked on the "browse" button
5. Selected the "copy_paste0.6.3_v1.patch" file
6. Clicked "open"
7. Clicked "Purge"
Third error : InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index
Problem : I can't click on "Update and Compile" due to it being grayed out.

I'm not sure if I missed a step somewhere, if I was unclear about something just let me know.

Thanks :)
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Gremnon »

BuildOTTD hasn't been updated since before the server move, so it can't find the server. You can still use the command interface, usage of which is in this post, with some useful information in posts after it too.
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

Ok,

I used tib's patch pack(different thread i know) because i saw that was for a later nightly build than this patch, and also includes this patch.
So, what i have done so far is : Created a folder C:\OTTD. downloaded the r14004 nightly by using tortoisesvn's revision selection. I then applied the patch to that folder.

I then got this error:
"TortoiseMerge"
Could not open the file \dev\null\
I got that specific message about 12-15 times
After this I saved the file and quit TortoiseSVN.
I then copied the files to my C:\cygwin\usr\src\openttd\trunk directory.(which I made sure was empty)
I then fired up Cygwin.
At this point i entered /configure--disable-static and then cd't to the trunk directory
once there I entered "make clean" and got the following message

Code: Select all

$ make clean
/bin/sh: cmp: command not found
make[1]: Entering directory `/usr/src/openttd/trunk/objs/lang'
[LANG] Cleaning up language files
make[1]: Leaving directory `/usr/src/openttd/trunk/objs/lang'
make[1]: Entering directory `/usr/src/openttd/trunk/objs/release'
[SRC] Cleaning up object files
make[1]: Leaving directory `/usr/src/openttd/trunk/objs/release'
after which I tried to run "openttd.exe" to no avail which doesnt surprise me as that .exe does not exsist in the folder.

Can someone tell me where i went wrong and help me on the right path here please?

-edit forgot to mention - With trying to use the msys.bat file once I double clicked to open the command box opens a helluva lot of times, and then simply seems to crash and all the command boxes close at the same time. if I run it as administrator I get the following message in the command box :
Cannot find the rxvt.exe or sh.exe binary -- aborting.
press any key to continue

And thats as far as I got with that one :-P

-edit2 spelling
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Yexo »

All Bran wrote:once there I entered "make clean" and got the following message
Other things might have gone wrong too, but "make clean" actually removes all compiled files, including the executable. You should use "make" (without clean) instead.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 8 guests