Here is a new release of One-way Two-lane fun patch, OTRP ver9.
This time, the code patch is simutrans nightly r8151 based, and the patch can be easily integrated to the nightly trunk. Executable binaries are nightly r8128 based for a reason - I'll explain it later. Of course you can make a latest nightly based binary by compiling the nightly based patch.
Source code can be seen on git. https://github.com/teamhimeh/simutrans/tree/OTRP
:makeobj: (new version!
I uploaded r8128 based binaries because r8151 based binaries cannot load sve data of previous versions of OTRP. This is because r8151 integrated color patch. r8151 based binaries can load data of simutrans standard stable version and r8151 based binaries.
Since this version, way-obj also has overtaking_info flag. You can rewrite the condition for overtaking by building way-obj with overtaking_info.
I also integrated decoration way patch
. Overtaking condition can be re-written by wayobj-road and wayobj-255. If both wayobj has the flag that changes overtaking_info, wayobj-255 has priority.
This feature enables you to enjoy one-way overtaking on conventional roads! You can use conventional road's wayobj by using wayobj-255.
Making wayobj with overtaking_info is easy. Just add
to the dat file. If you write
the wayobj does not change overtaking_info.
To make wayobj-255, set waytype like this.
Sample road addon with overtaking_info can be downloaded from here
. Also, sample wayobj-255 with overtaking_info can be downloaded from here
To use wayobj-255, you need to add wayobj(255) in the menuconf.tab so they show in any or some of the menus. For examle, add
in the menuconf.tab of the pakset.
I uploaded a demo video on twitter. This video shows that you can rewrite overtaking condition and use one-way overtaking on the conventional road.https://twitter.com/himeshi_hob/status/845469009571069952
Any bug reports and ideas for improvement are welcome!