Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Forge Mod Loading: Freezing Data?


Recommended Posts

I have been playing on 1.7.10 modded for many, many years. On 1.7.10, Forge has a rather odd-looking loading process, where it shows you the 7 phases of mod loading, then breaks each phase down into each mod and item that is loaded, and it shows you the progress of this on 3 rows of progress bars. I have grown quite accustomed to this.
The past few days, however, I have been playing on 1.15.2. It's quite the change, but I think I like it so far. There is one thing I found somewhat annoying, though. Upon launching a Forge pack, there is only one progress bar, which seems to progress rather smoothly right up until the end of it, where it looks to freeze. The game is not frozen, however, and the memory usage still fluctuates as normal. It is still responding and operating normally, it just looks to be frozen. It sits like this for some time. Being accustomed to the 3 rows of these progress bars (and having the little hammer and anvil in the bottom right doing it's animation to reassure you the program is not frozen), I find this change a bit unsettling. It's nothing too major though. However, upon staring at this screen for a bit, I did notice the bottom left corner, which at this stage reads "Freezing Data". Freezing data while the program appears to be frozen? Ironic, at least.
So, the main purpose of this post:
What does this "Freezing Data" actually mean? What is going on at this stage of loading?

Link to post
Share on other sites

When you connect to a server or load a world Forge has to re-organize the registries (for blocks, items and many other things) so that the IDs match up with the world / server.

When you then disconnect, Forge has to revert to the previous stage (the one you would get immediately after game startup). To do this, Forge copies the registries once after startup, this is most of the work in "freezing data". Then some registries have other data dependent on them, for example block states need to have their IDs recomputed based on the block IDs. This also happens here.

Link to post
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.

Guest
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.



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hi can any help me to fix this bug? (the structure cut of when i spawn it)
    • Sorry, I also just started with learning coding. But the documentation don't solve the problem! (The Problem is what I underline here: "new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod ..." public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod.MOD_ID); Hole Code: package com.NotHeizer.TestMod.util; import com.NotHeizer.TestMod.TestMod; import com.NotHeizer.TestMod.items.ItemBase; import net.minecraft.item.Item; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class RegisteryHandler { public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod.MOD_ID); public static void init() { ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus()); //Items public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", ItemBase::new) } This was my "util" package. If I go into my TestMod (the Name of my Mod) Package there is 1 related Problem: package com.NotHeizer.TestMod; import com.NotHeizer.TestMod.util.RegisteryHandler; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod("TMod") public class TestMod { private static final Logger LOGGER = LogManager.getLogger(); public static final String MOD_ID = "TestMod"; public TestMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); RegisteryHandler.init(); MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { } private void doClientStuff(final FMLClientSetupEvent event) { } } You can't see it, but after: @Mod("TMod") public class TestMod { private static final Logger LOGGER = LogManager.getLogger(); and Befor: public static final String MOD_ID = "TestMod"; there stands: "1 related Problem" in red and if I klick on it, it sends me to: "new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod ..." (btw"DeferredRegister<>" is than marked. I am a beginner, and I am not good at it, but I read through the documentation and could not find something that could help me, or I am still not good enough. Can you help me?   Sorry for my bad englisch And I saw your Name, it sounds German, so if you are German, I am too so pleas write me in German if you can so that I could understand easily! Tanks in advanced!  
    • Should I call the read and write methods of my NBTHandler in any event?
    • Here is debug.log: [19Apr2021 20:46:59.810] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.1.0, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge] [19Apr2021 20:46:59.816] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 16 by Oracle Corporation [19Apr2021 20:46:59.832] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver]  
    • I can confirm I am experiencing issues as well. It seems like all https://files.minecraftforge.net/maven/... URLs are being redirected to https://maven.minecraftforge.net/... which throws an authentication prompt and doesn't seem to work.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.