Do Player Tick Procedures work in Servers/Multiplayer?

Started by LaTortiia on Wed, 01/20/2021 - 01:32

Topic category: Help with modding (Java Edition)

Last seen on 00:40, 25. Feb 2021
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Do Player Tick Procedures work in Servers/Multiplayer?
Wed, 01/20/2021 - 01:32

So, I have developed a mod for Minecraft java 1.15.2 and when I try to use this mod on a server with my friends the server crashes as soon as we enter each other's render distance. I always read the Crash Report and it's always the fault of a Player Tick Procedure.

I have tried removing the Player Tick Procedure that caused the problem and then another Player Tick Procedure caused the issue, I don't know why, but all my Player Tick Procedures completely crash the server and the connected player's Minecraft.

Do Player Tick Procedures work in servers?

Is there any other alternative to Player Tick Procedures I can use that might prevent this crash?

Yes, they do. There is…
Wed, 01/20/2021 - 09:37

Yes, they do. There is probably a more complex problem with your procedure. Show the procedure. Also it could be this:

  • [Bugfix] Check entity game mode procedure block crashed in multiplayer scenarios
Last seen on 14:49, 23. Jan 2021
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hi, I got the same problem…
Wed, 01/20/2021 - 19:27

Hi, I got the same problem before and after I Downloaded the new Snapshot Version (used my old Workspace and Regenerated the Code/Build and Reloaded the Grandle project).

 

Did I do something wrong for the Update / Do I need to change something so that It works?

Thanks for the quick update.

Crash Report Below:

Description: Ticking entity

