Jump to content

Cleaning the old map


Shpot

Recommended Posts

I apologize in advance for any mistakes, English is not my native language.

This summer my friends and I started the server with 70+ mods (1.12.2, server is on hosting), during the time we played we realized, that it takes too long time to launch both the server and the client, plus some mods turned out to be useless. We deleted some mods, continued to play. Now our modpack contains 55 mods, everything is okay expect connecting to the server. 4 out of 5 connection attempts fail (client just stops responding, after that we need to reboot it). It takes half an hour to connect to the server because we reboot the minecraft several times. My goal now is to solve this trouble.

I have already read some forums and I think that the problem is in saving. It is old, and as I understand, now it contains a lot of junk information and information from recently deleted mods. That's why I want to clean it up somehow.
 

1)First attempt was to copy WorldName\region folder + level.dat and some others to the new world saving. As I expected, nothing changed. 

2)Secondly I tried to create the new one world and to copy all structures using WorldEdit schematico (used different formats of saving: schematico, mce, mcedit). The structures was copied, but with completely different blocks.
2.1) I used NBTExplorer to look into the level.dat file. It turned out that IDs in minecraft are initialized dynamically and are unique for each world with different modpack. Here it is the id of bell block in old world

3CU73Na6Q5w.jpg?size=256x64&quality=96&proxy=1&sign=603af368c2dbacc1975f988f5a4b1a19&type=album

Here is the id of the block in new one;

LdFIXGWPt9A.jpg?size=208x68&quality=96&proxy=1&sign=0bd88a1a48ff86953c03b63467a0c9c5&type=album

2.2) I copied the level.dat file to a new map and tried to use WorldEdit again. The results are: some blocks are copied true, some are not. 

From this point I don't know what to do. I have already read all local Russian-speaking forums looking for a similar problem: without any results.

That's why I'm here. We spent a lot of time building beautiful city, and I'm afraid that the situation will only get worse. 

Is it possible to clean up the world somehow? 
If not, is it possible to copy out the structures from the old map with IDs initialized this way? 

Maybe the world is not even the cause of the connection problems?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

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.