Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Feb 28, 2017 2:34 pm

All times are UTC




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Sep 16, 2012 10:31 am 
Offline
Engineer
Engineer
User avatar

Joined: Sun Apr 13, 2008 6:35 pm
Posts: 13
This patch defines a new kind of load/unload option in OrdersWindow: Load/Unload by cargo type.
When selected a new window is open and allow to choose which load/unload option to use per cargo type.
For loading orders, available options are 'Load if available', 'Full load' and 'No loading'.
For unloading orders, available options are 'Unload if available', 'Unload all', 'Transfer' and 'No unloading'.


Attachments:
File comment: CargoTypeOrdersWindow to edit a loading order; new entry in the unload dropdown.
cto_screenshot.png
cto_screenshot.png [ 99.89 KiB | Viewed 3626 times ]
File comment: Big svn diff against r24526.
cto_r24526.diff [50.08 KiB]
Downloaded 90 times
File comment: HG patch queue against r24526/7faa124a192f, apply with -p1.
cto_r24526.patch.zip [20.21 KiB]
Downloaded 79 times
Top
   
PostPosted: Thu Sep 20, 2012 9:35 pm 
Offline
Engineer
Engineer
User avatar

Joined: Thu Sep 20, 2012 8:54 pm
Posts: 20
Location: Arkansas USA
Hello,

This is my first post here. I've been lurking and reading for awhile, and have learned a lot from the things you guys have written.

Thank you for making this patch. I would like to see this as a standard feature of openttd. This feature is necessary with the game that I am playing now. I have a food processing plant located in a small town that is used to supply food to the local towns by road vehicle, as well as some farther away towns via train. For the remote towns, I send several mixed trains, containing food wagons, and a few passenger and mail wagons. I also send a whole trainload of food to the same station, and use transfer and leave empty orders, so that road vehicles can deliver the food to neighboring towns. This patch/feature prevents the mixed trains from unloading, and then picking up the food dropped off by the train with the transfer orders, and prevents me from having to use a separate train for only a few passengers.


Top
   
PostPosted: Fri Sep 21, 2012 8:09 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Sun Sep 09, 2007 5:03 am
Posts: 4264
Location: home
It's indeed an interesting direction, but the order system is becoming fragmented. I mean, you have the order window, with order lines.
So far so good. Then you can set the place at the platform in the line itself. You can have all sorts of options from the buttons below, where for conditional orders you get a set of completely new options. There are more options possible there, but the room is so limited.
Now we have a second window added...

It is starting to look like a Christmas tree to me.


I am wondering whether it could be more unified in some way.
(I realize all previous things were not made by you, but with dramatic extensions like this, it may be useful to do a step back and re-think things.)


Top
   
PostPosted: Fri Sep 21, 2012 8:19 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9001
Location: Sol d
I wonder whether orders could be made in a somewhat more tabular manner with possibly table entries like
Travel Place Unloading Service Loading Destination
where
Travel = Goto / Goto Non-Stop
Place = near end / middle / far end
Unloading = no unloading / unload all / unload special (as suggested here)
Service = service / service if needed / autorefit / refit / ...(?)
Loading = load if available / full load any / full load all / no loading / load special (as suggested here)
Destination = destination

It would also allow to modify orders in a quicker manner in that you would not first have to select the order but could click directly to change. The different options in the entries could (except destination) be drop-downs or just cycle through by clicking on them

_________________
Image
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


Top
   
PostPosted: Sun Sep 23, 2012 8:19 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Apr 13, 2008 6:35 pm
Posts: 13
  • Bump patches to r24555.
  • Fix: new patch 'cto_13add-assign-order-cargo-type-orders-support_r24555.patch': copy cargo type flags in Order::AssignOrder().


Attachments:
File comment: svn diff against r24555.
cto_r24555.diff [50.44 KiB]
Downloaded 99 times
File comment: HQ patch queue against r24555/a43deb6abd1f
cto_r24555.patch.zip [68.72 KiB]
Downloaded 56 times
Top
   
PostPosted: Sun Sep 23, 2012 8:29 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Tue Dec 03, 2002 10:36 am
Posts: 13146
Location: The Netherlands
This is a very interesting patch that allows very realistic train movements: you can make 1 train act as a feeder on the first half of a route after which it continues with the remaining cargo as a normal train.

And I agree with Alberth that a more unified order window will help. Is that something to discuss sepereately though?

_________________
Image
Dutch Trainset for OpenTTD | Dutch Trainset Topic | Combined Roadset v0.10


Top
   
PostPosted: Sun Sep 23, 2012 9:26 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Apr 13, 2008 6:35 pm
Posts: 13
Thank you for your interest in this patch.

I wrote this patch to be able to run mixed trains in a small infrastructure. Multiple trains can share the same station and load or unload cargoes in different manner.
For example, you can run a Pax/Mail train that will unload/load passengers at each station while collecting mail all along its travel and only deliver it at the end station.

The GUI part of this patch is voluntary simple and try to interfere the less with the orders window (you need to open the cargo type orders window to know which cargo will be loaded/unloaded or not).

I also agree that OrdersWindow is becoming less and less clear. Timetable data are on another window; load/unload options, platform stop position and auto-refit generate very long strings.
I attached some mockups presenting my view of the next orders window; we could discuss about them (and other's proposal/ideas) on a new topic.


Attachments:
next-orders-window.png [42.42 KiB]
Downloaded 8 times
next-orders-window_legended.png [41.13 KiB]
Downloaded 8 times
next-orders-window-timetable_legended.png [33.3 KiB]
Downloaded 8 times
Top
   
PostPosted: Sun Sep 23, 2012 10:15 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Apr 08, 2008 9:47 am
Posts: 228
Location: Finland
That's the most exciting development since signals on tunnels and bridges! Fantastic job, there!


Top
   
PostPosted: Wed Jun 17, 2015 8:16 pm 
Offline
Engineer
Engineer

Joined: Wed Jun 17, 2015 8:12 pm
Posts: 3
This feature (separate type of cargo loading/unloading) is a very urgently needed feature in OpenTTD.
Without this feature you cannot create long and realistic chains of transportation and trains.
In real life most cargo trains have vagons of different type!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: LabUser and 4 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:  
Powered by phpBB © 2000-2017 phpBB Limited

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