Water Tunnels
Moderator: OpenTTD Developers
Re: Water Tunnels
Actually it doesn't work like this.
Tramways are a feature implemented in the game's code. However, to be activated, it needs a tramway vehicle.
In that case, the tramway NewGRFs you have only implement tram vehicles, not the tramway track.
Tramways are a feature implemented in the game's code. However, to be activated, it needs a tramway vehicle.
In that case, the tramway NewGRFs you have only implement tram vehicles, not the tramway track.
Re: Water Tunnels
raw implementation-wise, it's almost trivial to get ship tunnels into the game, just add graphics for the tunnel portals and adjust a few lines here and there to allow construction.
the hard part is making:
the hard part is making:
- the ship graphics not glitch while going into the tunnel
- a meaningful distinction between "small" and "large" ships, especially in the default set, that doesn't confuse the players "hey i built this tunnel and my ships won't go through it"
Re: Water Tunnels
Well, tunnel glitches, aren't we all used to those already anyway?Eddi wrote:
- the ship graphics not glitch while going into the tunnel
Re: Water Tunnels
The second point can be done quite easily by adding ship classes and classing those who don't have any as Large by default (NewGRF ones particularly).Eddi wrote:raw implementation-wise, it's almost trivial to get ship tunnels into the game, just add graphics for the tunnel portals and adjust a few lines here and there to allow construction.
the hard part is making:
- the ship graphics not glitch while going into the tunnel
- a meaningful distinction between "small" and "large" ships, especially in the default set, that doesn't confuse the players "hey i built this tunnel and my ships won't go through it"
It has been done for aircraft after all.
Re: Water Tunnels
This appears to be rather trivial. Squid Ate Fish (Fish 2) already has a distinction between small ships which can run full speed on rivers and canals, and larger ships which have limited speed on those.acs121 wrote:The second point can be done quite easily by adding ship classes and classing those who don't have any as Large by default (NewGRF ones particularly).
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Water Tunnels
Ooohhh... I certainly didn't know this! Since this time has been my first ever adding NewGRFs. Only road building always appeared in the box until I got a tram set.acs121 wrote:Actually it doesn't work like this.
Tramways are a feature implemented in the game's code. However, to be activated, it needs a tramway vehicle.
In that case, the tramway NewGRFs you have only implement tram vehicles, not the tramway track.
And I don't really understand what you people are talking about ship classes. I mean, it's not like there are that many in the game... Why would they need to be classified in any way in order to allow them through water tunnels? Standard game temperate only has 7. I feel like there's something here I'm missing. Are the boats coded each differently or something? Cannot all them simply go through a tunnel in case there would be one?
Re: Water Tunnels
Ship classes mean classification between ships, small and large for example. Only small ones would be able to get in water tunnels then.
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Water Tunnels
Oh, I think I get it. Ship sprites are certainly bigger than buses and trains... A water tunnel could possibly need a 2x2 tiles entrance/exit to look good enough. Is that the problem?
Re: Water Tunnels
You've got part of it, yes. The more fundamental poblem, as I see it, is that there's no real difference in the OTTD world between small ships and large ships. All ships fit in a 1 tile width canal, regardless of its perceived size. There are no problems finding water tunnels in the real world which will allow small vessels to pass, but tunnels accomodating big ships is a different matter altogether. Even if the water tunnel is practically implementable in OTTD, there's still a conceptual challenge with regards to eg a Nieuwpoort passing through what for all practical purposes should be a hole at most allowing say, a Whitgift barge.CazadorSirenas wrote:Oh, I think I get it. Ship sprites are certainly bigger than buses and trains... A water tunnel could possibly need a 2x2 tiles entrance/exit to look good enough. Is that the problem?
Re: Water Tunnels
that will not solve the drawing problem, however. for that, the big ship sprites must be chopped up into smaller sprites that each have a separate bounding box and can be shown/hidden separately. like individual wagons that move in sync.CazadorSirenas wrote:Oh, I think I get it. Ship sprites are certainly bigger than buses and trains... A water tunnel could possibly need a 2x2 tiles entrance/exit to look good enough. Is that the problem?
Re: Water Tunnels
Most canal tunnels (or actually, almost all, if not all) are not meant to have huge passenger ferries or massive oil tankers passing through them. Same thing as in OpenTTD, where even the canals are only meant for small ships such as the small passenger ships in redFISH.
As for aircraft classes we could possibly implement ship classes.
As for aircraft classes we could possibly implement ship classes.
Re: Water Tunnels
Whether or not these tunnels exist in real life doesn't matter. And whether or not we have any graphical glitches or apparent mismatch with how the graphics are displayed is relatively immaterial. The primary issue is whether or not somebody is actually going to make this possible in the code. Until that happens, everything else is moot.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Water Tunnels
Well we are talking about a graphical issue here.
Roujin managed to make a patch for water tunnels with road tunnel graphics. We would eventually need proper graphics for water tunnels and as you say we just don't care about this graphical glitch.
Roujin managed to make a patch for water tunnels with road tunnel graphics. We would eventually need proper graphics for water tunnels and as you say we just don't care about this graphical glitch.
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Water Tunnels
THERE IS ACTUALLY A PATCH FOR WATER TUNNELS?!acs121 wrote:Well we are talking about a graphical issue here.
Roujin managed to make a patch for water tunnels with road tunnel graphics. We would eventually need proper graphics for water tunnels and as you say we just don't care about this graphical glitch.
Re: Water Tunnels
There is one here. However you must compile it. Means you have to get the game code and update it with this patch.
- CazadorSirenas
- Engineer
- Posts: 63
- Joined: 09 Aug 2018 14:18
- Location: Spain
Re: Water Tunnels
Oh my Chuck, as crappy as that image is, it only convinces me even more how awesome would be to have real, good water tunnels in the game
I also thank you all people for taking the time to explain everything to this newbie here!
I also thank you all people for taking the time to explain everything to this newbie here!
-
- Engineer
- Posts: 72
- Joined: 22 Feb 2012 12:21
- Location: Ukraine
- Contact:
Re: Water Tunnels
This suggestions is IMPLEMENTED now (as prototype - DOWNLOAD .EXE file) ! - Look in the topic
IMPLEMENTED some suggestions - Independence day of Ukraine 20190824 release (viewtopic.php?f=32&t=85845).
There also is description, including "How to use?" and about some restrictions.
Be happy.
IMPLEMENTED some suggestions - Independence day of Ukraine 20190824 release (viewtopic.php?f=32&t=85845).
There also is description, including "How to use?" and about some restrictions.
Be happy.
Who is online
Users browsing this forum: Google Adsense [Bot] and 30 guests