BH奕零 发表于 2024-8-17 13:56:29

存档出现数据丢失情况

本帖最后由 BH奕零 于 2024-8-17 14:31 编辑

服务器存档在重启后会丢失MTR车厂等数据

启动log出现下面内容(可能有用?)

LOG1:

: No data fixer registered for seat
: No data fixer registered for lift_2_2
: No data fixer registered for lift_2_2_double_sided
: No data fixer registered for lift_3_2
: No data fixer registered for lift_3_2_double_sided
: No data fixer registered for lift_3_3
: No data fixer registered for lift_3_3_double_sided
: No data fixer registered for lift_4_3
: No data fixer registered for lift_4_3_double_sided
: No data fixer registered for lift_4_4
: No data fixer registered for lift_4_4_double_sided
: Logging initialized @25424ms to mtr.libraries.org.eclipse.jetty.util.log.Slf4jLog


LOG2:

: Error loading saved data: mtr_train_data
org.msgpack.core.MessageTypeCastException: null
      at org.msgpack.value.impl.AbstractImmutableValue.asMapValue(AbstractImmutableValue.java:165) ~
      at org.msgpack.value.impl.ImmutableArrayValueImpl.asMapValue(ImmutableArrayValueImpl.java:36) ~
      at org.msgpack.value.impl.AbstractImmutableValue.asMapValue(AbstractImmutableValue.java:33) ~
      at mtr.data.MessagePackHelper.iterateMapValue(MessagePackHelper.java:73) ~
      at mtr.data.Station.<init>(Station.java:41) ~
      at mtr.data.RailwayDataFileSaveModule.lambda$readMessagePackFromFile$12(RailwayDataFileSaveModule.java:231) ~
      at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
      at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
      at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?]
      at mtr.data.RailwayDataFileSaveModule.lambda$readMessagePackFromFile$13(RailwayDataFileSaveModule.java:221) ~
      at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
      at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
      at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?]
      at mtr.data.RailwayDataFileSaveModule.readMessagePackFromFile(RailwayDataFileSaveModule.java:219) ~
      at mtr.data.RailwayDataFileSaveModule.load(RailwayDataFileSaveModule.java:83) ~
      at mtr.data.RailwayData.load(RailwayData.java:223) ~
      at mtr.mappings.PersistentStateMapper.lambda$getInstance$0(PersistentStateMapper.java:22) ~
      at net.minecraft.class_26.method_120(class_26.java:72) ~
      at net.minecraft.class_26.method_20786(class_26.java:59) ~
      at net.minecraft.class_26.method_17924(class_26.java:43) ~
      at mtr.mappings.PersistentStateMapper.getInstance(PersistentStateMapper.java:20) ~
      at mtr.data.RailwayData.getInstance(RailwayData.java:756) ~
      at mtr.MTR.lambda$init$34(MTR.java:447) ~
      at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:647) ~[?:?]
      at mtr.MTR.lambda$init$35(MTR.java:446) ~
      at net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$0(ServerTickEvents.java:40) ~
      at net.minecraft.server.MinecraftServer.handler$bfo000$fabric-lifecycle-events-v1$onStartTick(MinecraftServer.java:6316) ~
      at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:819) ~
      at net.minecraft.server.MinecraftServer.handler$zkh000$carpet$modifiedRunLoop(MinecraftServer.java:4385) ~
      at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:644) ~
      at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~
      at java.lang.Thread.run(Thread.java:833) [?:?]
: : Minecraft Transit Railway data successfully loaded for minecraft:the_end
: : BlueMap is not loaded
: : Squaremap is not loaded
: : Minecraft Transit Railway data successfully loaded for minecraft:the_nether
: : BlueMap is not loaded
: : Squaremap is not loaded
: Loaded 1178 pending tile renders for world 'world'
: Loading resource pack standard
: Xiao_Yao_Phi[/***.**.**.*:*****] logged in with entity id 75 at (7000.39670077094, 1.0, -1221.0975300658351)

BH奕零 发表于 2024-8-17 15:42:05

本帖最后由 BH奕零 于 2024-8-17 16:01 编辑

MCWinBuild 发表于 2024-8-17 15:26
1一看还以为直梯坏了原来没事
2我记得论坛有几个类似的问题(ERROR Loading MTR——Train——data),你可 ...
帖子我已经看了,现在尝试删掉mtr文件一步到位试试(存档刚开始数据量不大)

似乎是好的

话说这种坏档,出现的原因是什么?MTR4.0吗

ShentongMetro 发表于 2024-8-17 14:30:22

偶发坏包,没救

BH奕零 发表于 2024-8-17 14:31:43

ShentongMetro 发表于 2024-8-17 14:30
偶发坏包,没救

存档直接废吗请问一下()

Meow 发表于 2024-8-17 15:01:37

LOG1没用,是Jonathan的屎山代码遗留
LOG2看着是存档坏包,考虑回档或尝试升级Fabric,检查start.sh脚本

MCWinBuild 发表于 2024-8-17 15:26:45

1一看还以为直梯坏了原来没事
2我记得论坛有几个类似的问题(ERROR Loading MTR——Train——data),你可以找找,下面是几个回复
https://www.mtrbbs.top/forum.php ... ptid=6809&pid=55132
https://www.mtrbbs.top/forum.php ... ptid=6809&pid=55127

yomi 发表于 2024-8-18 11:36:38

见https://www.mtrbbs.top/forum.php?mod=viewthread&tid=6809&page=1#pid55132,我回答过
页: [1]
查看完整版本: 存档出现数据丢失情况