Jump to content

BiomeGen, adding in custom vines (vines on themself work) error


OwnAgePau

Recommended Posts

Now i also got a problem with my custom biome while it only adds a couple of vines, which i tested and they worked fine.

I've got the following:

 

The error shows a lot of "server" stuff while i dont actually go to the server, so it's kinda strange to me.

I have tried looking up others with the same sort of error but i couldnt find a fix for mine, because most of them were server related.

All i know is that theres something wrong about my biome generating but i can't seem to figure out why, please respond asap thanks.

 

the error

 

 

---- Minecraft Crash Report ----

// Oh - I know what I did wrong!

 

Time: 14-4-13 22:54

Description: Exception generating new chunk

 

java.lang.NullPointerException

at net.minecraft.world.gen.layer.GenLayerBiome.getInts(GenLayerBiome.java:44)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:19)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:19)

at net.minecraft.world.gen.layer.GenLayerSwampRivers.getInts(GenLayerSwampRivers.java:19)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:21)

at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:34)

at net.minecraft.world.biome.WorldChunkManager.getBiomesForGeneration(WorldChunkManager.java:150)

at net.minecraft.world.gen.ChunkProviderGenerate.generateTerrain(ChunkProviderGenerate.java:146)

at net.minecraft.world.gen.ChunkProviderGenerate.provideChunk(ChunkProviderGenerate.java:324)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:131)

at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:281)

at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88)

at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

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

 

-- Head --

Stacktrace:

at net.minecraft.world.gen.layer.GenLayerBiome.getInts(GenLayerBiome.java:44)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:19)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:19)

at net.minecraft.world.gen.layer.GenLayerSwampRivers.getInts(GenLayerSwampRivers.java:19)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:21)

at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:21)

at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:34)

at net.minecraft.world.biome.WorldChunkManager.getBiomesForGeneration(WorldChunkManager.java:150)

at net.minecraft.world.gen.ChunkProviderGenerate.generateTerrain(ChunkProviderGenerate.java:146)

at net.minecraft.world.gen.ChunkProviderGenerate.provideChunk(ChunkProviderGenerate.java:324)

 

-- Chunk to be generated --

Details:

Location: 1,-28

Position hash: -120259084287

Generator: RandomLevelSource

Stacktrace:

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:131)

at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:281)

at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88)

at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_17, Oracle Corporation

Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation

Memory: 982433264 bytes (936 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

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: 46, allocated: 1, tallocated: 15

FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active

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

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

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

mod_Ores [mod_Ores] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

Profiler Position: N/A (disabled)

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

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

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

 

 

 

And my BiomeGen classfile

 

 

 

 

package Mod_Ores;
import net.minecraft.block.Block;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.SpawnListEntry;
public class BiomeGenSoulForest extends BiomeGenBase
{
protected BiomeGenSoulForest(int par1)
{
     super(par1);
     //this.topBlock = (byte)Block.grass.blockID;
     //this.fillerBlock = (byte)Block.grass.blockID;
    
     spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4));
     theBiomeDecorator.treesPerChunk = 10;
     theBiomeDecorator.grassPerChunk = 2;
     theBiomeDecorator.baneberryvineperchunk= 1;
     theBiomeDecorator.blackberryvineperchunk= 2;
     theBiomeDecorator.blueberryvineperchunk= 2;
     theBiomeDecorator.cranberryvineperchunk= 3;
     theBiomeDecorator.raspberryvineperchunk= 1;
     theBiomeDecorator.razzberryvineperchunk= 2;
     theBiomeDecorator.strawberryvineperchunk= 4;
     theBiomeDecorator.flowersPerChunk = 30;
     theBiomeDecorator.grapetreeperchunk = 3;
     temperature = 1.5F;
}
}

 

 

 

 

added this to the BiomeGenDecorator file

 

 

 

public int baneberryvineperchunk;
public int blackberryvineperchunk;
public int blueberryvineperchunk;
public int cranberryvineperchunk;
public int raspberryvineperchunk;
public int razzberryvineperchunk;
public int strawberryvineperchunk;
public int grapetreeperchunk;
//and inside the public biomedecorator
     this.baneberryvineperchunk = 0;
     this.blackberryvineperchunk = 0;
     this.blueberryvineperchunk = 0;
     this.cranberryvineperchunk = 0;
     this.raspberryvineperchunk = 0;
     this.razzberryvineperchunk = 0;
     this.strawberryvineperchunk = 0;

 

 

 

 

Last but not least, my mod_Ores file

its really big so i only paste in the important bits

 

above public void() :

 

 

public static BiomeGenBase SoulForest;

 

 

 

under public void() :

 

 

 

biomes();


//Biomes
SoulForest = (new BiomeGenSoulForest(23).setBiomeName("SoulForest").setMinMaxHeight(0.0F, 0.7F));

public void biomes()
{
     GameRegistry.addBiome(SoulForest);
}

 

 

 

I hope that this is enough for you to understand , i just hope that you know what the error is causing.

 

Oh it also says something about :

 

 

[ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available.

 

 

 

what to do with that?

Thanks,

 

---SOLVED--- sorry to have bothered the forums, but i figured why it didnt work ---SOLVED---

 

the fix:

 

 

 

SoulForest = (new BiomeGenSoulForest(23).setBiomeName("SoulForest").setMinMaxHeight(0.0F, 0.7F));

biomes();

public void biomes()
{
     GameRegistry.addBiome(SoulForest);
}

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

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