Jump to content

Recommended Posts

Posted

I know this has been asked many times but why does this keep happening. In the linked post diesieben07 says that this error atleast for NGYF is related to when he registers his packets, which should be done in the FMLCommonSetupEvent, which I do, I checked with the debugger. As I have no clue what is causing this I'll just list when I sent Packets and an example Packet but if you know specific concepts which might cause this feel free to ask for it.

code:

  Reveal hidden contents

 

What happens before the Client complains about this when joining singleplayer worlds

  Reveal hidden contents

What happens before the Server complains about this when joining singleplayer worlds

  Reveal hidden contents

What happens before the Client complains about this when joining a multiplayer server

  Reveal hidden contents

What happens before the Server complains about this when joining a multiplayer server

  Reveal hidden contents

 

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted
  On 4/5/2020 at 12:45 PM, _Cruelar_ said:

Common Setup Handler:

Expand  

If I recall correctly you need to use DeferredWorkQueue.runLaterDeffered in the mod life-cycle events because they run on a separate thread. But I honestly don't know what is causing your problem. Could be the lack of sleep I have.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

What exactly should I run through that as this didn't solve it

private void doSetup(final FMLCommonSetupEvent event) {
        CapabilityManager.INSTANCE.register(IFroidCapability.class, new FroidCapabilityStorage(), FroidCapabilityGetter::new);
        CapabilityManager.INSTANCE.register(IHolyCapability.class, new HolyCapabilityStorage(), HolyCapabilityGetter::new);
        proxy.doSetup(event);
        DeferredWorkQueue.runLater(()-> {
            Personaltoolmod_Core.network = NetworkRegistry.newSimpleChannel(
                    new ResourceLocation(Personaltoolmod_Core.MODID, "com.cruelar.personaltoolmod"),
                    () -> PROTOCOL_VERSION,
                    PROTOCOL_VERSION::equals,
                    PROTOCOL_VERSION::equals
            );
            ModPackets.registerPackets();
        });
    }

Thanks for the effort, and sorry if I'm just stupid with this.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted
  On 4/5/2020 at 3:13 PM, _Cruelar_ said:

What exactly should I run through that as this didn't solve it

Expand  

Everything that needs to be done on the main thread. Anything that interacts with Minecraft/Minecraft Forge directly I believe. This includes your Capability registration.

Also I didn't expect it to solve it. What exactly is the problem though? Does that error actually even mean anything? Like are your packets working or not?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Originally it prevented me from joining my testserver but since moving some Common code which checked the capabilities, that I'd left in the ClientTick event although better suited in another eventhandler it stopped that might just have been some logical side breaking then, I just hoped to prevent problems with multiplayer by fixing this here as I'm not sure if it is able to break my mod on servers as this mod is designed to run on a server

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

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



×
×
  • Create New...

Important Information

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