Transport Tycoon Forums

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

All times are UTC




Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Patch: Filter by cargo [in trunk]
PostPosted: Sat Apr 19, 2008 4:56 pm 
Engineer
Engineer
Offline

Joined: Thu Dec 16, 2004 3:08 pm
Posts: 60
Location: Slovenia
- in trunk, thanks to frosch and srb

- updated to r14564

- updated to r13085

Hello!

I split my patch Build and refit, into Filter by cargo and Build and refit. Here is only filter part of the patch.
You can filter vehicles by cargo that they can transport.


Attachments:
Unnamed, 1st Jan 2000.png
Unnamed, 1st Jan 2000.png [ 83.67 KiB | Viewed 5597 times ]
filter_by_cargo_r14564.patch [10.36 KiB]
Downloaded 77 times


Last edited by gule on Mon Apr 13, 2009 9:33 am, edited 4 times in total.
Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sat Apr 19, 2008 5:11 pm 
Transport Coordinator
Transport Coordinator
User avatar
Offline

Joined: Thu Oct 28, 2004 4:42 am
Posts: 370
Location: Portugal
Hey this is cool :mrgreen:

So what happens when theres wagons that support multiple cargos ( can't compile right now ) ?

Nice work :D

_________________
I was thinking of retiring from OpenTTD community, but damn I'm too much addicted..


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sat Apr 19, 2008 5:20 pm 
Engineer
Engineer
Offline

Joined: Thu Dec 16, 2004 3:08 pm
Posts: 60
Location: Slovenia
Digitalfox wrote:
So what happens when theres wagons that support multiple cargos ( can't compile right now ) ?

When you select cargo you see all wagons which support this cargo, as default cargo or they can be refited to. So if wagon support coal and goods, you will see this wagon in coal filter and goods filter.


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sat Apr 19, 2008 11:14 pm 
Director
Director
User avatar
Offline

Joined: Mon Jan 15, 2007 9:45 pm
Posts: 612
Location: FRANCE
this patch looks pretty cool and really useful for me! Since I don't know how to compile, I'll wait until it gets in an IN build by someone (this shouldn't take long, when we see how many there are ATM...)

_________________
I am little, ugly, and nasty. How do you do?


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sat Apr 19, 2008 11:26 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Thu Oct 14, 2004 8:08 pm
Posts: 192
Location: Brazil
This patch is so useful...... hope it gets in the trunk soon.


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sun Apr 20, 2008 3:43 am 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Mon Mar 10, 2008 2:45 am
Posts: 247
Location: Australia
this is ownage thanks.

_________________
Nintendo DS OpenTTD ---- Latest YAPP Patch ---- OpenTTD Wiki ---- Image ---- Transport Tycoon PSX
Australia Scenario V1.0 ---- Luukland's Tasmania Scenario ---- Italy Scenario 0.35 --- Build A Town Patch


Top
 Profile E-mail  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sun Apr 20, 2008 8:20 am 
Tycoon
Tycoon
Offline

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1824
trunk plx :D

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Sun Apr 20, 2008 8:43 am 
Chairman
Chairman
User avatar
Offline

Joined: Fri Jan 25, 2008 7:32 am
Posts: 774
Location: No(r)way
Yes, trunk plx! :wink:

_________________
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRF: Norwegian Funny Town Names v2.13 | Favorites: GRFCrawler | ISR | OpenGFX | WIKI | Now Playing: OTTD r13003m MyIn |

Ewo-wox-co-dah-wa


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Mon May 12, 2008 11:44 am 
Traffic Manager
Traffic Manager
Offline

Joined: Mon Jul 24, 2006 10:40 am
Posts: 152
This one very useful feature with all those train and industry packs. Especially given the fact that some trainsets would actually continuously add/remove different wagons through the whole game and would provide 2-3-4 wagons for one type of cargo.

_________________
OpenTTD: Latest Nightly | OpenTTD Manual | Advanced Guides
Downloads: GRF Crawler (NewGRFs) | OpenTTDCoop GRF Package | Original trains
Scenarios: Jim Powers


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Mon May 12, 2008 12:20 pm 
Transport Coordinator
Transport Coordinator
User avatar
Offline

Joined: Fri Oct 01, 2004 3:28 pm
Posts: 313
And it is especially useful as now you can have different trainsets loaded at once, and as there are wagons for each trainset it sometimes gets quite confusing ;-)


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Mon May 12, 2008 12:55 pm 
Traffic Manager
Traffic Manager
Offline

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

Thanks for this great patch. I attached an updated patch file.

Kind regards

Zombie


Attachments:
filter_by_cargo_r13059.patch [9.7 KiB]
Downloaded 51 times

_________________
OpenTTD: OpenTTD-Wiki
OpenTTDCoop: Blog, Wiki
My favorite patches: cargo destinations, shared infrastructure
Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Mon May 12, 2008 3:26 pm 
Transport Coordinator
Transport Coordinator
Offline

Joined: Thu Mar 30, 2006 12:05 pm
Posts: 329
Location: Germany
I would really love to see this patch in the trunk.
Is there any chance for that?


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Tue May 13, 2008 7:24 am 
Chairman
Chairman
User avatar
Offline

Joined: Sun Jun 18, 2006 6:18 pm
Posts: 768
Location: Switzerland
Heya

Is this patch extendable for i.e also filtering for the different GRF sets, since trunk allowes dynamic vehicle pool? (Dunno, if there is more, maybe you could split it to a Filterframework and then add different types of filter?)

Greets
Ammler

_________________
Image
Town Names: Image Swiss / Image French · Image Temperate Lumber Mill
Still work in progress: OpenGFX or/and OpenSFX - Please help!


Top
 Profile E-mail  
 
 Post subject: Re: Patch: Filter by cargo [r12791]
PostPosted: Tue May 13, 2008 10:00 pm 
Traffic Manager
Traffic Manager
Offline

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

Can anyone please provide a recent patch file? The shopping dialog has been transformed into a class and I'm failing doing it myself. My knowledge of C/C++ is kind of limited.

Kind regards

Zombie

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


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r13085]
PostPosted: Wed May 14, 2008 1:02 pm 
Engineer
Engineer
Offline

Joined: Thu Dec 16, 2004 3:08 pm
Posts: 60
Location: Slovenia
zombie wrote:
Can anyone please provide a recent patch file?

Updated version in first post.


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r13085]
PostPosted: Tue Jun 03, 2008 1:18 pm 
Engineer
Engineer
Offline

