Difference between revisions of "Crossroads Transport"

From LinuxWorks Minetest Server Wiki
Jump to navigation Jump to search
(LuaATC Environment)
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
| image = CRTSchematic.png
 
| image = CRTSchematic.png
 
| caption = Line Map
 
| caption = Line Map
 +
| area served = [[Crossroads]]
 +
| headquarters = 5th Floor<br/>[[Crossroads#City Hall|Crossroads City Hall]]<br/>Bahnhofstraße 2<br/>[[Crossroads]]
 
| lines = 5
 
| lines = 5
 
| transit_type = Commuter rail
 
| transit_type = Commuter rail
Line 116: Line 118:
 
|}
 
|}
  
== LuaATC Environment ==
+
== LuaATC ==
Although Station/Stop tracks already exist, {{Player|Ywang}} is still willing to use LuaATC instead, due to some advantages of LuaATC. At the same time, this part is written as {{Player|Ywang}}'s reference when using LuaATC functions from the environment.<br/>
+
Although Station/Stop tracks already exist, {{Player|Ywang}} is still willing to use LuaATC instead, due to some advantages of LuaATC. At the same time, this part is written as {{Player|Ywang}}'s reference when using LuaATC functions from the environment.
Note: Only important funcitons are listed here.
+
 
 +
=== Use of LuaATC ===
 +
 
 +
==== Station Display ====
 +
LuaATC is currently used to display departure information in the following stations:
 +
* [[Crossroads City Hall Station]] (Track 1 only)
 +
* [[Colored Grasses Station]]
 +
Ywang has promised to install an information display in [[EVO]], but this has not started yet.
 +
 
 +
==== Train Monitoring ====
 +
Trains that use the LuaATC station functions are currently monitored to help find problems when one is found.<br/>
 +
This feature is currently tested on the Clockwise Route of {{CRT1}} and the Ocean City Subway.
  
 
=== Functions ===
 
=== Functions ===

Revision as of 21:42, 12 October 2019

Crossroads Transport
CRTSchematic.png
Line Map
Overview
Area servedCrossroads
Transit typeCommuter rail
Number of lines5
Headquarters5th Floor
Crossroads City Hall
Bahnhofstraße 2
Crossroads
Operation
Began operation2019
Technical
LuaATC environmentCrossroads


Crossroads Transport is a company founded by User:Ywang. It is responsible for short-distance trains in Crossroads and some long-distance trains. The company has an info center in Crossroads City Hall. The company uses the line prefix CRT, with ATL/CRT Bronze Line as an exception.

Operated Lines

Type Line Description Route
Short-distance railway line in Crossroads (1-10)  CRT 1  The first short-distance railway line in Crossroads

Smacker's Station SM1
Mountain Railway Termius  CRT 12 
ARSE's Shop
City Hall South
City Hall  CRT 2  ATL-M ATL-B
 CRT 2  An incomplete line that currently runs between Crossroads City Hall Station and Bahnhofstraße West Station in Crossroads. The commuter service is temporarily out of order due to interlocking failure. The Express Service is run with Arse Train Lines, with the Ehlodex - Crossroads City Hall Station section running as ATL-M.

Ehlodex E1 CFE S12 S13
Former ATL Silver Line
Silver Coast ATL-B ATL-Z
Silver Coast East (Closed)
Crossroads, City Hall  CRT 1  ATL-B
-, Bahnhof Ost
-, Bahnhofstraße West
Crossroads-Zentrum/Nordstadt
Crossroads-Nordstadt, West
-, Bahnhofstr. Mitte (Planned)
-, Hauptbahnhof West (Planned)
-, Hauptbahnhof (Planned)
-, Hauptbahnhof Ost (Planned)
-, Bahnhofstr. Ost (Planned)
-, Bahnhofstr. Ostende (Planned)
Crossroads Mountain Railway (11-20)  CRT 11  A simple loop line that only stops at Crossroads Mountain Railway Termius

Mountain Railway Termius
 CRT 12  A line connecting Crossroads Mountain Railway Termius and Crossroads West Mountains

Mountain Railway Termius
West Mountains ATL-B
Internal line numbers (900-999) 900 Unknown
901 Train is (or should be) in depot
902 Train is not in service
903 Train is stopped by ATC
Operated with Arse Train Lines (ATL-) ATL-B A line connecting Crossroads City Hall and Personhood West See ATL Bronze Line

Crossroads Tranport Internal Standard

Crossroads Transport uses its own standard, the Crossroads Transport Internal Standard.

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
Mainline Train Advtrains subway wagon inv.pngAdvtrains subway wagon inv.pngAdvtrains subway wagon inv.png

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
No longer used
20
  • Crossroads, Bahnhof Ost
  • Crossroads, Mountain Railway Termius
  • Crossroads, West Mountains
Recommended for most trains
40
  • Crossroads, City Hall
Recommended for mainline stations with long trains

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.

Use of LuaATC

Station Display

LuaATC is currently used to display departure information in the following stations:

Ywang has promised to install an information display in EVO, but this has not started yet.

Train Monitoring

Trains that use the LuaATC station functions are currently monitored to help find problems when one is found.
This feature is currently tested on the Clockwise Route of  CRT 1  and the Ocean City Subway.

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",
}