Jump to content

Recommended Posts

Posted

Ok so i just recomplied and rebofuscated my mod and im getting an error on the WorldProvider. Here is the error:

 

Minecraft Log Error:


      Minecraft has crashed!      
      ----------------------      

Minecraft has stopped running because it encountered a problem; Failed to start game

A full error report has been saved to C:\Users\jacks_000\Documents\My Games\Minecraft\MultiMC\instances\1.5.1\minecraft\crash-reports\crash-2013-04-14_20.29.27-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash 



--- BEGIN ERROR REPORT a7c3f90e --------
Full report at:
C:\Users\jacks_000\Documents\My Games\Minecraft\MultiMC\instances\1.5.1\minecraft\crash-reports\crash-2013-04-14_20.29.27-client.txt
Please show that file to Mojang, NOT just this screen!

Generated 4/14/13 8:29 PM

-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_13, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 472736488 bytes (450 MB) / 648740864 bytes (618 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.16.640 Minecraft Forge 7.7.1.640 5 mods loaded, 5 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
mod_ReiMinimap [mod_ReiMinimap] ([1.5.1]ReiMinimap_v3.3_04.zip) Unloaded->Constructed->Pre-initialized->Initialized
JV's ToolPack [JV's ToolPack] (ShineToolPack.zip) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 7570 GL version 4.2.11750 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: tutorial/WorldProviderShrine
at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: tutorial/WorldProviderShrine
at tutorial.mod_tutorial.load(mod_tutorial.java:266)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
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.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
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.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
... 5 more
Caused by: java.lang.ClassNotFoundException: tutorial.WorldProviderShrine
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 32 more
Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file tutorial/WorldProviderShrine
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227)
... 34 more
--- END ERROR REPORT f0996974 ----------

 

Here is my WorldProviderShine code:

package tutorial;

import java.util.Random;

import net.minecraft.world.WorldProvider;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.IChunkProvider;

public class WorldProviderShrine extends WorldProvider
{

//The WorldProvider covers all the basics of the dimension. Look in WorldProviderBase.java and
//WorldProvider.java for all the potential qualities you can assign to your dimension.

public WorldProviderShrine()
{
}

//The save file will be called DIM65 (DIM + id number).
public int getDimensionID()
{

	return 20;

}

public String getDimensionName(){
return "Shine";
}

public boolean renderClouds()
{

	return false;

}
public boolean renderEndSky()
{
    return false;
}
public boolean renderVoidFog()
{

return true;

}



public float setMoonSize()
{
return 1.0F;
}

public float setSunSize()
{

return 1.5F;

}



public String getSunTexture()
{

return "/BloodrackenTexture/sun.png";

}

public String getMoonTexture()
{

return "/BloodrackenTexture/moon.png";

}

public boolean renderStars()
{

return true;

}


public boolean darkenSkyDuringRain()
{

return true;

}

public String getRespawnMessage()
{

return " Leaving The Shrine Dimension";

}

//You can use an existing WorldChunkManager, or create your own. You must create your own to
//add multiple unique biomes to a dimension.
public void registerWorldChunkManager()
{

worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.ShineBiome, 1.0F, 0.0F); //Your Biome goes here
this.hasNoSky = true;
}

//This is where you define your terrain generator.
public IChunkProvider getChunkProvider()
{

return new ChunkProviderShrine(worldObj, worldObj.getSeed(), false);

}

//Note that, if you respawn in the dimension, you will end up at the coordinates of your
//overworld spawn point, not at the location of your first entrance to the dimension or
//something like that. Note also that beds don't work if you cannot respawn in the dimension.
public boolean canRespawnHere()
{

return true;

}

public float calculateCelestialAngle(long par1, float par3)
{

return 0.25F;

}

public String func_80007_l() {

return null;
}


}

 

And here is the line in mod_tutorial(266)were i believe it gets registered. Im also going to include the next line with it for a possibility that it may be a problem also.

DimensionManager.registerProviderType(dimension, WorldProviderShrine.class, false);
  DimensionManager.registerDimension(dimension, dimension);

 

Im also not sure if you need to know but Im not using the DimensionAPI or whatever, this is coded without it. I really hope I dont have to get it but if it comes down to it I will. I hope you can help guys, thanks!!

