This shows you the differences between two versions of the page.
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: | ||
===== Time Format ===== | ===== Time Format ===== | ||
A RWT looks like this: | A RWT looks like this: | ||
Line 45: | Line 46: | ||
c=1, -- Cycle(~hour), | c=1, -- Cycle(~hour), | ||
} | } | ||
+ | | ||
+ | ===== Real-life Time Adaption Mode ===== | ||
+ | |||
+ | For public servers which run continuously, | ||
+ | |||
+ | < | ||
+ | # 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. | ||
+ | </ |