Jump to content

"Errors in currently selected datapacks prevented the world from loading." when updating world from 1.16.5 to 1.18.2


Starvixen64

Recommended Posts

Recently updated from 1.16.5 to 1.18.2 as I found that all my mods had updated to newer versions, so I could upgrade them without needing to drop any.

Weirdly, worlds created in 1.18.2 work fine and splendidly with all mods I'm using, but playing my main world (1.16.5, possibly gen'd in 1.14 but I think 1.16.5) in 1.18.2 just leads to this message.

Errors in currently selected datapacks prevented the world from loading. You can either try to load it with only the vanilla data pack ("safe mode") or go back to the title screen to manually fix it

What would be causing this?

Modlist : https://i.imgur.com/AcKjimg.png (using Forge 1.18.2-40.1.73)

debug.log : https://www.textbin.xyz/?51a78db1807352d8#CTwkbgkon74hQCBZ324s4PB8N4dYWXb2fPeVqNKbPH8C

Edited by Starvixen64
hyperlinks
Link to comment
Share on other sites

[18Aug2022 01:12:41.158] [Render thread/ERROR] [net.minecraft.world.level.storage.LevelStorageSource/]: Exception reading C:\Users\Princess\AppData\Roaming\.minecraft\saves\16_5 Creative (Azimuth) NonBOP-copy\level.dat
java.lang.IllegalStateException: Unable load old custom worlds.
	at net.minecraft.util.datafix.fixes.WorldGenSettingsDisallowOldCustomWorldsFix.m_185165_(WorldGenSettingsDisallowOldCustomWorldsFix.java:25) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?]

Your world uses the old custom world format that minecraft no longer supports in 1.18

  • Like 1

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

9 hours ago, warjort said:
[18Aug2022 01:12:41.158] [Render thread/ERROR] [net.minecraft.world.level.storage.LevelStorageSource/]: Exception reading C:\Users\Princess\AppData\Roaming\.minecraft\saves\16_5 Creative (Azimuth) NonBOP-copy\level.dat
java.lang.IllegalStateException: Unable load old custom worlds.
	at net.minecraft.util.datafix.fixes.WorldGenSettingsDisallowOldCustomWorldsFix.m_185165_(WorldGenSettingsDisallowOldCustomWorldsFix.java:25) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?]

Your world uses the old custom world format that minecraft no longer supports in 1.18

That's weird, this wasn't a custom world. I did once (I think) edit it between vanilla and Biomes o Plenty type worlds, but all that block data would've been gone anyway. Is there some way to update the world to work with 1.18?

Link to comment
Share on other sites

Mojang didn't provide a way to do that. Presumably because it is a lot of work to do it.

 

This reddit thread discusses how to do it manually by editing the json, but it requires a lot of technical knowledge on the old custom world format and the new world format:

https://www.reddit.com/r/minecraft_configs/comments/hz4ti7/is_it_technically_possible_to_convert_an_old/

But this has a number of problems, e.g.

* Since that thread is 2 years old, the information on that thread will be out-of-date. 1.18 had major changes to world gen storage, hence your problem.

* It assumes a vanilla world, while you said you had Biomes o Plenty which will have additional world gen config that would needs to be converted

 

BTW: I think even in 1.16 the old custom world format wasn't really properly supported.

Instead it just kept any world chunks that you had already created and generated normal (non-custom) chunks for new ones?

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

7 minutes ago, Luis_ST said:

If i remember correctly vanilla World can be updated without problems, only modded Worlds will get corrupted.

No, this is the old buffet worlds or its precursor.

Mojang added a specific check to DFU (DataFixerUpper) that stops these worlds from being updated in the 1.18 snapshots.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

10 hours ago, warjort said:

No, this is the old buffet worlds or its precursor.

Mojang added a specific check to DFU (DataFixerUpper) that stops these worlds from being updated in the 1.18 snapshots.

Do you know of a way to check within NBT as to how the world was generated? Although I do remember possibly fiddling around with BOP at one point, I'm fairly positive this was never an old custom world; it was generated PAST when those became obsolete. Highly confused as to why this world is bugged out in this way

Edit: I've had a browse and the level.dat has a separate dimension from overworld, end, nether under "compactmachines:compact_world". I imagine this is because quite a long time ago I used the Compact Machines mod on this world; could this have something to do with it? I don't have practically any data left from that mod but it seems to linger in the NBT.

Edited by Starvixen64
eddity edit
Link to comment
Share on other sites

The thing that DFU actually checks for is a "generator" without a "type".

https://minecraft.fandom.com/wiki/Custom#Generator_types

 

 

 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Actually, I think I misread the code. This stuff can be quite difficult to read. 🙂

I think it is looking for a dimension without a type?

It is definitely looking for something within the world generation settings/dimensions that is missing a type.

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

36 minutes ago, warjort said:

Actually, I think I misread the code. This stuff can be quite difficult to read. 🙂

I think it is looking for a dimension without a type?

It is definitely looking for something within the world generation settings/dimensions that is missing a type.

Fascinating - your suggestion and my hunch combined proved to be the solution!

I categorically knew that it was not a non-standard world type, so I had a browse through the NBT and just deleted out the compactmachines:compact_world tree data, as it's a remnant of a long-uninstalled (but very cool) mod, that left it's data in the NBT. Then I deleted everything from the "dimensions" folder in %appdata%/.minecraft/ without deleting the folder itself.

To my great relief, the world has succesfully loaded in 1.18.2, meaning I don't need to lose my most worked-on world to version incompatibility!

I'm not sure what the exact issue was, I just know it pertains to Compact Machines and something to do with how the 1.16.5->1.18.2 update treats it's dimensions. I imagine even after deleting the mod itself, it probably left the dimensions themselves (with machines inside) intact. To anyone encountering this/a similar issue, check if you have non-standard modded dimensions, especially those you don't use anymore. Seems to do the trick.

Thanks for the help! ❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Yeah, Minecraft.getInstance().player only works on the client side. Is there a way to get the player from the NetworkEvent.Context?
    • I have tried multimc, prism, and curseforge. They all crash without creating any logs.
    • I play with friends a server with mods, funny enough im the only one getting the error. Link to the crash error:https://pastebin.com/Qgn57EXZ
    • I have a keybind where you spit like a llama. On singleplayer both the entity and particle spawn and it's sound is played (https://youtu.be/bpxnFDuWw_I). But on a server only the entity is spawned and nothing else (https://youtu.be/veVQ4zSqnIA), no particles nor sound. Upon starting the server I have noticed this error in the window (https://postimg.cc/K3KDCpMY), don't know if it's relevant. The server works fine but when I want to spit the following pops up in the serverlog '''Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER''' (https://postimg.cc/LqTDP1Sm). I have prepared the following code of the Server-to-Client packet class which I have made to spawn mentioned particles and sounds. package mett.palemannie.tabakmod.networking.packets; import net.minecraft.client.Minecraft; import net.minecraft.core.particles.ParticleTypes; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.sounds.SoundEvents; import net.minecraft.util.RandomSource; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class SpuckEffektS2CPacket { public SpuckEffektS2CPacket(){ } public SpuckEffektS2CPacket(FriendlyByteBuf buf){ } public void toBytes(FriendlyByteBuf buf){ } public boolean handle(Supplier<NetworkEvent.Context> supplier){ NetworkEvent.Context context = supplier.get(); context.enqueueWork(()-> { Player player = Minecraft.getInstance().player; //Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER Level level = Minecraft.getInstance().level; RandomSource rdm = RandomSource.create(); float r = rdm.nextInt(80, 120) / 100f; player.playSound(SoundEvents.LLAMA_SPIT, 1f, r); Vec3 MausPos = player.getEyePosition(); Vec3 SchauWinkel = player.getLookAngle(); level.addParticle(ParticleTypes.SPIT, true, MausPos.x, MausPos.y, MausPos.z, SchauWinkel.x/4, SchauWinkel.y/4, SchauWinkel.z/4); }); return true; } } Is there an alternative to Minecraft.getInstance().player;? dumb question. I have looked at other mods (MrCrayfish's Gun Mod, Ars Noveau, Apotheosis) on how they handle such server-to-client sound and particles but I haven't got any wiser.    
    • i keep getting error on minecraft when im trying to play modpack. When i go to logs folder i got this. 
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.