Patch: overwrite roadstops and airports

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
User avatar
d37373
Engineer
Engineer
Posts: 21
Joined: 23 Oct 2006 12:11

Patch: overwrite roadstops and airports

Post by d37373 »

This is a patch to allow you to replace road stops (bus or truck) and airports. Simply build the new roadstop / airport over the top of the new one, similar to the way you can replace train station tiles without removing them first.

Note that, since you can only have one airport per station, trying to build an airport adjoining a station which already has an airport will also replace the old one. Let me know it that isn't the desired effect.

Also, the old airport must be free of planes, including in the hangar, take-off and landing. Basically the rules are the same as for removing an airport without this patch.

Version 1 - replace roadstops only
Version 2 - fixed bug with removing roadstops (thanks benc!).
Version 3 - fixed bug with building over a stop on a town-owned road.
Version 4 - replace airports as well

Attached is a patch against r9889
Attachments
overwrite roadstops & airports v4 r9889.patch
Version 5 - replace airports as well as roadstops
(12.92 KiB) Downloaded 408 times
Last edited by d37373 on 20 May 2007 11:56, edited 5 times in total.
User avatar
benc
Engineer
Engineer
Posts: 62
Joined: 30 Apr 2007 01:57

Post by benc »

This would be a handy feature to have, but there's a major bug. Try building a road station, then rebuild over it, then bulldoze... you end up with a ghost station. :(
User avatar
d37373
Engineer
Engineer
Posts: 21
Joined: 23 Oct 2006 12:11

Post by d37373 »

benc wrote:This would be a handy feature to have, but there's a major bug. Try building a road station, then rebuild over it, then bulldoze... you end up with a ghost station. :(
Should be fixed now - thanks.

I've updated the patch in the first post.
User avatar
d37373
Engineer
Engineer
Posts: 21
Joined: 23 Oct 2006 12:11

Post by d37373 »

Patch updated again: bugfix.
User avatar
d37373
Engineer
Engineer
Posts: 21
Joined: 23 Oct 2006 12:11

Post by d37373 »

Patch updated: you can now replace airports.

Can a moderator rename this topic? Thanks.
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Post by Ameecher »

You can rename the topic yourself, just edit your first post.
Image
User avatar
d37373
Engineer
Engineer
Posts: 21
Joined: 23 Oct 2006 12:11

Post by d37373 »

Magic - thanks.
BamBam
Engineer
Engineer
Posts: 34
Joined: 06 May 2007 17:49

Post by BamBam »

I've updated the patch and fix a (or two?) bug(-s).

If you press CTRL and overbuild a airport completely and then deleted the airport you have a ghost station (see upper part of picture).

If you press CTRL and overbuild a airport only on a corner and deleted the new one you have a airport with acre (is it the right word?) as runway. With this fields you can make everything, bulldoze, plant trees, etc. (see lower part of picture).

Regards,
BamBam
Attachments
Bug(-s) in version 4 and thereunder
Bug(-s) in version 4 and thereunder
ctrl-bug.png (70.21 KiB) Viewed 6092 times
overwrite_roadstops_and_airports_v5_10230.7z
Win32 executable
(905.47 KiB) Downloaded 324 times
overwrite_roadstops_and_airports_v5_10230.patch
(12.99 KiB) Downloaded 298 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests