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

User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Build Templates (Copy&Paste) (r10450 + 0.5.2)

Post by Bilbo »

Well, unfortunately I found out it is not possible to react on some keys, namely these:
- = \ [ ] ; ' , . /

I wrote a fix, called "Extra keyboard shortcuts" which fixes this and also adds few keyboard shortcuts (V for spawning new viewport, M for spawning map window ...), however, it is not yet accepted in trunk. But once it get accepted, it would be possible to react on all these keys.
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)
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re:

Post by Starbud »

Bilbo wrote: .....Also relatively often I toggle the "dynamite" button, so I think it deserves a shortcut too.
Isnt there a shortcut for dynamite?
I use the "d" button on my keyboard, or do you mean toggling to some function of dynamite that i'm not aware of?
"d" does not work when having a trainshedule up when pressing "d".
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: Re:

Post by DaleStan »

Starbud wrote:"d" does not work when having a trainshedule up when pressing "d".
That's because, when you've got a trainschedule up, [d] is the shortcut for "Skip order", of course.
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
User avatar
mamuf
Engineer
Engineer
Posts: 33
Joined: 30 Mar 2007 21:31
Location: Prague, CZ

Re: Re:

Post by mamuf »

Starbud wrote:
Bilbo wrote: .....Also relatively often I toggle the "dynamite" button, so I think it deserves a shortcut too.
Isnt there a shortcut for dynamite?
I use the "d" button on my keyboard, or do you mean toggling to some function of dynamite that i'm not aware of?
"d" does not work when having a trainshedule up when pressing "d".
He means the dynamite toggle on the Copy and Paste dialog, not the dynamite tool.
User avatar
goldfiction
Engineer
Engineer
Posts: 8
Joined: 06 Jun 2005 02:02
Location: Waterloo

Re: Build Templates (Copy&Paste) (r10450 + 0.5.2)

Post by goldfiction »

Two suggestions:
1. Can people post their template files? Or did I overlook some postings? I posted mine. It's a small collection but I used them a lot.
2. Can people start to host internet games using this new version? Is this copy&paste making a whole new version of openttd nightly? I can't seem to find any internet servers using this version. I really don't want to give up neither online game nor copy&paste function.
Attachments
tmpl.zip
some tmpl files I made
including: clover, t-junc, 2x terminal tracks ...
(2.5 KiB) Downloaded 117 times
Adopt a rabbit and get a free elephant.
--the Simpsons.
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Build Templates (Copy&Paste) (r10450 + 0.5.2)

Post by Bilbo »

goldfiction wrote:Two suggestions:
1. Can people post their template files? Or did I overlook some postings? I posted mine. It's a small collection but I used them a lot.
2. Can people start to host internet games using this new version? Is this copy&paste making a whole new version of openttd nightly? I can't seem to find any internet servers using this version. I really don't want to give up neither online game nor copy&paste function.
Well, I think you're first who posted some templates.

As to the compatibility, openttd with copy & paste patch is fully compatible with same version of openttd without the patch (in multiplayer too). So this is not a problem :)
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)
Tom0004
Chairman
Chairman
Posts: 822
Joined: 01 Jul 2007 22:33
Location: Manchester, UK

Re: Build Templates (Copy&Paste) (r10450 + 0.5.2)

Post by Tom0004 »

you the first to post templates, but this has came up on page 16 before

so i'll again tell people there was a saved game made, with junctions,

so you can just load the game copy and save the junctions

save game can be found in this thread
User avatar
goldfiction
Engineer
Engineer
Posts: 8
Joined: 06 Jun 2005 02:02
Location: Waterloo

quick link button

Post by goldfiction »

Is it possible for Copy&Paste to have quick link buttons? When I try to paste two kinds of templates, I have to keep switching the files. If there are 5 quick link buttons, each can be set to a different templates, it will be way faster than loading different files over and over again.

Also, I am eagerly waiting for the copy&paste to come up 0.5.3 version. Or we have to wait for 0.5.3 finalized?
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: quick link button

Post by Bilbo »

goldfiction wrote:Is it possible for Copy&Paste to have quick link buttons? When I try to paste two kinds of templates, I have to keep switching the files. If there are 5 quick link buttons, each can be set to a different templates, it will be way faster than loading different files over and over again.

Also, I am eagerly waiting for the copy&paste to come up 0.5.3 version. Or we have to wait for 0.5.3 finalized?
The patch for 0.5.2 will probably work in 0.5.3-rc2, as these two differ basically only by few bugfixes. But you have to compile it yourself :)

I may post here win32 binaries, IF I figure out why 0.5.3 configure can't find zlib, while nighly have no trouble with it.

Some "quick links" button would be nice, as I often use few templates repetitively.
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)
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Re: Build Templates (Copy&Paste) (r10450 + 0.5.2)

Post by Frostregen »

Currently I'm waiting for orudge, if he finds a way to re-enable attachement-updating within this forum.

