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

Developing with NEI installed.


giodamelio
 Share

Recommended Posts

Add codechickencore and nei to the <mcp>/jars/coremods.

 

<mcp>/jars is the same as .minecraft

 

Although... Since NEI's been obfuscated and minecraft hasn't at that point...

 

Just give me a few minutes (decompiling minecraft), and I'll check and come back.

 

EDIT: That doesn't work. You'd have to talk to ChickenBones...

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Link to comment
Share on other sites

From CB himself:

You need to perform the following steps:1. Make sure you have a working mcp with forge.2. Download the source packages for the mods in question.3. For Each source package    a. if it contains a file "<name>_at.cfg" copy this to your "<mcp>/forge/accesstransformers" directory (you may need to create it)    b. if it contains a file "<name>_dummmy.jar" copy this to the "<mcp>/jars/"+(mods or coremods) folder depending on where the mod is installed.4. Run forge/setup.bat (Warning this does delete your eclipse, source and jar directories so you need to backup/rename them)5. copy/link the source into eclipse.

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

Link to comment
Share on other sites

From CB himself:

You need to perform the following steps:1. Make sure you have a working mcp with forge.2. Download the source packages for the mods in question.3. For Each source package    a. if it contains a file "<name>_at.cfg" copy this to your "<mcp>/forge/accesstransformers" directory (you may need to create it)    b. if it contains a file "<name>_dummmy.jar" copy this to the "<mcp>/jars/"+(mods or coremods) folder depending on where the mod is installed.4. Run forge/setup.bat (Warning this does delete your eclipse, source and jar directories so you need to backup/rename them)5. copy/link the source into eclipse.

Thanks, that worked great.

Link to comment
Share on other sites

  • 1 month later...

On the latest forge (.448 as of this writing) I find that the above procedure doesn't work. Now this might be me, since there is no "setup.bat" (I'm on FreeBSD here) and instead I ran "sh install.sh". Also step 5 is ambiguous to me as I don't know exactly where to copy the source into, so I copied it into "src/minecraft" relative to the mcp directory.

 

What happened was odd.  The "common" tab in the eclipse project explorer had nothing in it and all the code had a lot of import errors.

 

I'd appreciate any assistance if anyone knows what's going on here. Thanks in advance.

Link to comment
Share on other sites

Ok:

1. copy all the <something>_at.cfgs from the NEI and CCC zips/whatever, put them in <forge>/accesstransformers

2  if any of them contain a file "<name>_dummmy.jar" copy this to the "<mcp>/jars/"+(mods or coremods) folder depending on where the mod is installed

3. run forge/install.sh

4. copy the NEI and CCC code from the src zips into <forge>/mcp/src/minecraft

5. Do whatever you normally do.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Link to comment
Share on other sites

I have the same issues with NEI and forge. I use forge version "minecraftforge-src-1.4.5-6.4.2.445", and it seems it doesn't generate the commons folder anymore.

 

If I copy the source from NEI/ChickenCore into <forge>/mcp/src/common (after creating the folder) it's not recognized, if i copy it into the <forge>/mcp/src/minecraft tree all the imports inside the NEI/ChickenCore java files seem to be wrong.

Link to comment
Share on other sites

I have the same issues with NEI and forge. I use forge version "minecraftforge-src-1.4.5-6.4.2.445", and it seems it doesn't generate the commons folder anymore.

 

If I copy the source from NEI/ChickenCore into <forge>/mcp/src/common (after creating the folder) it's not recognized, if i copy it into the <forge>/mcp/src/minecraft tree all the imports inside the NEI/ChickenCore java files seem to be wrong.

Heh. I mistyped that.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Link to comment
Share on other sites

Click on the Minecraft/src folder in eclipse, and then press Ctrl-Shift-O. It should fix most if not all the errors.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Link to comment
Share on other sites

  • 4 weeks later...

Hello, sorry for grave digging but I am trying to develop with NEI installed, I followed every step and code reads properly. Except moment when I try launch the code, it just throw error (FML throws, not MC) that it cant run with current configuration, so basicly this is the error log:

