Page 9 of 14
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 17 Apr 2010 22:24
by ColdIce
if you use "block signal" ----> bridge/tunnel with signals on/in it ----> "Path Based Signal" = wrong
if you use "block signal" ----> bridge/tunnel with signals on/in it ----> "block signal" "Path Based Signal" = good
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 18 May 2010 09:12
by Storm8
Hi,
I have no experience with using these patches, but can anyone please help me on how to get this patch working on Windows XP?
Thank you very much
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 18 May 2010 20:44
by ChillCore
Storm8 wrote:
Hi,
I have no experience with using these patches, but can anyone please help me on how to get this patch working on Windows XP?
Thank you very much
Patches have to be applied to the source code and recompiled into a working binary.
You can find all information you need here:
http://wiki.openttd.org/Category:Compiling_OpenTTD
There is a sticky at the top of the development section where you can ask questions if you have trouble.
If you browse a bit around you might be able to find a pre-compiled win32 binary.
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 20 May 2010 11:56
by Storm8
Compiling it seems too dificult for me. I have found a version with this feature already compiled, but my savegames would not work on that. does anyone please have only this patch compiled for win so I can use it normally?
Also is there a chance it will be included in some of future versions of OpenTTD?
thank you
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 20 May 2010 23:08
by Eddi
these are development versions, you can't expect savegames to work like they do in stable versions.
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 21 May 2010 15:43
by Storm8
Yeah, I know... Just hoping someone might have a solution for me. I have a savegame I have spend many many hours on and I'd also like to use this feature.
Funny thing is that I have a savegame from about 20 years earlier (many changes has been made since then tough) where the patch works... So, anyone might have a suggestion what change could have caused the error?
Cheers
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 06 Jul 2010 12:32
by joshua peli
Hi...
I'm not so good with computers, so...can you tell me, step by step, how to install these files? Have I to unzip the files with a special programme?

THX
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 18 Jul 2010 07:26
by rjch_au
For the benefit of those who have come to rely on this patch, I've made an attempt at updating this patch so it will apply to later versions of OpenTTD. Please be aware that I'm
not a particularly good programmer - I know only enough to be dangerous. I've compiled this patch and it seems to be working for me. Please don't ask for help in applying it to whichever version of OpenTTD you're running - I'm unlikely to be able to help you. If it breaks anything, you get to keep any of the leftover pieces.
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 18 Jul 2010 07:31
by Lord Aro
joshua peli wrote:Hi...
I'm not so good with computers, so...can you tell me, step by step, how to install these files? Have I to unzip the files with a special programme?

THX
http://wiki.openttd.org/compiling
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 18 Jul 2010 20:22
by benom
i just tried the one r20176 patch and found a bug ... when removing signals from both bridges and tunnels the game crashes
Re: New V2 signals in tunnels and on bridges V2.02 r19495
Posted: 19 Jul 2010 08:15
by rjch_au
benom wrote:i just tried the one r20176 patch and found a bug ... when removing signals from both bridges and tunnels the game crashes
Like I said - this is a patch to the patch to allow it to apply to the latest SVN versions. I can't say whether the crash you're getting is a bug in the original patch or something introduced by me.
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 07 Sep 2010 10:43
by Wasila
I have had a problem with the latest version of the patch on the OP - the setting to change the frequency of simulated tunnels is not there. It is currently set too high and is of little use to me. Any help would be appreciated.
Wasila
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 07 Sep 2010 14:29
by ChillCore
That option was removed. If I remember correctly because trains will crash on reverse if the gap is too small.
Search for "100 tiles" in the patch and change the "6" you find there to something else. (and the comments too maybe.)
You need to change it in both places else the actual gaps between the signals will not correspond to the signals that are drawn on the bridges.
I have it at 4 for the moment but I also have trains do not reverse when waiting in front of signals enabled.
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 07 Sep 2010 16:59
by Wasila
Strange; I'm pretty sure I changed it in both places but, while the signals are in gaps of two in bridges the trains still wait six tiles before moving, and nothing has changed with the tunnels.
Thanks,
Wasila
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 07 Sep 2010 17:22
by ChillCore
That sounds like you have correctly changed "bridge_signal_position += 6;" in tunnelbrige_cmd.cpp but did not change "static const uint8 bridge_signal_block_size = TILE_SIZE * 6;" in train_cmd.cpp.
It has been a while I have changed the patch to my likings but I think that is the only two places to change.
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 07 Sep 2010 17:55
by Wasila
It appears to be working now. Thanks a lot!
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 10 Sep 2010 11:17
by joshua peli
Sorry guys...I've downloaded the file "signaltunnel_V2.02_r20363.patch". Lord Aro gave me the site
http://wiki.openttd.org/compiling ...but, I don't understand which index have I to chose...please, help me, I want to learn compiling files

Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 10 Sep 2010 12:56
by Wasila
Well, what OS are you on? Windows? Mac? Linux? More information needed.
Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 14 Sep 2010 13:47
by joshua peli
Oh...I use Windows version

Re: New V2 signals in tunnels and on bridges V2.02 r20363
Posted: 14 Sep 2010 16:19
by Wasila
* Download "base" from
http://lunac.sourceforge.net/, then install it (remember the installation directory)
* Download "useful" sources from
http://www.openttd.org/download-openttd-useful, extract it to $INSTALLDIR/home. Once extracted extract all zips/tar.gzs.
* Start bash from $INSTALLDIR/bin
* Navigate to /home/<extracted dir>
* Enter zlib directory
* make -f win32/Makefile.gcc BINARY_PATH=/bin INCLUDE_PATH=/include LIBRARY_PATH=/lib install
* Enter lzo directory
* ./configure --bindir=/bin --includedir=/include --libdir=/lib --enable-static
* make install
* Enter lpng directory
* make -f scripts/makefile.mingw install
* Enter freetype
* ./configure --bindir=/bin --includedir=/include --libdir=/lib --enable-static
* make install
* Enter icu/source (4.4.1 doesn't work, 4.2.1 does)
* ./configure --bindir=/bin --includedir=/include --libdir=/lib --enable-static --disable-strict
* make install
* Enter xz
* ./configure --bindir=/bin --includedir=/include --libdir=/lib --enable-static
* make install