Cargo Distribution

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

User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

rini17 wrote:I tried newest version from git (commit 5d3e26eb7) under linux x64 and it was occassionally crashing. I tried to look it up with gdb and came up with easy fix, below.
Thanks for the report. I've fixed it in d90184e3.
The guy on the picture is not me, it's Alonso.
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: Cargo Distribution

Post by Wasila »

Sorry about the bump, but is this no longer being worked on? Or is there something being worked on between this and YACD?
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

I'm occasionally merging with trunk and uploading the result. I've just done that. I haven't gotten around to rework the distyact branch for current yacd, yet, as that is much more work. And I have that bug report on github which I should take care of...
The guy on the picture is not me, it's Alonso.
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: Cargo Distribution

Post by Wasila »

What exactly is the distyacd branch? I've heard about it, but don't see what it adds to YACD/takes from CargoDist.
User avatar
FlameSing
Traffic Manager
Traffic Manager
Posts: 161
Joined: 31 Jan 2011 15:50

Re: Cargo Distribution

Post by FlameSing »

Sorry for the stupid question, but I can't understand one thing. Why does the message "Cost: ..." appears over vehicle? It sometimes appears instead of "Transfer" or "Income".
Sorry for my awful English.

My modest screenies.
User avatar
Level Crossing
Tycoon
Tycoon
Posts: 1187
Joined: 07 Feb 2011 22:04
Location: East Coast, United States

Re: Cargo Distribution

Post by Level Crossing »

FlameSing wrote:Sorry for the stupid question, but I can't understand one thing. Why does the message "Cost: ..." appears over vehicle? It sometimes appears instead of "Transfer" or "Income".
That means that you have to pay to transport the goods. You do not get a profit from this.
Like my avatar? See my screenshot thread
User avatar
FlameSing
Traffic Manager
Traffic Manager
Posts: 161
Joined: 31 Jan 2011 15:50

Re: Cargo Distribution

Post by FlameSing »

Level Crossing wrote:That means that you have to pay to transport the goods. You do not get a profit from this.
But why does it happens?
Sorry for my awful English.

My modest screenies.
User avatar
Level Crossing
Tycoon
Tycoon
Posts: 1187
Joined: 07 Feb 2011 22:04
Location: East Coast, United States

Re: Cargo Distribution

Post by Level Crossing »

FlameSing wrote:
Level Crossing wrote:That means that you have to pay to transport the goods. You do not get a profit from this.
But why does it happens?
I was just reading another forum thread about it, but I forgot. :x

Here's a wiki article with the info:
http://wiki.openttd.org/Negative_income ... er_service
Like my avatar? See my screenshot thread
User avatar
FlameSing
Traffic Manager
Traffic Manager
Posts: 161
Joined: 31 Jan 2011 15:50

Re: Cargo Distribution

Post by FlameSing »

Oh, thanks a lot! Now it's clear for me, I'm happy :lol:
Sorry for my awful English.

My modest screenies.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

distyacd implements cargodist's "distribution" behavior of routing goods only to reachable destinations (and to all of them) on top of yacd. However, it's stuck with an old version of yacd at the moment.
The guy on the picture is not me, it's Alonso.
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: Cargo Distribution

Post by Wasila »

So does this mean some cargo is done using YACD's technique and some with yours? Or can it be toggled on/off / between the two?

Sorry about all the questions - I'm very interested in the current situation.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Cargo Distribution

Post by Alberth »

In the combined cdist/yacd program, cdist is 'just' a layer on top of yacd.

yacd has the concept of labeling cargo with a destination, deciding the routing of cargo through the network, and computing payment on delivery.
(all this was of course also in the cdist before yacd appeared.)

This is all just infra structure. Kind of like the postal service, where the player controls the vehicles.
The service in itself has the capability to transport packages, but it needs actual packages from external sources to become active. If everybody would stop sending letters, they'd just all sit down and wait for a letter :p

yacd also has a way of generating labeled cargo, so the player actually has something to transport.

cdist in this respect replaces that way of generating labeled cargo with a different one.
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: Cargo Distribution

Post by Wasila »

I'm afraid I'm still slightly confused... So if YACD's way of generating cargo (with a predetermined destination anywhere) is replaced by Cargodist's way (with a pretermined destionation already on the network) you are saying that Cargodist and Cargodist YACD edition are functionally the same? So what's the point?
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Cargo Distribution

Post by Alberth »

I never studied either patch, so I'll leave it to the authors to explain the differences in more detail.

As for the point, why can you buy 5 different coffee machines in a shop?
After all, any machine would do, right?

The answer is mostly that they differ in how they are constructed, what extensions may be possible, how fast it works, etc.
Different implementations of the same patch (eg we also have 3 or so daylength patches) have similar differences between them.

The trick is now to take the strong points of cdist, yacd, and its combination, so the end result will be as good as possible.
dragon2184
Engineer
Engineer
Posts: 2
Joined: 10 Jun 2011 08:26

Re: Cargo Distribution

Post by dragon2184 »

Hi

Im new to this forum but ive played the old cargo destination pack in the past. i have to say you guys are geniuses, and i cant play the normal game anymore because Cargodist is just too good. Anyway ive recently reinstalled windows and im now looking at getting the latest cargodist pack. unfortunately im not great with computers. is there an easy way to download the latest whole game or do i need to get the old file and update it??

sorry for my lack of knowledge, that was probably a dumb question but ill take the criticism so long as i get to play this awesome version of an already awesome game!

thanks for anyones time in replying
Creat
Traffic Manager
Traffic Manager
Posts: 141
Joined: 26 Oct 2009 16:33

Re: Cargo Distribution

Post by Creat »

The link you are looking for is in the first post, I'd suggest you read it (it does have important information).

The link to get the most up to date version is this. Download the ZIP-file that corresponds to your system (32 or 64 bit), extract it and you should be able to run it just fine. You only need the file that ends in .zip, just ignore the rest ;)
ProfMobius
Engineer
Engineer
Posts: 4
Joined: 21 Jun 2011 16:38

Re: Cargo Distribution

Post by ProfMobius »

Hello there. I wanted to know if Cargo Distribution allows for a distribution mode similar to Simutrans (i.e: Coal mine A can only deliver coal to factory B and C, etc). This is something I really liked in Simutrans and was hoping to see in OpenTTD.
User avatar
Level Crossing
Tycoon
Tycoon
Posts: 1187
Joined: 07 Feb 2011 22:04
Location: East Coast, United States

Re: Cargo Distribution

Post by Level Crossing »

ProfMobius wrote:Hello there. I wanted to know if Cargo Distribution allows for a distribution mode similar to Simutrans (i.e: Coal mine A can only deliver coal to factory B and C, etc). This is something I really liked in Simutrans and was hoping to see in OpenTTD.
If I am not mistaken, YACD (Yet Another Cargo Destinations) has something like that, where cargo choose a destination in the beginning, whether it is on a route or not.
Like my avatar? See my screenshot thread
Creat
Traffic Manager
Traffic Manager
Posts: 141
Joined: 26 Oct 2009 16:33

Re: Cargo Distribution

Post by Creat »

Yes it does. But YACD also currently assigns amounts to specific destinations. That means that if coal mine A will deliver coal to powerplants B and C, and you don't connect A to C, about half the coal won't show up at all for you to transport. In simutrans connecting any one destination (of the list of valid destinations) would suffice to be able to transport everything a coal mine produces.
ProfMobius
Engineer
Engineer
Posts: 4
Joined: 21 Jun 2011 16:38

Re: Cargo Distribution

Post by ProfMobius »

Thank for the answers. Shortly after posting, I tried YACD and it is as close as it can get to Simutrans mechanism. You are right that the cargo is split between different destinations, so you can't really move everything to a given destination, but it is quite nice in the concept (a coal mine will have contracts with different industries, etc).
Only thing missing is an easy way to check the destination industries. You have to open the coal mine, click on each destination, and check where it is (no 'link industries' overlay like in simutrans).
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 10 guests