Page 1 of 9

American Road Replacement Set

Posted: 19 Feb 2013 09:48
by Andrew350
This is a personal project I've been working on since New Years Day, in an effort to make an OpenGFX-based American road set to use in my games. Yes, I know about NARoads, but as far as I can tell it's not made for OpenGFX, and there are a few quirks I've seen in screenshots that bug me. These reasons, among others, were enough for me to start a new set from scratch.
roadspreview2.png
roadspreview2.png (725.56 KiB) Viewed 55183 times
Anyway, as I'm also a fond user of OpenGFX+ Landscape, I've made the set completely compatible with it. If you use the Disable Gridlines feature or even Alpine Climate, American Roads will automatically match the surrounding landscape for a seamless look. There are no extra parameters to bother with, just be sure this GRF is placed BELOW OpenGFX+ Landscape or else it will not work. It will yell at you if you mix that up. ;) Of course, this GRF also works fine without OpenGFX+ Landscape. All climates are supported, as is left hand drive. I've taken some of the bridge sprites from OpenGFX and modified them to work with these roads, which are drawn a little wider than normal. I've also fixed a few alignment errors that exist in some OpenGFX bridges, so everything lines up correctly now. Plus there are a few other changes I've made for compatibility and whatnot.

This set is OpenGFX only. Use of other NewGRFs will be necessary to play with original TTD graphics or you will encounter glitches. I've tested back to OpenTTD 1.0.0 and everything works at least that far back, but I've not tried TTDPatch, as I don't use it. Maybe someone who does can try it.

I guess that's all there is to it, just plug and play. Hopefully someone else will enjoy it. :) American Road Replacement Set can also be found in the online content. Everything is licensed under GPLv2.

NEW! The set now features new tunnel sprites drawn by V453000.

======================
New in Version 2 - Dirt Roads! By default ARRS now supplies dirt and sett-paved roads before 1940. If 1940 isn't your preferred switch date, there's a new parameter available so you can adjust the year in which roads change over from dirt to asphalt. Any year within OpenTTD's range is possible; setting to 0 prevents dirt roads from ever appearing (old behavior), setting to 5000001 means roads will remain dirt forever, and anything in-between.

This version is compatible with previous releases - but be aware that upgrading to this new version in a running game before 1940 won't switch to dirt roads automatically, the grf will fallback to the old behavior, so the asphalt roads will remain. The only way to make previous saves switch to the new behavior is to have newgrf developer tools active and change the newgrf settings, which obviously should only be done with great caution ;). Enjoy.

---------------------------------------------------------------
Also, CLICK HERE for the Total Bridge Renewal Set version modified for these roads, or download it via the online content.
---------------------------------------------------------------

Re: American Road Replacement Set

Posted: 19 Feb 2013 11:15
by Axlrose
It does look nice - I'll have to fire up a game and give it a go.

Some ideas and suggestions based upon your preview graphics:
- Have a double yellow stripe (down the middle of the road) one tile before, across, and one tile after a bridge crossing.
- Have a double yellow stripe one tile in front of every road section making an intersection; it would be the last straight section that enters and forms into the intersection.
- Have a double yellow stripe one tile before at the entrance, through (though not seen), and one tile after at the exit after a tunnel crossing.
- Is it possible to have guard rails and the various traffic signals and signs as part of the package?
- And for those long stretches of roads through the woods, road kills? :twisted:

Alright, the last one would be a bit much, but to see a bus break down in the middle of nowhere because Bambi ran in front of it...

While I do not post much, I do read these boards frequently.

Re: American Road Replacement Set

Posted: 19 Feb 2013 13:10
by planetmaker
That looks quite awesome and integrates really well into the landscape :-)

Re: American Road Replacement Set

Posted: 19 Feb 2013 15:38
by Pyoro
Somehow I expected all kind of incompatibilities without OpenGFX, but I don't see any big problems with the classic baseset ;)
roads.png
roads.png (88.73 KiB) Viewed 57457 times
Shame I'm currently not playing any modern NA games. Really nice grf =)

Re: American Road Replacement Set

Posted: 19 Feb 2013 15:54
by Katve
NARoads is my favourite grf, but this is also very nice grf and I think this will be in my future games. :)

Re: American Road Replacement Set

Posted: 19 Feb 2013 16:00
by Chrill
Oh I really like this. It blends in smoothly with its surroundings. That's a given use in my next game.

Re: American Road Replacement Set

Posted: 19 Feb 2013 16:40
by wallyweb
I just tested in TTDPatch (TTDP). This file crashes TTDP. Without decoding the file into NFO code (no time at the moment) I can't trouble shoot this at this time. When I complete a couple of projects I'll return to look into this file, unless someone gets there before me. :D

Re: American Road Replacement Set

Posted: 19 Feb 2013 16:57
by michael blunck
wallyweb wrote:I just tested in TTDPatch (TTDP). This file crashes TTDP. [...]
Should use mostly action0A sprite replacement. Hm, it includes sprite numbers above 4984.

regards
Michael

Re: American Road Replacement Set

Posted: 19 Feb 2013 17:08
by Andrew350
Thanks everyone :)
Axlrose wrote:Some ideas and suggestions based upon your preview graphics:
- Have a double yellow stripe (down the middle of the road) one tile before, across, and one tile after a bridge crossing.
- Have a double yellow stripe one tile in front of every road section making an intersection; it would be the last straight section that enters and forms into the intersection.
- Have a double yellow stripe one tile before at the entrance, through (though not seen), and one tile after at the exit after a tunnel crossing.
- Is it possible to have guard rails and the various traffic signals and signs as part of the package?
- And for those long stretches of roads through the woods, road kills?

