Jump to content

IntelliJ guide seems to be wrong


lynge

Recommended Posts

Hi, I have been trying to set up using this guide here:

 

http://www.minecraftforge.net/wiki/Forge_Development_in_IntelliJ_IDEA

 

But the files "jinput.jar", "lwjgl.jar", "lwjgl_util.jar" and "minecraft.jar" are not where the guide says they are.

I cant even find minecraft.jar anywhere near there, but found 1.6.2.jar instead, dont know if that is good enough.

 

I suspect that is why I get all these errors about things that cannot be imported, but if its not like the guide says, what then?

 

The output when I try to run it.

http://paste.minecraftforge.net/view/079560a4

 

Any other info you need?

Many thanks for any help you can give.

Link to comment
Share on other sites

Ok, thats good to hear.

But perhaps I should have been more clear. I found the jars and I have done as described in the guide, but I get the import errors.

 

I could just add some things as dependencies, but I am unsure how much I can safely add. Also, some of the things it complains about, not being able to find, comes from inside minecraft, but that might just be me reading the logs wrong.

Link to comment
Share on other sites

I have gotten a bit closer, I think. When I go to add the build artifact to the "Before Launch"-list, I can only select MyForgeMod JAR, not the MyForgeMod > Forge that I am suppose to select. I have tried creating them both again following the guide very closely, but no matter what I do, they wont show up. Any ides ? :)

Link to comment
Share on other sites

A bit more info.

The first import that fails is:

 

import org.apache.commons.lang3.Validate;

 

But the path for this file is:

 

org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar

 

Now, I have limited Java experience, but isn't that why it cannot find anything?

 

Its the same story with com.google.gson, there is a dir named "code" in the path, but not in the import statement.

 

 

Since I dont think all the paths have changed and changed just for me, can someone explain to me why the imports are not working. Many thanks for any clarity you may be able to shed on this :D

Link to comment
Share on other sites

So, I have gotten rid of the import errors. Just found all the JAR's manually and set them up as dependencies.

But now I have a new problem.

 

http://paste.minecraftforge.net/view/0328653e

 

All these errors.

The first ones are about fml_at.cfg. I have 2 of those files, seems to have exactly the same content. But apparently they are not located where Forge expects them to be.

 

The laters one about NullPointerException I cant get much headway on. The error happens in some compiled code and I dont know how to look at that.

 

Can anyone give me some hints as to what is wrong here? Many thanks.

Link to comment
Share on other sites

At line 109 of AccessTransformer:

com.google.common.io.Resources.getResource("fml_at.cfg");

The failing try block in CoreModManager:

try
                {
                    IFMLCallHook call = (IFMLCallHook) Class.forName(setupClass, true, classLoader).newInstance();
                    Map<String,Object> callData = new HashMap<String, Object>();
                    callData.put("mcLocation", mcDir);
                    callData.put("classLoader", classLoader);
                    callData.put("coremodLocation", pluginLocations.get(plugin));
                    callData.put("deobfuscationFileName", FMLInjectionData.debfuscationDataName());
                    call.injectData(callData);
                    call.call();
                }

I don't know if that would help.

The coremod issue might be due to the fact that coremods folder has been merged with the mods folder in newer versions of Forge.

 

Maybe you want to report this in the Support & Bug Report section.

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.

Announcements



×
×
  • Create New...

Important Information

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