Street Lights
Moderator: TTDPatch Moderators
Street Lights
The game places street lights in an limited area in towns, but is it possible with a patch feature to have that range extended to cover ALL town roads? And if so, is it possible to also have the street lights to turn up on ONE side of the road only?
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
- Redirect Left
- Tycoon
- Posts: 7418
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Yes, but that's because roads work in a different way. Lights generated by the game in the center of towns aren't driven over by road vehicles - pretty much in the same manor as you place tram tracks and their power lines without having those being runned over by neither trams nor road vehicles.Captain Kirk wrote:I believe TTD does not support lights, and also, buses and other vehicles would just run over the lights. (i think i heard this)
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
* I am not promising anything *
I'll have a look at the code tonight... but I'd say there is a simple calculation based on town size, etc... that TTD executes to work out how far 'out' the paved-areas/streetlights are to be placed... If that's all it is then one would assume that I could conjure up a GRF-Controlled-Bit(tm) that could enable you to 'have streetlights/pavements on every piece of road'.
You could then overwrite the applicable sprites to diable streetlights on one side of the road... but on ALL roads... not just in certain areas...
Currently, TTD only does the extra layers (Tree-Lined Roads, Pavement, etc...) for the 'built-up areas' and when it's just drawing normal roads it only calls one DrawSprite. Therefore it would be too much work (with respect to something classed as 'newroutes' that would negate any efforts here) to make 'basic roads' have any extra graphics.
Did I just make sense? I'll check it out later... time permitting...
I'll have a look at the code tonight... but I'd say there is a simple calculation based on town size, etc... that TTD executes to work out how far 'out' the paved-areas/streetlights are to be placed... If that's all it is then one would assume that I could conjure up a GRF-Controlled-Bit(tm) that could enable you to 'have streetlights/pavements on every piece of road'.
You could then overwrite the applicable sprites to diable streetlights on one side of the road... but on ALL roads... not just in certain areas...
Currently, TTD only does the extra layers (Tree-Lined Roads, Pavement, etc...) for the 'built-up areas' and when it's just drawing normal roads it only calls one DrawSprite. Therefore it would be too much work (with respect to something classed as 'newroutes' that would negate any efforts here) to make 'basic roads' have any extra graphics.
Did I just make sense? I'll check it out later... time permitting...
Isn't that something that newRoutes will be handling when its written, Steven?
~ Lakie
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Well, you certainly made it sound very interesting!stevenh wrote: Did I just make sense? I'll check it out later... time permitting...


Edit to add///
Oh, and so we don't misunderstand each other; with all roads I of course ment all TOWN ROADS, not country roads! The game adds pavement to all town roads, but the trees and the street lights are limited to the center of the town!
Oh well, I'm sure you already know that!

Last edited by SAC on 01 Nov 2006 23:28, edited 1 time in total.
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
More to the point... was it an acceptable answer?
Sac, did you want to have streetlights on only one side (though I don't see why, unless you intend on changing them into something else since they do 'draw' correctly behind vehicles) _everywhere_? or just in the areas outside the places where streetlights usually wouldn't be? (basic roads)
Sac, did you want to have streetlights on only one side (though I don't see why, unless you intend on changing them into something else since they do 'draw' correctly behind vehicles) _everywhere_? or just in the areas outside the places where streetlights usually wouldn't be? (basic roads)
It would in theory be possible to do this with a simple change, from what I remember of the Class2DrawLand function.
Which I annotated in the DOS Transport Tycoon Deluxe idb.
So it should be easy to find where it's done... for someone, just note that it means it will be removed in future when newRoutes appears.
~ Lakie
Which I annotated in the DOS Transport Tycoon Deluxe idb.

So it should be easy to find where it's done... for someone, just note that it means it will be removed in future when newRoutes appears.
~ Lakie
Last edited by Lakie on 01 Nov 2006 23:32, edited 1 time in total.
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Well, I'm sure it's a matter of opinions, but I'd prefer to have them on one side only. The things is, I added street lights to my new road set, on one side only, and even though I'm not THAT picky about vehicles driving over them, I'm sure others are bothered!stevenh wrote:More to the point... was it an acceptable answer?
Sac, did you want to have streetlights on only one side (though I don't see why, unless you intend on changing them into something else since they do 'draw' correctly behind vehicles) _everywhere_? or just in the areas outside the places where streetlights usually wouldn't be? (basic roads)

Anyway, I gave those street lights a certain size, (the arms), and I think it'll be too much to have them on both sides! So, yes, if it's possible - even though you can't promise anything - to have them on one side only I'd be very happy!
And no, I don't intend to use it for something else!


Would you care to enlighten me what this "newRoutes" means, and why a feature like the one requested in this thread would need to be removed in the future?Lakie wrote:just note that it means it will be removed in future when newRoutes appears.
~ Lakie
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Well, now that you've mentioned it...stevenh wrote:You've managed to conjure up some amazing stuff so far... it wouldn't surprise me if you'd thought of new things to put alongside the roads...![]()
Sorry, just kiddin'! I have no other plans at the moment!
Well, I'd say this side;Anyway... again I wont be the one to choose what side of the road you put the lights/etc on... that'll be done by you choosing how you overwrite the sprites![]()

The right side!

Last edited by SAC on 01 Nov 2006 23:40, edited 1 time in total.
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
It will be the newgrf system for rails and roads.SAC wrote:Would you care to enlighten me what this "newRoutes" means, and why a feature like the one requested in this thread would need to be removed in the future?Lakie wrote:just note that it means it will be removed in future when newRoutes appears.
~ Lakie
This is planned to include the ability graphics and new sprite layouts.

If you want to read more, check here on the wiki.
~ Lakie
Last edited by Lakie on 01 Nov 2006 23:50, edited 1 time in total.
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Thanks Lakie!
I'll read it right away!
...*runs off*...

I'll read it right away!
...*runs off*...
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
You didn't even replied to my devel post about the newmapsystem so don't make so sneaky remarksstevenh wrote:* No pain intended *
Yes, Lakie, that would be correct.
I was also told to hold off on Trams and wait for NewRoutes... luckily I chose to write that so people could enjoy it sooner.
*hides*


(And I won't stop you to actually start newroutes)
Who is online
Users browsing this forum: No registered users and 9 guests