Jump to content

Recommended Posts

Posted

this is my crash report can someone help me fix this, i dont know whats wrong, if you want to see code then ask.

 

---- Minecraft Crash Report ----

// I bet Cylons wouldn't have this problem.

 

Time: 16/03/15 21:42

Description: Exception in server tick loop

 

java.lang.NullPointerException: Exception in server tick loop

at net.minecraft.world.World.setBlockState(World.java:320)

at net.minecraft.world.gen.feature.WorldGenMinable.generate(WorldGenMinable.java:79)

at com.ThreeFoolsStudios.ArcaneMod.OreGeneration.generateOre(OreGeneration.java:42)

at com.ThreeFoolsStudios.ArcaneMod.OreGeneration.generateOverWorld(OreGeneration.java:28)

at com.ThreeFoolsStudios.ArcaneMod.OreGeneration.generate(OreGeneration.java:22)

at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:106)

at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:270)

at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1126)

at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:180)

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

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

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

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

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

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

at java.lang.Thread.run(Thread.java:745)

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_40, Oracle Corporation

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

Memory: 810332416 bytes (772 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

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

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

FML: MCP v9.10 FML v8.0.20.1295 Minecraft Forge 11.14.0.1295 4 mods loaded, 4 mods active

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

FML{8.0.20.1295} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1295-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

Forge{11.14.0.1295} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1295-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

arm{1.0} [Arcane Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

Profiler Position: N/A (disabled)

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

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

Posted

if you want to see code then ask.

 

Oh your highness, could you be enormously generous and provide us with some code of your world generator?

1.7.10 is no longer supported by forge, you are on your own.

Posted

package com.ThreeFoolsStudios.ArcaneMod;

 

import java.util.Random;

 

import com.ThreeFoolsStudios.ArcaneMod.init.ArcaneBlocks;

 

import net.minecraft.block.Block;

import net.minecraft.block.state.IBlockState;

import net.minecraft.init.Blocks;

import net.minecraft.util.BlockPos;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.feature.WorldGenMinable;

import net.minecraftforge.fml.common.IWorldGenerator;

 

public class OreGeneration implements IWorldGenerator {

@Override

public void generate(Random random, int chunkX, int chunkZ, World world,

IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

switch (world.provider.getDimensionId()) {

case 0:

generateOverWorld(world, random, chunkX, chunkZ);

break;

}

}

 

public void generateOverWorld(World world, Random rand, int x, int z) {

generateOre(ArcaneBlocks.Necromantic_Crystal, world, rand, x, z, 2, 5, 4, 16, 50, Blocks.stone);

}

 

public void generateOre(Block block, World world, Random random,

int chunkX, int chunkZ, int minVeinSize, int maxVeinSize,

int chance, int minY, int maxY, Block generateIn) {

 

int VeinSize = minVeinSize + random.nextInt(maxVeinSize - minVeinSize);

int heightRange = maxY - minY;

WorldGenMinable gen = new WorldGenMinable(getdefault(block), VeinSize);

for (int i=0; i< chance; i++){

int xRand = chunkX * 16 + random.nextInt(16);

int yRand = random.nextInt(heightRange) + minY;

int zRand = chunkZ * 16 + random.nextInt(16);

gen.generate(world, random, new BlockPos(xRand, yRand, zRand));

}

}

 

private IBlockState getdefault(Block block) {

// TODO Auto-generated method stub

return null;

}

 

}

Posted
   private IBlockState getdefault(Block block) {
      // TODO Auto-generated method stub
      return null;
   }

 

And when, pray tell, were you going to fill in that stub?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Thanks it works perfectly now

Diesieben comes in with the sarcastic comment and it just deflects right back!

 

No offense, diesieben. It was all fun and games :D

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Diesieben comes in with the sarcastic comment and it just deflects right back!

 

No offense, diesieben. It was all fun and games :D

[me=diesieben07]is confuzzled[/me]

 

He asks for what to put in the method...

 

please can you put up what I need to put in that stub or a generic version of what I need to put in there

You tell him..

 

And then he says what I think is asking for code(I may have misinterpreted it) when he asks again

please can you put up what I need to put in that stub or a generic version of what I need to put in there

 

And then you say your sarcastic comment which means(I told you what to put in the method and youre not going to get any code)

I just did exactly that.

 

And then he says it works... after he asks for code...

So that sarcastic comment deflected right back!

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

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.