[开发进度分享] LCD 开发进度分享
本帖最后由 Jeffreyg1228 于 2024-2-25 14:18 编辑2024.2.25 更新:最新帖子地址:https://www.mtrbbs.top/forum.php?mod=viewthread&tid=6203
目前正在使用 Java 重写 MTR Toolbox,增加 LCD 模拟功能,并支持 LCD 导出为图片文件。
资源包加密功能一段时间内不会实现。
新版本 LCD 及适配文档将在重写完成后发布。
MTR Toolbox (预览版) 下载地址:
https://jeffreyg1228.lanzv.com/in3Zv1ojetve
请注意,您需要使用 Java 17 打开 JAR 包。这不是模组,无需使用 Minecraft。
https://s2.loli.net/2024/02/16/XiSl4JvWNtRbjuM.png
为了使用 LCD 模拟功能,需要载入路线信息。下面是一个合法的 JSON(车站信息基于存档“口海乐的地铁存档 (V026 版本)”):
{
"routeId": -1108493480385563900,
"destinationStationName": "虹桥2号航站楼|Hongqiao Terminal 2",
"routeName": "7环线|Line 7",
"routeNumber": "7N",
"routeColor": "java.awt.Color",
"depotName": "测试车厂|Test Depot",
"stationInfoMap": {
"-1053620039753731600": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "御林|Yulin",
"interchangeInfo": [
{
"name": "0",
"color": 16140541,
"isConnectingStation": false
},
{
"name": "1",
"color": 16711680,
"isConnectingStation": false
},
{
"name": "2",
"color": 11513661,
"isConnectingStation": false
},
{
"name": "3",
"color": 1084529,
"isConnectingStation": false
},
{
"name": "4",
"color": 2607615,
"isConnectingStation": false
}
]
},
"6860734350707491000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "林村|Lincun Village",
"interchangeInfo": []
},
"-3239319400209064400": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "勇敢者场馆|Yongganzhechangguan",
"interchangeInfo": [
{
"name": "9至育线|Line 9Zhiyu",
"color": 16140541,
"isConnectingStation": false
}
]
},
"-5334619620162426000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "胡桃站|Hu Tao",
"interchangeInfo": [
{
"name": "2号线|Line 2",
"color": 16711680,
"isConnectingStation": false
}
]
},
"4197990912872933400": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "西墅|Xishu",
"interchangeInfo": [
{
"name": "4屿沙线|Line 4",
"color": 11513661,
"isConnectingStation": false
},
{
"name": "3沙屿线|Line 3",
"color": 11513658,
"isConnectingStation": false
}
]
},
"5624893746301197000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "祁浦老浦|Old Qipu",
"interchangeInfo": [
{
"name": "15号线|Line 15",
"color": 16711913,
"isConnectingStation": false
}
]
},
"-5813639825746349000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "山凼|Shandang",
"interchangeInfo": [
{
"name": "8碧凼线|Line 8",
"color": 1084529,
"isConnectingStation": false
},
{
"name": "1煮海线|Line 1",
"color": 2607615,
"isConnectingStation": false
},
{
"name": "1煮海线|Line 1",
"color": 2607615,
"isConnectingStation": false
}
]
},
"8740380465168250000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "丰炬东|Fengju East",
"interchangeInfo": []
},
"-2119818772847022000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "芸村|Yuncun",
"interchangeInfo": []
},
"-8185435313009036000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "下花园|Xiahua Yuan",
"interchangeInfo": []
},
"4366575951459707000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "独墅湖|Dushuhu",
"interchangeInfo": [
{
"name": "5埠湖线|Line 5",
"color": 16739328,
"isConnectingStation": false
}
]
},
"-7092346434846928000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "陇海|Longhai",
"interchangeInfo": []
},
"-5417414441806096000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "华泾|Huajing",
"interchangeInfo": []
},
"-1800441495159619300": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "南桥|Nanqiao",
"interchangeInfo": []
},
"6257281148049805000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "雪青|XueQing",
"interchangeInfo": [
{
"name": "15号线|Line 15",
"color": 16711913,
"isConnectingStation": false
}
]
},
"2926853670739235000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "宝带|Baodai",
"interchangeInfo": []
},
"-1918880213846203400": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "茂才|Maocai",
"interchangeInfo": []
},
"8578900558226828000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "平明|Pingming",
"interchangeInfo": [
{
"name": "18号线|Line 18",
"color": 18175,
"isConnectingStation": false
}
]
},
"-2869827067009288000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "羽浦|Yupu",
"interchangeInfo": []
},
"-5128217026305312000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "屿山路|Yushanlu",
"interchangeInfo": [
{
"name": "4屿沙线|Line 4",
"color": 11513661,
"isConnectingStation": false
},
{
"name": "3沙屿线|Line 3",
"color": 11513658,
"isConnectingStation": false
}
]
},
"-8552968667515997000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "东海印月|Donghai Yinyue",
"interchangeInfo": []
},
"-1517071397343507700": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "东海印月西|Donghai Yinyue West",
"interchangeInfo": []
},
"4233677433772501000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "小沙沙岛|Xiaosha Island",
"interchangeInfo": []
},
"9047701506231663000": {
"platformName": "3",
"platformDwellTime": 40,
"stationName": "金海河|Jinhai River",
"interchangeInfo": [
{
"name": "1煮海线|Line 1",
"color": 2607615,
"isConnectingStation": false
},
{
"name": "1煮海线|Line 1",
"color": 2607615,
"isConnectingStation": false
},
{
"name": "1煮海线|Line 1",
"color": 2607615,
"isConnectingStation": false
}
]
},
"2344858764378727000": {
"platformName": "1",
"platformDwellTime": 40,
"stationName": "虹桥2号航站楼|Hongqiao Terminal 2",
"interchangeInfo": [
{
"name": "6远沙线|Line 6 Yuansha Line",
"color": 2956036,
"isConnectingStation": false
}
]
}
}
}以上所有信息仅限测试使用。如果侵权,请发邮件至:jeffreyg1228@126.com
巨,话说这个json怎么搞来的
想问一下 如何移植到自己的列车上 petermen 发表于 2024-2-17 08:06
想问一下 如何移植到自己的列车上
包含移植信息的新版 LCD 文档晚些时候推出。也可以参考:https://www.bilibili.com/opus/892267751993769985 a,想直接复制代码看看,但是论坛的奇怪机制,防复制,直接复制出来就是一堆乱码( 为啥网址打不开? 本帖最后由 村民喵.zip 于 2024-2-19 14:51 编辑
interchangeInfo里面的color是什么格式啊? 《第62行:胡桃站》
原来你也…… 村民喵.zip 发表于 2024-2-19 14:34
interchangeInfo里面的color是什么格式啊?
RGB十进制值,可以理解为#xxxxxx转成十进制
页:
[1]