Posted

Please someone help!!!! Ive waited and yet no help!! If you know anything or if you have a working dimension that has been rebofuscated and recompiled please tell me what yours looks like or if you got this error, how you fixed it!!!!!!!

Posted

Please someone help!!!! Ive waited and yet no help!! If you know anything or if you have a working dimension that has been rebofuscated and recompiled please tell me what yours looks like or if you got this error, how you fixed it!!!!!!!

  • 2 weeks later...
Posted

It actually doesnt come from copy and pasting tutorials its called looking at the WorldProvider and adding in the methods you want for yours.......

 

Im not really sure what you mean. All of these methods are in WorldProvider that i use. New name/signature? Im not sure what im supposed to be looking for. And i do get an error on getChunkProvider() when i add @Override in my WorldProviderShrine, even though its a method in WorldProvider.

 

Posted

Ok thanks, im still getting this error though in my world:

 

2013-05-09 08:08:21 [sEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly

 

2013-05-09 08:08:21 [sEVERE] [ForgeModLoader] The world 4bb18127 (Jackson3) has leaked.

 

I know, i know its a hole different problem, but it should be fixable, im just not sure how to fix it. My dimension was working fine for 50 World Generations!!! Then for some reason it started only generating like 4 chunks and was laggy and such. Also, i spawn first in my dimension insted of the overworld which is a big no, no for me but i dont know how to fix it. Thanks!

Posted

DimensionManager.registerProviderType(dimension, WorldProviderShrine.class, false);
  DimensionManager.registerDimension(dimension, dimension);

 

Have you tried switching this to true instead of false?  You are setting the dimension to not stay loaded so I am not 100% that is the issue but I would give it a try.  Nether and Overworld are set to true.

Posted

Ok so I updated to the latest 1.5.1 version, and turns out it works!!! I recompiled my mod, and rebofuscated and now I get this error:

 

Minecraft log(Highlighted areas i figured important?):

 

 

 

      Minecraft has crashed!     

      ----------------------     

 

Minecraft has stopped running because it encountered a problem; Failed to start game

 

A full error report has been saved to C:\Users\jacks_000\Documents\My Games\Minecraft\MultiMC\instances\1.5.1\minecraft\crash-reports\crash-2013-05-09_19.20.34-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash :(

 

 

 

--- BEGIN ERROR REPORT 5cbb7c18 --------

Full report at:

C:\Users\jacks_000\Documents\My Games\Minecraft\MultiMC\instances\1.5.1\minecraft\crash-reports\crash-2013-05-09_19.20.34-client.txt

Please show that file to Mojang, NOT just this screen!

 

Generated 5/9/13 7:20 PM

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Windows 8 (amd64) version 6.2

Java Version: 1.7.0_13, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 504588312 bytes (481 MB) / 693501952 bytes (661 MB) up to 954466304 bytes (910 MB)

JVM Flags: 2 total; -Xms512m -Xmx1024m

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.16.640 Minecraft Forge 7.7.1.640 5 mods loaded, 5 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

mod_ReiMinimap [mod_ReiMinimap] ([1.5.1]ReiMinimap_v3.3_04.zip) Unloaded->Constructed->Pre-initialized->Initialized

ShineToolPack [shineToolPack] (ShineToolPackOK.zip) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: AMD Radeon HD 7570 GL version 4.2.11750 Compatibility Profile Context, ATI Technologies Inc.

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

[glow=red,2,300]cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: tutorial/WorldProviderShrine[/glow]

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

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

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

at java.lang.Thread.run(Unknown Source)

[glow=red,2,300]Caused by: java.lang.NoClassDefFoundError: tutorial/WorldProviderShrine

at tutorial.mod_tutorial.load(mod_tutorial.java:276)[/glow]

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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

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

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

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

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

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

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

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

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

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

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)

... 5 more

[glow=red,2,300]Caused by: java.lang.ClassNotFoundException: tutorial.WorldProviderShrine[/glow]

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 32 more

[glow=red,2,300]Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file tutorial/WorldProviderShrine[/glow]

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227)

... 34 more

--- END ERROR REPORT ffab5755 ----------

 

 

 

 

Here is the line I highlighted in the spoiler error code that refers to my mod_tutorial class(line 276):

