Project: cargodest

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
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

:( Mac version?? Alain?
Image
2007Alain2007
Chief Executive
Chief Executive
Posts: 658
Joined: 11 Nov 2007 12:06
Contact:

Re: Project: cargodest

Post by 2007Alain2007 »

ok i will but when i get time but if any one wants to update this patchs they can and i make the builds for you
For Community Integrated Version http://code.google.com/p/civopenttd/
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

In that case Alain, can i pm you a couple of patches id like you to do for me :P
Image
User avatar
nulio
Traffic Manager
Traffic Manager
Posts: 157
Joined: 23 Aug 2007 21:20
Location: Portugal

Re: Project: cargodest

Post by nulio »

I would kill for a mac build with both copy and paste and cargodest!

I tried to compile that myself but keep failing to do so :(
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

Skillz, I haz it, but i still can't compile openttd :(
Image
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

Could someone please compile for me cargodest R15774 Mac build??
Image
dasy2k1
Transport Coordinator
Transport Coordinator
Posts: 344
Joined: 20 Sep 2006 23:43
Location: UK
Contact:

Re: Project: cargodest

Post by dasy2k1 »

its a long time since i updated anything. things have changed...
is the mecurial repo still being used for anything or are we just using unix patch(1) now?
audigex
Tycoon
Tycoon
Posts: 2056
Joined: 09 Dec 2007 21:28
Contact:

Re: Project: cargodest

Post by audigex »

Conditional Zenith wrote:No, that behaviour is still as it is from trunk. The problem with doing it based on how far things have traveled over the ground, instead of source to destination point to point, is that it encourages people to make indirect routes, as they would pay better than direct routes.
There's a pretty easy solution, however.

Calculate the payment p for the shipment based on the physical distance between beginning and end industry/station (as it is now)
Find the total track length d (of the shortest route)

Find a payment per track tile x = p/d

Then after each stage in the route, simply multiply the number of tiles travelled on that train by x and give that as the transfer credit. As long as the trains follow the shortest route (or near enough) the last payment will be accurate.
Jon
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

I agree, i think that would be a viable solution, there is the patch would corrects negative income, by reducing the transfer income, to increase the final income at the end.
Image
dasy2k1
Transport Coordinator
Transport Coordinator
Posts: 344
Joined: 20 Sep 2006 23:43
Location: UK
Contact:

Re: Project: cargodest

Post by dasy2k1 »

somthing else i would like to see is the ability to turn on or off for all cargo types,
Yes i know this would be horrendous to implement in the menu as there are up to 256 cargos (i think)

but i have a line at the moment that only works with cargodest on for cereals and only with it off for coal
(the coal uses conditional orders and stockpiling in got to A (glass factory) if there is any left go to B (another glass facotry) if you still have any left go to C (power station ) otherwise go back to the coal mine
this dousent work as the mine produces cargo for say the second glass factory even if its stockpile is full,


with grain it has to make a transfer and the train loads the grain it has just unloaded before the van can cart it away
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

Has anyone else noticed that Celestar hasn't actually been online since Dec 14th 2008. Don't expect an update any time soon. :(
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Project: cargodest

Post by FooBar »

dasy2k1 wrote:with grain it has to make a transfer and the train loads the grain it has just unloaded before the van can cart it away
Then just use transfer orders there. You don't need cargodest for that.
User avatar
ostlandr
Chairman
Chairman
Posts: 882
Joined: 12 May 2007 01:09
Location: Northeastern USA

Re: Project: cargodest

Post by ostlandr »

Did I miss something? Cargodest eliminates the need for transfer orders. If a train has grain on board going to X, and stops at station Y with a truck route from Y to X, it will unload the grain. At least that's how it works for me.
FooBar wrote:
dasy2k1 wrote:with grain it has to make a transfer and the train loads the grain it has just unloaded before the van can cart it away
Then just use transfer orders there. You don't need cargodest for that.
Who is John Galt?
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

That's true, i'm not sure what that comment is about...
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Project: cargodest

Post by FooBar »

Well, in case you have an industry set with stockpile limits, you don't need to use cargodest for industries. In case of industries with stockpile limits, you already have a limit to the amount of cargo you can bring to a certain industry, so you don't need cargodest messing about with that.

IMO, dasy2k1 is using cargodest when it shouldn't be used.


For passengers and mail, it's great, because those cargos travel in two directions. There's no need to enable cargodest for cargo that only wants to go one way if the industry set used is already limiting the amount you can bring to one location.


Now read back dasy2k1's post and then my comment on how to solve the problem described. Then read your own posts and then this one again. Then reply if you feel doing so. Then... :P
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: Project: cargodest

Post by el koeno »

dasy2k1 wrote:with grain it has to make a transfer and the train loads the grain it has just unloaded before the van can cart it away
Sounds like you're using a "Transfer and take cargo" order. You should also make sure the order is set to "No loading" (under the same button as "Full load"), the order will change to "Transfer and leave empty". If I understand your problem correcty, this should fix it.
thys
Engineer
Engineer
Posts: 2
Joined: 30 Mar 2009 15:23

Re: Project: cargodest

Post by thys »

Leanden wrote::( Mac version?? Alain?
I compiled a Mac version for r15708 with the cargodest patch applied.
Attachments
OpenTTD.app.zip
(3.73 MiB) Downloaded 207 times
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Project: cargodest

Post by Leanden »

tyvm thys
Image
User avatar
coalroads artist
Traffic Manager
Traffic Manager
Posts: 254
Joined: 29 Oct 2004 05:49
Location: Australia

Re: Project: cargodest

Post by coalroads artist »

I tried this patch a couple of times and seemed like a great idea but found it to be unrealistic with thousands of passengers piling up at every station and the system was easily manipulated to force feed passengers to any route (whole lot of trains). I was wondering and sorry to be a pain if this has already been mentioned but could cargo have destinations pre determined with an algorithm eg something basic like lots of passengers to big cities and with smaller towns to the nearby larger centre. With frieght have something a bit more random to force long distance haulage with every certain number of industries. An advertised destination in the timetabling would allow user to manually control transfers with timing the critical factor. Just an idea but its great to see someone having a go anyway :)
Image
Original AUSSET graphics artist.
-Mr squiggle was my mentor!
Tracking table-Ausset
audigex
Tycoon
Tycoon
Posts: 2056
Joined: 09 Dec 2007 21:28
Contact:

Re: Project: cargodest

Post by audigex »

I believe that a better algorithm for the creation and chosen destination of passengers is a major step somewhere in this or the economic balancing projects.

The cargodest project is pretty stagnant at the moment, although it is useable. If people throw ideas around, however, then it'll mean less decisions need to be discussed when people do eventually get back to the project.

Think about PBS - various PBS project started, stalled, restarted and stagnated over several years. Through that time, however, people talked about the problems, needs and wants for the setup and eventually we ended up with YAPP in trunk. Hopefully cargodest won't take so long :-)
Jon
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google [Bot] and 7 guests