Jump to content

[1.8] Added NEI API to workspace, cannot compile or run debug now


Recommended Posts

Posted

I'm hoping someone can help me.  I am trying to add NEI support to my mod, and I have the code I need and have even made the necessary classes...

 

I followed tutorials for adding an API to my library and have both CodeChickenCore-1.8 and NotEnoughItems-1.8 added to my library, but every time I try to run the debug test client, I get the following errors

 

 

[23:44:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[23:44:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.ExceptionInInitializerError

Exception in thread "main" [23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.core.asm.MCPDeobfuscationTransformer.load(MCPDeobfuscationTransformer.java:113)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.core.asm.MCPDeobfuscationTransformer$LoadPlugin.injectData(MCPDeobfuscationTransformer.java:52)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:137)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(Unknown Source)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: Caused by: java.lang.RuntimeException: Failed to select mappings directory, set it manually in the config

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.lib.asm.ObfMapping$MCPRemapper.getConfFiles(ObfMapping.java:107)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.lib.asm.ObfMapping$MCPRemapper.<init>(ObfMapping.java:162)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.lib.asm.ObfMapping.loadMCPRemapper(ObfMapping.java:205)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.lib.asm.ObfMapping.<clinit>(ObfMapping.java:217)

[23:49:32] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: ... 7 more

 

 

I have tried every tweak and slight variation on adding the files I can find, but it will not work.  What else do I need to do?

Check out my Mod: The RPCraft Toolkit!

Posted

I see that it say to set the mappings directory in the config, but I don't know what the mappings directory is and it only loads half the CCC config before it crashes.  If I move the Jar files for CCC and NEI to the Eclipse/Mods folder, then it actually prompts me to "Select MCP folder for deobfuscation" but when I select .C:\Users\Me\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.3.1446\unpacked\conf it throws a different error and says "cannot find methods.csv file" after which this same error pops up again.

 

I'm sorry if I'm missing something obvious, but I don't know what exactly I need to do and really would like some help.

Check out my Mod: The RPCraft Toolkit!

Posted

I select that one this time and instead of saying "cannot find methods.csv", it says "cannot find packaged.srg or joined.srg".  And then same thing, if I try 3-4 times, it failed to that same output in OP.  If I search for all these names, methods.csv is in the folder you mentioned, but packaged.srg is in the other folder, and selecting the highest common folder between them (.../caches/minecraft) cannot find either.

 

Is my environment just borked somehow?  I'd accept that as an answer since no matter how many times I reinstall forge and gradlew and no matter how fervently I add '--refresh-dependencies', I still cannot open any of the .json files in the forge library.  I always have to go to my normal minecraft install on the C:/ drive, and open them in Notepad from there.

 

Any further ideas are most welcome. 

 

At this point, I'm working around it by removing CCC and NEI from the dev environment entirely and just accepting that my NEIRPCraftConfig file shows errors.  I have build.gradlew pointing to a completely separate folder with them in it for compiling and it compiles without issue.  I'd just really like to know why it seems I cannot add CCC to Eclipse to save my life.

Check out my Mod: The RPCraft Toolkit!

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.

Announcements



×
×
  • Create New...

Important Information

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