Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 02, 2010 6:00 pm

All times are UTC




Post new topic Reply to topic  [ 696 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 35  Next
Author Message
 Post subject:
PostPosted: Tue Jan 09, 2007 8:17 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Oct 15, 2003 10:00 pm
Posts: 2550
Location: Jarrow, UK
mail2abj wrote:
A patch agisnt the final 0.5 will be deeply apreiated

If you want to see it in the game proper, I'd recommend patching against the trunk, not 0.5, because the architecture of OpenTTD is changing rapidly and significantly. 0.5 is going to seem very out of date to anybody who wants to port the patch forwards.

_________________
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 2:42 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
Updated to the last revision (r7993)

BTW, the svn does not contain nsignalw.grf and a lot of other grfs for running OTTD. Download them from the rc5.0 source.


Attachments:
destination_r7993.diff [73.18 KiB]
Downloaded 92 times
Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 2:51 pm 
OpenTTD Developer
OpenTTD Developer
Offline

Joined: Thu Feb 09, 2006 7:15 pm
Posts: 3181
prissi wrote:
BTW, the svn does not contain nsignalw.grf and a lot of other grfs for running OTTD. Download them from the rc5.0 source.

That is not true. Due to syncing beyond r7759, where a lot of moves occured, a lot of files have changed their location. So did those grfs; they moved to bin/data.
Most likely you are running the executable which is under trunk/. That executable is _not_ the executable of any revision after r7759, as the generated executable is now in bin/.

You should remove openttd and all *.o files in trunk/ and use the binary that is in bin/.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 3:57 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
Well the new configure needs anyway some more work, since it does not work with mingw (at least on my machine), since it assumes libpng, freetype, and zlib in /usr/local/include (which does not neccessarily exist of course, since you could (and I did) install mingw and msys in C:\programme\).

So I had to build it without freetype, zlib and png support. But I could not start this binary, it complains about about missing language pack (even though I just run the makefile). I just run the makefile, after configure, so I think this new makefile needs to settle a little.

I have not the time in the moment to find out why I cannot start this, but the patch compiles properly, so try your own.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 4:06 pm 
Transport Coordinator
Transport Coordinator
Offline

Joined: Mon Feb 06, 2006 11:58 pm
Posts: 339
Code:
./configure --with-zlib=F:/Programme/MinGW/lib/libz.a --with-png=F:/Programme/MinGW/lib/libpng-config --with-freetype=F:/Programme/MSYS/1.0/src/freetype-2.2.1/builds/unix/freetype-config

This is how configure works for me with MSYS/MinGW.
Zip, png and freetype were compiled with mingw too.
I think they gave some errors, but the required .a files were compiled correctly.

_________________
Copy & Paste Patch for OTTD
Distant-Joined Stations Patch for OTTD
Eyecandy Patch for OTTD


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 9:54 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
My point was just that if there is the option --without-zlib --without-png --without-freetype and the configure script runs, make runs, but then the exe cannot start ... (because of "missing language packs", even though everything seems fine). Or is this a Win98 error, because unicows.lib is not linked?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 12:54 am 
OpenTTD Developer
OpenTTD Developer
User avatar
Offline

Joined: Fri Dec 02, 2005 3:43 pm
Posts: 618
Location: Drancy(93) - France
That's the non-unicode build and win9X symptom. And it's not fixable for now because mingw doesn't support it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 1:12 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
Since I built a unicode simutrans version in Win98 I am sorry, I have to doubt your statement that this is not possible. You can use the full range of unicode functions in Win98, if you link with unicows.lib.

Well, then good luck to anybody who wants to support my patches any longer.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 7:02 pm 
Engineer
Engineer
Offline

Joined: Mon Jan 08, 2007 8:41 pm
Posts: 4
Hi guys,

I patched a r8007 nightly succesfully (I think), but I don't know how to use it...

I built 2 networks of 3 train stations with a train (pax & mail) per network.
I built a line between these networks with a train going from network1-station1 to network2-station1.

I don't know how to have the information of my passenger destinations.

Any help ?

Thanks ,

Christophe.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 9:31 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
patches -> Economy -> passengers with destination (or so) on
Three settings:
- how many times they maximum will transfer
- how much the passenger rate should be reduced (power of two)
- after which time a certain connection will be treated as abondoned (should be longer than your longest round trip time for and consiste/bus)

Why would one want to reduce the number of passengers? Because every transfer effectively doubles the number of passengers at the stop.

(Personal rant: The current aim of the development team seems to frustrate all patch developer and furthermore render all old patches useless which all these deleting and recreation of files loosing all history and the possibility to transfer patches across ... Perhaps a branch and then all changes at once would be a much more friendlier policy. And there is svn mv there for a reason, if mostly filenames were changed! Thus one has really to do the patching by hand. I really wonder why no one has objected to this.)


Attachments:
destination_r8044.diff [74.26 KiB]
Downloaded 98 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 11:28 pm 
OpenTTD Developer
OpenTTD Developer
Offline

Joined: Thu Feb 09, 2006 7:15 pm
Posts: 3181
prissi wrote:
...And there is svn mv there for a reason, if mostly filenames were changed! ...

In both cases svn move was used!

We even tried to make upgrading your patches as easy as possible as the commits where all the files get renamed/moved do not modify the files itself. Just svn update to the revision before the rename, make a diff, svn update to the revision of the rename, apply patch and then you can just svn up to the latest revision.

Furthermore doing two completely different things in one branch is asking for trouble, and there was not even a plan to make OpenTTD C++ compatible when the makefile rewrite stuff was merge.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 9:42 am 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
OK, I apologize for the rant about not moving.

However, applying the patch and then the moving resulted in the changed c files to be not moved, because first svn deleted all files and then added them again. Thus the "original" C-files appeared again and the patches were lost to all files (probably only all files with conflicts?). Maybe a problem with my svn-clienten then. (The h-files did work, but economy.c did for instance not.)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 7:23 pm 
Engineer
Engineer
Offline

Joined: Mon Jan 08, 2007 8:41 pm
Posts: 4
Hi Prissi,

Thanks for your explanations, it's OK now, I got it :)

Thanks for your time.

Christophe.

(for the future, this patch will join the main code ?)
[/img]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 10:35 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
Unlikely, since it cries also for CargoPackets for normal goods which are not implemented.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 10:42 pm 
Engineer
Engineer
User avatar
Offline

Joined: Wed Apr 14, 2004 8:32 pm
Posts: 84
Location: Netherlands
prissi wrote:
Unlikely, since it cries also for CargoPackets for normal goods which are not implemented.


And it's still very buggy. Are you still working on solving the error's in for instance economy.c?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 8:19 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
Since I am the head coder for Simutrans, and my wife had a bady six weeks ago, my daily programming time is less than an hour. I do not play OTTD regularly and, moreover, now I cannot even test is at work (since we use Win98). Therefore my efforts will be small.

However, there has been very litle bug reports of the later releases. For five begs for updates less than a bug report, and only one reproducable situation. I did some work and I think debugging the rest should be not very difficult given some time to play around (which I do not have).

I the echo is that low, (compared to 50+ posts for simutrans) then my motivation is not too high. But it is open source, so somebody can easily continue.

Also the biggest problem for cargo packets is, that the developers does not want cargo to have a destination (at least this is the impression one could get from this thread further up). This make routing rather difficult. Otherwise the current code could easily extended to cargo packets, the foundations are there and working.

(Btw. the renovated vehicle read/writer and the unified vehicle info dialog are thinks that could go into the trunk easily.)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 4:44 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
Update to r8104, fixed bug with 0 passengers, did rub stable over night


Attachments:
destination_r8104.diff [74.65 KiB]
Downloaded 102 times
Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 7:03 pm 
Engineer
Engineer
Offline

Joined: Fri Apr 28, 2006 3:36 pm
Posts: 6
Hey.

I've done everything mentioned for Windows (used TortoiseSVN), in this topic: viewtopic.php?t=21678

I've applyed the diff-file again using TortoiseSVN, but I can't see the pacth working.

I've also updated the OTTP with the latest nightly patch, so I think I sould be using the newest files.

I'm absolutely newbie in this Open source universe, so if anyone can help me that would be great.
:D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 7:05 pm 
TTDPatch Developer
TTDPatch Developer
Offline

Joined: Wed Feb 18, 2004 3:06 am
Posts: 10249
You compiled after applying the patch, right?

_________________
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
TTDPatch NFO coding consultant. (Private messages on this topic will be ignored. Ask in public only.)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 10:31 pm 
Director
Director
User avatar
Offline

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 585
Location: Berlin, Germany
You must be inside the trunk folder to apply this patch. (But I am not sure if TortoiseSVN can do this, I rather use the mingw-tools for this.)

Ok, here the window exe.


Attachments:
ottd-dest-r8104.zip [716.51 KiB]
Downloaded 114 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 696 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 35  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
ESW5080 | ESW5080 | Electronics | Breast Enlargement | Breast Enlargement
Powered by phpBB © 2000-2009 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2010.
Hosted by Zernebok.