java.lang.ClassCastException: net.minecraft.client.entity.player.RemoteClientPlayerEntity cannot be cast to net.minecraft.client.entity.player.ClientPlayerEntity
	at net.mcreator.marvthings.procedures.ChestoffProcedure$1.checkGamemode(ChestoffProcedure.java:64) ~[?:?] {re:classloading}
	at net.mcreator.marvthings.procedures.ChestoffProcedure.executeProcedure(ChestoffProcedure.java:70) ~[?:?] {re:classloading}
	at net.mcreator.marvthings.procedures.ChestoffProcedure.onPlayerTick(ChestoffProcedure.java:105) ~[?:?] {re:classloading}
	at net.minecraftforge.eventbus.ASMEventHandler_66_ChestoffProcedure_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?] {}
	at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}
	at net.minecraftforge.eventbus.EventBus$$Lambda$2620/1343780940.invoke(Unknown Source) ~[?:?] {}
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}
	at net.minecraftforge.fml.hooks.BasicEventHooks.onPlayerPostTick(BasicEventHooks.java:90) ~[?:?] {re:classloading}
	at net.minecraft.entity.player.PlayerEntity.func_70071_h_(PlayerEntity.java:266) ~[?:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:the_bumblezone.mixins.json:items.HoneyShieldDamageMixin,pl:mixin:APP:the_bumblezone.mixins.json:items.HoneyShieldDisableMixin,pl:mixin:APP:the_bumblezone.mixins.json:items.PlayerDamagedMixin,pl:mixin:APP:the_bumblezone.mixins.json:items.PlayerDamageShieldInvoker,pl:mixin:APP:the_bumblezone.mixins.json:entities.PlayerInteractsEntityMixin,pl:mixin:APP:the_bumblezone.mixins.json:entities.PlayerTickMixin,pl:mixin:APP:assets/botania/botania.mixins.json:MixinPlayerEntity,pl:mixin:A}
	at net.minecraft.client.entity.player.RemoteClientPlayerEntity.func_70071_h_(RemoteClientPlayerEntity.java:37) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.world.ClientWorld.func_217418_a(ClientWorld.java:192) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:abnormals_core.mixins.json:client.ClientWorldMixin,pl:mixin:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.world.ClientWorld$$Lambda$16538/561703739.accept(Unknown Source) ~[?:?] {}
	at net.minecraft.world.World.func_217390_a(World.java:554) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:performant.mixins.json:world.WorldMixin,pl:mixin:A}
	at net.minecraft.client.world.ClientWorld.func_217419_d(ClientWorld.java:161) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:abnormals_core.mixins.json:client.ClientWorldMixin,pl:mixin:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1483) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:randompatches.mixins.json:client.MinecraftMixin,pl:mixin:APP:mining_helmet.mixins.json:MinecraftMixin,pl:mixin:APP:kubejs-common.mixins.json:MinecraftMixin,pl:mixin:APP:assets/mining_dimension/mining_dimension.mixins.json:MinecraftMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:953) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:randompatches.mixins.json:client.MinecraftMixin,pl:mixin:APP:mining_helmet.mixins.json:MinecraftMixin,pl:mixin:APP:kubejs-common.mixins.json:MinecraftMixin,pl:mixin:APP:assets/mining_dimension/mining_dimension.mixins.json:MinecraftMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:randompatches.mixins.json:client.MinecraftMixin,pl:mixin:APP:mining_helmet.mixins.json:MinecraftMixin,pl:mixin:APP:kubejs-common.mixins.json:MinecraftMixin,pl:mixin:APP:assets/mining_dimension/mining_dimension.mixins.json:MinecraftMixin,pl:mixin:APP:assets/botania/botania.mixins.json:AccessorMinecraft,pl:mixin:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
	at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.4-35.1.37.jar:35.1] {}
	at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$477/2009196049.call(Unknown Source) [forge-1.16.4-35.1.37.jar:35.1] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {re:classloading}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {re:classloading}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at net.mcreator.marvthings.procedures.ChestoffProcedure$1.checkGamemode(ChestoffProcedure.java:64) ~[?:?] {re:classloading}
	at net.mcreator.marvthings.procedures.ChestoffProcedure.executeProcedure(ChestoffProcedure.java:70) ~[?:?] {re:classloading}
	at net.mcreator.marvthings.procedures.ChestoffProcedure.onPlayerTick(ChestoffProcedure.java:105) ~[?:?] {re:classloading}
	at net.minecraftforge.eventbus.ASMEventHandler_66_ChestoffProcedure_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?] {}
	at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}
	at net.minecraftforge.eventbus.EventBus$$Lambda$2620/1343780940.invoke(Unknown Source) ~[?:?] {}
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}
	at net.minecraftforge.fml.hooks.BasicEventHooks.onPlayerPostTick(BasicEventHooks.java:90) ~[?:?] {re:classloading}
	at net.minecraft.entity.player.PlayerEntity.func_70071_h_(PlayerEntity.java:266) ~[?:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:the_bumblezone.mixins.json:items.HoneyShieldDamageMixin,pl:mixin:APP:the_bumblezone.mixins.json:items.HoneyShieldDisableMixin,pl:mixin:APP:the_bumblezone.mixins.json:items.PlayerDamagedMixin,pl:mixin:APP:the_bumblezone.mixins.json:items.PlayerDamageShieldInvoker,pl:mixin:APP:the_bumblezone.mixins.json:entities.PlayerInteractsEntityMixin,pl:mixin:APP:the_bumblezone.mixins.json:entities.PlayerTickMixin,pl:mixin:APP:assets/botania/botania.mixins.json:MixinPlayerEntity,pl:mixin:A}
	at net.minecraft.client.entity.player.RemoteClientPlayerEntity.func_70071_h_(RemoteClientPlayerEntity.java:37) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.world.ClientWorld.func_217418_a(ClientWorld.java:192) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:abnormals_core.mixins.json:client.ClientWorldMixin,pl:mixin:A,pl:runtimedistcleaner:A}
	at net.minecraft.client.world.ClientWorld$$Lambda$16538/561703739.accept(Unknown Source) ~[?:?] {}

 

Last seen on 00:40, 25. Feb 2021
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Here are the links to the 3…
Wed, 01/20/2021 - 21:38

Here are the links to the 3 procedures that have given me the crash. There are probably more, but I haven't gotten an error with them yet.

Global Rad Procedure:   https://drive.google.com/file/d/1u6yV9mCEUpg-m4NvJfRM5roXb3PFumgI/view?…

Y=60 Warning Procedure:    https://drive.google.com/file/d/1krGQTcWUEllFqwn9_Ji4udp9Wgs02CRO/view?…

RadDelay Procedure:     https://drive.google.com/file/d/1-DhT-GrIuPxl1BiT0KgoT0mARV1Nntir/view?…

I'll try downloading the lastest snapshot and see if it works.

The bug mentioned was fixed…
Thu, 01/21/2021 - 09:49

The bug mentioned was fixed in a version that is not released yet.

LaTortiia: Hmm, strange. If last snapshot does not help, please open a bug report here: https://github.com/MCreator/MCreator/issues

Last seen on 14:49, 23. Jan 2021
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay sorry I didn't look…
Thu, 01/21/2021 - 15:48

Okay sorry I didn't look correctly thought you updated it with a "hotfix" but I didn´t check the Version Number