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 »

petert wrote:I'm afraid I can't upload the enable debug build because the exe is 70 mb. You will either have to keep using my builds or build yourself.
You could try uploading to mega upload or media fire or rapid share
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 »

Tomorrow, it's late now.
Auge
Chief Executive
Chief Executive
Posts: 661
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Cargo Distribution

Post by Auge »

Hello
petert wrote:I'm afraid I can't upload the enable debug build because the exe is 70 mb. You will either have to keep using my builds or build yourself.
Whow, 70 MB, it's reasonable not to offer this build. My self compiled g40a1117b Cargodist build with debug has 34 MB (executable: 30.5 MB), as equation: a typical nightly build (downloaded Linux-generic binary) has around 10.4 MB (executable: 4.7 MB; both on GNU/Linux Ubuntu).

Tschö, Auge
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Yes, thanks for understanding. I've never seen a 10MB Linux exe before, wow.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Cargo Distribution

Post by Hamilton2007 »

Also getting crashes with r18286_win32.

Could it be that te crashes happen cause i adjust existing scenarios ?? This time i only used 1 trainset grf, but still two Ship grf and two airplane grf...

Will try a game now with random build map.
Attachments
crash.sav
(570.18 KiB) Downloaded 49 times
crash.txt
(18.35 KiB) Downloaded 59 times
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Cargo Distribution

Post by Hamilton2007 »

And another crash, builded a random map this time.
Attachments
crash.txt
(15.4 KiB) Downloaded 65 times
crash.sav
(1.13 MiB) Downloaded 73 times
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Cargo Distribution

Post by Rubidium »

These Windows crashlogs are utterly useless without a way to resolve the location to a line of source code. So for this bug to be 'uncovered' you need to make the binary with MSVC (not GCC) and post both the executable, the generated .pdb file and the crash.dmp.
Or in other words: debugging code generated by GCC on Windows without running an executable with debugging symbols outside of GDB is virtually impossible. So for Hamilton2007's crash reports to be useful someone needs to make MSVC binaries and not GCC binaries.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Rubidium wrote:So for Hamilton2007's crash reports to be useful someone needs to make MSVC binaries and not GCC binaries.
I've set up MSVC, but I cannot get it to compile. I will try again soon, sorry for all the worthless builds without proper crash reports.
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: Cargo Distribution

Post by Terkhen »

I am going to be the "someone" for once: here is a MSVC debug build of latest cargodist diff. The PDB rar includes the openttd.pdb file. Please tell me if the build needs something else.

Edit: Build outdated.
Last edited by Terkhen on 30 Nov 2009 12:40, 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 »

Thank you Terkhen! May I ask what OpenTTD.pdb is?
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 »

The Debug symbols, I believe.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Are they always almost 5MB?
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Cargo Distribution

Post by Hamilton2007 »

Is it normal that such a debug mode build makes the game to run much slower ??
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Cargo Distribution

Post by Roujin »

That is to be expected.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Cargo Distribution

Post by Eddi »

Hamilton2007 wrote:Is it normal that such a debug mode build makes the game to run much slower ??
Yes, debug-builds often disable (some) optimisations that would make it harder to match generated code back to source code
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Note: The trunk patch for CargoDist at this moment does not apply cleanly to trunk. Trunk_version.txt says r18325, but it has failed hunks.
Attachments
patch.txt
(3.57 KiB) Downloaded 72 times
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

I just checked out r18325 and applied the patch:

Code: Select all

svn checkout -r18325 http://svn.openttd.org/trunk .
patch -p1 < ../openttd/patches/current/trunk-cargodist.diff
I don't get any rejects. petert, are you sure you haven't messed up your source tree again? Just keep a clean copy of trunk around and make copies whenever you apply patches. Or use git or mercurial for proper version management.
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 »

Personally, I would suggest Mercurial (HG) as it doesn't take so long to get a single revision.
Also, I find it's good working practice to always have a folder with un-changed trunk, and running svn update on it regularly. I then make copies of that to work on, rather than bothering the svn server so much. Plus it saves my bandwidth.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Gremnon wrote:Personally, I would suggest Mercurial (HG) as it doesn't take so long to get a single revision.
Also, I find it's good working practice to always have a folder with un-changed trunk, and running svn update on it regularly. I then make copies of that to work on, rather than bothering the svn server so much. Plus it saves my bandwidth.
Fonso, may I ask why you've chosen git? It's so much harder to use on Windows and it uses a ton of room with lots of un-needed folders and files.
jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

Re: Cargo Distribution

Post by jub »

Seeing how many branches fonso uses, I would expect that branches are the reason why. They are handled in git much better than in mercurial.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 7 guests