NotRoadTypes

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

Post Reply
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5649
Joined: 31 Mar 2007 14:23
Location: Lost in Music

NotRoadTypes

Post by andythenorth »

Some said it couldn't be done. Some said it wouldn't be done. Some said it shouldn't be done.

Draft newgrf docs https://wiki.openttd.org/Frosch/NotRoadTypes

OpenTTD builds and forked repo
https://www.openttd.org/en/download-ratt
https://github.com/andythenorth/NotRoad ... tram-types

NML fork
https://github.com/andythenorth/nml-and ... tRoadTypes

Windows binary for NML: http://devs.openttd.org/~frosch/nml-nrt ... -win32.zip

Patched Road Hog grf attached, with 2 road types and 2 tram (light rail) types, and some vehicles to suit each.

frosch and Wolf patched OpenTTD, I patched a bit of nml and the Road Hog grf. Thanks also to Alberth and Eddi amongst others :D

This isn't done-done-done, but a lot of it is there.
  • grfcodec appears to work as expected with no changes needed
  • (nfo)renum does not work currently, and as yet, there is currently plan to fix it
  • no support
  • GUI icons only present when using original baseset graphics, OpenGFX and other basesets will need updated
  • it will break your savegames
  • don't load the patched Road Hog grf in vanilla OpenTTD, it will report an error
  • there's no timeline for moving this to trunk, asking will only slow it down ;)
Do please report any asserts or graphical glitches, cheers :)
road-hog.tar
(2.44 MiB) Downloaded 1679 times
Road, Heavy Haul Road, Tram, Electrified Tram
Road, Heavy Haul Road, Tram, Electrified Tram
NRT-screenshot.png (496.63 KiB) Viewed 38960 times
Last edited by andythenorth on 20 Mar 2017 19:29, edited 4 times in total.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Re: NotRoadTypes

Post by Wolf01 »

I want to thank andythenorth and frosch123 for the work done together, Alberth and Eddi for the support.
I started this project with Andy to see if it could really be done, and it really happened, mainly thanks to frosch which carried out the most difficult parts :wink:
J0anJosep
Traffic Manager
Traffic Manager
Posts: 139
Joined: 06 Aug 2011 15:51
Location: Spain

Re: NotRoadTypes

Post by J0anJosep »

Looks great! Great work! :smile:
Formerly known as Juanjo
zooks
Transport Coordinator
Transport Coordinator
Posts: 262
Joined: 29 Jun 2006 08:36

Re: NotRoadTypes

Post by zooks »

Amazing news! Looking forward to testing it!
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: NotRoadTypes

Post by wallyweb »

andythenorth wrote:Patched Road Hog grf attached, with 2 road types and 2 tram (light rail) types, and some vehicles to suit each.
The heavy road loads and works.
I am not seeing any tram menu options.
If this is a bug, what would you like from me to help resolve it?
If this is not a bug, what would I need from you to help resolve it?
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: NotRoadTypes

Post by wallyweb »

andythenorth wrote:
wallyweb wrote:I am not seeing any tram menu options.
Screenshot the main toolbar? :) (Do you see the new tram/light rail icon?)
What I see is a "?" icon between the "build roads" and "build airports" icons.
The tool tip says it is "build ship docks".
While awating your reply I explored that "?". Those ship docks look an awfful lot like tram stuff.
1000_Words.png
1000_Words.png (18.04 KiB) Viewed 38852 times
EDIT: The real "build docks" icon has that "build airports" tool tip.
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: NotRoadTypes

Post by adf88 »

Marvelous work! We needed this.

Minor bug:
2016-12-26-114608_1280x800_scrot.png
2016-12-26-114608_1280x800_scrot.png (33.22 KiB) Viewed 38851 times
Tram on the left stopped, as expected. Tram on the right is reversing.
:] don't worry, be happy and checkout my patches
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: NotRoadTypes

Post by NekoMaster »