Alright, the last one would be a bit much, but to see a bus break down in the middle of nowhere because Bambi ran in front of it...
Unfortunately, there is no way to make the graphics change depending on what road piece is next, so making the double yellow work as you've suggested is not possible. In regard to signs and signals, that is an idea I certainly toyed with, but since they will be drawn over by vehicles it would look sort of ugly. At best that would be something for a parameter, of even an add-on set.
Pyoro wrote:Somehow I expected all kind of incompatibilities without OpenGFX, but I don't see any big problems with the classic baseset
Using TTRS-Style bridges and different tracktypes helps a lot, if you use the standard graphics the problems are much more clear.
michael blunck wrote:
wallyweb wrote:I just tested in TTDPatch (TTDP). This file crashes TTDP. [...]
Should use mostly action0A sprite replacement. Hm, it includes sprite numbers above 4984.
Is this something fixable?

Re: American Road Replacement Set

Posted: 19 Feb 2013 17:09
by planetmaker
Hm, indeed, it does.

Andrew350, you're using the "replace" command for some sprites which should be replaced by the "replacenew" command (as their sprite numbers are not guaranteed, see http://newgrf-specs.tt-wiki.net/wiki/NM ... ew_sprites ).

Namely it concerns the sprites for the one-way roads. This change should fix it:

Code: Select all

1045c1045
< replace replace_oneway_road_overlays (6075, "gfx/bridgesetc.png") {
---
> replacenew replace_oneway_road_overlays (ONE_WAY_ROAD, "gfx/bridgesetc.png") {

Re: American Road Replacement Set

Posted: 20 Feb 2013 05:47
by Andrew350
Okay, I've fixed that line and replaced the file above. Hopefully that was the only problem, if it works now I'll amend the readme and send it off to the fruit store. :)

Re: American Road Replacement Set

Posted: 20 Feb 2013 06:10
by wallyweb
It still fails with TTDP. What is the GRF version? 7 or 8?

Re: American Road Replacement Set

Posted: 20 Feb 2013 06:20
by Rubidium
wallyweb wrote:It still fails with TTDP.
Given the bit of code before I reckon it's written in NML. If it is a relatively new NML it could be any issue of:
  • Action 14 (if not using TTDP trunk >= r2334)
  • GRF info version 8
  • GRF container version 2
  • Or any newly introduced variable/operator/whatever in the last couple of years

Re: American Road Replacement Set

Posted: 20 Feb 2013 07:08
by Andrew350
Well...I'm using NML 0.2.4, if that helps. I'm pretty sure that's still GRF version 7, but that's the extent of my technical knowledge there.

Re: American Road Replacement Set

Posted: 20 Feb 2013 09:05
by planetmaker
Andrew350 wrote:Well...I'm using NML 0.2.4, if that helps. I'm pretty sure that's still GRF version 7, but that's the extent of my technical knowledge there.
Yes, that NML version should still produce NewGRFs with grf v7. Having looked at the code, I don't exactly see where the non-operability with TTDPatch r2334 or newer might come from - could be missing a case where replacenew would need using (but I don't see it) or could be something else, also in NML or even TTDPatch itself.

Re: American Road Replacement Set

Posted: 20 Feb 2013 22:33
by supermop
Looks great!

However the slopes seem to be sloped wrong. If assuming right-hand drive as shown in your screen shots, the slopes are marked to allow down hill traffic to pass but not uphill - where usually roads are marked to allow cars to overtake slower vehicles while traveling uphill.

What about changing the one-way overlay marker to give a yellow stripe at left shoulder and dashed white stripe in the center?

is it not possible to draw the tunnel background sprite to have a double yellow stripe? Do the bridge overlays come from the plain / and \ sprites, or are they separate?

Best,

Re: American Road Replacement Set

Posted: 21 Feb 2013 00:11
by Andrew350
supermop wrote:However the slopes seem to be sloped wrong. If assuming right-hand drive as shown in your screen shots, the slopes are marked to allow down hill traffic to pass but not uphill - where usually roads are marked to allow cars to overtake slower vehicles while traveling uphill.
While that is true on long uphill climbs, I drew the passing stripe under the assumption that it was not a very long grade, in which case passing is usually restricted going uphill due to visibility reasons, i.e. you can't see vehicles coming over the top of the hill. I understand how you can see it differently, though, especially if you're building a long uphill section. On major highways that have long uphill grades there even tends to be an extra lane added for overtaking, maybe that would be an idea for an overlapping NewObject akin to the ones from the Dutch Road Furniture set?
supermop wrote:What about changing the one-way overlay marker to give a yellow stripe at left shoulder and dashed white stripe in the center?
This was actually something I wanted to do originally, but it wouldn't work very well in the case of slopes and the fact that one way roads can't have intersections, which would lead to weird line mismatches. As it is one way roads look a bit odd with the stopping lines not being correct at intersections. :)
supermop wrote:is it not possible to draw the tunnel background sprite to have a double yellow stripe? Do the bridge overlays come from the plain / and \ sprites, or are they separate?
All of these sprites are indeed drawn seperately, so it is possible to draw a double yellow here. I realize passing on bridges and in tunnels is usually disallowed, plus I've already been asked about it, so maybe it is just better to go for realism in this case :)


P.S. The file is now up on Banananas (no changes though)

Re: American Road Replacement Set

Posted: 21 Feb 2013 06:28
by MinchinWeb
Thanks so much for sharing! I think they look amazing!

Re: American Road Replacement Set

Posted: 22 Feb 2013 11:07
by Nite Owl
Very Nicely Done !!

I will definitely be using this in some future games. Any chance of working it into the Total Bridge Replacement Set?

Re: American Road Replacement Set

Posted: 22 Feb 2013 11:12
by kamnet
TBRS doesn't detect road sets, the set would have to be re-compiled with a specific road set's graphics drawn onto each bridge sprite.