Feasibility of additional road types?

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Feasibility of additional road types?

Post by Roujin »

Well I think it's better to present the devs some working code and ask them what they think about it, than just telling them "I want this and that on the roadmap, please".

I've done some initial coding, there's now a gui for trails (without stations, depot, bridge, tunnel and oneway for now. For the long term, I think there should be stations for trails; depot, bridge and tunnel should be an icon in the GUI, but construct the road ones instead (dirt bridges? dirt tunnels? no no...) and oneway should not exist for trails.)

It would be fine to have some graphics now (even if it's just a rough sketchup) - as you can see the icons used in the gui and the cursor are the tram ones for now and the trail can actually already be built in game, but lacks any graphics and thus creates those glitches ;)

edit: forgot to attach screenshot
Attachments
trails wip 1.png
trails wip 1.png (77.99 KiB) Viewed 1525 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Feasibility of additional road types?

Post by andythenorth »

Roujin wrote:Well I think it's better to present the devs some working code and ask them what they think about it, than just telling them "I want this and that on the roadmap, please".
Yes, good point.

re: graphics, I'll see what I can create now.
User avatar
DanMacK
Tycoon
Tycoon
Posts: 3906
Joined: 27 Feb 2004 20:03
Location: Ontario, Canada
Contact:

Re: Feasibility of additional road types?

Post by DanMacK »

:shock: Awesome :D I'm really looking forward to this now. Cobblestone streets in towns, trails between towns, horses plying trails... :D

Early street railways were actually built along dirt roads, so theoretically, tram tracks could be built on trails...
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Feasibility of additional road types?

Post by Roujin »

For now I've set it up to use tram graphics, better than drawing nothing at all causing a lot of glitches.

Here you can see a "trail" (=tram without overhead wires) crossing a tram track.
Attachments
Funnville Transport, 18th Jan 1950.png
Funnville Transport, 18th Jan 1950.png (101.76 KiB) Viewed 1493 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Feasibility of additional road types?

Post by andythenorth »

Roujin wrote:For now I've set it up to use tram graphics, better than drawing nothing at all causing a lot of glitches.
EDIT (3): I've done sprites 0-22. I'll stop now but I'll be interested to see how they look in game - not sure if they'll tile correctly first time round.
trails.pcx
(89.88 KiB) Downloaded 161 times
(Also not sure if the PCX output from photoshop is working right, so am including a PNG)
trails.png
trails.png (28.62 KiB) Viewed 1406 times
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Feasibility of additional road types?

Post by Roujin »

well, bad news (sort of):

I've talked to Rubidium on irc and he raised some issues about this. While he generally does like the idea of additional road types, he stated that a rewrite of the system should be done before adding additional road types.

The point is that currently, a third road type would be possible, but not more. And if we implement trails, then someone shows up and says he wants highways now. Or another type of tram. Or....
The aim he had was to allow up to 5 types of roads and 4 types of trams, with the tradeoff of not being able to have a combination of multiple types of roads on one tile.

Well, I can continue and make a patch for now, but it won't be added to trunk as it is. And there won't be support for newGrfs to specify if they can go on trails or not, so it'll be just eyecandy :(

But maybe we can inspirate Rubidium a bit to start that rewrite, or I can do a part of it.
For now, I'll continue with your sprites. I've noticed that I forgot the autotrail icon and cursor. You can find the road and tram ones included in this file: svn://svn.openttd.org/extra/ottd_grf/split/openttdgui.pcx
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Feasibility of additional road types?

Post by andythenorth »

Roujin wrote: I've talked to Rubidium on irc and he raised some issues about this.[snip]The point is that currently, a third road type would be possible, but not more. And if we implement trails, then someone shows up and says he wants highways now. Or another type of tram. Or....
That is disappointing for adding the feature quickly, but not surprising. I run a commercial software business, and we use the standard coding tactic of 'if you need 2, write 2, if you need more than 2, make it generic'.

In the long run it is better to have a good framework for adding road types. It's less political and avoids restrictions in the codebase that would harm future gameplay possibilities.
Roujin wrote:But maybe we can inspirate Rubidium a bit to start that rewrite, or I can do a part of it.
That would be really great if we could. Obviously I want to see trails in the game, but I would rather see a more useful and interesting architecture for RVs throughout the game. Judging by the response to GRVTS, and the Heavy Equipment teasers, I think there are a good number of players who would really like to use RVs better in gameplay.
Roujin wrote:For now, I'll continue with your sprites. I've noticed that I forgot the autotrail icon and cursor. You can find the road and tram ones included in this file: svn://svn.openttd.org/extra/ottd_grf/split/openttdgui.pcx
Thanks for helping with this Roujin. I'll mod those sprites and post them here sometime today.

Also, I guess we should move this discussion to the OTTD development forum sometime?
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Feasibility of additional road types?

Post by Roujin »

Yes, I'll create a thread in the development section..

edit: http://www.tt-forums.net/viewtopic.php?f=33&t=38108
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Batti5
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 06 Aug 2007 17:37

Re: Feasibility of additional road types?

Post by Batti5 »

Speed Limited roads, my suggestion is that roads whith auto-speed limits

the forest/country roads at 20-40kmph (because bad cheep roads) there cloud be special cars to run faster, like land rovers, tractors, heavy equipments.
Standard national road 130kmph, 90kmph in city's, normal passager cars, buses, trucks,
Highways 320kmph or more
Wish to earn some money for free just by viewing some advertisment? Click this banner for more info.
Image
It is Legal.
User avatar
ostlandr
Chairman
Chairman
Posts: 882
Joined: 12 May 2007 01:09
Location: Northeastern USA

Re: Feasibility of additional road types?

Post by ostlandr »

This could be addressed via newgrf by "borrowing" some code from narrow gauge rails. ngrails.grf changes the sprites for either regular, electric, monorail, or maglev to narrow-gauge rails. Then you need a grf with narrow gauge trains to run on the rails.

Doing it this way, you could set a parameter to have "trails"replace either regular roads, tram tracks, or the currently unoccupied highway slot. If somebody else wants to go ahead and draw & code Autobahn/Motorway/Freeway sprites into a "Highway" grf, great. Then it will be up to the user which combination they want (possibly by climate, as with some grfs.) When and if trunk gets rebuilt to allow more road types, then the grfs can either be incorporated into trunk or altered so that any or all can be used in the game.

Tram tracks (or heavy rail, for that matter) can coexist with dirt roads/streets. In that situation, the ties/sleepers are buried so that the new road surface is level with the top of rail. A board is fastened to the ties/sleepers on the gauge side of each rail, to keep the dirt from filling in the flangeway. Not fun for the poor farmer whose cart wheel just got stuck in the streetcar track, but it was done. Here's a pic:

http://www.cable-car-guy.com/images/omn ... rk_001.jpg

Anyway, it would need some serious coding to make it work, but I would love it, especially with the new 1800s vehicle sets coming out.
Who is John Galt?
Batti5
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 06 Aug 2007 17:37

Re: Feasibility of additional road types?

Post by Batti5 »

Highway, freeways,
bridges with road and rail in the middle,
ParingaBridgeApproachFromRenmark.jpg
(973.16 KiB) Downloaded 91 times
Streets in city's with speed limit 90kmph and main line non-city road running next or trough city`s WITH!!!!! up to 130kmph limits

Avenues, 4 lane roads, (non-car roads and bigger parks, for eye candy), intersections, green lanes, medians, milestones, Pedestrian crossing, Traffic calming,
traffic lites
Last edited by Batti5 on 28 Oct 2008 13:59, edited 1 time in total.
Wish to earn some money for free just by viewing some advertisment? Click this banner for more info.
Image
It is Legal.
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: Feasibility of additional road types?

Post by Mchl »

Do you have some OS plugin that replaces 'with' with 'WITH!!!!!' every time you type it?
User avatar
JamieLei
Tycoon
Tycoon
Posts: 7432
Joined: 10 Jan 2007 18:42
Location: Stratford, London

Re: Feasibility of additional road types?

Post by JamieLei »

Batti5 wrote:brides WITH!!!!! road and rail in the middle
You want to marry a bride with a road and rail in the middle?
Whatever floats your boat I guess ;)
Any opinions expressed are purely mine and not that of any employer, past or present.
Batti5
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 06 Aug 2007 17:37

Re: Feasibility of additional road types?

Post by Batti5 »

Do you have some OS plug-in that replaces 'with' with 'WITH!!!!!' every time you type it?
No, i dot`t know how that happens
Wish to earn some money for free just by viewing some advertisment? Click this banner for more info.
Image
It is Legal.
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Feasibility of additional road types?

Post by CommanderZ »

Batti5 wrote:Highway, freeways,
brides WITH!!!!! road and rail in the middle,
ParingaBridgeApproachFromRenmark.jpg
Sorry, it is sidewalk, not rail in the middle of that pic ;)
Batti5
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 06 Aug 2007 17:37

Re: Feasibility of additional road types?

Post by Batti5 »

it is just an example, i coudent find a better pic
Wish to earn some money for free just by viewing some advertisment? Click this banner for more info.
Image
It is Legal.
User avatar
AndersI
Tycoon
Tycoon
Posts: 1732
Joined: 19 Apr 2004 20:09
Location: Sweden
Contact:

Re: Feasibility of additional road types?

Post by AndersI »

Batti5 wrote:
Do you have some OS plug-in that replaces 'with' with 'WITH!!!!!' every time you type it?
No, i dot`t know how that happens
I think it's built into the Forum software - if you spell with the wrong way, putting 'h' after the 'w', it will automatically be replaced.

Testing: with WITH!!!!!

Edit: Yep, that was it. As it is replaced already in the Preview window, it should be quite easy to detect before pressing Submit...
Batti5
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 06 Aug 2007 17:37

Re: Feasibility of additional road types?

Post by Batti5 »

Testing
old way: WITH!!!!!
New way: with

Now Better?
Wish to earn some money for free just by viewing some advertisment? Click this banner for more info.
Image
It is Legal.
User avatar
orudge
Administrator
Administrator
Posts: 25223
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Re: Feasibility of additional road types?

Post by orudge »

the "w hit" -> "WITH!!!" thing was a result of a forum user who was *always* misspelling "with" several years ago. The filter was never removed, I guess. ;)

Anyway, this trails thing looks most spiffing, hopefully people can come up with a more generic manner of adding road types in OpenTTD, so we can see this feature in-game properly. :)
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Re: Feasibility of additional road types?

Post by Brianetta »

orudge wrote:the "w hit" -> "WITH!!!" thing was a result of a forum user who was *always* misspelling "with" several years ago. The filter was never removed, I guess. ;)

Anyway, this trails thing looks most spiffing, hopefully people can come up with a more generic manner of adding road types in OpenTTD, so we can see this feature in-game properly. :)
So, we can't mention Ian Banks' novel, "WITH!!!!!." We'd also better be careful when mentioning the holidays around Pentecost, particularly WITH!!!!! Sunday - and associated events, such as the WITH!!!!! Walks in and around Manchester. Never mind; who cares a WITH!!!!! about WITH!!!!!?
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 2 guests