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
thphwh
Director
Director
Posts: 516
Joined: 23 Dec 2011 13:50
Location: Letchworth GC

Re: Cargo Distribution

Post by thphwh »

Ok, thanks for both your replies!

Sent from my GT-S5830 using Tapatalk
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cargo Distribution

Post by planetmaker »

I tried to retrieve info from a screenshot about the used NewGRFs. Seems that only the software version is output, but not the NewGRF configuration as done with screenshots made with trunk...

Code: Select all

osie ~/Documents/OpenTTD/Gronfingley\ Transport\,\ 2281-01-03.png 
Software: g5225ad3f-cd
I expected output similiar to this:

Code: Select all

Software: hc28b17a1M
Description: Graphics set: OpenGFX (978)
NewGRFs:
41501202 7FD3A30F749BFA5D5E1DF61326AD9B08 heqs_heavy_equipment_set-1.5.1/heqs.grf
414E0101 5D665C64693A438E3046C22666F46E08 fish_ship_set-0.9.2/fish.grf
43485053 2E3CD4DEF5781D546081B382C2E25A93 chips_station_set-1.0.0/chips.grf
44573452 48CF5FC0DEB895136F337A7E563FC66D dwestationtiles_industrial_ter-v0.7/dwe_stat_r.grf
4A430002 EFB21CFA6828362FDA9B2D629B5EEEB4 indstatr-v0.8.1/indstatr.grf
4F472B31 5DAE6C2B974DD9BFDF2035C2D8BAD033 ogfx-trains-0.3.0/ogfx-trains.grf
4F472B32 3FD44FD23CAC8D29AA314BF6A304B684 opengfx_road_vehicles-0.4.0/ogfx-rv.grf
53455230 62AE9E6810240DF86292A4EEC57C0ADD swedishrails/swedishrails.grf

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

Re: Cargo Distribution

Post by fonso »

planetmaker wrote:I tried to retrieve info from a screenshot about the used NewGRFs. Seems that only the software version is output, but not the NewGRF configuration as done with screenshots made with trunk...
This is weird. How can I test that? What is 'osie'? g5225ad3f-cd is from June 12th, btw. When was that feature included in trunk?
The guy on the picture is not me, it's Alonso.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cargo Distribution

Post by planetmaker »

fonso wrote:
planetmaker wrote:I tried to retrieve info from a screenshot about the used NewGRFs. Seems that only the software version is output, but not the NewGRF configuration as done with screenshots made with trunk...
This is weird. How can I test that? What is 'osie'? g5225ad3f-cd is from June 12th, btw. When was that feature included in trunk?
That feature is much older... osie (OpenTTD Screenshot Information Explorer) is a small command line tool which can be used to read out the meta info from openttd screenshots - the output is as I pasted.

I didn't yet check myself with cd whether it doesn't work with that version or a newer - I just got that screenshot. Worth to test with a self-made screenshot, I guess.
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: Cargo Distribution

Post by Michi_cc »

planetmaker wrote:Worth to test with a self-made screenshot, I guess.
The data read by osie is stored in a PNG text chunk just like for example EXIF data is, so it's quite imaginable that there are some image editors that mangle it.

-- Michael Lutz
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: Cargo Distribution

Post by Arie- »

Screenshot taken from the main screen using console and 'screenshot'.

Code: Select all

C:\Users\xxxxxx\Desktop>osie.exe c:\Games\OpenTTD-CD-gd4255b61\screenshot.png
Software: gd4255b61-cd
Description: Graphics set: zBase (162)
NewGRFs:

Companies:
 0: Human
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cargo Distribution

Post by planetmaker »

That looks like what I'd expect to see... so maybe the screenshots I looked at were edited afterwards, even though they didn't look like.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Cargo Distribution

Post by Eddi »

note that you can get the same info with "exiftool" and some other "stock" programs.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

I just tested with a couple of older and newer screenshots and the output (see osie.txt) seems fine. Maybe that guy just doesn't want us to know his newgrfs and edits the screenshots before posting them ...
Attachments
osie.txt
(7.77 KiB) Downloaded 116 times
The guy on the picture is not me, it's Alonso.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Autorefit with cargodist works fine now. Vehicles only refit to cargo which they can actually load.
Attachments
example.sav
created with gaeed7eee-cd
(12.11 KiB) Downloaded 88 times
The guy on the picture is not me, it's Alonso.
LvK
Engineer
Engineer
Posts: 3
Joined: 01 Sep 2012 10:38

