1
0
forked from MTSR/mapserver

wip interlock data

This commit is contained in:
NatureFreshMilk 2019-06-07 10:39:25 +02:00
parent 1dd8d52639
commit 61523d8620
2 changed files with 830 additions and 0 deletions

820
doc/wip/advtrains.json Normal file
View File

@ -0,0 +1,820 @@
{
"147592" : {
"name" : "Section 147592",
"route" : {
"entry" : {
"p" : {
"x" : -1346,
"y" : 6501,
"z" : -902
},
"s" : 2
},
"first" : true,
"origin" : {
"p" : {
"x" : -1346,
"y" : 6501,
"z" : -902
},
"s" : 2
},
"rsn" : "Route 'x4' from signal 'Signal at (-1346,6501,-902)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1431,
"y" : 6501,
"z" : -902
},
"s" : 1
},
{
"p" : {
"x" : -1346,
"y" : 6501,
"z" : -902
},
"s" : 2
}
],
"trains" : null
},
"202775" : {
"name" : "Section 202775",
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1346,
"y" : 6501,
"z" : -905
},
"s" : 2
},
{
"p" : {
"x" : -1346,
"y" : 6501,
"z" : -902
},
"s" : 1
}
],
"trains" : [ "347062" ]
},
"245036" : {
"name" : "Section 245036",
"route" : {
"entry" : {
"p" : {
"x" : -907,
"y" : 2,
"z" : 310
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -907,
"y" : 2,
"z" : 310
},
"s" : 1
},
"rsn" : "Route 'x' from signal 'Signal at (-907,2,310)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -907,
"y" : 2,
"z" : 320
},
"s" : 2
},
{
"p" : {
"x" : -907,
"y" : 2,
"z" : 310
},
"s" : 1
}
]
},
"287775" : {
"name" : "Section 287775",
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1877,
"y" : 42,
"z" : 395
},
"s" : 1
},
{
"p" : {
"x" : -1066,
"y" : 42,
"z" : 395
},
"s" : 2
}
],
"trains" : [ "506728" ]
},
"308300" : {
"name" : "Section 308300",
"route" : {
"entry" : {
"p" : {
"x" : -2124,
"y" : 28,
"z" : 562
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -2124,
"y" : 28,
"z" : 562
},
"s" : 1
},
"rsn" : "Route 'x' from signal 'Signal at (-2124,28,562)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -2124,
"y" : 28,
"z" : 593
},
"s" : 2
},
{
"p" : {
"x" : -2124,
"y" : 28,
"z" : 562
},
"s" : 1
}
],
"trains" : null
},
"332248" : {
"name" : "Section 332248",
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -911,
"y" : 2,
"z" : 321
},
"s" : 2
},
{
"p" : {
"x" : -911,
"y" : 2,
"z" : 312
},
"s" : 2
}
],
"trains" : [ "525416" ]
},
"380370" : {
"name" : "Section 380370",
"tc_breaks" : [
{
"p" : {
"x" : -1879,
"y" : 42,
"z" : 392
},
"s" : 1
},
{
"p" : {
"x" : -1080,
"y" : 42,
"z" : 392
},
"s" : 2
}
],
"trains" : null
},
"396699" : {
"name" : "Section 396699",
"tc_breaks" : [
{
"p" : {
"x" : -2127,
"y" : 28,
"z" : 595
},
"s" : 2
},
{
"p" : {
"x" : -2127,
"y" : 28,
"z" : 562
},
"s" : 1
}
],
"trains" : null
},
"424731" : {
"name" : "Section 424731",
"route" : {
"entry" : {
"p" : {
"x" : -2088,
"y" : 21,
"z" : 774
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -2088,
"y" : 21,
"z" : 774
},
"s" : 1
},
"rsn" : "Route 'TR-JOIN' from signal 'Signal at (-2088,21,774)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -2103,
"y" : 21,
"z" : 772
},
"s" : 2
},
{
"p" : {
"x" : -2088,
"y" : 21,
"z" : 774
},
"s" : 1
}
],
"trains" : null
},
"448317" : {
"name" : "Section 448317",
"tc_breaks" : [
{
"p" : {
"x" : -907,
"y" : 2,
"z" : 320
},
"s" : 1
},
{
"p" : {
"x" : -925,
"y" : 2,
"z" : 339
},
"s" : 2
},
{
"p" : {
"x" : -927,
"y" : 2,
"z" : 335
},
"s" : 2
},
{
"p" : {
"x" : -911,
"y" : 2,
"z" : 321
},
"s" : 1
}
],
"trains" : [ "525416" ]
},
"495941" : {
"name" : "Section 495941",
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1927,
"y" : 42,
"z" : 392
},
"s" : 1
},
{
"p" : {
"x" : -1877,
"y" : 42,
"z" : 395
},
"s" : 2
}
],
"trains" : [ "238799" ]
},
"509928" : {
"name" : "Section 509928",
"route" : {
"entry" : {
"p" : {
"x" : -1045,
"y" : 42,
"z" : 392
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -1045,
"y" : 42,
"z" : 392
},
"s" : 1
},
"rsn" : "Route 'x' from signal 'Signal at (-1045,42,392)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1066,
"y" : 42,
"z" : 395
},
"s" : 1
},
{
"p" : {
"x" : -1021,
"y" : 42,
"z" : 395
},
"s" : 1
},
{
"p" : {
"x" : -1045,
"y" : 42,
"z" : 392
},
"s" : 1
}
],
"trains" : null
},
"594356" : {
"name" : "Section 594356",
"tc_breaks" : [
{
"p" : {
"x" : -2124,
"y" : 28,
"z" : 593
},
"s" : 1
},
{
"p" : {
"x" : -2127,
"y" : 28,
"z" : 595
},
"s" : 1
}
],
"trains" : [ "830099" ]
},
"614720" : {
"name" : "Section 614720",
"route" : {
"entry" : {
"p" : {
"x" : -1927,
"y" : 42,
"z" : 392
},
"s" : 2
},
"first" : true,
"origin" : {
"p" : {
"x" : -1927,
"y" : 42,
"z" : 392
},
"s" : 2
},
"rsn" : "Route 'x' from signal 'Signal at (-1927,42,392)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -2124,
"y" : 28,
"z" : 562
},
"s" : 2
},
{
"p" : {
"x" : -1927,
"y" : 42,
"z" : 392
},
"s" : 2
}
],
"trains" : null
},
"623523" : {
"name" : "Section 623523",
"tc_breaks" : [
{
"p" : {
"x" : -2127,
"y" : 28,
"z" : 562
},
"s" : 2
},
{
"p" : {
"x" : -1924,
"y" : 42,
"z" : 390
},
"s" : 2
}
],
"trains" : null
},
"651629" : {
"name" : "Section 651629",
"tc_breaks" : [
{
"p" : {
"x" : -1924,
"y" : 42,
"z" : 390
},
"s" : 1
},
{
"p" : {
"x" : -1879,
"y" : 42,
"z" : 392
},
"s" : 2
}
],
"trains" : null
},
"676937" : {
"name" : "Section 676937",
"tc_breaks" : [
{
"p" : {
"x" : -2088,
"y" : 21,
"z" : 774
},
"s" : 2
},
{
"p" : {
"x" : -2101,
"y" : 22,
"z" : 787
},
"s" : 2
}
],
"trains" : [ "747089", "358528" ]
},
"778640" : {
"name" : "Section 778640",
"route" : {
"entry" : {
"p" : {
"x" : -1432,
"y" : 6501,
"z" : -905
},
"s" : 2
},
"first" : true,
"origin" : {
"p" : {
"x" : -1432,
"y" : 6501,
"z" : -905
},
"s" : 2
},
"rsn" : "Route 'x5' from signal 'Signal at (-1432,6501,-905)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1432,
"y" : 6501,
"z" : -905
},
"s" : 2
},
{
"p" : {
"x" : -1346,
"y" : 6501,
"z" : -905
},
"s" : 1
}
],
"trains" : null
},
"819070" : {
"name" : "Section 819070",
"route" : {
"entry" : {
"p" : {
"x" : -1080,
"y" : 42,
"z" : 392
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -1080,
"y" : 42,
"z" : 392
},
"s" : 1
},
"rsn" : "Route 'x' from signal 'Signal at (-1080,42,392)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1045,
"y" : 42,
"z" : 392
},
"s" : 2
},
{
"p" : {
"x" : -1080,
"y" : 42,
"z" : 392
},
"s" : 1
}
],
"trains" : null
},
"819379" : {
"name" : "Section 819379",
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1431,
"y" : 6501,
"z" : -902
},
"s" : 2
},
{
"p" : {
"x" : -1432,
"y" : 6501,
"z" : -905
},
"s" : 1
}
],
"trains" : [ "279633" ]
},
"853427" : {
"name" : "Section 853427",
"route" : {
"entry" : {
"p" : {
"x" : -2109,
"y" : 22,
"z" : 787
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -2109,
"y" : 22,
"z" : 787
},
"s" : 1
},
"rsn" : "Route 'TR01' from signal 'Signal at (-2109,22,787)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -2109,
"y" : 22,
"z" : 787
},
"s" : 1
},
{
"p" : {
"x" : -2101,
"y" : 22,
"z" : 787
},
"s" : 1
}
],
"trains" : null
},
"908240" : {
"name" : "Section 908240",
"route" : {
"entry" : {
"p" : {
"x" : -1027,
"y" : 2,
"z" : 335
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -1027,
"y" : 2,
"z" : 335
},
"s" : 1
},
"rsn" : "Route 'x' from signal 'Signal at (-1027,2,335)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1027,
"y" : 2,
"z" : 335
},
"s" : 1
},
{
"p" : {
"x" : -927,
"y" : 2,
"z" : 335
},
"s" : 1
}
]
},
"937130" : {
"name" : "Section 937130",
"tc_breaks" : [
{
"p" : {
"x" : -2063,
"y" : 19,
"z" : 806
},
"s" : 2
},
{
"p" : {
"x" : -2085,
"y" : 22,
"z" : 798
},
"s" : 1
}
],
"trains" : null
},
"963095" : {
"name" : "Section 963095",
"route" : {
"entry" : {
"p" : {
"x" : -925,
"y" : 2,
"z" : 339
},
"s" : 1
},
"first" : true,
"origin" : {
"p" : {
"x" : -925,
"y" : 2,
"z" : 339
},
"s" : 1
},
"rsn" : "Route 'y' from signal 'Signal at (-925,2,339)', segment #1"
},
"route_post" : {
"locks" : null
},
"tc_breaks" : [
{
"p" : {
"x" : -1026,
"y" : 2,
"z" : 339
},
"s" : 1
},
{
"p" : {
"x" : -925,
"y" : 2,
"z" : 339
},
"s" : 1
}
],
"trains" : null
}
}

View File

@ -0,0 +1,10 @@
minetest.after(2, function()
local world_path = minetest.get_worldpath()
local file, err = io.open(world_path .. "advtrains.json", "w")
local data = advtrains.interlocking.db.save()
local json = minetest.write_json(data.ts, true)
file:write(json)
file:close()
end)