Page 1 of 7

Three New Airports

Posted: 07 Mar 2006 01:40
by richk67
I have previewed some of these in other threads (Commuter airport further down this forum, helidepot in the New Airports thread in Graphics forum.)

Here are three new airports:

Intercontinental: available 2002: 4 runways (yes, 4) 2 inbound 2 outbound, 8 terminals, 2 hangars and 2 helipads. The capacity of this is awesome. It is incredibly hard to get a queue of flying aircraft, unless you deliberately jam up the airport with stopped planes. Capture radius is 10 tiles.

In effect, this is 2 international airports in one, with a one-way loop between the two halves. It pretty much load balances, and is great fun to watch - Ive thrown 30+ planes & helis between these, and the motion is hypnotic!!

Commuter airport: available 1983. 1 runway, 3 terminals, 2 helipads. For the 1980s yuppie boom, a small airport ideal for Bae46 and other small aircraft. The helicopter capacity is good, and it works well as a replacement/upgrade for the tired old small airports. Has same capture radius as the small airport (4 tiles).

Helidepot: available 1976 (might be 1977, cant remember!). 1 helipad, 1 hangar. Ideal as a service centre for a helicopter-only route, when you dont want to have a runway and waste space. Note: YOU CANNOT BUILD AIRCRAFT HERE! The system would seriously break if you could, so I have blocked the ability to build aircraft.

Please try these out in your games, and let me know if there are bad bugs.

[edit] v3 released. This solves the northern hangar issue completely, and makes aircraft select the nearest terminal group (unless full). Removed some fences. Redesigned southern entrance to avoid lockups.

Posted: 07 Mar 2006 07:54
by BeSt-Com
please, give me a (win-)exe to test that great airports, i'm not able to compile!

Posted: 07 Mar 2006 08:16
by DaleStan
/me mutters, yet again, about a piece of software available from http://www.bloodshed.net.

EDIT: MSVC is producing reams of error messages when applying this patch to r3779.

Posted: 07 Mar 2006 09:31
by gkirilov
I think it would be better if he includes this patch in his(at the moment) IN.

/joke
Intercontinental airport .. hm. What would be the next in size airport? "Interplanetary"? 8)

Posted: 07 Mar 2006 10:16
by AlienDNA
Too bad the concrete has these corners in it, so the surface of especially the intercontinental airport looks full of dents. This gives it a somewhat rough or choppy look.

Would it be really hard to code just 1 extra airport-taxiway sprite, and include that in ottd, just like for instance the canals?

I am a huge fan of the commuter airport. It looks slick, clean and compact. Excellent work there! Too bad I feel a catchment area of 5 tiles would have been better. From 1983 and onward, people are supposed to be more mobile, I feel. And, with a catchment of 4, getting the centre of the city in it will require using the explosives again... ;)

Posted: 07 Mar 2006 10:20
by richk67
DaleStan wrote:/me mutters, yet again, about a piece of software available from http://www.bloodshed.net.

EDIT: MSVC is producing reams of error messages when applying this patch to r3779.
Well, since I dont have M$VC, and you not saying what any of the error messages are, thats not very helpful.

I had 1 warning of a comparison, and I have now corrected that, so on my MingW compilation, I now receive no warnings. I have uploaded the new patch (changed a != NULL to != 0 in the EndHeliLanding sequence of aircraft_cmd.c).

Can you let me know if this compiles cleanly on MSVC, and if not, post a short clip of the most important messages. Alternatively, could you take a look at the code where MSVC barfs, and let me know if Ive done anything glaringly wrong. (There arent that many code lines that have changed. Most of the patch is just FTA data.) Thanks.

Posted: 07 Mar 2006 10:32
by richk67
AlienDNA wrote:Too bad the concrete has these corners in it, so the surface of especially the intercontinental airport looks full of dents. This gives it a somewhat rough or choppy look.

Would it be really hard to code just 1 extra airport-taxiway sprite, and include that in ottd, just like for instance the canals?
If you check out all the "normal" OTTD airports, they also have these dents. In fact, I just reuse their tile.
I am a huge fan of the commuter airport. It looks slick, clean and compact. Excellent work there! Too bad I feel a catchment area of 5 tiles would have been better. From 1983 and onward, people are supposed to be more mobile, I feel. And, with a catchment of 4, getting the centre of the city in it will require using the explosives again... ;)
Hmmm. You may have a point, but it is meant to be a small airport. The City airport has a catchment area of 5, so although it may be nice to have more reach, I dont think it fits with the spirit of the airport!

Posted: 07 Mar 2006 11:20
by browneyedboy
I've tried pathing these new airports. But it wont work. I'm using TortoiseSVN as I've learned in this forum from Meush.
All the objects are marked red and that means it wont work. What should I do to make it work?

Posted: 07 Mar 2006 11:30
by richk67
browneyedboy wrote:I've tried pathing these new airports. But it wont work. I'm using TortoiseSVN as I've learned in this forum from Meush.
All the objects are marked red and that means it wont work. What should I do to make it work?
Blasted TortoiseSVN. When I created the patch again this morning it used full paths rather than relative... sorry. Patch corrected, updated.

I'll just go out and shoot myself..... :?

Posted: 07 Mar 2006 11:37
by browneyedboy
Thanks for fixing that :D
And now, there's another problem :(

When I've patched it those files using the patch get a red exclamation at it instead of a green symbol. What's wrong now? :(
I've tried playing and the airports don't appear in the game :(

Have I missed something?

Posted: 07 Mar 2006 11:42
by richk67
browneyedboy wrote:Thanks for fixing that :D
And now, there's another problem :(

When I've patched it those files using the patch get a red exclamation at it instead of a green symbol. What's wrong now? :(
I've tried playing and the airports don't appear in the game :(

Have I missed something?
The red exclamation in TortoiseSVN just means "changes from the controlled version", which is correct. Compile the code. The airports should show in the Build Airport dialog box (as you can see in my screenshot). If they are greyed out, then your game date is too early.

All 3 airports are date dependent - change the start date in Configure Patches to a date after the intro dates. The Intercontinental is only available in 2002+. You cant change the date to that, so, change it to 2000, and fast forward to 2002.

Posted: 07 Mar 2006 11:45
by browneyedboy
Compile the code? How do I do that?
This is my first time patching something.

Posted: 07 Mar 2006 11:51
by richk67
browneyedboy wrote:Compile the code? How do I do that?
This is my first time patching something.
Ah! The OTTD wiki has a whole section on compiling. For windows, I would recommend the MingW32 compiler. Dalestan promotes the Bloodnet compiler & development environment.

I'm attaching a copy of the win32 exe to the original post. (I wont post the source code as per GPL - if you want it, send me a cheque for £1 to cover CD and postage ;) )

Posted: 07 Mar 2006 12:00
by browneyedboy
That compilingstuff seems really complicated :?
When will the exe-file appear so we who don't understand coding etc will be able to use these great new airports? :P

Posted: 07 Mar 2006 12:16
by richk67
browneyedboy wrote:That compilingstuff seems really complicated :?
When will the exe-file appear so we who don't understand coding etc will be able to use these great new airports? :P
Sorry for delay. I was posting at work, and my boss was sniffing around! :roll: :lol:

Posted: 07 Mar 2006 12:25
by browneyedboy
You gotta tell your boss to stop sniffing and that he should get to work instead ;)

Posted: 07 Mar 2006 15:53
by MeusH
richk67, I don't have time yet to check it, but I really like it. You've made wonderful job on this. I really like the Intercontinential Airport.
It's really awesome!

There are only two things I may request, just by looking at the screenshot.

Can you persuade developers to add one more sprite so there will be no dark tile-corners on the airport surface?

How about changing order of buttons? Something like...
Small | Commuter
City
Metropolitian
International
Intercontinential
Heliport | Helidepot

And one last thing, about the other heliport structures you were working on. I hope you will continue the work on these?

Posted: 07 Mar 2006 16:49
by DaleStan
richk67 wrote:Well, since I dont have M$VC, and you not saying what any of the error messages are, thats not very helpful.
Well, actually, it turns out it's not your fault at all. Sorry.

TortiseMerge is under the impression that the patch says to turn sprites.h into a zero byte file.

This has the unsurprising result of causing every instance of SPR_*, PALETTE_*, &c. to be undef. And those are used a lot.

Posted: 07 Mar 2006 17:21
by richk67
DaleStan wrote:Well, actually, it turns out it's not your fault at all. Sorry.

TortiseMerge is under the impression that the patch says to turn sprites.h into a zero byte file.

This has the unsurprising result of causing every instance of SPR_*, PALETTE_*, &c. to be undef. And those are used a lot.
LOL! :lol: I assumed it would be a Microsoft problem ;) 8)

Nice problem BTW :) And, yes, I guess there are a TON of errors from that!

Posted: 07 Mar 2006 17:41
by richk67
MeusH wrote:Can you persuade developers to add one more sprite so there will be no dark tile-corners on the airport surface?
Darkvater? Any chance here? Or is there a sprite already that I can reuse in station_land.h ??
How about changing order of buttons? Something like...
Small | Commuter
City
Metropolitian
International
Intercontinential
Heliport | Helidepot
Yeah, I looked at the order. Decided I didnt want to tidy it up, but it should be pretty straightforward. I'll do it tonite! (Generally I'm a strong believer in "if it aint broke... dont fix it!". Also, I didnt want to disturb the gui if the patch wasnt going to make it to trunk.... maybe after a bit of testing this could make it! :P )
And one last thing, about the other heliport structures you were working on. I hope you will continue the work on these?
Err.... I was only doing the helidepot. I can make more airports easily now - the basic movements on the intercon airport worked first time. Only problems were some locks didnt come on at the right time. Also had NIGHTMARES over getting the two landing approaches working.

I could make a "helistrip"... 4 helipads in a line, with an access route. Like the helidepot, but add 3 extra pad+taxi.

What I really need is more helicopter types. I hope with peter1138's newgrf changes, that the planesetw.grf works. Any ideas?