Joined: Fri Sep 17, 2004 3:15 am
Posts: 86
Update to r13374 for anyone who's interested in it :D

EDIT: change to svn-diff style, the code itself isn't altered.

_________________
I may implement/fix/tweak/eat/ditch it soon (or in distant future, if at all, so don't hold your breath).
If anyone want to be the one please implement it for us all 8)


Last edited by Tiberius on Sat Jul 05, 2008 7:26 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r13085]
PostPosted: Sun Jun 08, 2008 10:11 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
I like this patch as it avoids browsing through dozens of not needed wagons. Bonus: it's client only :P

A nice addition might be to sort engines, too: universal service, freight only & pax only.

_________________
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: Filter by cargo [r13085]
PostPosted: Sun Jun 08, 2008 11:18 am 
Transport Coordinator
Transport Coordinator
Offline

Joined: Thu Mar 30, 2006 12:05 pm
Posts: 329
Location: Germany
This is a _really_ useful patch.
Is there a chance that it will be included in the ottd trunk?


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r13085]
PostPosted: Fri Jul 11, 2008 3:01 pm 
Engineer
Engineer
Offline

Joined: Fri Sep 17, 2004 3:15 am
Posts: 86
Fixed a nasty negative array subscription, that crashes VS2008 optimized binary.

_________________
I may implement/fix/tweak/eat/ditch it soon (or in distant future, if at all, so don't hold your breath).
If anyone want to be the one please implement it for us all 8)


Top
 Profile  
 
 Post subject: Re: Patch: Filter by cargo [r13085]
PostPosted: Mon Jul 14, 2008 10:10 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 3075
small bump to make it apply again to trunk


Attachments:
File comment: filter-by-cargo for r13704
filter_by_cargo_r13704.diff [9.69 KiB]
Downloaded 39 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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  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:  
Find jobs | Free Ecards | Nike Air Force Ones | Camcorders | Debt Help
Powered by phpBB © 2000-2009 phpBB Group

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