Page 10 of 12

Re: [OTTD] OpenGFX+ Airports

Posted: 15 Apr 2015 11:37
by Quast65
Isnt it much easier to have the OpenGFX+Airport GRF to include a watertile object?

EDIT: and that watertile object could have an extra description in its menu explaining how to place it via Action 04 for menu

Re: [OTTD] OpenGFX+ Airports

Posted: 15 Apr 2015 14:51
by kamnet
I'll just leave this here...

Re: [OTTD] OpenGFX+ Airports

Posted: 15 Apr 2015 15:17
by 3iff
I'm guessing the actual runway is a dummy? However, it looks really good.

Re: [OTTD] OpenGFX+ Airports

Posted: 15 Apr 2015 15:22
by kamnet
3iff wrote:I'm guessing the actual runway is a dummy? However, it looks really good.
OpenGFX+ Airports as Objects NewGRF, along with ISR/DWE Objects, AV8 seaplanes, Grigory's Be-200 and Zephery's Ekranoplan set.

Re: [OTTD] OpenGFX+ Airports

Posted: 15 Apr 2015 16:08
by doxlulzem
Putting Ekranoplans and GEVs to good use with this. Looks nice :P

Re: [OTTD] OpenGFX+ Airports

Posted: 15 Apr 2015 23:08
by PikkaBird
Very nice. To nitpick, the Twin Otter and Norseman don't appear to be refitted to floats. ;)

Re: [OTTD] OpenGFX+ Airports

Posted: 16 Apr 2015 04:56
by kamnet
PikkaBird wrote:Very nice. To nitpick, the Twin Otter and Norseman don't appear to be refitted to floats. ;)
Yeah, I didn't do a refit on them LOL... and the Be-200 is a tad small. :D

Re: [OTTD] OpenGFX+ Airports

Posted: 16 Apr 2015 19:48
by cmhbob
SO does this mean we can start servicing Oil Rigs and such with floatplanes?

Re: [OTTD] OpenGFX+ Airports

Posted: 16 Apr 2015 20:06
by Plord
The only problem i find with that idea is that you cannot place airports together, and oil rigs have an helipad.

Re: [OTTD] OpenGFX+ Airports

Posted: 16 Apr 2015 20:33
by Roslav
Plord wrote:The only problem i find with that idea is that you cannot place airports together, and oil rigs have an helipad.
IMHO this is not problem. When I played FIRS, I could transport cargo by train from dredging site (water industry) in case it was close enough to land, so it was inside train station catchment area. I think it is the same with oil rigs.


Anybodody tough of making new ngrf parameter for airports and patch the game to support sea airports, so the could be built without watertile hack?

Re: [OTTD] OpenGFX+ Airports

Posted: 16 Apr 2015 22:53
by kamnet
cmhbob wrote:SO does this mean we can start servicing Oil Rigs and such with floatplanes?
You always could. Currently in OpenTTD, airplanes are airplanes. Seaplane ports are just a visual hack, they still require a full tile of land to be built on (see previous post for visual demonstration). Just dynamite land near it and then build your airport.
Plord wrote:The only problem i find with that idea is that you cannot place airports together, and oil rigs have an helipad.
Oil rig heliport doesn't interfere with any station's cachement area.
Roslav wrote:Anybodody tough of making new ngrf parameter for airports and patch the game to support sea airports, so the could be built without watertile hack?
You won't see the game directly patched to support seaports, but there have been a few attempts to rewrite the airport code to support such things via NewGRF. The main hangup, IIRC, is that the state machine (how airplanes queue, land, where they go and how they take off) is hard-coded into OpenTTD (as it was in TTD) and there's no satisfying solution to that so far.

Re: [OTTD] OpenGFX+ Airports

Posted: 18 Apr 2015 15:54
by Roslav
kamnet wrote:
Roslav wrote:Anybodody tough of making new ngrf parameter for airports and patch the game to support sea airports, so the could be built without watertile hack?
You won't see the game directly patched to support seaports, but there have been a few attempts to rewrite the airport code to support such things via NewGRF. The main hangup, IIRC, is that the state machine (how airplanes queue, land, where they go and how they take off) is hard-coded into OpenTTD (as it was in TTD) and there's no satisfying solution to that so far.
I made a few modifications to ottd code, created new Airport class, which can be built on water and not on land. State machine was not a problem, it is inherited from base airport type. I compiled ogfx+ airports to nfo and added new property to indicate seaplane airport.

What is working:
- reading seaplane airports from newgrf
- bulding a seaplane airport on water without pausing a game
- no seaplane flooding

Not working:
- layouts. Seaplane airport graphics are of base airport type
- all planes can land there as in base airport type
- can be placed over other structures in water (docks, objects, etc.)
- canals threat seaplane airports as land and thus show borders

Not tested:
- network
- pathfinding

Patch coming soon :)

Re: [OTTD] OpenGFX+ Airports

Posted: 18 Apr 2015 21:34
by kamnet
Roslav wrote:I made a few modifications to ottd code, created new Airport class, which can be built on water and not on land. State machine was not a problem, it is inherited from base airport type.
That's not the problem. The problem is everybody wants to fix the state machine because it's horribly inefficient, but there's not yet a way to do so. Every NewGRF airport that exists right now is essentially nothing more than a copy of the original state machines, and can't ever be anything but.
Not working:
- all planes can land there as in base airport type
IIRC, all planes would have to be coded to not allow landing at seaplane port, or you'd have to make a bunch of adjustments to OpenTTD to only allow certain types of planes to land at them. I imagine this would be similar to how a road vehicle can also drive over tram tracks.

Re: [OTTD] OpenGFX+ Airports

Posted: 19 Apr 2015 01:16
by Quast65
I believe the landing is not the problem, any good pilot should be able to land on water.
The take-off is the problem :twisted:

Re: [OTTD] OpenGFX+ Airports

Posted: 19 Apr 2015 03:02
by kamnet
As long as you have enough power

Re: [OTTD] OpenGFX+ Airports

Posted: 19 Apr 2015 23:44
by sunshare
There is some method to build two airports together or near a distance of one tile?

Re: [OTTD] OpenGFX+ Airports

Posted: 20 Apr 2015 00:45
by kamnet
There must be a minimum distance of one tile between airports. They cannot share the same station ID like rail and road stations can.

Re: [OTTD] OpenGFX+ Airports

Posted: 20 Apr 2015 01:40
by Supercheese
kamnet wrote:There must be a minimum distance of one tile between airports. They cannot share the same station ID like rail and road stations can.
Well, technically they can be Ctrl+Built directly adjacent, but indeed they must be separate stations.

Re: [OTTD] OpenGFX+ Airports

Posted: 21 Apr 2015 06:47
by Roslav
Roslav wrote: Patch coming soon :)
I have posted the Seaplane Airport patch here.

Could you give me some feedback?

Re: [OTTD] OpenGFX+ Airports

Posted: 22 Apr 2015 20:30
by sunshare
Supercheese wrote:
kamnet wrote:There must be a minimum distance of one tile between airports. They cannot share the same station ID like rail and road stations can.
Well, technically they can be Ctrl+Built directly adjacent, but indeed they must be separate stations.
Because you can not implement having two airports with the same name? That would increase the flow of aircraft if one wants to use.