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 »

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 »

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 »

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 »

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 »

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 »

Graphical glitch:
Attachments
bridgehead2.png
bridgehead2.png (27.75 KiB) Viewed 26907 times
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 »

User avatar
Aegir
Tycoon
Tycoon
Posts: 2778
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir »

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.

Currently working under the name 'reldred' on Github, IRC and Discord.

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 »

Great work! :D
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Post by peter1138 »

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 »

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 »

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 »

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 »

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: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

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
Nappe1
Traffic Manager
Traffic Manager
Posts: 175
Joined: 19 Jan 2004 17:25
Location: kotka or Savitaipale, Finland
Contact:

Post by Nappe1 »

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 »

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 »

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 »

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 »

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: Google Adsense [Bot] and 6 guests