Jump to content

Recommended Posts

Posted

Sophistry:

  Reveal hidden contents

 

 

Brief: My script is cool-working with eclipse&mcp's run commands.

But when i copy the classes to the game's "where they should be" directory, game crashes.

     

I'm now using fully updated versions of minecraft,  forge, mcp and eclipse. ( problem continues with 1.3.2)

Compiling et cetera commands in mcp and forge source's file in mcp works smooth and correct.  (I do these things right.) And eclipse gives no error...

 

A tutorial code copied from wuppy29's blog pasted to Eclipse's mcp72/eclipse workspace, Minecraft / common / serenity.common package

Serenity.java :

 

  Reveal hidden contents

 

 

An error report from minecraft 1.3.2 (only the latest forge and millionth serenity was there) created for frustrating my codding attempts (above, Serenity.java)

 

  Reveal hidden contents

 

 

 

An error log dedicated to a my-copy-paste mod: These scribbles are expired (1.2.5)

 

  Reveal hidden contents

 

"Another" tutorial i copied. Sory, this mod's related log is on my other post down there...

 

  Reveal hidden contents

 

 

  Reveal hidden contents

 

Solved. It was so moronic as i guessed The Answer is on the modder's support page.

 

 

Posted

What EXACTLY are you doing?

Your error tells me something and your code tells me something else.

Read the EAQ before posting! OR ELSE!

 

  Quote
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.

Posted
  On 9/16/2012 at 11:59 AM, luacs1998 said:

What EXACTLY are you doing?

Your error tells me something and your code tells me something else.

 

Sory for that. As i said i tried lots of different ways. "The something else" in the error is another tutorial which i only changed some names on it. Even for the simplest scripts i wrote, the game doesn't recognized my class files. (I set jre and jdk path variables properly also)

The thing is, i can run the code on eclipse or mcp62's "start client"  and my mod works. But when i copy'em to the game's related directories it crashes my game..

 

Also i tried it when "no mod" loaded but forge. Nothing changed....

 

I did everything what tutorials said. Now i tried it with original codes what i gave.

Error log with original tutorial...

 

 

  Reveal hidden contents

 

 

Thanks for the care by the way...

 

Posted
  On 9/16/2012 at 12:36 PM, Havaro said:

Try to mod for 1.3.2?

 

Okay... At first that was not my real intention... But I tried then

with Minecraft 1.3.2, Mcp72, Forge 4.1.2.262

 

I used wuppy29's most basic tutorial class, copy-pasted it... (only the package name is from forge's wiki) So here what i wrote:

 

tutorial.generic.Generic.java

 

  Reveal hidden contents

 

 

And again, it worked with eclipse's run command perfectly ...

 

When i copied the Generic.class file from reobf folder to a zip file in mods folder :

 

ForgeModLoader-client-0.log: (updated)

 

  Reveal hidden contents

 

 

Neither mcp's recompile-reobfuscate nor forge's install commands gave no error for either 1.2.5 and 1.3.2 verisons. They worked flawless. Only this time (1.3.2) there was a lil' warning about server which mcp said was normal. Eclipse was content about what i did too...

 

I have a bit of knowledge about python, i have created some mods for m&b. I'm "brand" new at java (only need it for minecraft modding) So, i did everything what i learned so far. But i stuck in the first place with Java :-X

 

 

edit:

Posted
  On 9/16/2012 at 5:47 PM, Malivil said:

File should be named "Generic.java" not "tutorial.generic.Generic.java"

 

Oh, i meant there "Generic class in tutorial.generic package" sory.  As i said before, nothing wrong with decompiling, compiling, obsfucating and running the client from mcp or eclipse. It's just crashes my game when i put my mod  there.

 

I reinstalled everything, included Eclipse for java ee developers' latest version. Nothing has changed.

Posted

Caught exception from YourName_ModName

java.lang.ClassNotFoundException: tutorial.generic.Generic

 

Seems fairly straight forward:

You have a class named YourName_ModName which references tutorial.generic.Generic which is not in the class path.;

So you need to install tutorial.generic.Generic into your class path.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
  On 9/16/2012 at 9:18 PM, LexManos said:

Caught exception from YourName_ModName

java.lang.ClassNotFoundException: tutorial.generic.Generic

 

Seems fairly straight forward:

You have a class named YourName_ModName which references tutorial.generic.Generic which is not in the class path.;

So you need to install tutorial.generic.Generic into your class path.

 

I can imagine that this is the real answer for my problem but...

 

I'm sory, am not a java guru at this point. But i'm using Eclipse and.. As serenity(it is now).generic is in the minecraft / common path; and so, as far as i can see that path is a build path in my workspace.. I don't think i 'm not that qualified to do what you offer.

So should i do that thing with mcp or harder on eclipse?

 

I've been searching on the net about this for hours i can't find anything works for me with Eclipse or MCP setting classpath.

 

I've got one thought, probably a retarded one...

Should i do that updatenames.bat ?

 

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.