Crossroads Transport

From LinuxWorks Minetest Server Wiki
Jump to navigation Jump to search
Crossroads Transport
CRTSchematic.png
CRT System Map
Overview
Area servedCrossroads
Transit typeCommuter rail
Number of lines5
Headquarters5th Floor
City Hall
Bahnhofstraße 2
Crossroads
Operation
Began operation2019
Technical
LuaATC environmentCrossroads
System map including ATL lines

ATL-M  CRT 2  Crossroads-Nordstadt West
Crossroads-Zentrum/Nordstadt
Crossroads Mining Area I  CRT 21 
Crossroads Bahnhofstraße West
Crossroads Bahnhof Ost
Crossroads City Hall South
ATL-B  CRT 1   CRT 2  Crossroads City Hall
Crossroads ARSE7's Shop
Crossroads Mountain Railway Terminus
SM1 Crossroads Smacker's Station
 CRT 12  Crossroads West Mountains
ATL-Z Origin Berton Street
East Origin
Leekston 5
Leekston Jungle 5
EVO CFE XN
Silver Coast South
Silver Coast Central
Silver Coast North
Colored Grasses
ATL-M Ehlodex S12 S13 XN E1 CFE
E1 CFE XN The Cube
CFE XN S16 Personhood West
ATL-G Ocean City
Ocean City Outskirts
Greener Pastures
Neverbuild Outskirts
Salt Factory
Mushroom Land
Château d'Erstazi
Neverbuild Old Terminus
Neverbuild Central


Crossroads Transport is a company founded by User:Ywang. The company currently manages most the train and ferry lines in Crossroads (except SM1, which is run by LinuxWorks State Rail) and some long-distance train lines. It also manages the Crossroads Railway Standard.

Operated Lines

Type Lines
Short-distance railway line in Crossroads (1-9)
Mountain Railway (11-19)
Shuttles (21-29)
  •  CRT 21  (Crossroads Mining Shuttle)
Ferry Services (101-109) (In construction)
Internal line numbers, not in service (900-999) 900 (Unknown)
901 (Train is (or should be) in depot)
902 (Train is not in service)
903 (Train is out of order)
Operated with Arse Train Lines (ATL-)

Crossroads Railway Standard

Crossroads Transport uses and manages the Crossroads Railway Standard, part of the (undocumented) Crossroads Standard.

Platform Length

Length Used for Usage Notice
8
  • Most stations along  CRT 1 
Not recommended for newer stations
12
  • Crossroads, Smacker's Station
16
  • Old Crossroads City Hall Station
Deprecated since the reconstruction of Crossroads City Hall Station
20
  • Crossroads, Bahnhof Ost
  • Crossroads, Mountain Railway Termius
  • Crossroads, West Mountains
Recommended for most trains
25 Some stations along  CRT 2 
40
  • Crossroads, City Hall
Recommended for mainline stations with long trains

Trains

Name Train Composition Used for Usage Notice
Short-distance Train Advtrains subway wagon inv.pngAdvtrains subway wagon inv.png
Mountain Train Advtrains detailed engine steam inv.pngAdvtrains wagon inv.pngAdvtrains wagon inv.pngAdvtrains wagon inv.png  CRT 12 
Mountain Train, Variant 1 Advtrains detailed engine steam inv.pngAdvtrains subway wagon inv.pngAdvtrains subway wagon inv.pngAdvtrains subway wagon inv.png  CRT 11 
Mainline Train Advtrains subway wagon inv.pngAdvtrains subway wagon inv.pngAdvtrains subway wagon inv.png

LuaATC

Although Station/Stop tracks already exist, Ywang is still willing to use LuaATC instead, due to some advantages of LuaATC. At the same time, this part is written as Ywang's reference when using LuaATC functions from the environment.

Functions

  • F.dst() - Get the current timezone. Returns CET or CEST.
  • F.error(errorcode) - Send an error according to the defined error code.
  • F.stnbasic(stn,side,optime,reverse,acc,out,reventry,predepart,postdepart) - A highly customizable function for stations
Explanation of F.stnbasic
Parameter Expected type Usage Meaning of nil
stn string Station code Unknown station
side L, R, or C The door that will be opened Doors on the right side will be opened
optime positive integer and 0 The length of time (seconds) for which the door will remain open Doors will be open for 15 seconds
reverse boolean Control whether trains will be reversed ("R") after doors close Train will not be reversed after doors close
acc integer between 1 and 20 (incl.), or M Speed at which the train will drive after departure Train will drive at ATC SM after departure
out string Change to outside text Outside text will not be changed
reventry boolean Allow train to pass in the opposite direction of atc_arrow Trains are not allowed to pass in the opposite direction of atc_arrow
predepart function Function to execute after doors open Does nothing
postdepart function Function to execute after Sacc Does nothing
next string Station code of the next station There is no next station
  • F.eval(expr,rettrue,retfalse) - a function that does the same as  ? : in C (short for if expr then return rettrue else return retfalse end)
-- F.hst - preset function for small stations (Haltestelle)
function F.hst(cur,nxt,side,spd,out)
  F.stnbasic(cur,side,10,not(out==nil),spd,out,true,nil,nil,nxt)
end

-- F.bhf - preset function for large stations (Bahnhof)
function F.bhf(cur,nxt,side,spd,out)
  F.stnbasic(cur,side,15,not(out==nil),spd,out,true,nil,nil,nxt)
end

Variables

  • F.stnlist - List of stations
F.stnlist = {
  cg               = "Colored Grasses",
  clockwise        = "Clockwise Route",
  counterclockwise = "Counterclockwise Route",
  crbfost          = "Crossroads, Bahnhof Ost",
  crbfsm           = "Crossroads, Bahnhofstr. Mitte",
  crbfso           = "Crossroads, Bahnhofstr. Ost",
  crbfsw           = "Crossroads, Bahnhofstr. West",
  crch             = "Crossroads, City Hall",
  crmtrail         = "Crossroads, Mountain Railway Termius",
  crnsw            = "Crossroads-Nordstadt, West",
  crrathaus        = "Crossroads, S-Bahnhof Rathaus",
  crwm             = "Crossroads-West Mountains",
  crzn             = "Crossroads-Zentrum/Nordstadt",
  el               = "Erstaziland",
  elchateau        = "Erstaziland-Chateau d'Erstazi",
  elgp             = "Erstaziland-Greener Pastures",
  elsf             = "Erstaziland-Salt Factory",
  evo              = "EVO",
  mushroom         = "Mushroom Land",
  neverbuild       = "Neverbuild",
  oc               = "Ocean City",
  occh             = "Ocean City, City Hall",
  occrt            = "Ocean City, CRT Office",
  ocmushroom       = "Ocean City, Mushroom Market",
  phwest           = "Personhood, West",
  scc              = "Silver Coast Central",
  scn              = "Silver Coast North",
  scs              = "Silver Coast South",
}