Coding bridges

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Re: Coding bridges

Post by eis_os »

As the current code won't work, a temporary solution wouldn't be wrong. (It may be helpful to keep in mind that the grf action system will change so keeping the nfo commented may help a lot when redesigning... )

(The internal problem is that id 0 (would be the first bridge) is used everywhere in code to mark a free id :? for id allocation )
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Coding bridges

Post by FooBar »

Purno wrote:Sounds complicated. But if I understand correctly we're stuck with two options:
- Or we make our own complete bridgeset
- Or we ask an exisiting bridge set to support our metro and transrapid tracks
That is again correct.

It might be useful to create your own incomplete bridge set (eiter included in the 2cc set or as a seperate grf). The users who do not wish to use a complete bridge renewal set can then only use the metro and transrapid tracks (including bridges) and stick to the default bridges for the other track types.
Having such an incomplete set ready is also useful for other bridge set wishing to support metro and transrapid tracks: the existing code is then easily ported to another grf, especially if source code is available for use.


Little off-topic:
All transrapid track set sprites are done. They just need to be ported to all different terrain tiles. And yes, I'm supporting toyland this time. Below is a little preview of the three bridge types included in the set. The leftmost bridge is a somewhat default bridge used as a replacement for the more cheaper bridges which you probably don't buy anyways. The middle bridge has steel tracks and supports and is available in four colours. The rightmost bridge is a replacement for the tubular bridge(s) and available in three colours on openttd.
Attachments
Naamloos-1.png
Naamloos-1.png (12.48 KiB) Viewed 1094 times
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Coding bridges

Post by Ameecher »

Out of curiousity, won't a steel bridge break the maglev system somewhat? ;)
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Coding bridges

Post by FooBar »

No, I tested it and it works just fine :mrgreen:

No, seriously. Steel is just fine for maglev tracks. They even use steel tracks at the switch facilities, which in fact gets bended in order to switch between two (concrete) tracks.
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Coding bridges

Post by Ameecher »

Oh well you learn something new everyday... looking good :)
Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 14 guests