Crossing Bridges
Moderator: OpenTTD Developers
Crossing Bridges
is it possible for bridges at different hights to cross one another
Re: Crossing Bridges
Why not?
and more so will it be possible in the future.
and more so will it be possible in the future.
Re: Crossing Bridges
And this is so, because bridges in OpenTTD (as well as Houses) don't have any information stored how high they are. You might say that some of the smaller bridges could have something over them only two levels above, but those bridges with the huge amount of steel over them go up at least five levels or so? And it's not even the same for the whole bridge, it goes up, and down, and up...
Same for buildings - it could be a small hut, or a giant skyscraper (like the Total Town Replacement Set has) you can't build anything over.
For this reason it's not possible to have crossing bridges or bridges over houses.
Same for buildings - it could be a small hut, or a giant skyscraper (like the Total Town Replacement Set has) you can't build anything over.
For this reason it's not possible to have crossing bridges or bridges over houses.
Re: Crossing Bridges
actually, this has been part of an experiment with the bridge branch, but it has been cut from the final implementation. afaik that was mainly due to graphical glitches, the functionality was fine.
Re: Crossing Bridges
Really? Pity because crossing bridges would surely make matters simpler in some situations (competition games on small maps), or one could even build extra tangled up networks.
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: Crossing Bridges
What about deriving their height from the bounding box of the graphics?And this is so, because bridges in OpenTTD (as well as Houses) don't have any information stored how high they are.
Re: Crossing Bridges
Actually, crossing bridges are no problem at all, we just miss graphics
Basically we would need to limit the crossing bridges to be of the same bridge (not track) type ...
Celestar
Basically we would need to limit the crossing bridges to be of the same bridge (not track) type ...
Celestar
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: Crossing Bridges
I quite don't understand this. Why? Do you mean same height crossings or different height crossings?Basically we would need to limit the crossing bridges to be of the same bridge (not track) type ...
Re: Crossing Bridges
I guess there is a need for graphics of bridge X crossing bridge Y. And if we limit X and Y to be always of the same bridge type, there is much less graphics needed.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Crossing Bridges
Well, i guess this suggestion was rather to make it possible that bridges can cross at different heights, so they are just on top of each other and the tracks do not really cross.
Crossing tracks on bridges would of course be very cool, too, but i guess it would be hard with the graphics and possible collisions of trains at the crossing...
I'd say to first concentrate on the first one, and if that works go on to the second one, if you are interested in this at all
It surely would be a great addition to the game!
Crossing tracks on bridges would of course be very cool, too, but i guess it would be hard with the graphics and possible collisions of trains at the crossing...
I'd say to first concentrate on the first one, and if that works go on to the second one, if you are interested in this at all
It surely would be a great addition to the game!
Re: Crossing Bridges
i like the idea of bridges crossing at differnt hights,
mabie somthing could be done with the graphics so that a bridge crossing over a cantaleaver bridge would actually rework the ironwork so it goes through a square gap in the ironwork (as if the 2 bridges were bolted together there)
mabie somthing could be done with the graphics so that a bridge crossing over a cantaleaver bridge would actually rework the ironwork so it goes through a square gap in the ironwork (as if the 2 bridges were bolted together there)
-
- Engineer
- Posts: 44
- Joined: 06 Sep 2008 12:41
- Location: Hamburg, Germany
Re: Crossing Bridges
Or if it is easier just allow it for a special (new) bridge type, to reduce the necessary amount of new graphics?
I just tried it by deactivating the check in the code if an bridge already exists. I worked fine if you dont look at the graphic glitches too close
I just tried it by deactivating the check in the code if an bridge already exists. I worked fine if you dont look at the graphic glitches too close
Re: Crossing Bridges
How about this: Bridge sets might carry an extra bit to show which bridges are flat - the stone and concrete bridges from the New Bridges grf, for example; and a bridge could then be built only over those, not over anything else. (Where the bit doesn't exist, assume 0.)
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Crossing Bridges
There has been countless times when crossing bridges would have been awesome for me, specially over water. I needed a road bridge NS where there was already a train bridge going WE, and I had to rise land in the middle of the sea (very expensive) at least one tile tall enough to allow a tiny tunnel for either one of them at that exact point in the map where they crossed, even if they were at different heights... So yes, I'm really rooting for crossing bridges some day in the future
-
- Engineer
- Posts: 72
- Joined: 22 Feb 2012 12:21
- Location: Ukraine
- Contact:
Re: Crossing Bridges
[Edited 20201012 00:47 : Improved edition is now available - further in this topic - viewtopic.php?p=1236895#p1236895 ]
1st not enough optimized version IMPLEMENTED: + crossing bridges v.01
About TopTechDreams patch pack (IMPLEMENTED some suggestions - Independence day of Ukraine 20190824 release) - see descriptions in the corresponding topic - viewtopic.php?f=33&t=85845 ( 2nd link: viewtopic.php?f=33&t=85915 )
(the same source file in smaller archive)
Changes in source code to implement this feature are marked with label (comment) :
1st not enough optimized version IMPLEMENTED: + crossing bridges v.01
About TopTechDreams patch pack (IMPLEMENTED some suggestions - Independence day of Ukraine 20190824 release) - see descriptions in the corresponding topic - viewtopic.php?f=33&t=85845 ( 2nd link: viewtopic.php?f=33&t=85915 )
(the same source file in smaller archive)
Changes in source code to implement this feature are marked with label (comment) :
Code: Select all
// for Allow to cross 2 bridges
// Begin for Allow to cross 2 bridges
Last edited by TopTechDreamer on 12 Oct 2020 00:49, edited 1 time in total.
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Crossing Bridges
Hum, yes... I was following this project of yours due to the thread on boat tunnels. I downloaded it and opened it, but... is there any reason why Avast doesn't allow me to play it?
Even with admin access it simply refuses to work.
Even with admin access it simply refuses to work.
-
- Engineer
- Posts: 72
- Joined: 22 Feb 2012 12:21
- Location: Ukraine
- Contact:
Re: Crossing Bridges
I don't know. My old antivirus says this exe is OK.
Maybe (I don't know), your Avast doesn't like too long file names (You can rename it shorter) or not certified *.exe files ?
( Does Avast do it at all? Maybe, some other service? )
Note: This .exe file will not work alone - it needs all the other files usual for openttd.exe to work. So user needs to place this modified .exe file to the same folder, where openttd.exe (v. 1.9.1 stable) and all its support files are.
Maybe (I don't know), your Avast doesn't like too long file names (You can rename it shorter) or not certified *.exe files ?
( Does Avast do it at all? Maybe, some other service? )
Note: This .exe file will not work alone - it needs all the other files usual for openttd.exe to work. So user needs to place this modified .exe file to the same folder, where openttd.exe (v. 1.9.1 stable) and all its support files are.
Last edited by TopTechDreamer on 09 Oct 2020 09:28, edited 1 time in total.
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Crossing Bridges
Since I'm so clumsy and ignorant, whenever something doesn't work I always assume it's likely because I'm doing something wrong. Problem, I don't know what is it?
I put all your files in the main folder of the game and swapped the .exe for your version. Here's what it looks like:
(pìcture below)
But after Avast sent me back a message a few hours later that they analized the unknown file and found it safe, when I try to open the game the message that boots is "No available language packs (invalid versions?)"
Please, if there's anything that I should have done, do tell me. No matter how obvious it might be, I probably missed it.
I put all your files in the main folder of the game and swapped the .exe for your version. Here's what it looks like:
(pìcture below)
But after Avast sent me back a message a few hours later that they analized the unknown file and found it safe, when I try to open the game the message that boots is "No available language packs (invalid versions?)"
Please, if there's anything that I should have done, do tell me. No matter how obvious it might be, I probably missed it.
- Attachments
-
- img.png (148.91 KiB) Viewed 1742 times
Re: Crossing Bridges
You might want to look at JGR's patch pack where he implemented bridges over stations. You might find some solutions in there.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Who is online
Users browsing this forum: No registered users and 18 guests