• 0

    posted a message on [1.7.10] Using/Referencing other mods, in my mod.

    Partial Victory! I just compiled the mod, thanks Geforce for help with that, and ran it in minecraft, and it works! Mostly. The remaining issues are just coding things I'll work out myself. All that is left now, is to find out why it crashes in eclipse, if anyone can help with that, it would be much appreciated.

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Using/Referencing other mods, in my mod.

    I do see a func_150238_a in that crash report. Is that a result of an issue with the software I used to deobfsucate the mod?

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Using/Referencing other mods, in my mod.

    Okay, I understand that the last crash report helped nothing. So here is a new one.


    This time I did something different. I added the regular untouched mod as external Jars. Then I added source files to them, so they are actually readable now. I added the .zip file I talked about earlier. It didn't help, but at least this crash report may be more useful.


    You see, if I just include the decompiled and deofuscated mod, eclipse can't find any of the classes, so it treats it as empty even though its full of the java files, and doesn't even load it. So I added the untouched mod, this time eclipse can see the classes I'm referencing in my mod. Also then I added the decompiled and deofuscated version of that mod as a source folder so that the java files are readable now (This source folder was a .zip file I mentioned before, but un-zipped). It still isn't working, but I feel this is the closest I've gotten to it working.


    ---- Minecraft Crash Report ----
    // Why did you do that?

    Time: 9/03/19 11:04 AM
    Description: There was a severe problem during mod loading that has caused the game to fail

    cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.util.ChatStyle.func_150238_a(Lnet/minecraft/util/EnumChatFormatting;)Lnet/minecraft/util/ChatStyle;

    at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)

    at cpw.mods.fml.common.Loader.loadMods(Loader.java:544)

    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)

    at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

    at net.minecraft.client.Minecraft.run(Minecraft.java:942)

    at net.minecraft.client.main.Main.main(Main.java:164)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

    at GradleStart.main(Unknown Source)

    Caused by: java.lang.NoSuchMethodError: net.minecraft.util.ChatStyle.func_150238_a(Lnet/minecraft/util/EnumChatFormatting;)Lnet/minecraft/util/ChatStyle;

    at JinRyuu.JRMCore.JRMCorePacHanS.<clinit>(JRMCorePacHanS.java:2286)

    at JinRyuu.JRMCore.JRMCore.<clinit>(JRMCore.java:17)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Unknown Source)

    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59)

    at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

    at com.google.common.eventbus.EventBus.post(EventBus.java:275)

    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)

    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

    at com.google.common.eventbus.EventBus.post(EventBus.java:275)

    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)

    at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)

    ... 12 more

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Using/Referencing other mods, in my mod.

    This also may help,


    When I decompiled and deobfuscated the mod, I followed this process LINK. I also tried it using JD GUI as a decompiler, but that gives me a zip file. Perhaps the issue is with the software I used to do this? Should I just try every different type of software until one works, or am I missing something else?


    Thanks for any help you can give.

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Using/Referencing other mods, in my mod.

    Hey, thanks for that. Adding dependencies to the build file is a lot simpler than I was expecting. Thanks!


    Here is my crash report below. But to summarize, it is quite simple, the decompiled and deobfuscated mods are not being seen, or loaded. So when my HUD mod tries to get the variables from these mods that it can't find, it crashes. Eclipse tells me this before I even hit run, all variables I call from the other mod are unknown.


    If I link the regular obfuscated mod, eclipse can find the variables I am calling from that mod, however, it crashes. I assume this is because the mods are not decompiled and deobfuscated.


    The crash report for when using the regular mod .jar files is also pretty standard. Error when loading mods, UE, so I assume that is because the mod isn't decompiled and deobfuscated.


    This is the crash report for when I use the decompiled and deobfuscated mod.


    ---- Minecraft Crash Report ----
    // Why is it breaking :(

    Time: 8/03/19 7:42 PM
    Description: Unexpected error

    java.lang.Error: Unresolved compilation problems:
    JRMCoreH cannot be resolved to a variable
    JRMCoreH cannot be resolved to a variable
    JRMCoreH cannot be resolved to a variable
    JRMCoreH cannot be resolved to a variable
    JRMCoreH cannot be resolved to a variable
    JRMCoreH cannot be resolved to a variable
    JRMCoreH cannot be resolved to a variable

    at kasai.kasaiDBCMod.gui.KasaiGUI.onRenderOverlayText(KasaiGUI.java:48)

    at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_KasaiGUI_onRenderOverlayText_RenderGameOverlayEvent.invoke(.dynamic)

    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)

    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)

    at net.minecraftforge.client.GuiIngameForge.pre(GuiIngameForge.java:901)

    at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:105)

    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1114)

    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)

    at net.minecraft.client.Minecraft.run(Minecraft.java:962)

    at net.minecraft.client.main.Main.main(Main.java:164)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

    at GradleStart.main(Unknown Source)

    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] Using/Referencing other mods, in my mod.

    Hello people,


    Okay, so I want to create a new HUD mod for minecraft, but I want this HUD to show the stats I have from another mod. This other mod lets you level up and such. I have created the HUD, no problem, I am very confident that all my code is perfect. That's not my problem, what I can't figure out is how to add dependent mods, I can't have my HUD work if I can't get the variables from this other mod.


    I'm working in Eclipse, by the way.

    I tried adding the mod I'm dependent on in my referenced libraries, by adding an external Jar. I was able to reference the variables I needed, but it crashed on running.


    I researched and found that I need to decompile and deobfuscate the mods I'm dependent on. So I did that. It still isn't working, eclipse can't even find the variables I want anymore, so obviously it will crash. One method I used had the decompiled and deobfuscated mod resulting in a zip file, which I thought was weird, but I added it as an external class folder, which I imagine was wrong. The second method, using different software resulted in a .jar file, which I added it as an external jar file, but it still is not working.


    So if anyone can tell me what I'm doing wrong, or missing, that would be great!


    Also, looking around I've seen that compiling your mod is different if you have dependencies. How would I go about that?

    Posted in: Modification Development
  • To post a comment, please .