Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 02, 2010 6:15 pm

All times are UTC




Post new topic Reply to topic  [ 186 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next
Author Message
 Post subject: Re: Patch: Close airports
PostPosted: Sat May 24, 2008 6:11 pm 
Traffic Manager
Traffic Manager
Offline

Joined: Thu May 19, 2005 10:19 pm
Posts: 153
Location: Germany
Hi.

Does this patch work in conjunction with the infrastructure sharing patch?

Kind regards

Zombie

_________________
OpenTTD: OpenTTD-Wiki
OpenTTDCoop: Blog, Wiki
My favorite patches: cargo destinations, shared infrastructure


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Sat May 24, 2008 10:15 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
zombie wrote:
Does this patch work in conjunction with the infrastructure sharing patch?

Yes, it works very well. You may have to fix one or two simple lines in the source though where subsequent patching fails. Indeed I consider it a very good addition to IS as only with this patch you can upgrade your airports, should they be heavy-duty.

The latest wwottdgd patch has both working and I also put a diff with both of them combined.

_________________
Image
OpenTTD: manual | online content | translations | #openttdcoop: blog | wiki | public server | dev server | NewGRF pack | DevZone
Base Sets: OpenSFX | OpenMSX | OpenGFX | NewGRF: Swedish Rails | Variable Snowline | OpenGFX+ | ComicHouses


Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Tue Jun 03, 2008 8:09 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
Patches against 0.6.1 and r13374.


Attachments:
airport-close-v6-0.6.1.patch [9.76 KiB]
Downloaded 161 times
airport-close-v6-r13374.patch [9.93 KiB]
Downloaded 93 times

_________________
My patches: Close airports | Upgrade airports
Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Tue Jun 03, 2008 8:48 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
Thanks mate! Good work :)

_________________
Image
OpenTTD: manual | online content | translations | #openttdcoop: blog | wiki | public server | dev server | NewGRF pack | DevZone
Base Sets: OpenSFX | OpenMSX | OpenGFX | NewGRF: Swedish Rails | Variable Snowline | OpenGFX+ | ComicHouses


Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Tue Aug 19, 2008 6:03 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
after some time, an update to trunk. Useful for upgrading larger airports :) - especially in conjunction with infrastructure sharing


Attachments:
File comment: update for r14103
close_airports_v6_r14103.diff [9.77 KiB]
Downloaded 18 times

_________________
Image
OpenTTD: manual | online content | translations | #openttdcoop: blog | wiki | public server | dev server | NewGRF pack | DevZone
Base Sets: OpenSFX | OpenMSX | OpenGFX | NewGRF: Swedish Rails | Variable Snowline | OpenGFX+ | ComicHouses
Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Tue Sep 30, 2008 9:51 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
another update to trunk


Attachments:
File comment: diff file to r14423
close_airports_v6_r14423.diff [9.77 KiB]
Downloaded 12 times

_________________
Image
OpenTTD: manual | online content | translations | #openttdcoop: blog | wiki | public server | dev server | NewGRF pack | DevZone
Base Sets: OpenSFX | OpenMSX | OpenGFX | NewGRF: Swedish Rails | Variable Snowline | OpenGFX+ | ComicHouses
Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Fri Oct 03, 2008 12:13 pm 
Engineer
Engineer
Offline

Joined: Mon Aug 06, 2007 10:17 am
Posts: 32
close_airports_v6_r14423:
I hope it's not only me but there is an error when resizing the airport window.


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Fri Oct 03, 2008 4:11 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
Try this one.


Attachments:
airport-close-v6-r14432.patch [10.07 KiB]
Downloaded 46 times

_________________
My patches: Close airports | Upgrade airports
Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Mon Oct 27, 2008 10:57 am 
Engineer
Engineer
Offline

Joined: Mon Oct 20, 2008 12:50 pm
Posts: 55
can u update it to the latest trunk? :lol:


Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Mon Oct 27, 2008 6:36 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
The last version I posted (against r14432) still applies against trunk (r14536), with some small offsets which can be safely ignored, and it seems to work. Which problem are you having applying it?