Nice, interesting to finally see some work on Road Types... sorta

Honestly though what I've always wanted with road types is slow and fast roads. Towns would build "City Roads" that are limited to 40-50 Km\h but the player can build slower or faster roads depending on their budget and needs. This way there would be a reason for players to build faster more expensive road types if they want to provide the best intercity service (Like building a 100+ Km\h Highway to allow faster trucks and coach busses to get from city to city quickly)

Oh well, maybe its too early to be thinking about stuff like that. I wonder if its even possible to add speed limits to road types like NuTracks did for Rail Types.
adf88 wrote:Marvelous work! We needed this.

Minor bug:2016-12-26-114608_1280x800_scrot.pngTram on the left stopped, as expected. Tram on the right is reversing.
They're electric trams are they not? The Trams on the lower right are reversing at the end of the electric tramline as theres nothing to power them past that point

EDIT : Only steam trams can run on "Tram Ways" while the other trams will need to run on "Electric Tram Way"
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: NotRoadTypes

Post by adf88 »

Yes, yes. Electric.
I would expect that the second tram stops too. There is no reverse loop.
:] don't worry, be happy and checkout my patches
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: NotRoadTypes

Post by NekoMaster »

adf88 wrote:Yes, yes. Electric.
I would expect that the second tram stops too. There is no reverse loop.
Yeah but it would seem like for gameplay sake Trams can reverse at the end of a line and at the end of their compatible tram way type (or when a player forces them to reverse
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5649
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: NotRoadTypes

Post by andythenorth »

wallyweb wrote:While awating your reply I explored that "?". Those ship docks look an awfful lot like tram stuff
As per first post, the various alternative baseset grfs need updating for the tram toolbar icon :)

OpenGFX will need an update, but it's not very actively maintained currently ;)
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: NotRoadTypes

Post by wallyweb »

andythenorth wrote:As per first post, the various alternative baseset grfs need updating for the tram toolbar icon :)
You mean the line where you used italics for emphasis so that we would think its important or somesuch? :roll:
OpenGFX will need an update, but it's not very actively maintained currently ;)
WHAT? Do they think this is Christmas or something? :twisted:
:lol:
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: NotRoadTypes

Post by adf88 »

wallyweb wrote:What I see is a "?" icon between the "build roads" and "build airports" icons.
andythenorth wrote:OpenGFX will need an update, but it's not very actively maintained currently ;)
As a temporary solution use this GRF
nrtgraphics.grf
(2.02 KiB) Downloaded 1254 times
:] don't worry, be happy and checkout my patches
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: NotRoadTypes

Post by Leanden »

Yay, glad to see this finally coming to fruition in one form or another :D
Image
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: NotRoadTypes

Post by Supercheese »

It's a Christmas miracle! :P
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
bokkie
Transport Coordinator
Transport Coordinator
Posts: 327
Joined: 19 Jan 2007 19:26

Re: NotRoadTypes

Post by bokkie »

Nice to see some action :) don't visit the forum often anymore but I always look around Christmas and April 1st. Good luck on the remaining steps!
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: NotRoadTypes

Post by wallyweb »

andythenorth wrote:Some fixes went in on Dec 26th and 27th. https://github.com/andythenorth/NotRoad ... tram-types
Change: added missing tramway construction tooltip for the main toolbar
:D

Question: Is it intentional that a vehicle built in a road type's depot be restricted to travel only on that road type?
If yes, that is unrealistic and will result in the player having to build a lot of unrealistic transfer stations.
Think of a supplies truck built in a town, collecting supplies in a suburb, accessing a highway to another town, exiting that town onto a paved rural road which connects to a dirt/gravel road that leads to a mine, the destination for the supplies. To have a road type specific depot is fine, but roads, stops and stations should be open to any vehicle.
Hopefully the only dfference between road types would be graphics and maximum speeds where a fast vehicle on a slow road would be speed restricted to the road's maximum.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 6 guests