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

Hooking to Criteria Triggers?


Lyinginbedmon
 Share

Recommended Posts

In the vanilla code there's nearly 30 different criteria triggers that are natively updated and managed and almost none of them also connect to events. At a rough estimate, maybe 21 of them could be replicated using Forge events but this would be impractical and laggy in the extreme. However, the criteria triggers will only add listeners from the PlayerAdvancements class.

 

Criteria seem like a really configurable way of adding special effects and such, but is there any way to use them for more than just add new advancements given this hard-coded restriction?

Link to comment
Share on other sites

What is your use-case here?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

6 minutes ago, Draco18s said:

What is your use-case here?

I can see a number of possible contexts it'd be useful but I ran into this issue trying to make a progression system similar to that of Witchery's vampirism and lycanthropy, but able to configured with the same triggers of advancements.

 

Users provide a config/data pack file with a given "pact" contained within it, it gets broken down into tiers and each is accessed in turn based on given criteria. Just about every step of it I can already implement, but I'm flummoxed by how to interface it with the criteria triggers.

Edited by Lyinginbedmon
Link to comment
Share on other sites

You'd have to see how Advancements uses them, I'm pretty sure you can utilize the existing systems for your own use.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

12 hours ago, Draco18s said:

You'd have to see how Advancements uses them, I'm pretty sure you can utilize the existing systems for your own use.

This much I've already ascertained, more or less.

 

  • Criteria Triggers are held as static final values in the CriteriaTriggers class, each as their own class (ImpossibleTrigger, KilledTrigger, TickTrigger, etc.) and not as a generic.
  • The vanilla code then directly triggers them whenever they are needed, and they update a list of attached listeners when they are so updated.
  • Listeners are added to each trigger via the AddListener method specified in ICriterionTrigger (which only declares 3 methods: addListener, removeListener, and removeAllListeners). This method (and all methods in ICriterionTrigger) requires a PlayerAdvancements input value to register the listener in a hashmap.

 

My problem is finding a way to add a listener to the criteria without using advancements, because no other route seems evident, but so far I've not found anything. I could theoretically extend from PlayerAdvancements, but that's about 500 lines of code that I'm not dreadfully sure of the operation.

Edited by Lyinginbedmon
Link to comment
Share on other sites

Use player.getAdvancements() as your PlayerAdvancements object. The way trigger works is that trigger is passed a player and calls getAdvancements on it in order to get all the listeners. You'll have to do that for every player that joins the server (and call remove when they leave).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

17 hours ago, Draco18s said:

Use player.getAdvancements() as your PlayerAdvancements object. The way trigger works is that trigger is passed a player and calls getAdvancements on it in order to get all the listeners. You'll have to do that for every player that joins the server (and call remove when they leave).

Unfortunately the trouble doesn't just end there, as the Listener we have to manage also requires an Advancement object and makes active use of the value (so we can't just feed it a null). One feasible solution would be to creatively generate dummy advancements but that could cause some considerable bloat in the advancement screen.

	private static final Criterion testCriteria;
	private static final Listener testListener;

	/** Add listeners on login */
	@SideOnly(Side.SERVER)
	@SubscribeEvent
	public void onPlayerLogin(PlayerLoggedInEvent event)
	{
		EntityPlayerMP player = (EntityPlayerMP)event.player;
		PlayerAdvancements advancements = player.getAdvancements();
		CriteriaTriggers.PLAYER_KILLED_ENTITY.addListener(advancements, testListener);
	}
	
	/** Remove listeners on logout */
	@SideOnly(Side.SERVER)
	@SubscribeEvent
	public void onPlayerLogout(PlayerLoggedOutEvent event)
	{
		EntityPlayerMP player = (EntityPlayerMP)event.player;
		PlayerAdvancements advancements = player.getAdvancements();
		CriteriaTriggers.PLAYER_KILLED_ENTITY.removeListener(advancements, testListener);
	}
	
	static
	{
		testCriteria = PactHandler.getPact(new ResourceLocation(Reference.ModInfo.MOD_ID, "feyWitch")).getTiers()[1].getCriteria().get("vax");
		testListener = new ICriterionTrigger.Listener(testCriteria.getCriterionInstance(), null, "vax");
	}