_________________
My patches: Close airports | Upgrade airports


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Wed Oct 29, 2008 12:57 am 
Engineer
Engineer
Offline

Joined: Mon Oct 20, 2008 12:50 pm
Posts: 55
This is what i get when i tried to patch


Attachments:
error.JPG [141.55 KiB]
Downloaded 105 times
Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Wed Oct 29, 2008 7:16 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
You seem to be using some program (TortoiseSVN?) I do not know about, so the following may not be completely accurate. Apparently, the patch cannot be applied due to a context mismatch; the error suggests that the line actually found in the file ("...UpdateStationAcceptance...") does not match the one in the patch ("...END_TILE_LOOP..."). However, the patch file, as downloaded, does not have any line containing "END_TILE_LOOP". Are you sure you are trying to apply the latest version of the patch?

_________________
My patches: Close airports | Upgrade airports


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Wed Oct 29, 2008 10:32 pm 
Traffic Manager
Traffic Manager
Offline

Joined: Tue Jul 31, 2007 12:58 am
Posts: 221
Location: North of 63
I just tried this and it does not work with TortoiseSVN.
Firstly - It seems that the revision declaration in your patch is in a form of '2008-05-24 04:54:47.000000000 +0200' while Tortoise seems to need '(revision 14432)'. If I change the revision declaration style it at least dl's the proper revision and patches okay.
Secondly if I change the revision to a newer one (ie. 14536) it does not patch and errors with the same error as XxInNOutxX gets. It seems that there is a small change in the source code for station_cmd.cpp in which the ...END_TILE_LOOP... appears where your patch wants to put ...UpdateStationAcceptance... (opposite of what you stated).


Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Thu Oct 30, 2008 5:16 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
YukonRob wrote:
I just tried this and it does not work with TortoiseSVN.
Firstly - It seems that the revision declaration in your patch is in a form of '2008-05-24 04:54:47.000000000 +0200' while Tortoise seems to need '(revision 14432)'. If I change the revision declaration style it at least dl's the proper revision and patches okay.
That is because the patch does not have such a "revision declaration". It is a plain diff/patch file, as created by diff(1). I have heard that Tortoise does not have a working patch(1) implementation (it cannot apply generic patches), so that may be the root of the problem.

YukonRob wrote:
Secondly if I change the revision to a newer one (ie. 14536) it does not patch and errors with the same error as XxInNOutxX gets. It seems that there is a small change in the source code for station_cmd.cpp in which the ...END_TILE_LOOP... appears where your patch wants to put ...UpdateStationAcceptance... (opposite of what you stated).
All right, I have just downloaded r14536 and r14546 and I think I have found what is going wrong. The patch applies to both revisions, but with some offset. So I guess Tortoise is not clever enough to realise this and bails out due to a context mismatch, instead of finding the right context four lines below, as patch(1) does (and POSIX mandates).

I am attaching another patch against r14546, but the long-term solution would be to have proper patch support in Tortoise...


Attachments:
airport-close-r14546.patch [10.5 KiB]
Downloaded 14 times

_________________
My patches: Close airports | Upgrade airports
Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Thu Oct 30, 2008 5:24 pm 
Route Supervisor
Route Supervisor
Offline

