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 »

I still can't reproduce any of your crashes, Hamilton2007. However, with MSVC I think you can build a "release" build and still provide the debug symbols (.pdb). Maybe this would solve your problem.

Also you only need to post a single meaningful crash log or dump to dramatically increase the chance of me getting a clue about what is going on there. So maybe you can play one of the slow builds until it crashes once and then post the crash log and dump. This would be very helpful.
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 »

Out of curiosity, why is the current patch against trunk still at r18368? Changes in trunk not yet merged, or just not enough time?
I'm just tryingto understand it, as I've got one or two patches that are after that, that I'm trying to merge.
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: Cargo Distribution

Post by Terkhen »

If a release ("fast") version is enough for debugging the crash, you can use the attached build instead. This is a release binary compiled with MSVC, using http://fickzoo.com/fonsinchen/patches/a ... 18368.diff.

The PDB file is only required for debugging: it is not needed for testing cargo distribution.

Edit: Build outdated.
Last edited by Terkhen on 05 Dec 2009 22:01, edited 1 time in total.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

[...]
Removed because of Rubidium's reply.
Last edited by petert on 02 Dec 2009 23:31, edited 2 times in total.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Cargo Distribution

Post by Rubidium »

petert wrote:Oh, I just made a binary :(. Well, I will post it anyway.
So now when a crash occurs we have to pray that they used Terkhen's build and not yours because if they took yours the crash report is useless because there is no PDB and as such no clue where the crash happened. Luckily there is no real way to tell which off the builds someone downloads although I reckon most people download the last one (because that must be the newest) and as such you totally screw with the chances of this bug being fixed.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

@Creat: Thank you for an amazing reply, and tons of help! I do appreciate it.
Rista
Engineer
Engineer
Posts: 7
Joined: 08 Dec 2008 00:09
Location: Croatia

Re: Cargo Distribution

Post by Rista »

Psistorm wrote:
keoz wrote:Just to tell it once more.

Cargodist is really great. I could no more find any interest in playing OTTD without it.

Still thanks for your work, fonso.
Agreed. Cargodist really makes the game more challenging and more fun. The only thing Id love more is to get my hands on a build with cargodist + improved timetables (for splitting PAX trains evenly. manually just doesnt work out for me even after some trying). But until someone makes a patchpack, Ill happily play this build, Im having lots of fun with it.
Agree with that. Cargodist makes for a great game but it is really missing the automatic separation of vehicles with timetables option.

Tried compiling OTTD for the first time yesterday and it was a success :D No crashes so far as well. Looking around for improved timetable patches and all of them seem to be pretty old. My C++ knowledge is very, very limited so updating one of those is basically a no go :( if someone knows one that will compile with the current revision, please do tell :)
audigex
Tycoon
Tycoon
Posts: 2056
Joined: 09 Dec 2007 21:28
Contact:

Re: Cargo Distribution

Post by audigex »

Agreed, that's the one reason I can't play with cargodist - to me it's all about the passengers, and it just doesn't work as well without ITiM.

Unfortunately the CargodEst + ITiM build I was using is too far behind trunk for me to use now - it's just awkward to lose features again. I'm really looking forward to the first build with ITiM + Cargodist, that would be pretty much my ideal build.

In the same way that PBS paved the way for realistic track layouts, CD+ITiM will allow realistic train services.
Jon
Creat
Traffic Manager
Traffic Manager
Posts: 141
Joined: 26 Oct 2009 16:33

Re: Cargo Distribution

Post by Creat »

About 'Improved Timetables', I know it's not a logical part of Cargodist but maybe it could be possible for fonso to include it in a branch? I would also very much like to have ITiM (at least as an option), any chance of that happening? I think the 'target audience' is pretty much the same group of players for both patches so at least from that point of view it's a logical inclusion :D
petert wrote:@Creat: Thank you for an amazing reply, and tons of help! I do appreciate it.
You're quite welcome, I hope everything works now as it should?
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Rista wrote:if someone knows one that will compile with the current revision, please do tell :)
http://fickzoo.com/fonsinchen/patches/ (against_trunk folder)
Creat wrote:You're quite welcome, I hope everything works now as it should?
There are some fatal errors, actually. I can't copy them down, because I currently don't have access to my machine, but I will give you what happened in the near future.
rbn2903
Engineer
Engineer
Posts: 122
Joined: 08 Dec 2007 18:04
Location: Aachen (Aken), Germany

Re: Cargo Distribution

Post by rbn2903 »

Creat wrote:About 'Improved Timetables', I know it's not a logical part of Cargodist but maybe it could be possible for fonso to include it in a branch? I would also very much like to have ITiM (at least as an option), any chance of that happening? I think the 'target audience' is pretty much the same group of players for both patches so at least from that point of view it's a logical inclusion :D
That would indeed be great, but you can't be sure, that iTiM is bugfree (especially since it is quite old by now and there have been a lot of changes in trunk). So if a crash occurs you can't tell whether it comes from iTiM or CargoDist or both of them together. And at least in CargoDist crashes still happen (according to reports of some users; I don't actually play CargoDist right now!).
Creat
Traffic Manager
Traffic Manager
Posts: 141
Joined: 26 Oct 2009 16:33

Re: Cargo Distribution

Post by Creat »

Speaking of crashes: I meant to report that I haven't had any in quite a while (except for the station-building-bug that came from trunk, as reported by tsjook here). Also all games I've played have been network games and there wasn't a single desync. Maybe whatever had caused the desyncs/crashes before for me/us has been fixed since the game I reported the crashes and desyncs for. That one decsynced about every 30 minutes or so...
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Cargo Distribution

Post by Hamilton2007 »

Still no crash with Therkens build a couple of posts up, :]
huldu
Engineer
Engineer
Posts: 29
Joined: 14 Nov 2009 19:45

Re: Cargo Distribution

Post by huldu »

I have been playing with cargodist_win32_r18368.rar, which might be a bit old right now. However ive had two CTD using it. I have no idea what cause them but it happens after a while playing and seems to always be caused by editing the routes on a vehicle. All i do is click the route button and the game crashes. Wish i had some more info, but thats what happens for me.

<edit> Nvm the above just crashed after a few minutes this time and when i clicked "repay" loan in the report...
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

huldu, can you please check if you have a crash.dmp or a crash.txt? Luckily you're using a build for which there are debug symbols so chances are good that I can actually get a stack trace from your crash dump. This would be a thousand times more useful than anything which has been said about the bug in this thread. I really would like to fix the bug but as it only happens on some systems (and especially not on mine) I'm desperately in need of your help.
The guy on the picture is not me, it's Alonso.
huldu
Engineer
Engineer
Posts: 29
Joined: 14 Nov 2009 19:45

Re: Cargo Distribution

Post by huldu »

I cant find any crash logs or dumps in the folders. Is there any way to enable them? I could easily "recreate" the crash.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

huldu, there should be a file named "crash.dmp" either in the folder where your save games are or in the folder where openttd.cfg is. Additionally you should have seen a crash notification window with the location of the crash dump.

Edit: What version of windows are you running?
The guy on the picture is not me, it's Alonso.
huldu
Engineer
Engineer
Posts: 29
Joined: 14 Nov 2009 19:45

Re: Cargo Distribution

Post by huldu »

Oh.. i found the folder but it has no crash logs in it :( - WinXP
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

You must be using a build that wasn't made with MSVC, try using the build provided by Terkhen.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Is there any file with a name starting with "crash" in any folder associated with openttd? Even the mingw build should produce a log (although that's unreadable). And what does the version string in the title of the main menu say?
The guy on the picture is not me, it's Alonso.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 10 guests