Convert whole line at once

Got an idea for a new feature in TTDPatch? Post it here.

Moderator: TTDPatch Moderators

Post Reply
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Convert whole line at once

Post by MJS »

Converting a single line from non-electrified to electrified is a lot of work. Wouldn't it be useful to be able to convert a whole line (= a complete set of connected track) at once? I don't know a thing about coding, but possibly TTD already knows if I click one piece of track which other parts of track on the map are connected to this one. Or if it doesn't, it could work its way out from a single piece of track I click.
User avatar
Dave
Moderator
Moderator
Posts: 17243
Joined: 26 Dec 2005 20:19
Location: North London

Post by Dave »

Read the manual about cheats.

http://wiki.ttdpatch.net/tiki-index.php ... Conversion

What you want is:

cht: tracks 1 0

Hope this helps.
Official TT-Dave Fan Club

Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr


Why be a song when you can be a symphony? r is a...
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

Well that converts all tracks at once.
It would be neat if you could convert only those tracks that are actually connected to each other. This way you could manually convert the tracks easily, even just a part of a huge network if you delete a few pieces of track that connect to the parts you don't want to convert.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Post by MJS »

Exactly, Rob, that's what I meant. Especially because I want to electrify my main network, for passengers, but the separate goods lines are fine with diesels.
User avatar
Dave
Moderator
Moderator
Posts: 17243
Joined: 26 Dec 2005 20:19
Location: North London

Post by Dave »

Ah yes. Very true.

Many apologies, MJS.
Official TT-Dave Fan Club

Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr


Why be a song when you can be a symphony? r is a...
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Post by MJS »

No problem, it's often difficult to catch someone's drift straightaway.
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

See, I wouldn't mind if it was implemented as we have auto-signals now - ie, it builds a signal every X tiles until it hits a junction/bridge/station etc. If we could replicate those conditions, ie it electrifis until it hits a station/bridge/junction etc, then it would be far easier than doing everything connected (simply because my networks area lways all connected :tongue:)
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Post by ISA »

Raichase wrote: (simply because my networks are always all connected :tongue:)
Same here ;) so supporting Raichase idea :)
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

OTTD got a feature you can just drag and drop tiles to convert. Quite a good method IMO.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Dave
Moderator
Moderator
Posts: 17243
Joined: 26 Dec 2005 20:19
Location: North London

Post by Dave »

Purno wrote:OTTD got a feature you can just drag and drop tiles to convert. Quite a good method IMO.
Well you can drag and drop diagonals now, so it sort of works in TTDP too. I figure MJS wants a one-click conversion, which is fair enough - especially if he has a large network.
Official TT-Dave Fan Club

Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr


Why be a song when you can be a symphony? r is a...
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

OTTD can drag a complete tile, meaning you can do a tile with an intersection with one drag. You don't have to build the railpiece in every direction :wink:
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Purno wrote:OTTD can drag a complete tile, meaning you can do a tile with an intersection with one drag.
Er, you can with TTDP as well. In fact, it is impossible to have two different rail types on one tile.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Drag and drop all tiles? Independant of the direction the track is layed on tiles?

Ok, if that's possible, I guess MJS's suggestion isn't worth the effort of coding, since the OTTD way is good enough, IMO.
PikkaBird wrote:In fact, it is impossible to have two different rail types on one tile.
That's why you convert tiles in once, most probably :tongue:
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Post by MJS »

I don't agree with Purno that it wouldn't be useful to have a one-click (or two-click) conversion, but it's true that dragging makes it easier. My main problem is that I tend to forget bits, and that causes jams easily. Or, that I get lazy and use the cheat that Dave mentioned above, which looks ugly on the freight lines with only diesels...
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

If you don't have too many diesel-only lines you could of course convert them back manually, which wouldn't give any problems if you forget a piece. :wink:
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Raichase wrote:See, I wouldn't mind if it was implemented as we have auto-signals now - ie, it builds a signal every X tiles until it hits a junction/bridge/station etc. If we could replicate those conditions, ie it electrifis until it hits a station/bridge/junction etc, then it would be far easier than doing everything connected (simply because my networks area lways all connected :tongue:)
That would probably be relatively easy to do. The problem with the original suggestions is figuring out what exactly constitutes as "line". However, making it work like autosignals would be feasible.

But don't hold your breath yet...
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest