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

c933103
Engineer
Engineer
Posts: 6
Joined: 04 Mar 2016 03:16

Re: Cargo Distribution

Post by c933103 » 04 Mar 2016 08:16

Question: How do you overload a travel link to red like shown in the attached screenshot? I can only make it up to green...

Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4746
Joined: 09 Sep 2007 05:03
Location: home

Re: Cargo Distribution

Post by Alberth » 04 Mar 2016 15:02

Create more cargo or accept more passengers to transport.
Alternatively, reduce the transport capacity :)
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.

c933103
Engineer
Engineer
Posts: 6
Joined: 04 Mar 2016 03:16

Re: Cargo Distribution

Post by c933103 » 05 Mar 2016 17:19

I just read another forum post which said I have to turn cargodist on to make them display in yellow/red, and seems like it's off here..

Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4746
Joined: 09 Sep 2007 05:03
Location: home

Re: Cargo Distribution

Post by Alberth » 07 Mar 2016 15:55

That could help :)

Open the settings menu (from in-game if you want to change an existing game), use "advanced settings", and type "cargo dist" as search text.
Alternatively, open "Environment -> Cargo Distribution".
There are all the cargo dist settings. Change distribution modes of the cargo-types that you want handled by cargo-dist to something else than "manual".
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: Cargo Distribution

Post by McZapkie » 19 Dec 2017 20:35

There is an exploit: is it easily possible to cheat by pumping station ratings with single vehicle waiting for full load, with single order as such.

Is it possible to fix this feature?
:bow:

User avatar
supermop
Tycoon
Tycoon
Posts: 1047
Joined: 21 Feb 2010 00:15
Location: Fitzroy North - 96

Re: Cargo Distribution

Post by supermop » 20 Dec 2017 18:12

McZapkie wrote:There is an exploit: is it easily possible to cheat by pumping station ratings with single vehicle waiting for full load, with single order as such.

Is it possible to fix this feature?
:bow:
This exists without Cdist as well, and has since the original game I believe...


McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: Cargo Distribution

Post by McZapkie » 21 Dec 2017 08:17

supermop wrote: This exists without Cdist as well, and has since the original game I believe...
No, vehicle would load everything which have no explicit destination. It is not possible to make single order and force vehicle to stuck on station in case of manual cargodist or if station is fresh (with red marked cargo "to anywhere").
But once link is established, vehicle would sit and not load cargo with fixed destination.

It totally kills cargodist idea, were you get higher station ratings traded for local freight. With this exploit you can get high station ratings plus all traffic at long distance.

Possible fix is to generate randomly small amounts of "cargo to anywhere".
Such fix would be also useful to establish new links, currently it is sometimes hard to attach new destination into existing network.
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Eddi
Tycoon
Tycoon
Posts: 7424
Joined: 17 Jan 2007 00:14

Re: Cargo Distribution

Post by Eddi » 21 Dec 2017 20:29

McZapkie wrote:It is not possible to make single order and force vehicle to stuck on station
uhm, make a load order with ridiculously long timetable waiting time?
You might not exactly be interested in Ferion, but if you are, have fun :)


McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: Cargo Distribution

Post by McZapkie » 22 Dec 2017 11:10

andythenorth wrote:Piglet variant B: drop off cargo at a nearby dump station and return to pickup.
It is not working well currently, because bad rating of target station affect source rating.
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

User avatar
andythenorth
Tycoon
Tycoon
Posts: 5035
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Cargo Distribution

Post by andythenorth » 22 Dec 2017 17:41

McZapkie wrote:It is not working well currently, because bad rating of target station affect source rating.
Do I misunderstand, or is there some patch I don't know about? How does rating of destination affect rating of source? :D

HapticTactic
Engineer
Engineer
Posts: 23
Joined: 15 Mar 2019 19:56

Re: Cargo Distribution

Post by HapticTactic » 25 Mar 2019 15:58

Eddi wrote:
McZapkie wrote:It is not possible to make single order and force vehicle to stuck on station
uhm, make a load order with ridiculously long timetable waiting time?
Sorry to revive the old topic but this exploit bothers me too.

Yes, in general, the vehicle waiting time in stations is what causes this exploit and I don't believe it is caused by Cargo Distribution itself.

I can think of at least two possible underlying causes for this exploit:

1) "Days since last cargo pickup" exploit: A fully loaded vehicle being "loaded" at the station for months counting as a vehicle actually loading units of cargo despite being already full. Would this be a bug or a limitation of the game engine?

2) A vehicle being loaded at the station being considered by the game as an vehicle arriving at the station with each game time update. I heard/read somewhere that frequency of arrival of vehicles to the station influences rating too but I cannot find any evidence for this on the OTTD wiki. Would this be a bug or a limitation of the game engine?

Is there a general fix or at least another forum thread where this issue is being discussed? I believe this is a pretty major exploit that needs to be fixed. Are the devs aware of this? Or is there a patch I am not aware of?

Thank you.

User avatar
jfs
Director
Director
Posts: 604
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Cargo Distribution

Post by jfs » 25 Mar 2019 20:33

You should post bug reports (including exploits :) ) on the issue tracker: https://github.com/OpenTTD/OpenTTD/issues

But no, there is no code that tracks frequency of visits to a station, only a single number (for every cargo) for when a vehicle last loaded at it.

HapticTactic
Engineer
Engineer
Posts: 23
Joined: 15 Mar 2019 19:56

Re: Cargo Distribution

Post by HapticTactic » 26 Mar 2019 11:42

jfs wrote:You should post bug reports (including exploits :) ) on the issue tracker: https://github.com/OpenTTD/OpenTTD/issues

But no, there is no code that tracks frequency of visits to a station, only a single number (for every cargo) for when a vehicle last loaded at it.
Thank you for the clarification about the frequency of visits!

To be absolutely precise, by "for every cargo" you mean "for each single unit of the given cargo" therefore 100 passengers would be counted as 100 individual loadings of the cargo?

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9331
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cargo Distribution

Post by planetmaker » 26 Mar 2019 11:54

HapticTactic wrote:
jfs wrote:You should post bug reports (including exploits :) ) on the issue tracker: https://github.com/OpenTTD/OpenTTD/issues

But no, there is no code that tracks frequency of visits to a station, only a single number (for every cargo) for when a vehicle last loaded at it.
Thank you for the clarification about the frequency of visits!

To be absolutely precise, by "for every cargo" you mean "for each single unit of the given cargo" therefore 100 passengers would be counted as 100 individual loadings of the cargo?
No, for each cargo type, that is passengers, mail, coal,...

McZapkie
Tycoon
Tycoon
Posts: 1176
Joined: 18 Jan 2014 18:10

Re: Cargo Distribution

Post by McZapkie » 26 Mar 2019 13:36

Because this thread was resurrected, let me go into Indiana Jones mode and comment some ancient scrolls:
andythenorth wrote:
McZapkie wrote:It is not working well currently, because bad rating of target station affect source rating.
Do I misunderstand, or is there some patch I don't know about? How does rating of destination affect rating of source? :D
Not sure when such feature was implemented, but I checked current 1.8.0 version and it works as well:
transferrating.png
transferrating.png (71.61 KiB) Viewed 953 times
Station rating gradually drops, if cargo transferred from this station is sitting on the station with bad rating. No matter is cargodist is on or off.
Very good patch indeed, two issues are solved:
* no production boost cheating by local transfers;
* self-regulation of overloaded cargodist network (not super efficient, but it is smth.)
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension, V4 CEE train set.
Addicted to freeciv longturn.

Eddi
Tycoon
Tycoon
Posts: 7424
Joined: 17 Jan 2007 00:14

Re: Cargo Distribution

Post by Eddi » 26 Mar 2019 16:28

IIRC there was a feature in cargodist that checks how much cargo is piled up on intermediate stations. i forgot the details, though.
You might not exactly be interested in Ferion, but if you are, have fun :)

User avatar
romazoon
Tycoon
Tycoon
Posts: 1290
Joined: 20 Jun 2010 23:16

Re: Cargo Distribution

Post by romazoon » 26 Mar 2019 16:32

If i remember correctly, in the begginings of Cargodist there was a setting players could modify to reduce the effect on source station from cargo waiting in another station, it then disapeared from the setting menu.

I often wondered why, because i noticed the effect was still there.



And i could add to what mczapkie said about the "exploit", you don t even need the piglet truck to actually pick up something, only trying to pick up is enough to raise the ratings.

I often use it, and simply use a single order for that : go to station (unload and load if possible). That way, cargo eventually loaded get unloaded at the source station and eventually taken by another vehicle waiting. But with cargodist on, and once all cargo are routed, that piglet is actually not even loading something as it has no destination, and just by trying to load, it does its job of raising the rating.

I m also against removal of that behavior btw, That truck looses money (it s running cost), so it may be an exploit but it s not a free exploit.

HapticTactic
Engineer
Engineer
Posts: 23
Joined: 15 Mar 2019 19:56

Re: Cargo Distribution

Post by HapticTactic » 27 Mar 2019 12:33

planetmaker wrote:
HapticTactic wrote:
jfs wrote:You should post bug reports (including exploits :) ) on the issue tracker: https://github.com/OpenTTD/OpenTTD/issues

But no, there is no code that tracks frequency of visits to a station, only a single number (for every cargo) for when a vehicle last loaded at it.
Thank you for the clarification about the frequency of visits!

To be absolutely precise, by "for every cargo" you mean "for each single unit of the given cargo" therefore 100 passengers would be counted as 100 individual loadings of the cargo?
No, for each cargo type, that is passengers, mail, coal,...
1) So one uninterrupted full loading of passengers to a train would count as one event of loading of passengers and be considered as the most recent time the passengers cargo type was loaded at a given station? Correct?

2) What happens when there is not enough passengers and the train is loaded to certain percentage and more percentage is loaded gradually in many days, for example?

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 5 guests