From b332a31d4886d5699575c933627c91f659ab45b8 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Tue, 18 Dec 2018 11:56:48 +0100 Subject: Make track protection radius configurable --- advtrains/settingtypes.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'advtrains/settingtypes.txt') diff --git a/advtrains/settingtypes.txt b/advtrains/settingtypes.txt index 1c4974f..49df423 100644 --- a/advtrains/settingtypes.txt +++ b/advtrains/settingtypes.txt @@ -1,16 +1,35 @@ # Display train and wagon ID in the infotext of trains. # Useful when working with LuaATC or while debugging. advtrains_show_ids (Show ID's in infotext) bool false + # Enable the debug ring buffer # This has no effect on the user experience, except decreased performance. Debug outputs are saved in a ring buffer to be printed when an error occurs. # You probably want to leave this setting set to false. advtrains_enable_debugging (Enable debugging) bool false + # Enable the logging of certain events related to advtrains # Logs are saved in the world directory as advtrains.log # This setting is useful for multiplayer servers advtrains_enable_logging (Enable logging) bool false + # If this is active, any player can do the following things inside (and only inside) an area that is explicitly protected by him # (checked using a dummy player called "*dummy*" (which is not an allowed player name)): # - build tracks and near tracks without the track_builder privilege # - operate turnouts and signals without the railway_operator privilege advtrains_allow_build_to_owner (Allow building/operating to privilegeless area owner) bool false + +# Track protection range (horizontal) +# Players without the 'track_builder' privilege can not build within a box around any tracks determined by these range settings +# This setting is to be read as "r-0.5", so a value of 1 means a diameter of 3, a value of 2 a diameter of 5 a.s.o. +# The spanned area is a square. Fractional values are not supported. +advtrains_prot_range_side (Track protection range [horizontal]) int 1 0 10 + +# Track protection range (up) +# Players without the 'track_builder' privilege can not build within a box around any tracks determined by these range settings +# This setting determines the upper y bound of the box, a value of 3 means that the rail and 3 nodes above it are protected +advtrains_prot_range_up (Track protection range [up]) int 3 0 10 + +# Track protection range (down) +# Players without the 'track_builder' privilege can not build within a box around any tracks determined by these range settings +# This setting determines the lower y bound of the box, a value of 1 means that the rail and 1 node below it are protected +advtrains_prot_range_down (Track protection range [down]) int 1 0 10 \ No newline at end of file -- cgit v1.2.3