DimensionManager.registerProviderType(20, WorldProviderShrine.class, false);

 

Just in case here is my WorldProviderClass also(WorldProviderShine):

package tutorial;

import java.util.Random;

import net.minecraft.util.ChunkCoordinates;
import net.minecraft.world.WorldProvider;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraftforge.common.DimensionManager;

public class WorldProviderShrine extends WorldProvider
{

//The WorldProvider covers all the basics of the dimension. Look in WorldProviderBase.java and
//WorldProvider.java for all the potential qualities you can assign to your dimension.


//The save file will be called DIM65 (DIM + id number).


public String getDimensionName(){
return "Shine";
}
/**
public static WorldProvider getProviderForDimension(int par0)
{
    return DimensionManager.createProviderFor(20);
    
}
**/
public boolean renderClouds()
{
return false;
}
public boolean renderEndSky()
{
    return false;
}

public boolean renderVoidFog()
{
return true;
}

public float setMoonSize()
{
return 1.0F;
}

public float setSunSize()
{
return 1.5F;
}


public boolean renderStars()
{
return true;
}


public String getRespawnMessage()
{
return " Leaving The Shrine Dimension";
}

//You can use an existing WorldChunkManager, or create your own. You must create your own to
//add multiple unique biomes to a dimension.
@Override
public void registerWorldChunkManager()
{

worldChunkMgr = new WorldChunkManagerHell(mod_tutorial.Shine, 1.0F, 0.0F); //Your Biome goes here
this.hasNoSky = false;
}

//This is where you define your terrain generator.
public IChunkProvider createChunkGenerator()
{
return new ChunkProviderShrine(worldObj, worldObj.getSeed(), false);
}

//Note that, if you respawn in the dimension, you will end up at the coordinates of your
//overworld spawn point, not at the location of your first entrance to the dimension or
//something like that. Note also that beds don't work if you cannot respawn in the dimension.
public boolean canRespawnHere()
{
return false;
}


public float calculateCelestialAngleShine(long par1, float par3)
{
    int j = (int)(par1 % 24000L);
    float f1 = ((float)j + par3) / 24000.0F - 0.25F;

    if (f1 < 0.0F)
    {
        ++f1;
    }

    if (f1 > 1.0F)
    {
        --f1;
    }

    float f2 = f1;
    f1 = 1.0F - (float)((Math.cos((double)f1 * Math.PI) + 1.0D) / 2.0D);
    f1 = f2 + (f1 - f2) / 3.0F;
    return f1;
}


public String func_80007_l() 
{
return null;
}


}


 

I hope you guys can help! Thanks!

 

Remember if you need any code from me to figure out the solution, just ask and I will gladly give you that! Thanks!

Posted

can I see your folder structure inside your ZIP?

 

I guess, you set it up wrong:

MyModName.zip

  |- tutorial

    |- mod_tutorial.class

    |- WorldProviderShrine.class

  |- probably anything else

 

NOTE: the folder structure inside your zip must be equal to the package definition at the very top in the class file.

For example you have the crashing class Particle, the package definition inside it is package myPackage.mySubPackage;, then in your ZIP, the class file must be located as following: MyMod.zip/myPackage/mySubPackage/Particle.class

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Here is my zip file:

https://www.dropbox.com/s/sfrsf1sbxk8n2hd/ShineToolPackOK.zip

 

All my files in eclipse are located in a package called tutorial, then it splits off in tutorial in to client and common. Heres a screen shot of my eclipse, look at the bottom:

https://www.dropbox.com/s/m9djwfoh19kmbdc/EclipsePackages.png

 

Honestly I think all my files are located in the right place! I really hope this is a fixable error. The thing that upsets me the most is that people have dimensions working perfectly fine in 1.5.1 and Im not sure how to get around this error! Hope you can help! Thanks!

 

Remember if you need any code from me to figure out the solution, just ask and I will gladly give you that! Thanks!

Posted

I'd recommend getting rid of alot of those functions like get respawnmessage and renderstars etc just for testing purposes and go with the bare minimum.  That or try to add @Override to as many of them as you can.  I'm also pretty sure you don't need to re-add the function WorldProvider getProviderForDimension

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.