Expect the precompiled 0.5.3-rc2 sometime around this weekend. (Too hot here to do anything productive atm ;))
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Build Templates (Copy&Paste) (r10450 + 0.5.2)

Post by Bilbo »

I thought of one ... design flaw that is present in the copy & paste patch.

One of templates I use often is a depot block - I insert it over double tracks avery few squares to have service centers along the line.

But problem is, that the corner square (marketd yellow in the picture) is used as base for height of the depot. While "logical" would be to use the one marked blue for example. I think the patch have no chance in correctly guessing which one is the desired centerpoint, but I think user should be able to set the centerpoint manually - to decide which tile in the template is to be used as center

As shown in the example, for track in valley, I can't insert the template directly for it to work, I have to dig unnecessary hole to that it will be inserted properly.
Attachments
Depot block
Depot block
depot-block_N.png (33.53 KiB) Viewed 2425 times
Inserting the block directly to track in valley will fail
Inserting the block directly to track in valley will fail
inserting_directly_fails.png (16.11 KiB) Viewed 2424 times
I have to dig "unnecessary" hole to insert the block properly
I have to dig "unnecessary" hole to insert the block properly
have_to_dig.png (19.43 KiB) Viewed 2423 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)
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Re: Build Templates (Copy&Paste) (r10649 + 0.5.3-rc2)

Post by Frostregen »

Ok, 0.5.3-rc2 is available.

The quick-link-buttons seem like a good idea,
although i don't use copy&paste *this* often.

Any gui ideas for this?
5 buttons in a row.
left click activates the template, and rightclick saves the current template onto the button?

Better ideas anyone?


About the reference tile problem:
I think I could just search the borders of a template in circles inwards, till i find a track/road. if this track points to the center, it will be considered the reference tile, else the search continues. If no track can be found, it will be the same tile as curently.

I'm looking into a way to change the color of the reference tile, just like in your images.

Expect something around next WE. Lack of time currently :(
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Build Templates (Copy&Paste) (r10649 + 0.5.3-rc2)

Post by Bilbo »

Frostregen wrote:About the reference tile problem:
I think I could just search the borders of a template in circles inwards, till i find a track/road. if this track points to the center, it will be considered the reference tile, else the search continues. If no track can be found, it will be the same tile as curently.

I'm looking into a way to change the color of the reference tile, just like in your images.

Expect something around next WE. Lack of time currently :(
Yes, the result of looking for proper track in circle around edge will probably give good results most of the time. although I can think still of few cases when you may want some other tile to be the reference tile (sometimes a tile in the middle actually would be useful :). I think four extra buttons to move the reference tile up/down/left/right in the current thing will do the job fine. Then you'll copy something and if you're unhappy with the reference tile, you use these 4 buttons to move it anywhere you desire.
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)
smoovi
Engineer
Engineer
Posts: 4
Joined: 06 Aug 2007 08:55

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by smoovi »

I want to compile the patched sources but do not understand which version ist the right for your r10791 because there isnt a r10791
http://nightly.openttd.org/source/

Compiling 0.5.2 and 0.5.3-rc2 functioned.
User avatar
rav
Traffic Manager
Traffic Manager
Posts: 253
Joined: 17 May 2007 13:36
Location: Netherlands
Contact:

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by rav »

smoovi wrote:I want to compile the patched sources but do not understand which version ist the right for your r10791 because there isnt a r10791
http://nightly.openttd.org/source/

Compiling 0.5.2 and 0.5.3-rc2 functioned.
use the one closest to r10791 :)
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by MeusH »

Speaking of reference tile:
How about picking it when saving a template? Ctrl+click maybe?
This way you won't need to write sophisticated loops, and computer won't need to process it. User will decide which tile is a reference tile
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by Starbud »

I like that idea.
According to me that would be the most useful way of doing it :)
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
User avatar
mamuf
Engineer
Engineer
Posts: 33
Joined: 30 Mar 2007 21:31
Location: Prague, CZ

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by mamuf »

smoovi wrote:I want to compile the patched sources but do not understand which version ist the right for your r10791 because there isnt a r10791
http://nightly.openttd.org/source/

Compiling 0.5.2 and 0.5.3-rc2 functioned.
Why don't you checkout the proper revision from SVN repository? If you use Windows, try TortoiseSVN. It is Explorer extension (accessible via file/folder contect menu) and pretty easy to use.
smoovi
Engineer
Engineer
Posts: 4
Joined: 06 Aug 2007 08:55

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by smoovi »

I do not use windows

i just want to know on which versions he build up his patches for. so svn seems the answer :p
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Re: Build Templates (Copy&Paste) (r10791 + 0.5.3-rc2)

Post by Frostregen »

exactly ;)


@MeusH:
I can't think of a nice how this should be done...

Best thing would be some copy&paste preview window (something like the eyecandy patch)
in which you could move the reference tile.

Or how should your proposed CTRL+click work? (where would you click??)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 18 guests