Joined: Sun Oct 10, 2004 12:11 am
Posts: 429
Tortoise supports svn patches (retrieving the version the patch was made against and merging to your revision), and "generic" patches against the exact code you have (or possibly against the exact code in the revision you're modified from, not sure which). It won't correct for code changes if it is a "generic" patch and you are at a different revision. Best to generate the patches with "svn diff" instead of "diff" if you're working from the commandline.

_________________
Melt with the Shadows,
Embrace your destiny...


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Fri Nov 28, 2008 9:17 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
A small update to this patch and a version bump to v7:

new FEATURE: close airport button only shows for stations which actually are an airport.

Diff to trunk r14640 is attached.


Attachments:
File comment: diff for trunk r14640
close_airport-v7-r14640.diff [9.42 KiB]
Downloaded 12 times

_________________
Image
OpenTTD: manual | online content | translations | #openttdcoop: blog | wiki | public server | dev server | NewGRF pack | DevZone
Base Sets: OpenSFX | OpenMSX | OpenGFX | NewGRF: Swedish Rails | Variable Snowline | OpenGFX+ | ComicHouses
Top
 Profile E-mail  
 
 Post subject: Re: Patch: Close airports
PostPosted: Mon Dec 01, 2008 7:44 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
planetmaker wrote:
new FEATURE: close airport button only shows for stations which actually are an airport.
We have already discussed this issue, and I still think that the right thing to do is to disable, not hide, the close button for airportless stations, just like the scheduled aircraft button (or the scheduled ships button for dockless stations, etc.). It's a matter of consistency.

Plus your patch triggers an assertion if an airport is added to a station while the station window is open.


Attachments:
airport-close-v6-r14647.patch [10.07 KiB]
Downloaded 6 times

_________________
My patches: Close airports | Upgrade airports
Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Mon Dec 01, 2008 8:53 pm 
Route Supervisor
Route Supervisor
Offline

Joined: Sun Oct 10, 2004 12:11 am
Posts: 429
Why not extend it to "close station"?
Shouldn't be too hard to make trains, rvs and ships skip to their next order when they try to go to a closed station.

_________________
Melt with the Shadows,
Embrace your destiny...


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Mon Dec 01, 2008 9:19 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Sat Apr 07, 2007 6:08 pm
Posts: 177
...which is what aircraft don't do when an airport is closed with this patch.

I'm fine with this suggestion (adding a 'skip' status to stations so that vehicles skip them), but it is an entirely different thing from what this patch does. When an airport is closed, aircraft don't skip it; instead, they keep overflying it until reopened. This is, in my opinion, the right behaviour when you want to empty the airport to upgrade it. Having aircraft fly back to their origin (I don't use aircraft routes with more than two orders) won't do them any good, and it unnecessarily increases landing pressure on the other airport. It is better to have them ready to land as soon as the destination airport is reopened.

In a sense, airports are somewhat unlike other stations: Road vehicle stations and docks are never upgraded, and train stations are, but it can be done track by track (or even tile by tile), so you can wait until a platform is clear and then convert it, even if the station is extremely busy. An airport has to be demolished and rebuilt as a whole, which requires it to be empty, and that may be difficult or impossible to achieve with heavy traffic. This is the reason why this patch is necessary (or, at least, very useful) for airports but not for other station types.

_________________
My patches: Close airports | Upgrade airports


Top
 Profile  
 
 Post subject: Re: Patch: Close airports
PostPosted: Mon Dec 01, 2008 10:06 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
cirdan wrote:
planetmaker wrote:
new FEATURE: close airport button only shows for stations which actually are an airport.
We have already discussed this issue, and I still think that the right thing to do is to disable, not hide, the close button for airportless stations, just like the scheduled aircraft button (or the scheduled ships button for dockless stations, etc.). It's a matter of consistency.

Plus your patch triggers an assertion if an airport is added to a station while the station window is open.


Well, we recently had a discussion concerning that on IRC. There the majority held the view that the proper way is to hide it - why should every inner city bus stop have such HUGE close airport button? But actually it got proposed to tackle it in another way than I did it here: not introducing a 2nd widget list, but to simply hide the button from view (rather than disable). I guess that solution would also help to avoid the assert which you discovered. Thanks for that.

_________________
Image
OpenTTD: manual | online content | translations | #openttdcoop: blog | wiki | public server | dev server | NewGRF pack | DevZone
Base Sets: OpenSFX | OpenMSX | OpenGFX | NewGRF: Swedish Rails | Variable Snowline | OpenGFX+ | ComicHouses


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 186 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
House Insurance | Jobs search | Breast Enlargement | Internet advertising | Find jobs
Powered by phpBB © 2000-2009 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2010.
Hosted by Zernebok.