Mohist icon indicating copy to clipboard operation
Mohist copied to clipboard

[1.16.5] Compatibility bug with the Customnpc mod

Open MohistBOT opened this issue 2 years ago • 4 comments

Informations

The Minecraft Version is 1.16.5 The Mohist Version is 1021

Reported by DoZys with id 229223040234291200

Description

Commands by NPC doesn't work and the only error on the console is this message "> [09<:18:925444394885185658>36][FINE/CustomNPCs][noppes.npcs.NoppesUtilServer:351] An unexpected error occurred trying to execute that command". That's work good on singleplayer.

How to reproduce

  • Start a server with Mohist and with the mod customnpc
  • Add essentials or Cmi plugin
  • Start the server
  • Add an command to npc dialog then add dialog to the npc
  • Right click on the npc

MohistBOT avatar Jun 10 '22 09:06 MohistBOT

Hello, thanks for opening this issue!

Before continuing, please understand that Mohist is a free and open source software, made by people in their free time. Know that we are not able to give any eta about when your issue will get answered or fixed.

Our team will first check if your issue isn't duplicated. If it's the case, we will close your issue, giving your the number of the other issue so that you can follow its progress. If you are able to do it, please check that your issue isn't duplicated, this would help us a lot.

Thank you for your patience, and have a nice day (or night)!

MohistBOT avatar Jun 10 '22 09:06 MohistBOT

Use EssentialsX and it will work on my server is working well.

Dokman avatar Jun 10 '22 16:06 Dokman

Comment from Discord by DoZys#8192 : You have an 1.16.5 server? I tried with a new server with just EssentialsX and it's not working. What customnpc version do you use? For me it's the last snapshot 20220608snapshot.jar. All command from essentials doesn't work for me when I use npc, like warp or tp. https://cdn.discordapp.com/attachments/984751722536779776/984867246197342238/unknown.png

MohistBOT avatar Jun 10 '22 17:06 MohistBOT

It works, but I do see an error says: [23:30:57][FINE/CustomNPCs][noppes.npcs.LogWriter:71] Wed Jul 13 23:30:57 PDT 2022 [23:30:57][FINE/CustomNPCs][noppes.npcs.controllers.ScriptController:101] Script Engines Available: [23:30:57][FINE/CustomNPCs][noppes.npcs.controllers.ScriptController:110] ECMAScript: .js [23:30:57][SEVERE/CustomNPCs][noppes.npcs.ScriptPlayerEventHandler:372] java.lang.NoSuchFieldException: classes at java.base/java.lang.Class.getDeclaredField(Class.java:2610) at noppes.npcs.ScriptPlayerEventHandler.registerForgeEvents(ScriptPlayerEventHandler.java:311) at noppes.npcs.CustomNpcs.setup(CustomNpcs.java:249) at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:121) at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

I assume this has something to do with the fact that I am using Java 17. But in general, the CustomNPCs mod seems to be working normally (with EssentialsX).

yudonglin avatar Jul 14 '22 06:07 yudonglin