Jump to content

[1.7.2] World Gen crashes game


Budboy33

Recommended Posts

I've been having some troubles with world generation, i'm trying to generate a structure in a plains biome, but whenever I generate new chunks the game crashes

 

 

Init Code:

 

 

public static SpawnWorldGen worldGen = new SpawnWorldGen();

public void doSomething() {

 

}

public void preInit() {

swordTraining = new ItemSwordTraining(toolTraining);

 

GameRegistry.registerItem(swordTraining, "swordTraining");

}

public void Init() {

        GameRegistry.registerWorldGenerator(worldGen, 0);

}

}

 

 

World Gen Code

 

package com.budboy.mrpg.worldgen;

 

import java.util.Random;

 

import net.minecraftforge.event.terraingen.*;

import net.minecraft.world.World;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraft.world.chunk.IChunkProvider;

import cpw.mods.fml.common.IWorldGenerator;

 

public class SpawnWorldGen implements IWorldGenerator {

 

        @Override

        public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

         

        BiomeGenBase b = world.getBiomeGenForCoords(chunkX, chunkZ);

              if(b.biomeName.equals("Plains")) {

              world.setBlock(chunkX*16 + random.nextInt(16), 100, chunkZ*16 + random.nextInt(16), null, 5, chunkZ);

        }

 

}

}

 

Link to comment
Share on other sites

Crash log:

 

[15:39:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[15:39:25] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[15:39:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[15:39:25] [main/INFO] [FML]: Forge Mod Loader version 7.2.129.1047 for Minecraft 1.7.2 loading

[15:39:25] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre8

[15:39:25] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[15:39:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:39:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[15:39:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:39:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:39:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:39:25] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[15:39:26] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Jon/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1047/forgeSrc-1.7.2-10.12.0.1047.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[15:39:26] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[15:39:26] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Jon/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1047/forgeSrc-1.7.2-10.12.0.1047.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[15:39:26] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[15:39:26] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:39:26] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[15:39:26] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[15:39:28] [main/INFO]: Setting user: Player390

[15:39:30] [Client thread/INFO]: LWJGL Version: 2.9.0

[15:39:31] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[15:39:31] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1047 Initialized

[15:39:31] [Client thread/INFO] [FML]: Replaced 141 ore recipies

[15:39:31] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[15:39:31] [Client thread/INFO] [FML]: Searching C:\Users\Jon\Desktop\Forge Mods\eclipse\mods for mods

[15:39:32] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[15:39:35] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[15:39:35] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Medieval RPG

[15:39:35] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[15:39:37] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[15:39:37] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[15:39:37] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[15:39:37] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Medieval RPG

[15:39:37] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[15:39:38] [Client thread/INFO]: Created: 256x256 textures/items-atlas

 

Starting up SoundSystem...

OpenAL initialized.

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

Exception in thread "Thread-8" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.

at org.lwjgl.openal.AL.create(AL.java:113)

at org.lwjgl.openal.AL.create(AL.java:102)

at org.lwjgl.openal.AL.create(AL.java:201)

at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)

at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)

at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)

at paulscode.sound.CommandThread.run(CommandThread.java:121)

[15:39:39] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[15:39:41] [Client thread/INFO]: Deleting level New World

[15:39:41] [Client thread/INFO]: Attempt 1...

[15:39:48] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[15:39:48] [server thread/INFO]: Generating keypair

[15:39:49] [server thread/INFO]: Converting map!

[15:39:49] [server thread/INFO]: Scanning folders...

[15:39:49] [server thread/INFO]: Total conversion count is 0

[15:39:49] [server thread/INFO] [FML]: Injecting new block and item data into this server instance

[15:39:49] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Exception getting block type in world

at net.minecraft.world.World.<init>(World.java:348) ~[World.class:?]

at net.minecraft.world.WorldServer.<init>(WorldServer.java:111) ~[WorldServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:65) ~[integratedServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:98) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:490) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:788) [MinecraftServer$2.class:?]

Caused by: java.lang.NullPointerException

at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:100) ~[ExtendedBlockStorage.class:?]

