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

jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

Re: Cargo Distribution

Post by jub »

Hello,

here is a save which throws an assertion in about a month (flowmapper.cpp:25). I'm not sure which exact revision I have compiled, the version in title is "OpenTTD g72af1236-(no branch)". It is not the latest one, so maybe it's already fixed.

Regards,
jub
Attachments
assert2.sav
crashes in about a month
(1.34 MiB) Downloaded 75 times
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

jub wrote:here is a save which throws an assertion in about a month (flowmapper.cpp:25). I'm not sure which exact revision I have compiled, the version in title is "OpenTTD g72af1236-(no branch)". It is not the latest one, so maybe it's already fixed.
This is the same as el koeno's problem from the last page. It has been fixed. Thanks for the report. You can apply the attached little patch to your current version to solve the problem. But please tell me about it when posting further reports.
Attachments
paths.diff
avoid multiple path cycles through the same node
(2.22 KiB) Downloaded 75 times
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 »

Wow! What happened to this page? http://fickzoo.com/fonsinchen/patches/current/ Where is smallmap zoomin for trunk?
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 »

fonso wrote:
jub wrote:here is a save which throws an assertion in about a month (flowmapper.cpp:25). I'm not sure which exact revision I have compiled, the version in title is "OpenTTD g72af1236-(no branch)". It is not the latest one, so maybe it's already fixed.
This is the same as el koeno's problem from the last page. It has been fixed. Thanks for the report. You can apply the attached little patch to your current version to solve the problem. But please tell me about it when posting further reports.
Now how would I apply that, Im on Windows 7 with a fresh install of Visual Studio 2005 Pro (I need it mainly for school so I can't get 2008 or 2010)
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 »

petert wrote:Wow! What happened to this page? http://fickzoo.com/fonsinchen/patches/current/ Where is smallmap zoomin for trunk?
Oops ... it seems there is a glitch in my patch creation system. Mind that you can always find various versions of various patches agains trunk here: http://fickzoo.com/fonsinchen/patches/against_trunk/ .
The ones in http://fickzoo.com/fonsinchen/patches/current/ are in fact only symlinks to those from the latest push. Now at times I don't push the whole tree and then some of those symlinks disappear ...
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 »

NekoMaster wrote:
fonso wrote:
jub wrote:here is a save which throws an assertion in about a month (flowmapper.cpp:25). I'm not sure which exact revision I have compiled, the version in title is "OpenTTD g72af1236-(no branch)". It is not the latest one, so maybe it's already fixed.
This is the same as el koeno's problem from the last page. It has been fixed. Thanks for the report. You can apply the attached little patch to your current version to solve the problem. But please tell me about it when posting further reports.
Now how would I apply that, Im on Windows 7 with a fresh install of Visual Studio 2005 Pro (I need it mainly for school so I can't get 2008 or 2010)
So, you can't for example, install both - leaving you with 2005 Pro for school, and 2008 for OTTD?
Last time I checked you could.
Chico008
Traffic Manager
Traffic Manager
Posts: 143
Joined: 05 Mar 2008 10:56
Location: France

Re: Cargo Distribution

Post by Chico008 »

hi

i got a problem, i got the last version of the patch file, applied it succesfully, but when compiling, i have the demand_settings.cpp file missing.

does anyone had the same problem ?

thx
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Chico008 wrote:I got a problem, i got the last version of the patch file, applied it succesfully, but when compiling, i have the demand_settings.cpp file missing.
does anyone had the same problem ?
That file doesn't exist. Can I see the exact error message, please?
The guy on the picture is not me, it's Alonso.
Chico008
Traffic Manager
Traffic Manager
Posts: 143
Joined: 05 Mar 2008 10:56
Location: France

Re: Cargo Distribution

Post by Chico008 »

Code: Select all

e:\compil_ttd\ttd_CD\src\settings_type.h(20) : fatal error C1083: Impossible d'ouvrir le fichier include : 'linkgraph/demand_settings.h' : No such file or directory
yapf_ship.cpp
got this for several files.
User avatar
bigos
Traffic Manager
Traffic Manager
Posts: 181
Joined: 13 Sep 2009 21:15
Location: Poland
Contact:

Re: Cargo Distribution

Post by bigos »

First check if you have that folder linkgraph and files in it. Second think is try to rebuild solution - sometimes such errors happens if you change folders project name.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

fonso wrote:Oops ... it seems there is a glitch in my patch creation system. Mind that you can always find various versions of various patches agains trunk here: http://fickzoo.com/fonsinchen/patches/against_trunk/ .
The ones in http://fickzoo.com/fonsinchen/patches/current/ are in fact only symlinks to those from the latest push. Now at times I don't push the whole tree and then some of those symlinks disappear ...
Well, sometimes I look in the main directory for cargodist, and the file is 0kb, so since then I always download from /patches/current.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

petert wrote:Well, sometimes I look in the main directory for cargodist, and the file is 0kb, so since then I always download from /patches/current.
That's the wrong one. You need to look in http://fickzoo.com/fonsinchen/patches/against_trunk/ , not http://fickzoo.com/fonsinchen/patches/ . Yes, I know, that's somewhat confusing ...
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 »

What is the warning sign patch that you had just added?
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

petert wrote:What is the warning sign patch that you had just added?
It shows the following warning where applicable:

You have set at least one cargo class to be automatically distributed in "Avanced Settings -> Link Graph" and disabled "New orders are 'non-stop' by default" in "Advanced Settings -> Vehicles". This is a BAD idea.

Someone had requested this here and I'm sick of those questions like: "Why are my vehicles loading cargo they're not supposed to load?"
The guy on the picture is not me, it's Alonso.
jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

Re: Cargo Distribution

Post by jub »

fonso wrote: This is the same as el koeno's problem from the last page. It has been fixed. Thanks for the report. You can apply the attached little patch to your current version to solve the problem. But please tell me about it when posting further reports.
Thank for your marvelous cargodist patch and thanks for the diff. Now I don't have to start a new game yet :)
Chico008
Traffic Manager
Traffic Manager
Posts: 143
Joined: 05 Mar 2008 10:56
Location: France

Re: Cargo Distribution

Post by Chico008 »

bigos wrote:First check if you have that folder linkgraph and files in it. Second think is try to rebuild solution - sometimes such errors happens if you change folders project name.
the folder is here, but not the file needed.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Chico008 wrote:
bigos wrote:First check if you have that folder linkgraph and files in it. Second think is try to rebuild solution - sometimes such errors happens if you change folders project name.
the folder is here, but not the file needed.
Are you sure you have the correct patch? Also don't try to apply it with Tortoise. Tortoise doesn't like patches from git.
The guy on the picture is not me, it's Alonso.
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 »

Hmm, could some body please make a win32 build? I would do it my self but VS 2005 keeps saying im missing something or theres a error. I dont need one right now, the next time someone decides to make a build please post a copy.
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 »

I'm watching south park right now, but I promise I will make a win32 build tomorrow, if you don't mind waiting that long? I will make it for r18056. Thanks ;)
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 »

petert wrote:I'm watching south park right now, but I promise I will make a win32 build tomorrow, if you don't mind waiting that long? I will make it for r18056. Thanks ;)
Sure :3 though I wish someone would have made a build with 18000 cause that seams like a number that doesnt happen often, a solid number like that ;3

I wonder if it will get up to 20000 :3
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!
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 2 guests