Posted April 1, 20205 yr Hi, I was working on my mod, and then when I test runned, I got this error message, [20:46:15] [Render thread/ERROR] [ne.mi.fm.ne.si.IndexedMessageCodec/SIMPLENET]: Received empty payload on channel fml:handshake I don't know what caused it, but it seems that anything Entity based will not work(besides player movment). Blocks also con be placed. Thanks in advance, Kid Koder Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 1, 20205 yr Why are you sending packets on the render thread...? You need to provide code to diagnose the problem. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
April 1, 20205 yr Author 56 minutes ago, imacatlolol said: Why are you sending packets on the render thread...? You need to provide code to diagnose the problem. I don't know what the render thread is and what class sends the packets? Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 1, 20205 yr I believe this error appears if you aren't sending any packets, and so haven't registered a network channel.
April 1, 20205 yr Author 1 hour ago, Alpvax said: I believe this error appears if you aren't sending any packets, and so haven't registered a network channel. @Alpvax and @imacatlolol,I still don't know what you are talking about. If you could explain to me a "packet" and a "network channel" is and how to fix it, that would be super helpful Once again thanks, Kid Koder Edited April 1, 20205 yr by KidKoderMod033109 Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 1, 20205 yr Like I said, show us your code and we can tell you what's wrong with it. We can only guess otherwise. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
April 1, 20205 yr Author 4 minutes ago, imacatlolol said: Like I said, show us your code and we can tell you what's wrong with it. We can only guess otherwise. OK. AlelrgiesMod.java 0 Advanced issue found ▲ Spoiler package net.kidkoder.allergies; 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("allergies") public class AllergiesMod { public static final String MODID = "allergies"; public static final Logger LOGGER = LogManager.getLogger(MODID); public AllergiesMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::commonSetup); } private void clientSetup(FMLClientSetupEvent event) {} private void commonSetup(FMLCommonSetupEvent event) {} } /* * * Koded by Kid Koder :) * * % : ° ° : % * O * * */ EffectInit.java 0 Advanced issue found ▲ Spoiler package net.kidkoder.allergies; 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("allergies") public class AllergiesMod { public static final String MODID = "allergies"; public static final Logger LOGGER = LogManager.getLogger(MODID); public AllergiesMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::commonSetup); } private void clientSetup(FMLClientSetupEvent event) {} private void commonSetup(FMLCommonSetupEvent event) {} } /* * * Koded by Kid Koder :) * * % : ° ° : % * O * * */ EffectAllergicReaction.java 0 Advanced issue found ▲ Spoiler package net.kidkoder.allergies.effect; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.ai.attributes.AbstractAttributeMap; import net.minecraft.potion.Effect; import net.minecraft.potion.EffectType; public class EffectAllergicReaction extends Effect { public EffectAllergicReaction() { super(EffectType.HARMFUL, 255); setRegistryName("allergic_reaction"); } @Override public void applyAttributesModifiersToEntity(LivingEntity entity, AbstractAttributeMap attributeMapIn, int amplifier) { while(entity.getHealth() > 0) { float newHealth = entity.getHealth() - (4 * amplifier); entity.setHealth(newHealth); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } super.applyAttributesModifiersToEntity(entity, attributeMapIn, amplifier); } } EffectEpheniepehrine.java 0 Advanced issue found ▲ Spoiler package net.kidkoder.allergies.effect; import net.minecraft.potion.Effect; import net.kidkoder.allergies.init.EffectInit; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.ai.attributes.AbstractAttributeMap; import net.minecraft.potion.EffectType; public class EffectEpinephrine extends Effect { public EffectEpinephrine() { super(EffectType.HARMFUL, 255); setRegistryName("epinephrine"); } @Override public void applyAttributesModifiersToEntity(LivingEntity entity, AbstractAttributeMap attributeMapIn, int amplifier) { entity.removeActivePotionEffect(EffectInit.EFFECT_ALLERGIC_REACTION); super.applyAttributesModifiersToEntity(entity, attributeMapIn, amplifier); } @Override public boolean isInstant() { return true; } } Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 1, 20205 yr Override performEffect instead of applyAttributesModifiersToEntity. Never use Thread#sleep, use isReady in this case. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
April 1, 20205 yr Author @imacatlolol I changed my code to this: package net.kidkoder.allergies.effect; import net.minecraft.entity.LivingEntity; import net.minecraft.potion.Effect; import net.minecraft.potion.EffectType; public class EffectAllergicReaction extends Effect { public EffectAllergicReaction() { super(EffectType.HARMFUL, 255); setRegistryName("allergic_reaction"); } @Override public boolean isReady(int duration, int amplifier) { return true; } @Override public void performEffect(LivingEntity entity, int amplifier) { entity.setHealth(1); super.performEffect(entity, amplifier); } } And I got the same error. But, I also found this error: [15:36:55] [Server-Worker-15/WARN] [mojang/YggdrasilMinecraftSessionService]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@60a58148[id=380df991-f603-344c-a090-369bad2a924a,name=Dev,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[authlib-1.5.25.jar:?] {} at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) ~[authlib-1.5.25.jar:?] {} at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) ~[authlib-1.5.25.jar:?] {} at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) ~[authlib-1.5.25.jar:?] {} at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache.get(LocalCache.java:4154) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) ~[guava-21.0.jar:?] {} at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) ~[guava-21.0.jar:?] {} at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) ~[authlib-1.5.25.jar:?] {} at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:1898) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.resources.SkinManager.lambda$loadProfileTextures$4(SkinManager.java:90) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) [?:1.8.0_181] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_181] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_181] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_181] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_181] {} Edited April 1, 20205 yr by KidKoderMod033109 Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 1, 20205 yr Author @diesieben07I can't it is too much for the server to take, tried to upload the file also. Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 2, 20205 yr Don't just return true in isReady, having the effect run every tick is probably not what you want. Look at how vanilla does it. If you can't upload the log file here, put it on pastebin or make a github gist and link it here. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
April 2, 20205 yr Author @imacatlololI uploaded a GitHub gist here: https://gist.github.com/KidKoder09923/c9668da23ccbde9e53e4619da1518b97 Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 2, 20205 yr Author 4 minutes ago, diesieben07 said: One thing I noticed is that your mod is stored in OneDrive. Please do not put your modded workspace in a folder that is managed by a file synchronization service such as OneDrive, Google Drive, etc. This can cause issues. Use proper Code Version control instead (i.e. Git). How can I move my mod to a USB Drive using IntelliJ IDEA? I also have Git connection in my associated with my mod(i.e GitHub Desktop and GitHub, and of course Git). Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 2, 20205 yr Author 8 minutes ago, diesieben07 said: Not sure what IntelliJ has to do with that. You'd simply copy over the project directory...? Github Desktop... yay. Please learn Git properly (with the command line) before using something like that. I understand the command line, but GitHub Desktop is simpler if you get what I mean, IntelliJ is my IDE of choice and will give you an error if the directory is moved. Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 2, 20205 yr Author 14 minutes ago, diesieben07 said: Can you show the error? I use IntelliJ and I have moved project folders without issue. Also, if you use IntelliJ it has Git integration that's way superior to Github Desktop. IntelliJ gives you a not found error if it can not find the folder. To how do I move my directory in IntelliJ? Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
April 2, 20205 yr Author 3 minutes ago, diesieben07 said: Again, show the actual error and which exact action prompted it to show up. Sorry, you may have understood me wrong, it does not show an error log, it just shows that the file/folder is not there Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
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.