McJtyMods / RFToolsDimensions

Companion mod for RFTools which handles the dimensions
MIT License
63 stars 24 forks source link

custom dimensions are invalid after a reboot & activity probe is broken as well #411

Open ghost opened 2 years ago

ghost commented 2 years ago

Issue description: Im using rftools dimensions and some other mods on a server. It all worked fine, however it stopped working properly out of nowhere now. I did not change any server files on my own (the server did some obviously while running - like saving the world etc), nor did i update any mods.

Now all rftools dimensions are declared as unknown in the rftools utilities dialing device. Using the rftools dimensions command to teleport to the dimension doesnt do anything. It doesnt even return an error. All of the Dimlets from the dimensions still display the correct information about the world (name, energy, etc.)

Using the rftools dimensions command to delete all invalid dimensions, deletes all the dimensions. After deleting them, the dimlets show "power -1" (I think this is intended because the dim doesnt exist)

If I then use the dimlet and extract it an save it with the exact same dimlets and name, it reregisters the dimension. After powering it up (energy is at 0 after the creation) the "old" matter receiver works again in the world. Besides the old receiver it generates a new reciever on the same X and Z coordinates as the original one. The Z is usually below.

At this point it seems to work correctly again, however it doesnt. I have a Activity Probe in every dimension and it doesnt work anymore. Removing the Probe and placing it again at the same position or another one does not fix this issue. The Probe is permanently broken for the dimension.

Steps to reproduce: I cannot reproduce it in another world. However after i created new dimensions with new names it was broken once more after the sceduled server reboot.

Versions:

Clients are using Optifine, which also requires me to stay on this forge version, however optifine is only installed on the clients. The server is not using Optifine. I believe Optifine is not the problem in this case, because the server isnt even using it. It just limits the Forge version choice.

Possibly incompatible mods:

Relevant logs, if any: i sadly dont know which logs are helping here, because the shouldnt be a crash log, since the server didnt crash.

McJty commented 2 years ago

The logs from the moment when you started and first noticed the dimensions were not working would be useful to have

HyperCrafting commented 2 years ago

Had the same issue on a friends server (running direwolf20 1.18) all dimensions became invalid after a server restart, and furthermore, attempting to delete a dimension in the dimension editor resulted in constant server crashing with the error java.lang.NullPointerException: Cannot invoke "net.minecraft.server.level.ServerLevel.m7726()" because "dimension" is null

McJty commented 2 years ago

I really need to see the logs from the moment the dimensions turn invalid

ghost commented 2 years ago

Short update: I updated the rftools dimensions version from 8.0.7 to 8.0.8 and the dimensions are still valid today, however the activity probe is still broken. I added the log files as a file because they are, even if i remove some parts like "Skipping Entity with id " way too long to be posted in the comment. I will remove the "Skipping Entity with id" and the "Server Overloaded" messages at the end to keep the log files in the size limit.

I will add another comment with more logs, due to upload limit. I first noticed it on 07.08.2022 and the i "fixed" it a second time on 08.08.2022. I also updated the mod version on 08.08.2022 2022-08-07-3.log 2022-08-08-1.log 2022-08-08-2.log 2022-08-08-3.log 2022-08-07-1.log 2022-08-07-2.log .

AlienXtream commented 1 year ago

i got this too in 1.19.2 (RFTools Dims 1.9.0), only when i logged back in (left while in the dimension) i got teleported to world spawn and the dimension does not show up in any commands. its still there in the world folder but seems something is broken. minecraft REALLY doesn't like these runtime dimensions does it... XD

ingrac42 commented 1 year ago

I'm having a similar issue. On March 19 when the server did a regular reboot, it had all the dimensions, but when we logged in the next day, they were gone. For some reason, when I look in Level.dat from backups vs. the one currently on the server, the server seed is changing and the dimensions info is gone. Level.dat from the 19th shows all the dimensions, and today we not only lost all the RFTools Dimensions, but Compact Machines as well. The RFToolsDimensions.dat still has some of the infor for the missing dimensions, and they're still on the server in the world files.

Log for March 19: https://mcpaste.io/d6e1be7958cbac36 Log for March 20-1: https://mcpaste.io/8ba417729206939b

You can see it trying to load the dimensions on March 20 around line 2836, and then saving the dimensions at the end of the log.

But in Log 2, they can't be found anymore, around line 2079. https://mcpaste.io/912493f9f3645b74

We're running 1.19.2 with rftoolsdim-1.19.2-9.1.2.jar.

modlist.txt


[19Mar2023 11:30:03.805] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:n3
[19Mar2023 11:30:03.807] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end
[19Mar2023 11:30:03.816] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:n0
[19Mar2023 11:30:03.818] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:n4
[19Mar2023 11:30:03.820] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/compactmachines:compact_world
[19Mar2023 11:30:03.822] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether
[19Mar2023 11:30:03.824] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:0
[19Mar2023 11:30:03.825] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:n1
[19Mar2023 11:30:03.826] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/twilightforest:twilight_forest
[19Mar2023 11:30:03.827] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:n2
[19Mar2023 11:30:03.829] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/ae2:spatial_storage
[19Mar2023 11:30:03.830] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:uranium
[19Mar2023 11:30:03.833] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:lycan_01
[19Mar2023 11:30:03.834] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:lycan_02
[19Mar2023 11:30:03.835] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[world]'/rftoolsdim:lycan_03

```[20Mar2023 02:28:03.064] [Server thread/ERROR] [mcjty.lib.setup.DefaultModSetup/]: Can't find dimension 'uranium'!
[20Mar2023 02:28:18.819] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3255ms or 65 ticks behind
[20Mar2023 02:28:37.227] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3413ms or 68 ticks behind
[20Mar2023 02:28:56.067] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2003ms or 40 ticks behind
[20Mar2023 02:29:13.308] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2244ms or 44 ticks behind
[20Mar2023 02:29:31.040] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2776ms or 55 ticks behind
[20Mar2023 02:29:50.719] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2005ms or 40 ticks behind
[20Mar2023 02:30:09.413] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3699ms or 73 ticks behind
[20Mar2023 02:30:28.540] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 4176ms or 83 ticks behind
[20Mar2023 02:30:46.992] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3478ms or 69 ticks behind
[20Mar2023 02:31:05.020] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2006ms or 40 ticks behind
[20Mar2023 02:31:15.479] [Server thread/INFO] [mcjtylib/]: Receiver on dimension uranium removed because world can't be loaded!
[20Mar2023 02:31:15.482] [Server thread/INFO] [mcjtylib/]: Receiver on dimension lycan_02 removed because world can't be loaded!
[20Mar2023 02:31:16.067] [Server thread/INFO] [mcjtylib/]: Receiver on dimension lycan_03 removed because world can't be loaded!
[20Mar2023 02:31:16.622] [Server thread/INFO] [mcjtylib/]: Receiver at BlockPos{x=-375, y=29, z=-906} on dimension overworld removed because there is no receiver there!
[20Mar2023 02:31:18.256] [Server thread/INFO] [mcjtylib/]: Receiver on dimension lycan_01 removed because world can't be loaded!