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
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Cargo Distribution

Post by NekoMaster »

tsjook wrote:The game crashed in the menu after abandoning my game (petert's latest build). Still, the crash save succeeded (haven't tried opening it yet).

edit: The savegame leads me to the game visible on the background of the menu. :P When loading, I get the following warning.
yeah, that always happens when you try and play that game in the BG from a crash save, its very old and someone should update it. Anyone willing to try?
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Addressing quite a few issues:
Raichase wrote:petert - many thanks for continuing to provide these win32 files, it is much appreciated by those of us that have no idea what they are doing, and just like playing the game :)). Thanks mate!
Thanks, I always love to help out to those who cannot compile themselves! I'm always glad when my work is appreciated.
Rubidium wrote:Yup, that happens because it isn't compiled with MSVC and as such doesn't have the whole crash handler. Not to mention that it will only work with MSVC, and not with GCC, because the crash log/dump doesn't contain that much information; it's the 'pdb' file together with the crash 'dmp' that provide the useful information. GCC can't make such a 'pdb' file and is thus totally useless.
I've yet to get MSVC working with compiling OpenTTD, I've followed the guide, but I get some errors.
tsjook wrote:When loading, I get the following warning.
Well, that's probably because of a NewGRF. Can you try again without loading the NewGRF?
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Cargo Distribution

Post by NekoMaster »

tsjook wrote:When loading, I get the following warning.
petert wrote: Well, that's probably because of a NewGRF. Can you try again without loading the NewGRF?
Not possible, like I said, that ALWAYS happens when attempting to load the opntitle map from a crash save. its using no grfs so I dont know why it does that, it works in older versions of openttd
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

The crash.log says:

Code: Select all


---- gamelog start ----
Tick 62675: game loaded
     Conversion from OTTD savegame without gamelog: version 4, 1
     Revision text changed to r18209M, savegame version 250, modified, _openttd_newgrf_version = 0x08004721
     New game mode: 0 landscape: 1
     Added NewGRF: GRF ID 535A1344, checksum EE64CDD6E4600C717B448583026DF24D, filename: temperate_oil_wells_can_increase.v2\oilsgoup.grf
     Added NewGRF: GRF ID 62633273, checksum 9418C3F0141D551BF7F394F669D3BD23, filename: 2ccshipsw.grf
     Added NewGRF: GRF ID 414E0101, checksum E7C0328142A7CE66C0FA9D3C486ADDFE, filename: fish.grf
     Added NewGRF: GRF ID 4D656F91, checksum F41D273AC5714577DD3A72C204B1B69B, filename: ecs_town_vector.b5__27_jun_2009_\ecstownw.grf
     Added NewGRF: GRF ID 4D656F92, checksum CFFF044D006AFE0F9458EE02ECD6CCDE, filename: ecs_basic_vector.b5__28_jun_2009_\ecsbasicw.grf
     Added NewGRF: GRF ID 4D656F97, checksum 61963F35F0B82C895345D2B849E92B94, filename: ecs_agricultural_vector.b5__20_oct_2009_\ecsagriw.grf
     Added NewGRF: GRF ID 4D656F9C, checksum 285F2B640F1CEBA500308EFD57BCD1DC, filename: ecs_chemical_vector_ii.b5__27_jun_2009_\ecschem2w.grf
     Added NewGRF: GRF ID 4D656F96, checksum 96F011E46F5E1961C09D23268D1BFC26, filename: ecs_construction_vector.b5__02_aug_2009_\ecsconstw.grf
     Added NewGRF: GRF ID 4D656F94, checksum 3ACF0D96127544A368BE50801DD41A96, filename: ecs_machinery_vector.b5__25_sep_2009_\ecsmachw.grf
     Added NewGRF: GRF ID 4D656F95, checksum 4E73D1420E11F87522923AFBF929843E, filename: ecs_wood_vector.b5__28_jun_2009_\ecswoodw.grf
... (lots more) ...
So at some point it at least tried to load some newgrfs. If that was when the game started it shouldn't be the problem. Otherwise it's another case of changing newgrfs during the game. I'll have a look at it.
The guy on the picture is not me, it's Alonso.
User avatar
tsjook
Traffic Manager
Traffic Manager
Posts: 197
Joined: 22 Apr 2009 18:33

Re: Cargo Distribution

Post by tsjook »

fonso wrote:The crash.log says:
[...]
So at some point it at least tried to load some newgrfs. If that was when the game started it shouldn't be the problem. Otherwise it's another case of changing newgrfs during the game. I'll have a look at it.
Well, I haven't changed any newgrf's. And please note that it changed in the menu when I clicked (I believe) economy in the advanced settings (it's possible to verify this @ included auto-screenshot). I guess the fact that it crashed in the menu decreases the chance that the game crashed because of cargodist, but since it's a cargodist build it does belong here.
huldu
Engineer
Engineer
Posts: 29
Joined: 14 Nov 2009 19:45

Re: Cargo Distribution

Post by huldu »

Is there any win 32 compile with this using the latest openttd and latest cargodist?
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Sorry, fonso hasn't updated the carogdist diff, so I can't make a binary. *hint hint*
huldu
Engineer
Engineer
Posts: 29
Joined: 14 Nov 2009 19:45

Re: Cargo Distribution

Post by huldu »

I see what you mean, i just installed VC++ and tortoise, in an attempt to try compile it myself. Apparently the patch does not work with the latest source of openttd? When i try apply the patch only white boxes appear. When trying to apply other patches file listings etc appear. Such a shame, was really looking forward to trying this out.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Well, I'm using MSYS so I get "failed hunks", but I'm glad you're compiling yourself. You can also just use my most recent binary.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Cargo Distribution

Post by Alberth »

huldu wrote:I see what you mean, i just installed VC++ and tortoise, in an attempt to try compile it myself. Apparently the patch does not work with the latest source of openttd? When i try apply the patch only white boxes appear. When trying to apply other patches file listings etc appear. Such a shame, was really looking forward to trying this out.
Tortoise doesn't eat patches from anything else than subversion, in particular, not from mercurial nor from git.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Here is the latest patch of cargodist for SVN:
Attachments
cargodist_r18208_svn.diff
(229.01 KiB) Downloaded 61 times
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

tsjook:

Please give me a step-by-step description how you got that error in the menu. When I load and unpause the crash save you posted the game immediately crashes because of train 9 having an invalid length. I can't get back to the menu from there.

I don't quite know how you arrived at that "invalid length" state either. It's strange that you have somehow loaded two trainsets (2cc and dutch) while the "multiple newgrf engine sets" setting is off. That shouldn't be possible. Do you remember how you did that? It's also strange that those two industry grfs are disabled for no apparent reason.

Is that both the same for you if you load the crash.sav yourself? You can check if you open the newgrf/advanced settings before unpausing.
The guy on the picture is not me, it's Alonso.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Hello all,
Here is a updated binary against the latest trunk as of now (r18286). Also, here is an svn diff against r18286. Enjoy. :)
Attachments
cargodist_r18286.diff
(228.91 KiB) Downloaded 106 times
cargodist_r18286_win32.rar
(3.62 MiB) Downloaded 208 times
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

tsjook, I'd really like to know how you got that crash.sav . Obviously it's the title game. However, it's loaded with about 20 grfs, among which are 2 train grfs. At the same time the "multiple engine sets" option is off. Furthermore one of the trains is also listed as a tram in the savegame and as a truck in the vehicle list (train 9/ rv 20).
The guy on the picture is not me, it's Alonso.
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Cargo Distribution

Post by Gremnon »

That, to me, smacks of A: Conflicting sets, more so because of the multiple sets switch off and B: a modified title screen.
Beday
Engineer
Engineer
Posts: 14
Joined: 17 May 2009 14:45

Re: Cargo Distribution

Post by Beday »

Once again I did encounter a problem. Once again with AI's. I think it has to do with the AI, because the game with the AI killed does work fine.

Hopefully it is of use for the development.

good luck!

http://www.megaupload.com/?d=9RCEWKOT
iranair777
Traffic Manager
Traffic Manager
Posts: 163
Joined: 13 Apr 2007 21:18

Re: Cargo Distribution

Post by iranair777 »

Hiya all,
I installed the latest cargodest and set up a simple test run in the west of england and am wondering why is it when I transport passengers from a station, that stations passenger numbers doesn't decrease? I have about 7 buses on a route and none of the two stations pax decrease Image
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

iranair777 wrote:Hiya all, I installed the latest cargodest and set up a simple test run in the west of england and am wondering why is it when I transport passengers from a station, that stations passenger numbers doesn't decrease? I have about 7 buses on a route and none of the two stations pax decrease
I'm not completely sure, but I think the pax and stations are affected by the underlying tools of CargoDist.
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: Cargo Distribution

Post by el koeno »

iranair777 wrote:Hiya all,
I installed the latest cargodest and set up a simple test run in the west of england and am wondering why is it when I transport passengers from a station, that stations passenger numbers doesn't decrease? I have about 7 buses on a route and none of the two stations pax decrease Image
If you want people to help you, you should post a savegame. Without. there's nothing people can say...
s's
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

iranair777 wrote: I installed the latest cargodest
Did you install CargoDEst or CargoDIst? They are not the same thing.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 8 guests