iPortalTeam / ImmersivePortalsModForForge

Non-Euclidean in Minecraft. See through portals and teleport seamlessly.
https://qouteall.fun/immptl/
Apache License 2.0
43 stars 18 forks source link

Cannot uninstall #111

Closed GenDutchman closed 1 year ago

GenDutchman commented 1 year ago

According to your testing, does the issue occur with ONLY Immersive Portals mod installed?

Yes

Forge Version

44.1.23

ImmersivePortals Version

2.5.4-mc1.19.3

Latest Log

https://gist.github.com/GenDutchman/65ba96cd87b4ff8ba586f02e66b58b7f#file-debug-3-log

Crash Report (if applicable)

No response

Steps to Reproduce

Installed the mod, Didn’t work with optifine Removed mod from mod pack Server didn’t start up Removed config and dimension Server didn’t start up

What You Expected

I thought the server was going to go back and start up like it has done with other removing mods

What Happened Instead

The issue that happened is described in the file link hopefully

Additional Details

No response

Please Read and Confirm The Following

qouteall commented 1 year ago

MC saves dimension config in level.dat and it cannot be deserialized after uninstalling the mod. As far as I know Forge already solves this issue. Seems that the Forge's fix is broken? If the Forge's fix is broken, uninstalling other dimension mods could also lead to the same result. This is maybe a Forge's issue.

The quick solution is to create a new world with the same seed and configuration, then use the new world's level.dat to replace the broken world's level.dat (don't forge to backup the original level.dat).

GenDutchman commented 1 year ago

So, backup the world to begin with, create a new world with the same seed, copy the level.dat and replace the broken world’s level.dat with the new one.

Would it be better if I copied the level.dat from a previous save?

GenDutchman commented 1 year ago

MC saves dimension config in level.dat and it cannot be deserialized after uninstalling the mod. As far as I know Forge already solves this issue. Seems that the Forge's fix is broken? If the Forge's fix is broken, uninstalling other dimension mods could also lead to the same result. This is maybe a Forge's issue.

The quick solution is to create a new world with the same seed and configuration, then use the new world's level.dat to replace the broken world's level.dat (don't forge to backup the original level.dat).

Could I also just use NBT Explorer and delete the dimensions from immersive portals?

GenDutchman commented 1 year ago

This is also for a server, and I can’t see player data in the level.dat NBT, I was looking around and saw some stuff that said level.dat stores player data in single player, but nothing about it storing player data on server level.dat.

GenDutchman commented 1 year ago

Ok Ok, I’ve tested it, using NBT Explored I removed the dimensions in the level.dat file, (I backed it all up first) then I removed the mods, the dimensions in the world save, the configs. All is working now, thanks heaps for the help