Jump to content

[1.8] Have to edit the Hunger bar


Koward

Recommended Posts

Hi !

I overhauled the standard FoodStats system and increased the maximum hunger beyond 20. Unfortunately, the GUI still only shows the last 20 points. So I have to remake the Hunger bar so it changes the way hunger level are displayed.

But :

1. The original code looks very obfuscated, do you know any working example of something that sounds a bit like what I'm trying to do ?

2. I can disable the original with RenderGameOverlayEvent, but I don't see how to create the new GUI from here. There's no access to the player or the world.

3. I suspect my code to be functional for only one player. Here is the code replacing the FoodStats class : http://hastebin.com/awopohuzef.java

Am I right ?

 

Anybody ever played with those things ?

 

EDIT : I will use a PlayerTickEvent to show the GUI, but that doesn't answer all my questions.

Link to comment
Share on other sites

You only need to draw a few rectangles, based on the number of food bars you want to display. I suggest you look at GuIngameForge, which is basically a cleaned up version of GuiIngame + the event firing code.

GUIs are client side only. The client only ever has one player and one world:

Minecraft#thePlayer

and

Minecraft#theWorld

.

No, that is not the correct event to "show the GUI". You need to use RenderGameOverlayEvent, as you already mentioned earlier.

 

Okay, I wasn't aware of GuiIngameForge. I should have looked where the event was fired.