In this quick test example, the criteria (under the name "vax") being added is to kill 1 pig, retrieved from what I've already assembled for a configurable JSON folder.

Edited by Lyinginbedmon
Link to comment
Share on other sites

Hmm, not sure then. I've not tried to do something like this.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, I have been on hosting a modded minecraft server with 16 gb ram and using the Better minecraft mod pack in version 1.16.5. Recently the server has been crashing and the server refuses to give a crash report. I have the debug log before it shuts off, but am uncertain what the reason is. I tried deactivating the max tick time which didn't seem to have helped. Here is what the debug report gave before it crashed.   [23May2022 01:40:40.756] [Server thread/DEBUG] [net.minecraftforge.fml.FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save world [23May2022 01:40:40.777] [Server thread/DEBUG] [net.minecraftforge.fml.FMLWorldPersistenceHook/WP]: ID Map collection complete world [23May2022 01:40:40.779] [Server thread/ERROR] [net.minecraft.world.storage.SaveFormat/]: Failed to save level ./world java.io.IOException: No space left on device     at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[?:1.8.0_311]     at java.io.File.createTempFile(File.java:2061) ~[?:1.8.0_311]     at net.minecraft.world.storage.SaveFormat$LevelSave.func_237288_a_(SaveFormat.java:348) ~[?:?]     at net.minecraft.server.MinecraftServer.func_213211_a(MinecraftServer.java:540) ~[?:?]     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:807) ~[?:?]     at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) ~[?:?]     at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.482] [IO-Worker-504/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-24, 74] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:772) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:758) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFile.func_227135_a_(SourceFile:377) ~[?:?]     at net.minecraft.world.chunk.storage.RegionFile$ChunkBuffer.close(SourceFile:350) ~[?:?]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFileCache.func_219100_a(SourceFile:64) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_227091_a_(SourceFile:144) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_235978_b_(SourceFile:134) ~[?:?]     at net.minecraft.util.concurrent.ITaskQueue$RunnableWithPriority.run(SourceFile:54) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:94) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:137) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:105) [?:?]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.489] [IO-Worker-536/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-24, 75] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:772) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:758) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFile.func_227135_a_(SourceFile:377) ~[?:?]     at net.minecraft.world.chunk.storage.RegionFile$ChunkBuffer.close(SourceFile:350) ~[?:?]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFileCache.func_219100_a(SourceFile:64) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_227091_a_(SourceFile:144) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_235978_b_(SourceFile:134) ~[?:?]     at net.minecraft.util.concurrent.ITaskQueue$RunnableWithPriority.run(SourceFile:54) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:94) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:137) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:105) [?:?]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.496] [IO-Worker-504/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-21, 71] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:772) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:758) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFile.func_227135_a_(SourceFile:377) ~[?:?]     at net.minecraft.world.chunk.storage.RegionFile$ChunkBuffer.close(SourceFile:350) ~[?:?]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFileCache.func_219100_a(SourceFile:64) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_227091_a_(SourceFile:144) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_235978_b_(SourceFile:134) ~[?:?]     at net.minecraft.util.concurrent.ITaskQueue$RunnableWithPriority.run(SourceFile:54) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:94) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:137) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:105) [?:?]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.508] [IO-Worker-536/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-24, 77] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.[23May2022 01:45:40.411] [Thread-1/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Config file corpse-server.toml changed, sending notifies [23May2022 01:45:40.414] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: com.electronwill.nightconfig.core.io.WritingException: Failed to flush the writer  
    • ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 5/22/22 8:33 PM Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed     at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) [?:?] {re:classloading}     at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:508) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft$$Lambda$7680/333960151.run(Unknown Source) [?:?] {}     at net.minecraft.util.Util.func_215077_a(Util.java:320) [?:?] {re:classloading,re:mixin}     at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:504) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft$$Lambda$6454/1659479517.accept(Unknown Source) [?:?] {}     at net.minecraft.client.gui.ResourceLoadProgressGui.func_230430_a_(ResourceLoadProgressGui.java:113) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:481) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:shouldersurfing.mixins.json:MixinGameRenderer,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,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:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,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.5-36.2.23.jar:36.2] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$457/688581408.call(Unknown Source) [forge-1.16.5-36.2.23.jar:36.2] {}     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 java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {} -- MOD jeitweaker -- Details:     Caused by 0: java.lang.NoClassDefFoundError: mezz/jei/api/runtime/IIngredientManager         at com.blamejared.jeitweaker.implementation.RegistrationManager.registerIngredientType(RegistrationManager.java:34) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.api.IngredientTypeHolder.lambda$of$0(IngredientTypeHolder.java:74) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.api.IngredientTypeHolder$$Lambda$7398/1688682661.apply(Unknown Source) ~[?:?] {}         at com.blamejared.jeitweaker.api.IngredientTypeHolder.registerTo(IngredientTypeHolder.java:104) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.plugin.DefaultJeiTweakerPluginProvider.registerIngredientTypes(DefaultJeiTweakerPluginProvider.java:27) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.lambda$registerData$1(JeiTweakerInitializer.java:67) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer$$Lambda$7381/2136356486.accept(Unknown Source) ~[?:?] {}         at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51] {}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.registerData(JeiTweakerInitializer.java:66) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.initialize(JeiTweakerInitializer.java:22) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.JEITweaker.setupClient(JEITweaker.java:23) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.JEITweaker$$Lambda$3363/1135877283.accept(Unknown Source) ~[?:?] {}         at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?] {}         at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?] {}         at net.minecraftforge.eventbus.EventBus$$Lambda$2955/1066270324.invoke(Unknown Source) ~[?:?] {}         at net.minecraftforge.eventbus.EventBus$$Lambda$3134/132326253.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.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[?:36.2] {re:classloading}         at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) ~[?:?] {re:classloading}         at net.minecraftforge.fml.ModContainer$$Lambda$3168/79283217.run(Unknown Source) ~[?:?] {}         at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}         at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {}     Mod File: JEITweaker-1.16.5-1.1.0.49.jar     Failure message: JEI Tweaker (jeitweaker) encountered an error during the sided_setup event phase         java.lang.NoClassDefFoundError: mezz/jei/api/runtime/IIngredientManager     Mod Version: 1.1.0.49     Mod Issue URL: NOT PROVIDED     Exception message: java.lang.ClassNotFoundException: mezz.jei.api.runtime.IIngredientManager Stacktrace:     at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {}     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:106) ~[modlauncher-8.0.9.jar:?] {re:classloading}     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}     at com.blamejared.jeitweaker.implementation.RegistrationManager.registerIngredientType(RegistrationManager.java:34) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.api.IngredientTypeHolder.lambda$of$0(IngredientTypeHolder.java:74) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.api.IngredientTypeHolder$$Lambda$7398/1688682661.apply(Unknown Source) ~[?:?] {}     at com.blamejared.jeitweaker.api.IngredientTypeHolder.registerTo(IngredientTypeHolder.java:104) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.plugin.DefaultJeiTweakerPluginProvider.registerIngredientTypes(DefaultJeiTweakerPluginProvider.java:27) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.lambda$registerData$1(JeiTweakerInitializer.java:67) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer$$Lambda$7381/2136356486.accept(Unknown Source) ~[?:?] {}     at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51] {}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.registerData(JeiTweakerInitializer.java:66) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.initialize(JeiTweakerInitializer.java:22) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.JEITweaker.setupClient(JEITweaker.java:23) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.JEITweaker$$Lambda$3363/1135877283.accept(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$2955/1066270324.invoke(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$3134/132326253.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.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[?:36.2] {re:classloading}     at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModContainer$$Lambda$3168/79283217.run(Unknown Source) ~[?:?] {}     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}     at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {} -- System Details -- Details:     Minecraft Version: 1.16.5     Minecraft Version ID: 1.16.5     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 708782032 bytes (675 MB) / 1947205632 bytes (1857 MB) up to 3817865216 bytes (3641 MB)     CPUs: 12     JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m     ModLauncher: 8.0.9+86+master.3cf110c     ModLauncher launch target: fmlclient     ModLauncher naming: srg     ModLauncher services:          /mixin-0.8.4.jar mixin PLUGINSERVICE          /eventbus-4.0.0.jar eventbus PLUGINSERVICE          /forge-1.16.5-36.2.23.jar object_holder_definalize PLUGINSERVICE          /forge-1.16.5-36.2.23.jar runtime_enum_extender PLUGINSERVICE          /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE          /forge-1.16.5-36.2.23.jar capability_inject_definalize PLUGINSERVICE          /forge-1.16.5-36.2.23.jar runtimedistcleaner PLUGINSERVICE          /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE          /forge-1.16.5-36.2.23.jar fml TRANSFORMATIONSERVICE      FML: 36.2     Forge: net.minecraftforge:36.2.23     FML Language Providers:          javafml@36.2         minecraft@1     Mod List:          forge-1.16.5-36.2.23-client.jar                   |Minecraft                     |minecraft                     |1.16.5              |ENQUEUE_IM|Manifest: NOSIGNATURE         TConstruct-1.16.5-3.3.2.324.jar                   |Tinkers' Construct            |tconstruct                    |3.3.2.324           |ENQUEUE_IM|Manifest: NOSIGNATURE         useful_backpacks-1.16.5-1.12.1.90.jar             |Useful Backpacks              |usefulbackpacks               |1.12.1.90           |ENQUEUE_IM|Manifest: f4:a6:0b:ee:cb:8a:1a:ea:9f:9d:45:91:8f:8b:b3:ae:26:f3:bf:05:86:1d:90:9e:f6:32:2a:1a:ed:1d:ce:b0         TreeChop-1.16.4-0.14.6-fixed.jar                  |HT's TreeChop                 |treechop                      |0.14.6              |ENQUEUE_IM|Manifest: NOSIGNATURE         MouseTweaks-2.14-mc1.16.2.jar                     |Mouse Tweaks                  |mousetweaks                   |2.14                |ENQUEUE_IM|Manifest: NOSIGNATURE         pamhc2trees-1.16.3-1.0.1.jar                      |Pam's HarvestCraft 2 Fruit Tre|pamhc2trees                   |1.0.1               |ENQUEUE_IM|Manifest: NOSIGNATURE         BiomesOPlenty-1.16.5-13.1.0.477-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.5-13.1.0.477   |ENQUEUE_IM|Manifest: NOSIGNATURE         ShoulderSurfing-1.16.5-2.2.1.jar                  |Shoulder Surfing              |shouldersurfing               |1.16.5-2.2.1        |ENQUEUE_IM|Manifest: NOSIGNATURE         Neat 1.7-27.jar                                   |Neat                          |neat                          |1.7-27              |ENQUEUE_IM|Manifest: NOSIGNATURE         Mantle-1.16.5-1.6.152.jar                         |Mantle                        |mantle                        |1.6.152             |ENQUEUE_IM|Manifest: NOSIGNATURE         Waystones_1.16.5-7.6.4.jar                        |Waystones                     |waystones                     |7.6.4               |ENQUEUE_IM|Manifest: NOSIGNATURE         gravestone-1.16.5-1.0.6.jar                       |Gravestone Mod                |gravestone                    |1.16.5-1.0.6        |ENQUEUE_IM|Manifest: NOSIGNATURE         Clumps-6.0.0.27.jar                               |Clumps                        |clumps                        |6.0.0.27            |ENQUEUE_IM|Manifest: NOSIGNATURE         XaerosWorldMap_1.19.1_Forge_1.16.5.jar            |Xaero's World Map             |xaeroworldmap                 |1.19.1              |ENQUEUE_IM|Manifest: NOSIGNATURE         citadel-1.8.1-1.16.5.jar                          |Citadel                       |citadel                       |1.8.1               |ENQUEUE_IM|Manifest: NOSIGNATURE         alexsmobs-1.12.1.jar                              |Alex's Mobs                   |alexsmobs                     |1.12.1              |ENQUEUE_IM|Manifest: NOSIGNATURE         NaturesCompass-1.16.5-1.9.1-forge.jar             |Nature's Compass              |naturescompass                |1.16.5-1.9.1-forge  |ENQUEUE_IM|Manifest: NOSIGNATURE         obfuscate-0.6.2-1.16.3.jar                        |Obfuscate                     |obfuscate                     |0.6.2               |ENQUEUE_IM|Manifest: e1:59:1a:56:ec:97:b3:d0:b3:4b:25:06:1f:83:b0:f4:fd:0c:24:e3:6d:ea:94:b1:9f:22:b0:38:13:60:88:ea         u_team_core-1.16.5-3.2.1.196.jar                  |U Team Core                   |uteamcore                     |3.2.1.196           |ENQUEUE_IM|Manifest: f4:a6:0b:ee:cb:8a:1a:ea:9f:9d:45:91:8f:8b:b3:ae:26:f3:bf:05:86:1d:90:9e:f6:32:2a:1a:ed:1d:ce:b0         JEITweaker-1.16.5-1.1.0.49.jar                    |JEI Tweaker                   |jeitweaker                    |1.1.0.49            |ERROR     |Manifest: NOSIGNATURE         sodium-forge-2.9.10+rev.ea6353c.jar               |SodiumReforged                |sodium                        |2.9.10+rev.ea6353c  |ENQUEUE_IM|Manifest: NOSIGNATURE         CraftTweaker-1.16.5-7.1.2.489.jar                 |CraftTweaker                  |crafttweaker                  |7.1.2.489           |ENQUEUE_IM|Manifest: NOSIGNATURE         KimetsuAnimation_1.16.5_ver3.jar                  |kimetsuAnimationPlayer        |kimetsuanimationplayer        |1.0.0               |ENQUEUE_IM|Manifest: NOSIGNATURE         KimetsunoYaiba_1.16.5_ver35.jar                   |Kimetsunoyaiba                |kimetsunoyaiba                |1.0.0               |ENQUEUE_IM|Manifest: NOSIGNATURE         forge-1.16.5-36.2.23-universal.jar                |Forge                         |forge                         |36.2.23             |ENQUEUE_IM|Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90         appleskin-forge-mc1.16.x-2.2.0.jar                |AppleSkin                     |appleskin                     |mc1.16.4-2.2.0      |ENQUEUE_IM|Manifest: NOSIGNATURE         Aquaculture-1.16.5-2.1.21.jar                     |Aquaculture 2                 |aquaculture                   |1.16.5-2.1.21       |ENQUEUE_IM|Manifest: NOSIGNATURE         CosmeticArmorReworked-1.16.5-v4a.jar              |CosmeticArmorReworked         |cosmeticarmorreworked         |1.16.5-v4a          |ENQUEUE_IM|Manifest: 5e:ed:25:99:e4:44:14:c0:dd:89:c1:a9:4c:10:b5:0d:e4:b1:52:50:45:82:13:d8:d0:32:89:67:56:57:01:53         DynamicSurroundings-1.16.5-4.0.5.0.jar            |§3Dynamic Surroundings        |dsurround                     |4.0.5.0             |ENQUEUE_IM|Manifest: NOSIGNATURE     Crash Report UUID: c7f4603b-fec8-48b4-9dd2-260ae74bc6b9
    • https://github.com/ImpactDevelopment/ImpactIssues/issues/new?assignees=&labels=Bug&template=bug_report.md&title=Minecraft+crash+when+clicking+on+alts+button Here - make an issue on Impact Client's issue form. That area is where the developers of impact can see your post
    • ---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic. Time: 5/23/22 7:22 AM Description: mouseClicked event handler java.lang.NullPointerException: mouseClicked event handler     at net.impactclient.34V.2(34V.java:15)     at net.impactclient.34P.b(34P.java:24)     at dot.b(SourceFile:325)     at djz.a(SourceFile:922)     at net.impactclient.2T.8(2T.java:46)     at net.impactclient.2T$$Lambda$3632/1642244192.onPress(Unknown Source)     at dlj.b(SourceFile:33)     at dld.a(SourceFile:16)     at dlh.a(SourceFile:149)     at dmh.a(SourceFile:27)     at dka.b(SourceFile:92)     at dka$$Lambda$3621/25741263.run(Unknown Source)     at dot.a(SourceFile:435)     at dka.a(SourceFile:92)     at dka.c(SourceFile:162)     at dka$$Lambda$3620/764692091.run(Unknown Source)     at aob.execute(ThreadTaskExecutor.java:104)     at dka.b(SourceFile:162)     at dka$$Lambda$2354/1214025054.invoke(Unknown Source)     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)     at org.lwjgl.system.JNI.invokeV(Native Method)     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174)     at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:127)     at djz.e(SourceFile:1071)     at djz.e(SourceFile:681)     at net.minecraft.client.main.Main.main(SourceFile:215)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)     at net.minecraft.launchwrapper.Launch.main(Launch.java:30) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at net.impactclient.34V.2(34V.java:15)     at net.impactclient.34P.b(34P.java:24)     at dot.b(SourceFile:325)     at djz.a(SourceFile:922)     at net.impactclient.2T.8(2T.java:46)     at net.impactclient.2T$$Lambda$3632/1642244192.onPress(Unknown Source)     at dlj.b(SourceFile:33)     at dld.a(SourceFile:16)     at dlh.a(SourceFile:149)     at dmh.a(SourceFile:27)     at dka.b(SourceFile:92)     at dka$$Lambda$3621/25741263.run(Unknown Source) -- Affected screen -- Details:     Screen name: net.impactclient.2T Stacktrace:     at dot.a(SourceFile:435)     at dka.a(SourceFile:92)     at dka.c(SourceFile:162)     at dka$$Lambda$3620/764692091.run(Unknown Source)     at aob.execute(ThreadTaskExecutor.java:104)     at dka.b(SourceFile:162)     at dka$$Lambda$2354/1214025054.invoke(Unknown Source)     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)     at org.lwjgl.system.JNI.invokeV(Native Method)     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174)     at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:127)     at djz.e(SourceFile:1071)     at djz.e(SourceFile:681)     at net.minecraft.client.main.Main.main(SourceFile:215)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)     at net.minecraft.launchwrapper.Launch.main(Launch.java:30) -- System Details -- Details:     Minecraft Version: 1.16.5     Minecraft Version ID: 1.16.5     Operating System: Windows 8 (amd64) version 6.2     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 2105089736 bytes (2007 MB) / 3892314112 bytes (3712 MB) up to 4294967296 bytes (4096 MB)     CPUs: 4     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Launched Version: 1.16.5-Impact_4.9.1-OptiFine_HD_U_G6     Backend library: LWJGL version 3.2.2 build 10     Backend API: Intel(R) HD Graphics 2000 GL version 3.1.0 - Build 9.17.10.4459, Intel     GL Caps: Using framebuffer using OpenGL 3.0     Using VBOs: Yes     Is Modded: Very likely; Jar signature invalidated     Type: Client (map_client.txt)     Graphics mode: fancy     Resource Packs:      Current Language: English (US)     CPU: 4x Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz     OptiFine Version: OptiFine_1.16.5_HD_U_G6     OptiFine Build: 20210117-013236     Render Distance Chunks: 16     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: null     OpenGlVersion: 3.1.0 - Build 9.17.10.4459     OpenGlRenderer: Intel(R) HD Graphics 2000     OpenGlVendor: Intel     CpuCount: 4     The exit code i got: The game crashed whilst mouseclicked event handler Error: java.lang.NullPointerException: mouseClicked event handler Exit Code: -1  
    • i cant run forge on my computer it crashes every time...i have contacted Minecraft themselves and they haven't helped forge the website doesn't seem to have contact info and i have indulged in watching a large number of videos and read many articles on what to do to fix these problems and none whatsoever have done anything at all...i would really appreaciate a call so i can give a better rundown  my phone number is 8102800545
  • Topics

×
×
  • Create New...

Important Information

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