Re: Cargo Distribution

Post by LvK »

Hey everyone,

so I've also installed cargodist. It sounds pretty awesome, but I'm experiencing a very strange behavior.

My problem is that neither of my vehicles wants to load any kind of cargo, unless I set "full load" in the vehicle order list. I've tried it both with buses and trains for passengers, and coal trucks and trains for coal. What happens is that the vehicle stops in the station and immediately starts to go to the next station without loading anything (I've double checked, there is actually cargo waiting in the station) If I set in the timetable that I want the vehicle to wait for a couple of days, it stays at the station, but doesn't load anything either.

I don't experience this behavior using the original openttd.

What could be the problem?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Cargo Distribution

Post by planetmaker »

Did you actually check whether there was cargo in the station *before* the vehicle visited it?

Unless you use full load orders, a vehicle will visit all its stations it is ordered to go to, pick up no cargo and only find cargo in the ordered stations on its 2nd trip - after the stations know that it may accept the cargo the vehicle tried to load.
LvK
Engineer
Engineer
Posts: 3
Joined: 01 Sep 2012 10:38

Re: Cargo Distribution

Post by LvK »

Yes, there are actually passengers waiting in the station. I let the game run for 1 year without touching it. More and more passengers were waiting in the stops, but none of the vehicles were loading anyone, unless I specified full load in the orders.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Oops, sorry, I messed up the loading logic with the latest version. Vehicles only load cargo they've reserved before and so they'll only load on full load orders ... and actually it doesn't even compile on the compile farm. Use g4cae4a7a-cd until I get around to fix it.
The guy on the picture is not me, it's Alonso.
LvK
Engineer
Engineer
Posts: 3
Joined: 01 Sep 2012 10:38

Re: Cargo Distribution

Post by LvK »

Ah okay, now it works! Thanks for the help!
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

I've fixed the loading issue.
The guy on the picture is not me, it's Alonso.
User avatar
FLHerne
Tycoon
Tycoon
Posts: 1543
Joined: 12 Jul 2011 12:09
Location: St Ives, Cambs, UK

Re: Cargo Distribution

Post by FLHerne »

The bundles server seems to be over a month behind. I'm happy to compile for linux, but some people who I'd like to play with aren't happy with compiling on Windows, and I don't have that... :(
Is there any particular reason, or somewhere else to get Windows binaries for the recent version? Having come up hard against the autorefit bug before, I'd rather not go back to the old ones :wink: .

Thanks for fixing that, by the way. Now I can proceed with idiotic network design :D
Temporary Permanent signature filling text. Content coming soon delayed indefinitely! Oh, and I have had a screenshot thread.
Linux user (XMonad DWM/KDE, Arch), IRC obsessive and rail enthusiast. No longer building robots; now I ring church bells.
Author of an incredibly boring stickied post about NewGRFs.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

http://farm.openttd.org/browse/OTTD3PT-CD-DOXY-46/log looks like the build farm's hard disk is full. The error is:

Code: Select all

30-Sep-2012 04:28:18  	Could not open file /var/lib/bamboo/xml-data/build-dir/OTTD3PT-CD-DOXY/docs/source/html/functions_enum.html for writing
Maybe I should try to build the documentation sometime, though ...
The guy on the picture is not me, it's Alonso.
dragon2184
Engineer
Engineer
Posts: 2
Joined: 10 Jun 2011 08:26

Re: Cargo Distribution

Post by dragon2184 »

Hi there. i love Cargodist but i cant seem to play it online?
This might be something that has already come up and i have missed it but please post if you have any info.
Thanks
User avatar
FLHerne
Tycoon
Tycoon
Posts: 1543
Joined: 12 Jul 2011 12:09
Location: St Ives, Cambs, UK

Re: Cargo Distribution

Post by FLHerne »

Well, it only works with a CargoDist server of the same version. It won't work in multiplayer with any stable release or trunk version.

There aren't many (any?) public cargodist servers running currently. I used to run one, but no-one used it so I stopped bothering :P .
Temporary Permanent signature filling text. Content coming soon delayed indefinitely! Oh, and I have had a screenshot thread.
Linux user (XMonad DWM/KDE, Arch), IRC obsessive and rail enthusiast. No longer building robots; now I ring church bells.
Author of an incredibly boring stickied post about NewGRFs.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 10 guests