I added an other question in my OP regarding the way I replace the food handling class (which I think I should take the multiplayer in account since there are individual food counters in there, but I'm not sure I do since I think the data get stored in only one place which sounds awefully wrong).

 

PS : I know I'm unleashing incompatibility and bad things by starting to use reflection but I had no choice, Forge just doesn't allow to safely modify much about Food and other real game mechanics.

Link to comment
Share on other sites

I improved my code to look only once through fields to find the right one. I'm not sure how player related variables can be made yet : (hashmap maybe ? Or an event is triggered at the "character creation" ?) but I will find out as it's probably something people always ask.

Link to comment
Share on other sites

That makes absolutely no sense.

How so?

Well, HardFoodStats extends FoodStats. Therefore my logic is

HardFoodStats instanceof FoodStats == true,,

FoodStats instanceof FoodStats == true,

HardFoodStats instanceof HardFoodStats == true but

FoodStats instanceof HardFoodStats == false.

 

So if the part of my code under !(getFoodStats instanceof HardFoodStats) is loaded each time (each logging, for the same player) that means each time I log in my player.getFoodStats is NOT the HardFoodStats instance I previously assigned.

Link to comment
Share on other sites

But the instance can't be "renewed". Even in Vanilla. I mean, there is the foodLevel in there. When you renew it, it gets back to max (initial value).

Let's assume a new foodStats instance is automatically created at each EntityJoinWorld, and it seems to be the case, how does vanilla save its food level value ?

Link to comment
Share on other sites

That's already what I did. Initially I was using the vanilla "foodLevel" NBT tag so I thought it was the problem. Made a custom one, no changes. That's really strange. I will look if there is some kind of NBT viewer out there.

 

EDIT : I found one and after a few experiments it seems the writing works well but the reading doesn't work.

In my method

    public void readNBT(NBTTagCompound p_75112_1_)
    {
    	System.out.println("Started reading NBT tags...");
        if (p_75112_1_.hasKey("foodLevel"))
        {
        	System.out.println("NBT Tag found !");
            this.foodLevel = p_75112_1_.getInteger("foodLevel");
            this.foodTimer = p_75112_1_.getInteger("foodTickTimer");
            this.foodSaturationLevel = p_75112_1_.getFloat("foodSaturationLevel");
            this.foodExhaustionLevel = p_75112_1_.getFloat("foodExhaustionLevel");
        }
    }

"Started reading..." is printed but not "NBT Tag found !" so .hasKey("foodLevel") never worked. I don't get it because NBTExplorer clearly show the value exist in the save.

Link to comment
Share on other sites

My actual problem is that during the EntityJoinWorld event, player.getEntityData() returns an empty NBTTagCompound.

Does this make sense ? How can I read from it then ?

The readNBT isn't called magically, and all the information on the web is about TileEntities..

Note I have to call readNBT somewhere myself, because at the time getFoodStats().readNBT(compound) is originally called in EntityPlayer, it still has the old class.

I did a workaround by getting values from the vanilla class. But I can't keep it, as not all values have public getters..

Link to comment
Share on other sites

The compound tag returned by

Entity#getEntityData

is added by Forge and only used for custom entity data, it's never written to by Minecraft.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Then I have two solutions :

Read from the Minecraft compound tag;

Read&Write on a Forge compound tag.

 

But I don't know how to access any of these compound tags if this method doesn't work.

 

EDIT : Fixed. I now write on the EntityPlayer.getEntityData() compound at logout with an event.

Link to comment
Share on other sites

You should be able to call

FoodStats#writeNBT

on the vanilla object to get all of its values, then call

HardFoodStats#readNBT

to read those values into your own object before you replace the vanilla one. If

HardFoodStats

has values in addition to the vanilla ones, you may need to store them in the player's persisted NBT data or an

IExtendedEntityProperties

object.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

The saving now works perfectly, thank you. Back to the GUI displaying, my little method which should hide the original hunger bar and display mine just hide the original. Currently, my custom hunger bar is the vanilla one (I will tweak it once it works).

http://hastebin.com/umiwedupic.java

Maybe I should play with Pre and Post events ? I tried to cancel in Pre and display in Post but it was still the same problem.

 

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
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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Well, I wanted to play Dragon Block C and suddenly this appeared when I tried to use Forge 1.7.10, now I don't know what I can do, I tried searching on YouTube or Google and nothing so I decided to come here to try to solve it.
    • my game keeps crashing when i make a world😿 https://pastebin.com/amA9NkCr
    • [00:02:38] [main/ERROR] [mixin/]: Mixin config firstperson.mixins.json does not specify "minVersion" property [00:02:38] [main/ERROR] [mixin/]: Mixin config yacl.mixins.json does not specify "minVersion" property What can I do to fix it?
    • i cant find what mod causes error text from "run" file, forge 1.20.1 2024-06-15 01:26:53,682 main WARN Advanced terminal features are not available in this environment [01:26:53] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 47.3.1, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [01:26:53] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 22.0.1 by Oracle Corporation; OS Windows 10 arch amd64 version 10.0 [01:26:54] [main/INFO] [ne.mi.fm.lo.ImmediateWindowHandler/]: ImmediateWindowProvider not loading because launch target is forgeserver [01:26:54] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/Admin/Desktop/RBA%20mine/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2365!/ Service=ModLauncher Env=SERVER [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\fmlcore\1.20.1-47.3.1\fmlcore-1.20.1-47.3.1.jar is missing mods.toml file [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\javafmllanguage\1.20.1-47.3.1\javafmllanguage-1.20.1-47.3.1.jar is missing mods.toml file [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\lowcodelanguage\1.20.1-47.3.1\lowcodelanguage-1.20.1-47.3.1.jar is missing mods.toml file [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\mclanguage\1.20.1-47.3.1\mclanguage-1.20.1-47.3.1.jar is missing mods.toml file [01:26:56] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [01:26:56] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: C:\Users\Admin\Desktop\RBA mine\mods\resourcefullib-forge-1.20.1-2.1.14.jar [01:26:56] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 38 dependencies adding them to mods collection [01:26:56] [main/INFO] [or.gr.gm.ma.MappingsProvider/]: Starting runtime mappings setup... [01:26:56] [main/INFO] [or.gr.gm.in.lo.ModLocatorInjector/]: Injecting ScriptModLocator candidates... [01:26:56] [main/INFO] [or.gr.gm.sc.ScriptModLocator/]: Injected Jimfs file system [01:26:56] [main/INFO] [or.gr.gm.sc.ScriptModLocator/]: Skipped loading script mods from directory C:\Users\Admin\Desktop\RBA mine\mods\scripts as it did not exist. [01:26:56] [main/INFO] [or.gr.gm.in.lo.ModLocatorInjector/]: Injected ScriptModLocator mod candidates. Found 0 valid mod candidates and 0 broken mod files. [01:26:58] [GML Mappings Thread/INFO] [or.gr.gm.ma.MappingsProvider/]: Loaded runtime mappings in 1627ms [01:26:58] [GML Mappings Thread/INFO] [or.gr.gm.ma.MappingsProvider/]: Finished runtime mappings setup. [01:26:58] [main/ERROR] [mixin/]: Mixin config dynamiclightsreforged.mixins.json does not specify "minVersion" property [01:26:58] [main/INFO] [mixin/]: Compatibility level set to JAVA_17 [01:26:58] [main/ERROR] [mixin/]: Mixin config mixins.oculus.compat.sodium.json does not specify "minVersion" property [01:26:58] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [ca.spottedleaf.starlight.mixin.MixinConnector] [01:26:58] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeserver' with arguments [] [01:26:58] [main/WARN] [mixin/]: Reference map 'nerb-forge-refmap.json' for nerb.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix 5.9.2+mc1.20.1: 70 options available, 1 override(s) found [01:26:58] [main/WARN] [ModernFix/]: Option 'mixin.perf.thread_priorities' overriden (by mods [smoothboot]) to 'false' [01:26:58] [main/INFO] [ModernFix/]: Applying Nashorn fix [01:26:58] [main/INFO] [ModernFix/]: Applied Forge config corruption patch [01:26:58] [main/INFO] [Embeddium/]: Loaded configuration file for Embeddium: 41 options available, 3 override(s) found [01:26:58] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras_forge.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/INFO] [Rubidium/Embeddium Extra/]: Loaded configuration file for Sodium Extra: 34 options available, 0 override(s) found [01:26:58] [main/WARN] [mixin/]: Reference map 'sullysmod.refmap.json' for sullysmod.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/WARN] [mixin/]: Reference map 'moyai-forge-refmap.json' for moyai.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/WARN] [mixin/]: Reference map '${refmap_target}refmap.json' for corgilib.forge.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:59] [main/INFO] [Canary/]: Loaded configuration file for Canary: 123 options available, 0 override(s) found [01:26:59] [main/INFO] [Puzzles Lib/]: Loading 164 mods: advancementplaques 1.4.10 aiimprovements 0.5.2 ambientsounds 5.2.24 animal_feeding_trough 1.0.3+1.20.1-forge another_furniture 1.20.1-3.0.1 appleskin 2.5.1+mc1.20.1 aquaculture 2.5.0 architectury 9.1.12 attributefix 21.0.3 bagus_lib 1.20.1-4.0.3 balm 7.1.4 barteringstation 8.0.0 betteranimationscollection 8.0.0 betterarcheology 1.0.2 betterdeserttemples 1.20-Forge-3.0.3 betterdungeons 1.20-Forge-4.0.3 betterendisland 1.20-Forge-2.0.4 betterfortresses 1.20-Forge-2.0.5 betterjungletemples 1.20-Forge-2.0.4 bettermineshafts 1.20-Forge-4.0.4 betteroceanmonuments 1.20-Forge-3.0.3 betterstrongholds 1.20-Forge-4.0.3 betterthirdperson 1.9.0 bettervillage 3.1.0 biomesoplenty 18.0.0.592 blueprint 7.0.0 bookshelf 20.1.6 bountiful 6.0.3+1.20.1 canary 0.2.7 cataclysm 1.0 chat_heads 0.10.22 chococraft 0.9.10 citadel 2.4.9 collective 7.3 commongroovylibrary 0.3.3 connectedglass 1.1.8 constructionwand 1.20.1-2.11 corgilib 4.0.0.4 corpse 1.20.1-1.0.5 creativecore 2.11.8 creeperoverhaul 3.0.1 croptopia 2.3.2 crystals_overhauled 1.6.0 dungeoncrawl 2.3.14 dynamiclights 1.20.1.1 dynamiclightsreforged 1.20.1_v1.6.0 easyanvils 8.0.1 easymagic 8.0.1 eatinganimation 5.0.0 embeddium 0.2.7+mc1.20.1 enchantinginfuser 8.0.2 enchdesc 17.0.8 endermanoverhaul 1.0.1 endreborn 1.0.5 ends_delight 1.0.1 enlightened_end 5.0.10 entityculling 1.6.2 everycomp 1.20-2.6.16 extendedbonemeal 3.1 fallingleaves 2.1.0 farmersdelight 1.20.1-1.2.3 ferritecore 6.0.1 forge 47.3.1 galosphere 1.20.1-1.3.2 geckolib 4.2.4 geophilic 2.0.0-mc1.20u1.20.1 geore 2.4.2 gml 4.0.9 harvestwithease 7.1.0.0 heartstone 1.20-1.3.0 herdmentality 12.0.2 iceberg 1.1.16 incendium 5.3.3 insanelib 1.12.1 iris 1.6.9 jade 11.6.3 jei 15.2.0.27 jeresources 1.4.0.238 kambrik 6.1.1+1.20.1 kiwi 11.1.1 kotlinforforge 4.5.0 l2library 2.4.16 legendarytooltips 1.4.5 libraryferret 4.0.0 minecraft 1.20.1 mixinextras 0.2.0-rc.3 mixinsquared 0.1.1 modernfix 5.9.2+mc1.20.1 monsterplus 1.0 moonlight 1.20-2.8.57 moredragoneggs 4.0 moremobvariants 1.2.2 mousetweaks 2.25 moyai 1.20-2.1.2 multimine 1.20.1.2 namepain 1.5.0 nerb 0.3 netheroverhaul 1.3.0 netherportalfix 13.0.0 nethersdelight 1.20.1-4.0 nightconfigfixes 8.0.0 nourished_nether 0.2.5 nullscape 1.2.3 obscure_api 15 oceansdelight 1.0.2-1.20 oculus 1.6.9 oresabovediamonds 10.0.1b passablefoliage 8.2.0 phenomena 2.3.2b-1.20.1 placebo 8.3.7 potionbundles 1.7 potionofbees 3.0.0.0 potionsmaster 0.6.0 prism 1.0.5 progressivebosses 3.9.4-mc1.20.1 puzzlesaccessapi 8.0.7 puzzleslib 8.1.8 queen_bee 3.1.3 reeses_sodium_options 1.0.4+mc1.20.1 regions_unexplored 0.5.3 resourcefulconfig 2.1.0 resourcefullib 2.1.14 rubidium 0.7.1 rubidium_extra 0.5.3+mc1.20.1-build.106 rubidium_extras 1.20.1_v1.4.3 seeds 1.1.5 shieldexp 1.1.6a skinlayers3d 1.5.4 smarterfarmers 1.20-1.7.3 smoothboot 0.0.3 sophisticatedbackpacks 3.18.65.935 sophisticatedcore 0.5.100.457 sophisticatedstorage 0.8.55.626 spark 1.10.53 starlight 1.1.2+forge.1cda73c storagedrawers 12.0.2 structory 1.3.3 sullysmod 3.0.1-beta supermartijn642configlib 1.1.8 supermartijn642corelib 1.1.15 supplementaries 1.20-2.6.19 terrablender 3.0.0.169 terralith 2.4.8 tflostblocks 1.20.1-1.3.2 tipsmod 12.0.4 toastcontrol 8.0.3 toms_storage 1.6.5 torchbowmod 1.0.0 torchhit 6.0.2.0 trashcans 1.0.18b treechop 0.18.3 twilightdelight 2.0.3 twilightforest 4.3.1860 undergarden 0.8.9 underground_jungle 2.1-forge underground_villages 2.0.0 villagersellanimals 1.2.1 visuality 2.0.2 voidtotem 3.0.1 walljumping 1.9.1 waystones 14.0.2 yeetusexperimentus 2.3.1-build.6+mc1.20.1 yungsapi 1.20-Forge-4.0.2 yungsextras 1.20-Forge-4.0.3 [01:26:59] [main/WARN] [mixin/]: Reference map 'heartstone-common-refmap.json' for heartstone-common.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:59] [main/INFO] [ne.mi.co.Co.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [01:26:59] [main/INFO] [ne.mi.co.Co.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/components/ChatComponent (java.lang.ClassNotFoundException: net.minecraft.client.gui.components.ChatComponent) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.gui.components.ChatComponent was not found placebo.mixins.json:ChatComponentMixin [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/resources/SkinManager (java.lang.ClassNotFoundException: net.minecraft.client.resources.SkinManager) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.resources.SkinManager was not found modernfix-common.mixins.json:perf.cache_profile_texture_url.SkinManagerMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/Minecraft (java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.Minecraft was not found modernfix-common.mixins.json:bugfix.world_leaks.MinecraftMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screens/worldselection/WorldSelectionList$WorldListEntry for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/screens/worldselection/WorldSelectionList$WorldListEntry (java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/worldselection/WorldSelectionList$WorldListEntry for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry was not found modernfix-common.mixins.json:bugfix.world_screen_skipped.WorldSelectionListMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/BufferBuilder for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: com/mojang/blaze3d/vertex/BufferBuilder (java.lang.RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/BufferBuilder for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target com.mojang.blaze3d.vertex.BufferBuilder was not found modernfix-common.mixins.json:bugfix.buffer_builder_leak.BufferBuilderMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screens/worldselection/CreateWorldScreen for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/screens/worldselection/CreateWorldScreen (java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/worldselection/CreateWorldScreen for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.gui.screens.worldselection.CreateWorldScreen was not found modernfix-forge.mixins.json:bugfix.extra_experimental_screen.CreateWorldScreenMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: vectorwing/farmersdelight/client/renderer/CanvasSignRenderer (java.lang.RuntimeException: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER) [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/renderer/Sheets for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/Sheets (java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/Sheets for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.renderer.Sheets was not found mixin.undergroundjungle.json:SheetsMixin [01:27:00] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER [01:27:00] [main/WARN] [mixin/]: Error loading class: vectorwing/farmersdelight/client/renderer/CanvasSignRenderer (java.lang.RuntimeException: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER) [01:27:00] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/blockentity/SignRenderer (java.lang.ClassNotFoundException: net.minecraft.client.renderer.blockentity.SignRenderer) [01:27:00] [main/ERROR] [mixin/]: Cannot invoke "org.spongepowered.asm.mixin.transformer.ClassInfo.isMixin()" because "superClass" is null java.lang.NullPointerException: Cannot invoke "org.spongepowered.asm.mixin.transformer.ClassInfo.isMixin()" because "superClass" is null at org.spongepowered.asm.mixin.transformer.MixinInfo$SubType$Standard.validate(MixinInfo.java:581) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validate(MixinInfo.java:327) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinInfo.validate(MixinInfo.java:913) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:801) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:567) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar%2355!/:10.0.9+10.0.9+main.dcd20f30] {} at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?] {} at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {} at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?] {} at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {} at java.lang.ClassLoader.loadClass(ClassLoader.java:637) ~[?:?] {} at java.lang.Class.forName(Class.java:620) ~[?:?] {} at java.lang.Class.forName(Class.java:595) ~[?:?] {} at net.minecraftforge.fml.loading.ImmediateWindowHandler$DummyProvider.lambda$updateModuleReads$1(ImmediateWindowHandler.java:145) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at java.util.Optional.map(Optional.java:260) ~[?:?] {} at net.minecraftforge.fml.loading.ImmediateWindowHandler$DummyProvider.updateModuleReads(ImmediateWindowHandler.java:145) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at net.minecraftforge.fml.loading.ImmediateWindowHandler.acceptGameLayer(ImmediateWindowHandler.java:71) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at net.minecraftforge.fml.loading.FMLLoader.beforeStart(FMLLoader.java:207) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.launchService(CommonLaunchHandler.java:92) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {} [01:27:00] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.2.0-rc.3). [01:27:01] [main/INFO] [minecraft/Bootstrap]: ModernFix reached bootstrap stage (9.259 s after launch) Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:108) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:78) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:103) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$makeService$0(CommonServerLaunchHandler.java:27) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ... 7 more Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) at TRANSFORMER/[email protected]/net.minecraftforge.registries.GameData.<clinit>(GameData.java:81) at TRANSFORMER/[email protected]/net.minecraft.core.registries.BuiltInRegistries.forge(BuiltInRegistries.java:429) at TRANSFORMER/[email protected]/net.minecraft.core.registries.BuiltInRegistries.forge(BuiltInRegistries.java:409) at TRANSFORMER/[email protected]/net.minecraft.core.registries.BuiltInRegistries.<clinit>(BuiltInRegistries.java:121) at TRANSFORMER/[email protected]/net.minecraft.server.Bootstrap.m_135870_(Bootstrap.java:43) at TRANSFORMER/[email protected]/net.minecraft.server.Main.main(Main.java:121) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ... 12 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector skipMultipleRemap(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; in modernfix-forge.mixins.json:perf.fast_registry_validation.ForgeRegistryMixin failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap modernfix.refmap.json at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1362) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1051) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:400) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ... 32 more
    • file:///C:/Users/Danie/Downloads/Capture.JPG I keep experiencing this error, does anyone know how to fix it here is the report: file:///C:/Users/Danie/AppData/Roaming/.minecraft/crash-reports/Bug_report1.txt
  • Topics

×
×
  • Create New...

Important Information

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