Patch: Filter by cargo [in trunk]
Moderator: OpenTTD Developers
Patch: Filter by cargo [in trunk]
- 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.
- 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 (83.67 KiB) Viewed 12376 times
-
- filter_by_cargo_r14564.patch
- (10.36 KiB) Downloaded 269 times
Last edited by gule on 13 Apr 2009 09:33, edited 4 times in total.
- Digitalfox
- Chief Executive
- Posts: 710
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can...
Re: Patch: Filter by cargo [r12791]
Hey this is cool
So what happens when theres wagons that support multiple cargos ( can't compile right now ) ?
Nice work

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

Re: Patch: Filter by cargo [r12791]
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.Digitalfox wrote:So what happens when theres wagons that support multiple cargos ( can't compile right now ) ?
- cmoiromain
- Chief Executive
- Posts: 655
- Joined: 15 Jan 2007 21:45
- Location: FRANCE
- Contact:
Re: Patch: Filter by cargo [r12791]
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?
Re: Patch: Filter by cargo [r12791]
This patch is so useful...... hope it gets in the trunk soon.
Re: Patch: Filter by cargo [r12791]
this is ownage thanks.
Nintendo DS OpenTTD ---- Latest YAPP Patch ---- OpenTTD Wiki ----
---- Transport Tycoon PSX
Australia Scenario V1.0 ---- Luukland's Tasmania Scenario ---- Italy Scenario 0.35 --- Build A Town Patch

Australia Scenario V1.0 ---- Luukland's Tasmania Scenario ---- Italy Scenario 0.35 --- Build A Town Patch
Re: Patch: Filter by cargo [r12791]
trunk plx 

Re: Patch: Filter by cargo [r12791]
Yes, trunk plx! 

..: Trond :.. because you deserve it! 
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
MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
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
MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
Re: Patch: Filter by cargo [r12791]
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
Downloads: GRF Crawler (NewGRFs) | OpenTTDCoop GRF Package | Original trains
Scenarios: Jim Powers
Re: Patch: Filter by cargo [r12791]
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 

Re: Patch: Filter by cargo [r12791]
Hi.
Thanks for this great patch. I attached an updated patch file.
Kind regards
Zombie
Thanks for this great patch. I attached an updated patch file.
Kind regards
Zombie
- Attachments
-
- filter_by_cargo_r13059.patch
- (9.7 KiB) Downloaded 222 times
OpenTTD: OpenTTD-Wiki
OpenTTDCoop: Blog, Wiki
My favorite patches: cargo destinations, shared infrastructure
OpenTTDCoop: Blog, Wiki
My favorite patches: cargo destinations, shared infrastructure
Re: Patch: Filter by cargo [r12791]
I would really love to see this patch in the trunk.
Is there any chance for that?
Is there any chance for that?
Re: Patch: Filter by cargo [r12791]
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
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
Town Names:


Still work in progress: OpenGFX or/and OpenSFX - Please help!
Re: Patch: Filter by cargo [r12791]
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
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
OpenTTDCoop: Blog, Wiki
My favorite patches: cargo destinations, shared infrastructure
Re: Patch: Filter by cargo [r13085]
Updated version in first post.zombie wrote:Can anyone please provide a recent patch file?
Re: Patch: Filter by cargo [r13085]
Update to r13374 for anyone who's interested in it 
EDIT: change to svn-diff style, the code itself isn't altered.

EDIT: change to svn-diff style, the code itself isn't altered.
Last edited by Tiberius on 05 Jul 2008 07:26, edited 1 time in total.
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
If anyone want to be the one please implement it for us all

- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Patch: Filter by cargo [r13085]
I like this patch as it avoids browsing through dozens of not needed wagons. Bonus: it's client only 
A nice addition might be to sort engines, too: universal service, freight only & pax only.

A nice addition might be to sort engines, too: universal service, freight only & pax only.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Patch: Filter by cargo [r13085]
This is a _really_ useful patch.
Is there a chance that it will be included in the ottd trunk?
Is there a chance that it will be included in the ottd trunk?
Re: Patch: Filter by cargo [r13085]
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
If anyone want to be the one please implement it for us all

- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Patch: Filter by cargo [r13085]
small bump to make it apply again to trunk
- Attachments
-
- filter_by_cargo_r13704.diff
- filter-by-cargo for r13704
- (9.69 KiB) Downloaded 205 times
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Who is online
Users browsing this forum: No registered users and 10 guests