Street Lights

Got an idea for a new feature in TTDPatch? Post it here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
SAC
Tycoon
Tycoon
Posts: 1521
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Street Lights

Post 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?
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7418
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Post 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)
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
SAC
Tycoon
Tycoon
Posts: 1521
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Post 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.
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post 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...
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Isn't that something that newRoutes will be handling when its written, Steven?

~ 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."
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post 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*
User avatar
SAC
Tycoon
Tycoon
Posts: 1521
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Post 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
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
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post 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)
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post 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
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."
User avatar
SAC
Tycoon
Tycoon
Posts: 1521
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Post 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?
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Post 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 :?
User avatar
SAC
Tycoon
Tycoon
Posts: 1521
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Post 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
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
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post 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
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."
User avatar
SAC
Tycoon
Tycoon
Posts: 1521
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Post by SAC »

Thanks Lakie! :P

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
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post 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)
Post Reply

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 9 guests