2013-01-18 21:57:31 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.6.12.511 for Minecraft 1.4.6 loading
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] All core mods are successfully located
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Discovering coremods
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Found a candidate coremod CodeChickenCore_dummy.jar
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Loading coremod CodeChickenCore_dummy.jar
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Loaded coremod CodeChickenCore_dummy.jar
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Found a candidate coremod NotEnoughItems_dummy.jar
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Loading coremod NotEnoughItems_dummy.jar
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Loaded coremod NotEnoughItems_dummy.jar
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir
2013-01-18 21:57:31 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-147.jar present and correct in lib dir
2013-01-18 21:57:32 [FINEST] [ForgeModLoader] Running coremod plugins
2013-01-18 21:57:32 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2013-01-18 21:57:32 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2013-01-18 21:57:32 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2013-01-18 21:57:32 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2013-01-18 21:57:32 [FINEST] [ForgeModLoader] Running coremod plugin CodeChickenCorePlugin
2013-01-18 21:57:32 [iNFO] [sTDOUT] Adding Accesstransformer map: codechickencore_at.cfg
2013-01-18 21:57:39 [iNFO] [sTDERR] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:175)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:92)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.main(Minecraft.java:2235)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at Start.main(Start.java:29)
2013-01-18 21:57:39 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:265)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	... 4 more
2013-01-18 21:57:39 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at codechicken.core.asm.CodeChickenAccessTransformer.readMapFile(CodeChickenAccessTransformer.java:44)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at codechicken.core.asm.CodeChickenAccessTransformer.addTransformerMap(CodeChickenAccessTransformer.java:30)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at codechicken.core.asm.CodeChickenCorePlugin.call(CodeChickenCorePlugin.java:64)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at codechicken.core.asm.CodeChickenCorePlugin.call(CodeChickenCorePlugin.java:1)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:261)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	... 5 more
2013-01-18 21:57:39 [iNFO] [sTDERR] Caused by: java.lang.reflect.InvocationTargetException
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at codechicken.core.asm.CodeChickenAccessTransformer.readMapFile(CodeChickenAccessTransformer.java:40)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	... 9 more
2013-01-18 21:57:39 [iNFO] [sTDERR] Caused by: java.lang.IllegalArgumentException: resource codechickencore_at.cfg not found.
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at com.google.common.io.Resources.getResource(Resources.java:157)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	at cpw.mods.fml.common.asm.transformers.AccessTransformer.readMapFile(AccessTransformer.java:94)
2013-01-18 21:57:39 [iNFO] [sTDERR] 	... 14 more

It be awesome if someone could tell me and others who got such problem whats the solution for this, I am using

forge.major.number=6
forge.minor.number=5
forge.revision.number=0
forge.build.number=471

aswell as MC 1.4.6 (Obviusly since there isnt 6.5.0.471 for 1.4.7 :P )

this was a completly clean kit, without any modification done, just to test nei functionality,

followed the steps described on Code Chicken Mod's Thread on minecraftforums.

~I was here~

Link to comment
Share on other sites

  • 4 months later...

;D Since this is the only place I can find info about developing with NEI, I thought I would reply to this thread, even though its a bit old.

I had the same problem as the last guy to post.

 

These are the steps I took to get it all working:

Copied from keepcalm's post and edited.

 

1. copy all the <something>_at.cfgs from the NEI and CCC zips/whatever, put them in <forge>/accesstransformers

2  if any of them contain a file "<name>_dummmy.jar" copy this to the "<mcp>/jars/"+(mods or coremods) folder

depending on where the mod is installed

 

*3. copy the <something>_at.cfgs again, put them in the root of their respective <name>_dummy.jar files in <mcp>/jars/

 

4. run forge/install.sh

5. copy the NEI and CCC code from the src zips into <forge>/mcp/src/minecraft

(for me the nei source must replace GuiContainer in minecraft source).

6. Do whatever you normally do.

 

I don't know if the at.cfgs were in the dummy jars at some point, or maybe this was obvious to most.

Either way I hope this can help somebody.

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



×
×
  • Create New...

Important Information

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