You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatevoidLoadRegions(stringname){stringworldPath=Path.Combine(Application.persistentDataPath,"Nbts",name,"region");varregionManager=newAnvilRegionManager(worldPath,newChunkCache());inti=0;intblocksPerRegionAxis=2;// Chunks in a region go from 0 to 31 but this is a testushort[][,,]allRegions=newushort[regionManager.Count()*blocksPerRegionAxis*blocksPerRegionAxis][,,];foreach(IRegionregioninregionManager){for(intx=0;x<blocksPerRegionAxis;x++){for(intz=0;z<blocksPerRegionAxis;z++){if(!region.ChunkExists(x,z)){Debug.Log($"Missing chunk at {x} - {z}");continue;}else{Debug.Log("Chunk exists!!");}IChunkchunk=region.GetChunk(x,z);if(chunk!=null){Console.WriteLine($" Chunk at X: {chunk.X}, Z: {chunk.Z}");allRegions[i*blocksPerRegionAxis+x*blocksPerRegionAxis+z]=CreateVoxelMapFromSubstrateBlocks(chunk.Blocks);Debug.Log(allRegions[i*blocksPerRegionAxis+x*blocksPerRegionAxis+z]);}else{Debug.Log("HOW IS IT POSSIBLE?");}}}i+=1;}// more code...}
I get quite a few "HOW IS IT POSSIBLE?" in my logs :p I guess it fails to load the chunk? Are there minecraft versions that are not supported by the latest Substrate? Does Substrate work if the world uses the Conquest Reforged mod?
I also tried to use AnvilWorld.Open(worldPath) (with a different worldPath), and it says that the loading of level.dat failed.
https://owengage.com/anvil/ this site manages to load the regions and display the world (although a lot of it is purple), and NBTExplorer does as well.
Thanks for any pointers you could give me.
The text was updated successfully, but these errors were encountered:
I get quite a few "HOW IS IT POSSIBLE?" in my logs :p I guess it fails to load the chunk? Are there minecraft versions that are not supported by the latest Substrate? Does Substrate work if the world uses the Conquest Reforged mod?
I tried a few different maps, none of them work. Here's a example of what I was trying to load: https://www.planetminecraft.com/project/gothic-german-castle-late-medieval/
I also tried to use
AnvilWorld.Open(worldPath)
(with a different worldPath), and it says that the loading of level.dat failed.https://owengage.com/anvil/ this site manages to load the regions and display the world (although a lot of it is purple), and NBTExplorer does as well.
Thanks for any pointers you could give me.
The text was updated successfully, but these errors were encountered: