Page 1 of 1

Street Lights

Posted: 01 Nov 2006 08:35
by SAC
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?

Posted: 01 Nov 2006 12:32
by Redirect Left
I believe TTD does not support lights, and also, buses and other vehicles would just run over the lights. (i think i heard this)

Posted: 01 Nov 2006 12:55
by SAC
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)
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.

Posted: 01 Nov 2006 23:17
by stevenh
* 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...

Posted: 01 Nov 2006 23:22
by Lakie
Isn't that something that newRoutes will be handling when its written, Steven?

~ Lakie

Posted: 01 Nov 2006 23:24
by stevenh
* 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*

Posted: 01 Nov 2006 23:24
by SAC
stevenh wrote: Did I just make sense? I'll check it out later... time permitting...
Well, you certainly made it sound very interesting! :P Even though you don't make any promises, I sure look forward to anything you might come up with! :D

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! :P

Posted: 01 Nov 2006 23:26
by stevenh
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)

Posted: 01 Nov 2006 23:31
by Lakie
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. 8)
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

Posted: 01 Nov 2006 23:32
by SAC
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)
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! :P

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! :P What would that be? :roll:
Lakie wrote:just note that it means it will be removed in future when newRoutes appears.

~ Lakie
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?

Posted: 01 Nov 2006 23:34
by stevenh
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... :)

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 :?

Posted: 01 Nov 2006 23:39
by SAC
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... :)
Well, now that you've mentioned it...

Image

Sorry, just kiddin'! I have no other plans at the moment!
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 :?
Well, I'd say this side;

Image

The right side! :P

Posted: 01 Nov 2006 23:39
by Lakie
SAC wrote:
Lakie wrote:just note that it means it will be removed in future when newRoutes appears.

~ Lakie
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?
It will be the newgrf system for rails and roads.
This is planned to include the ability graphics and new sprite layouts. :)
If you want to read more, check here on the wiki.

~ Lakie

Posted: 01 Nov 2006 23:41
by SAC
Thanks Lakie! :P

I'll read it right away!

...*runs off*...

Posted: 02 Nov 2006 08:41
by eis_os
stevenh 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*
You didn't even replied to my devel post about the newmapsystem so don't make so sneaky remarks :!: :evil:
(And I won't stop you to actually start newroutes)