By SnowBird
#216308 I've been trying to setup intellij with minecraft 1.12.2 and pixelmon 1.12.2-8.4.3 (using oracle java 8u51) to create a sidemod for pixelmon. However i've been having some real difficulty getting the environment setup. The information on this setup process is very sparce from what i could find googling around, however it is possible i've missed a guide on this somewhere, if that is the case would someone be able to link to a setup guide for this. In my specific case the error i'm getting when running the forge runClient gradle script is this. notably, the example mod that is loaded does nothing on its own and the client will boot just fine before adding pixelmon to the build.gradle file.

Code: Select allDescription: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Pixelmon (pixelmon)
Caused by: java.lang.VerifyError: Bad access to protected data in getfield
Exception Details:
  Location:
    com/pixelmonmod/pixelmon/client/render/custom/FontRendererPixelmon.<init>(Lnet/minecraft/client/settings/GameSettings;Lnet/minecraft/client/renderer/texture/TextureManager;Lnet/minecraft/client/gui/FontRenderer;)V @3: getfield
  Reason:
    Type top (current frame, stack[3]) is not assignable to 'com/pixelmonmod/pixelmon/client/render/custom/FontRendererPixelmon'
  Current Frame:
    bci: @3
    flags: { flagThisUninit }
    locals: { uninitializedThis, 'net/minecraft/client/settings/GameSettings', 'net/minecraft/client/renderer/texture/TextureManager', 'net/minecraft/client/gui/FontRenderer' }
    stack: { uninitializedThis, 'net/minecraft/client/settings/GameSettings', 'net/minecraft/util/ResourceLocation' }
  Bytecode:
    0x0000000: 2a2b 2db4 0013 2c2d b400 16b7 0019 2a2d
    0x0000010: b500 1b12 1db8 0023 572a 04b5 0025 a700
    0x0000020: 0a3a 042a 03b5 0025 b1                 
  Exception Handler Table:
    bci [19, 30] => handler: 33
  Stackmap Table:
    full_frame(@33,{Object[#2],Object[#39],Object[#41],Object[#4]},{Object[#15]})
    same_frame(@40)

   at com.pixelmonmod.pixelmon.client.ClientProxy.init(ClientProxy.java:172)
   at com.pixelmonmod.pixelmon.Pixelmon.init(Pixelmon.java:178)
   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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:639)
   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 com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
   at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
   at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
   at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
   at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
   at com.google.common.eventbus.EventBus.post(EventBus.java:217)
   at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
   at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
   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 com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
   at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
   at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
   at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
   at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
   at com.google.common.eventbus.EventBus.post(EventBus.java:217)
   at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
   at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:749)
   at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:336)
   at net.minecraft.client.Minecraft.init(Minecraft.java:535)
   at net.minecraft.client.Minecraft.run(Minecraft.java:378)
   at net.minecraft.client.main.Main.main(Main.java:118)
   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:135)
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
   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.minecraftforge.legacydev.Main.start(Main.java:86)
   at net.minecraftforge.legacydev.MainClient.main(MainClient.java:29)


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

-- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Windows 8.1 (amd64) version 6.3
   Java Version: 1.8.0_51, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 2138875408 bytes (2039 MB) / 2686451712 bytes (2562 MB) up to 15252586496 bytes (14546 MB)
   JVM Flags: 0 total;
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: MCP 9.42 Powered by Forge 14.23.5.2860 7 mods loaded, 7 mods active
   States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

   | State | ID           | Version                | Source                                                     | Signature |
   |:----- |:------------ |:---------------------- |:---------------------------------------------------------- |:--------- |
   | LCHI  | minecraft    | 1.12.2                 | minecraft.jar                                              | None      |
   | LCHI  | mcp          | 9.42                   | minecraft.jar                                              | None      |
   | LCHI  | FML          | 8.0.99.99              | forge-1.12.2-14.23.5.2860_mapped_stable_39-1.12-recomp.jar | None      |
   | LCHI  | forge        | 14.23.5.2860           | forge-1.12.2-14.23.5.2860_mapped_stable_39-1.12-recomp.jar | None      |
   | LCHI  | samplemod112 | 1.0                    | main                                                       | None      |
   | LCHE  | pixelmon     | 8.4.3                  | pixelmon-389487-4348446_mapped_stable_39-1.12.jar          | None      |
   | LCH   | tcg          | 1.12.2-8.4.3-universal | pixelmon-389487-4348446_mapped_stable_39-1.12.jar          | None      |

   Loaded coremods (and transformers):
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 531.18' Renderer: 'NVIDIA GeForce RTX 3070/PCIe/SSE2'

JOIN THE TEAM