<li>m3 bits 7..4: bit set = signal 3..0 present</li>
<li>m4 bits 7..4: bit clear = signal 3..0 shows red</li>
<listyle="color: blue">m6 bits 7..4: signal style for signal 0 and 1</li>
<listyle="color: blue">m6 bits 3..0: signal style for signal 2 and 3</li>
<listyle="color: blue">m7 bits 5..3: signal aspect for signal 0 or 1 (only valid if signal is present and not red, and multi-aspect signalling is in effect)</li>
<listyle="color: blue">m7 bits 2..0: signal aspect for signal 2 or 3 (only valid if signal is present and not red, and multi-aspect signalling is in effect)</li>
</ul>
@ -1753,6 +1755,7 @@
<ul>
<li>m2 bit 15: for bridge entrances only: storage for visual red/green state of signals starting from 15 is allocated outside the map array</li>
<li>m2 bits 14..4: for bridge entrances only: for signals 0..10 on bridge, signal is visually red if corresponding bit in 4..14 is set</li>
<li>m3 bit 7: the signal style is non-zero (style stored outside the map array)</li>
<li>m3 bit 6: the entrance and/or exit signals on this tile are restricted (tracerestrict patch)</li>
<li>m3 bits 5..3: entrance signal aspect (only valid if signal is present and not red, and multi-aspect signalling is in effect)</li>
<li>m3 bits 2..0: exit signal aspect (only valid if signal is present and not red, and multi-aspect signalling is in effect)</li>
<tdclass="bits"rowspan=2><spanclass="free">OOOO</span><spanclass="patch"title="Secondary railway type (used for lower or right track when two parallel tracks on tile)">PPPP PP</span><spanclass="used"title="Railway type">XX XXXX</span></td>
</tr>
@ -113,6 +113,7 @@ the array so you can quickly see what is used and what is not.
@ -122,6 +123,7 @@ the array so you can quickly see what is used and what is not.
<tdclass="bits"><spanclass="free">OOOO</span><spanclass="used"title="Ground type: fences, snow, desert (fences on depot are not valid)">XXXX</span></td>
<tdclass="bits"><spanclass="patch-pool"title="Tunnel index on pool (or overflow sentinel)">PPPP PPPP PPPP PPPP</span></td>
<tdclass="bits"rowspan=4><spanclass="rearrange"title="Owner of tram (road only; a rearrangement can free some of these bits)">XXXX</span><spanclass="free">OOOO</span><br/><spanclass="free">O</span><spanclass="patch"title="Routing restrictions present on entrance/exit signal(s)">P</span><spanclass="patch"title="Entrance/exit signal aspects (rail only)">PPPPPP</span></td>
<tdclass="bits"rowspan=4><spanclass="rearrange"title="Owner of tram (road only; a rearrangement can free some of these bits)">XXXX</span><spanclass="free">OOOO</span><br/><spanclass="patch" title="New signal style is non-zero (rail only)">P</span><spanclass="patch"title="Routing restrictions present on entrance/exit signal(s)">P</span><spanclass="patch"title="Entrance/exit signal aspects (rail only)">PPPPPP</span></td>
<tdclass="bits"><spanclass="used"title="Bridge or tunnel bit">O</span><spanclass="patch"title="Signal simulation mode (rail only)">PP</span><spanclass="rearrange"title="PBS reservation (rail; a rearrangement can free some of these bits)">X</span><spanclass="used"title="Transport type">XX</span><spanclass="used"title="Direction of the tunnel/bridge">XX</span></td>
<tdclass="bits"><spanclass="patch"title="PBS mode, exit signal state">PP</span><spanclass="free">OO OO</span><spanclass="patch"title="Semaphore/light mode, entrance signal state">PP</span></td>
The provided value is currently clamped to be within the range 0 - 6 (inclusive).</p>
<p>N.B. Realistic braking must be enabled for additional signal aspects to be used.</p>
<p>This is indicated by the feature name: <fontface="monospace">action0_signals_extra_aspects</font>, version 1</p>
<h4id="signals_define_style">Define a custom signal style (mappable property: signals_define_style)</h4>
<p>This applies to <ahref="#a3signals_custom_signal_sprites">Action 2/3 Signals (Feature 0E) custom signal sprites</a> for this GRF.<br/>
This defines a new signal style. Signals using this style will only use this GRF, or the default graphics if no graphics are returned.</p>
<p>The total number of custom signal styles in a game is currently limited to 15.</p>
<p>The property length is 1 byte. This is the local ID of the style which is returned in the <ahref="#signals_signal_style">signals_signal_style</a> variable.<br/>
The Action 0 Id field is not used, the value is ignored.
</p>
<p>This is indicated by the feature name: <fontface="monospace">action0_signals_style</font>, version 1</p>
<h4id="signals_style_name">Set custom signal style name (mappable property: signals_style_name)</h4>
<p>This applies to the most recent custom signal style defined using the <ahref="#signals_define_style">signals_define_style</a> property.<br/>
This property should be set, as otherwise the style will not have a name.</p>
<p>The property length is 2 byte. This is a string ID.<br/>
The Action 0 Id field is not used, the value is ignored.
</p>
<p>This is indicated by the feature name: <fontface="monospace">action0_signals_style</font>, version 1</p>
<h4id="signals_no_default_style">Set whether custom signal sprites should not be used for the default signal style (mappable property: signals_no_default_style)</h4>
<p>This applies to <ahref="#a3signals_custom_signal_sprites">Action 2/3 Signals (Feature 0E) custom signal sprites</a> for this GRF.<br/>
When enabled, this GRF is not used for the default signal style, it is only used for custom signal styles defined with <ahref="#signals_define_style">signals_define_style</a>.</p>
<p>The property length is 1 byte. 0 is disabled (default). 1 is enabled.<br/>
The Action 0 Id field is not used, the value is ignored.
</p>
<p>This is indicated by the feature name: <fontface="monospace">action0_signals_style</font>, version 1</p>
<p>This applies to <ahref="#a3signals_custom_signal_sprites">Action 2/3 Signals (Feature 0E) custom signal sprites</a>.<br/>
If the signal being drawn uses a custom signal style, the value is the signal style ID as set in the <ahref="#signals_define_style">signals_define_style</a> property.<br/>
Otherwise for signals using the default style, the value is 0.
</p>
<p>This is indicated by the feature name: <fontface="monospace">action0_signals_style</font>, version 1</p>