User Tools

Site Tools


usage:lines:railway_time

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
usage:lines:railway_time [2019-06-09 17:40]
109.41.128.59 created
usage:lines:railway_time [2022-07-15 14:53] (current)
maverick2797 Add link to the full API
Line 12: Line 12:
 RWT has a time cycle of 1 hour. This should be sufficient for most train lines that will ever be built in Minetest. RWT has a time cycle of 1 hour. This should be sufficient for most train lines that will ever be built in Minetest.
  
 +Below is a brief overview of RWT. The full API can be found [[dev:api:railway_time_api|here]].
 ===== Time Format ===== ===== Time Format =====
 A RWT looks like this: A RWT looks like this:
Line 45: Line 46:
   c=1, -- Cycle(~hour), not displayed most time   c=1, -- Cycle(~hour), not displayed most time
   }   }
 +  
 +===== Real-life Time Adaption Mode =====
 +
 +For public servers which run continuously, it appears reasonable to have the Railway Time synchronized to the real-life time. Therefore, a "Time adaption mode" has been added. It is controlled by a minetest.conf setting "advtrains_lines_rwt_realtime".
 +
 +<code>
 +# This controls how the Railway Time relates to real-world time:
 +# *independent - RWT counts independent of real time synchronized to ingame steps. Recommended for singleplayer and ad-hoc servers.
 +# *follow_real - RWT is independent of real time, but counts up in real-world time speed
 +# *adapt_real - RWT adapts its minute and second to real-world time. When the server is stopped and restarted, this results in a "time jump".
 +# Time will jump for 1 cycle (59;59) at maximum.
 +</code>
usage/lines/railway_time.1560094800.txt.gz · Last modified: 2019-06-09 17:40 by 109.41.128.59