User Tools

Site Tools


usage:atlatc:examples:linuxforks_subway_code

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
usage:atlatc:examples:linuxforks_subway_code [2022-06-28 23:32]
56independent [Code] Replace note in light of recent edits
usage:atlatc:examples:linuxforks_subway_code [2022-06-30 20:14] (current)
blockhead Add licence statement to the code
Line 1: Line 1:
-====== Linuxforks Subway ======+====== Linuxforks Subway Interlocking ======
 ===== Introduction ===== ===== Introduction =====
 **Note**: This is actually taken from a [[https://forum.minetest.net/viewtopic.php?f=10&t=17465&p=411692#p411692|Forum Post]] written by Blockhead. This is just a modified version of the post designed to fit with the wiki (but 56i, the creator of this wiki page did inspire this post, so part-credit goes to him). **Note**: This is actually taken from a [[https://forum.minetest.net/viewtopic.php?f=10&t=17465&p=411692#p411692|Forum Post]] written by Blockhead. This is just a modified version of the post designed to fit with the wiki (but 56i, the creator of this wiki page did inspire this post, so part-credit goes to him).
Line 5: Line 5:
 I've actually wanted to make a video about the subway code just because I think it's of historical interest but also as an example of how to make an interlocking system out of just LuaATC. Consider this like a partial script dump for that video. I've actually wanted to make a video about the subway code just because I think it's of historical interest but also as an example of how to make an interlocking system out of just LuaATC. Consider this like a partial script dump for that video.
  
-The subway code is something like (A?)GPL'd (not sure if 2 or 3), written by orwell. It's a form of interlocking that predates what we call "TSS Interlocking". It used still in some corners of what we now call Spawn Subway (previously often just 'the subway'); or it was for some time after TSS interlocking was deployed, I haven't been paying keen attention. It was also previously used on South Forest Subway which is just one line, but that system was reworked into an interlocked one 2019. It was also used on the Mountain Railway from Euler Street Station up Mt Gabriel, nominally 'line 10', but that system has been out of service for years now since the TSS update.+The subway code is written by orwell,  and uses the GPLv3 license. It's a form of interlocking that predates what we call "TSS Interlocking". It used still in some corners of what we now call Spawn Subway (previously often just 'the subway'); or it was for some time after TSS interlocking was deployed, I haven't been paying keen attention. It was also previously used on South Forest Subway which is just one line, but that system was reworked into an interlocked one 2019. It was also used on the Mountain Railway from Euler Street Station up Mt Gabriel, nominally 'line 10', but that system has been out of service for years now since the TSS update.
  
 The current code is as follows (it's not all properly indented, much of it may have been edited in-game. It probably started back in 2017, but has barely changed since 2019 due to maturity, stability and decreasing relevance. The current code is as follows (it's not all properly indented, much of it may have been edited in-game. It probably started back in 2017, but has barely changed since 2019 due to maturity, stability and decreasing relevance.
Line 44: Line 44:
  
 <code lua> <code lua>
 +--[[
 +Linuxforks Subway Code
 +Copyright (C) 2017-2021 orwell96 and other LinuxForks contributors.
 +Licensed under the terms of the GNU General Public License, Version 3 or later
 +--]]
 -- 'subway' environment -- -- 'subway' environment --
 --F.stn_union=function(line1, prev1, prev2, this, next, doors, dps, osig, ret_sw, ret_st, nohalt, waittime) --F.stn_union=function(line1, prev1, prev2, this, next, doors, dps, osig, ret_sw, ret_st, nohalt, waittime)
usage/atlatc/examples/linuxforks_subway_code.1656451976.txt.gz · Last modified: 2022-06-28 23:32 by 56independent