Custom Bridgeheads

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Custom Bridgeheads

Post by peter1138 » 12 Aug 2005 20:54

Something else I knocked up today...

Image

Image

User avatar
StavrosG
Traffic Manager
Traffic Manager
Posts: 202
Joined: 13 Dec 2004 21:13
Location: Rodos, Greece
Contact:

Post by StavrosG » 12 Aug 2005 20:56

yay! that was near the top in my wish list for ages! :D
If ain't broken, don't fix it. | JabberID: stavrosg@jabber.org

Hello, I am a signature virus. Please copy me to your signature to help me spread.

User avatar
Arsenal
Traffic Manager
Traffic Manager
Posts: 227
Joined: 06 Jan 2004 21:25

Post by Arsenal » 12 Aug 2005 22:29

Beautiful, just beautiful!

Must be close for beta testing, perhaps? :roll:

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 12 Aug 2005 22:44

There is a patch! This is two patches combined.

http://fuzzle.org/ottd/custombridgeheads2.diff

I've just fixed a little bug in it, but there may be more :S
Oh, and this patch is just for rail/monorail/maglev. For road bridges, wait a little while :)

User avatar
Dextro
Chief Executive
Chief Executive
Posts: 701
Joined: 12 Jan 2005 21:56
Location: Lisboa, Portugal
Contact:

Post by Dextro » 12 Aug 2005 22:57

YOU RULE PETER!!!!! :bow:

This will make my junctions a LOT smaller :D
Uncle Dex Says: Follow the KISS Principle!

User avatar
Arsenal
Traffic Manager
Traffic Manager
Posts: 227
Joined: 06 Jan 2004 21:25

Post by Arsenal » 13 Aug 2005 00:10

Graphical glitch:
Attachments
bridgehead2.png
bridgehead2.png (27.75 KiB) Viewed 25365 times

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 13 Aug 2005 08:47


Aegir
Tycoon
Tycoon
Posts: 2749
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir » 13 Aug 2005 09:15

Wooteh.

Nice Peter, nice. You seem to be making a habit of slowly whittling down my list of reasons to play TTDP instead of OTTD...
Former NewGRF Coder and Sprite Artist

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!

User avatar
jacke
Director
Director
Posts: 533
Joined: 19 May 2002 14:47
Location: Sweden

Post by jacke » 13 Aug 2005 09:33

Great work! :D

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 13 Aug 2005 10:22

This version fixes a bug in the pbs code that caused an assertion failure. Oops.

http://fuzzle.org/ottd/custombridgeheads4.diff

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 13 Aug 2005 18:48

In case you didn't like those, here is another update:

http://fuzzle.org/ottd/custombridgeheads6.diff

This version supports custom bridge heads for road as as well as rail.

Note, if you've saved a game with with an older patch version, you'll need to fiddle with the bits on your custom bridge heads as they've been moved around to simplify the code.

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 13 Aug 2005 20:45

I know, bad form 'n all... Slight bug fix, the last version didn't take account of vehicle position properly...

http://fuzzle.org/ottd/custombridgeheads7.diff

User avatar
mkxx
Engineer
Engineer
Posts: 65
Joined: 06 Jun 2005 22:15
Location: Czech Republic, Prague

Post by mkxx » 13 Aug 2005 23:17

peter1138: Very good patch! If you didn't done it - add this patch intosourceforge patches. This looks very good and I hope it WILL be included in the trunk ottd code :) This should not be forgotten.

Nappe1
Traffic Manager
Traffic Manager
Posts: 175
Joined: 19 Jan 2004 17:25
Location: kotka or Savitaipale, Finland
Contact:

Post by Nappe1 » 14 Aug 2005 19:46

peter1138 wrote: This version supports custom bridge heads for road as as well as rail.
This plus LucasSpiller's one way roads and VOILÀ, we have full capability making realistic highways! :shock:


This is just awesome!

Can't wait to get both these to included in nightlies. :)

User avatar
Korenn
Tycoon
Tycoon
Posts: 1628
Joined: 26 Mar 2004 01:27
Location: Netherlands, Enschede
Contact:

Post by Korenn » 14 Aug 2005 21:32

Nappe1 wrote:
peter1138 wrote: This version supports custom bridge heads for road as as well as rail.
This plus LucasSpiller's one way roads and VOILÀ, we have full capability making realistic highways! :shock:


This is just awesome!

Can't wait to get both these to included in nightlies. :)
realistic highways with 90 degree corners, that is :D
Creator of the Openttd Challenge Spinoff, Town Demand patch
The path to riches, a report on playing on a daylength server on ultra hard mode.

Nappe1
Traffic Manager
Traffic Manager
Posts: 175
Joined: 19 Jan 2004 17:25
Location: kotka or Savitaipale, Finland
Contact:

Post by Nappe1 » 14 Aug 2005 22:34

Korenn wrote:
Nappe1 wrote:
peter1138 wrote: This version supports custom bridge heads for road as as well as rail.
This plus LucasSpiller's one way roads and VOILÀ, we have full capability making realistic highways! :shock:


This is just awesome!

Can't wait to get both these to included in nightlies. :)
realistic highways with 90 degree corners, that is :D
you don't have 90 degree corners in your highways? :shock:




j/k :lol:
good point, but I do know the restrictions right now why we don't have smoother curves. :) but these patches definetely will help with designing better road networks. (I already have few savegames to test them out. ;) )

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 15 Aug 2005 06:25

Yet another version!

http://fuzzle.org/ottd/custombridgeheads9.diff

This version fixes this bug:

Image

Also, it changes its bits around again, but there is good reason for it, involving signals... you want signals right?

User avatar
toholio
Traffic Manager
Traffic Manager
Posts: 216
Joined: 20 Dec 2004 00:54
Location: S37°56.286' E145°07.628'
Contact:

Post by toholio » 15 Aug 2005 07:13

peter1138 wrote: you want signals right?
Oh, let me think for a minute.... YES!!!

:wink:
Image
Get Skype and call me for free.

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 » 15 Aug 2005 09:53

More work... Now it supports ground type on road bridges, so the bridgeheads don't look out of place in towns :D Rail fences next...

Image

User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller » 15 Aug 2005 09:56

And one way road signs. :P
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 5 guests