at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:685) ~[Chunk.class:?]

at net.minecraft.world.World.setBlock(World.java:549) ~[World.class:?]

at com.budboy.mrpg.worldgen.SpawnWorldGen.generate(SpawnWorldGen.java:18) ~[spawnWorldGen.class:?]

at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102) ~[GameRegistry.class:?]

at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:256) ~[ChunkProviderServer.class:?]

at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1177) ~[Chunk.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:519) ~[World.class:?]

at net.minecraft.world.World.getBlock(World.java:424) ~[World.class:?]

at net.minecraft.world.World.isAirBlock(World.java:447) ~[World.class:?]

at net.minecraft.world.World.getTopBlock(World.java:408) ~[World.class:?]

at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:107) ~[WorldProvider.class:?]

at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:814) ~[WorldServer.class:?]

at net.minecraft.world.WorldServer.initialize(WorldServer.java:778) ~[WorldServer.class:?]

at net.minecraft.world.World.<init>(World.java:333) ~[World.class:?]

... 5 more

[15:39:49] [server thread/ERROR]: This crash report has been saved to: C:\Users\Jon\Desktop\Forge Mods\eclipse\.\crash-reports\crash-2014-04-12_15.39.49-server.txt

[15:39:49] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.

---- Minecraft Crash Report ----

// Ooh. Shiny.

 

Time: 4/12/14 3:39 PM

Description: Exception getting block type in world

 

java.lang.NullPointerException: Exception getting block type in world

at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:100)

at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:685)

at net.minecraft.world.World.setBlock(World.java:549)

at com.budboy.mrpg.worldgen.SpawnWorldGen.generate(SpawnWorldGen.java:18)

at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102)

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

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

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

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:519)

at net.minecraft.world.World.getBlock(World.java:424)

at net.minecraft.world.World.isAirBlock(World.java:447)

at net.minecraft.world.World.getTopBlock(World.java:408)

at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:107)

at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:814)

at net.minecraft.world.WorldServer.initialize(WorldServer.java:778)

at net.minecraft.world.World.<init>(World.java:333)

at net.minecraft.world.WorldServer.<init>(WorldServer.java:111)

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

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

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

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:788)

 

 

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

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

 

-- Head --

Stacktrace:

at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:100)

at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:685)

at net.minecraft.world.World.setBlock(World.java:549)

at com.budboy.mrpg.worldgen.SpawnWorldGen.generate(SpawnWorldGen.java:18)

at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102)

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

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

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

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:519)

 

-- Requested block coordinates --

Details:

Found chunk: true

Location: World: (218,64,302), Chunk: (at 10,4,14 in 13,18; contains blocks 208,0,288 to 223,255,303), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Stacktrace:

at net.minecraft.world.World.getBlock(World.java:424)

at net.minecraft.world.World.isAirBlock(World.java:447)

at net.minecraft.world.World.getTopBlock(World.java:408)

at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:107)

at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:814)

at net.minecraft.world.WorldServer.initialize(WorldServer.java:778)

 

-- Affected level --

Details:

Level name: New World

All players: 0 total; []

Chunk stats: ServerChunkCache: 27 Drop: 0

Level seed: -6476699917024956242

Level generator: ID 01 - flat, ver 0. Features enabled: true

Level generator options:

Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 0 game time, 0 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.world.World.<init>(World.java:333)

at net.minecraft.world.WorldServer.<init>(WorldServer.java:111)

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

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

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

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:788)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0, Oracle Corporation

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

Memory: 961554024 bytes (917 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

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

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

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

FML: MCP v9.01-pre FML v7.2.129.1047 Minecraft Forge 10.12.0.1047 4 mods loaded, 4 mods active

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

FML{7.2.129.1047} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1047.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

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

mrpg{0.0.1} [Medieval RPG] (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'

#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-12_15.39.49-server.txt

[15:39:50] [Client Shutdown Thread/INFO]: Stopping server

[15:39:50] [Client Shutdown Thread/INFO]: Saving players

[15:39:50] [Client Shutdown Thread/INFO]: Saving worlds

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

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.