Jump to content

Recommended Posts

Posted

I'm getting this crash using the overworld (on a village spawn seed):

 

java.lang.ClassCastException: net.minecraft.world.gen.structure.MapGenVillage cannot be cast to orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage
at orangeVillager61.ImprovedVillagers.ChangeVillageGeneration.changeVillageGen(ChangeVillageGeneration.java:14) ~[ChangeVillageGeneration.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_8_ChangeVillageGeneration_changeVillageGen_InitMapGenEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) [EventBus.class:?]
at net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(TerrainGen.java:47) [TerrainGen.class:?]

Posted

The fuck are you doing?

 

			IvMapGenVillage newGen = (IvMapGenVillage) event.getNewGen();
		System.out.println("Genning 2");
		event.setNewGen(newGen);

 

NO.

JESUS CHRIST NO.

3mLydMU.png

CREATE A NEW GENERATOR, DON'T GET IT FROM THE EVENT.

Hint: you need to use the

new

operator.

FUCK.

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

Okay, that fixed my bug, but I have another similar bug.

 

java.lang.ClassCastException: orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage cannot be cast to net.minecraft.world.gen.structure.MapGenVillage
at net.minecraft.world.gen.ChunkProviderOverworld.<init>(ChunkProviderOverworld.java:68) ~[ChunkProviderOverworld.class:?]
at net.minecraft.world.WorldType.getChunkGenerator(WorldType.java:178) ~[WorldType.class:?]
at net.minecraft.world.WorldProvider.createChunkGenerator(WorldProvider.java:78) ~[WorldProvider.class:?]
at net.minecraft.world.WorldServer.createChunkProvider(WorldServer.java:894) ~[WorldServer.class:?]
at net.minecraft.world.WorldServer.<init>(WorldServer.java:119) ~[WorldServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:86) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:124) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:507) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
public class ChangeVillageGeneration {

@SubscribeEvent
public void changeVillageGen (InitMapGenEvent event) {
	if (event.getType() != null && event.getType() == EventType.VILLAGE){
		IvMapGenVillage newGen = (IvMapGenVillage) new IvMapGenVillage();
		System.out.println("Genning 2");
		event.setNewGen(newGen); - Crashes here I think.
	}

}	

}

Posted

Okay, so the code runs, but then gives me this crash.

 

net.minecraft.util.ReportedException: Exception preparing structure feature
at net.minecraft.world.WorldServer.initialize(WorldServer.java:934) ~[WorldServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:88) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:124) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:507) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
Caused by: java.lang.RuntimeException: StructureStart "orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage$Start" missing ID Mapping, Modder see MapGenStructureIO
at net.minecraft.world.gen.structure.StructureStart.writeStructureComponentsToNBT(StructureStart.java:74) ~[structureStart.class:?]
at net.minecraft.world.gen.structure.MapGenStructure.setStructureStart(MapGenStructure.java:212) ~[MapGenStructure.class:?]
at net.minecraft.world.gen.structure.MapGenStructure.recursiveGenerate(MapGenStructure.java:48) ~[MapGenStructure.class:?]
at net.minecraft.world.gen.MapGenBase.generate(MapGenBase.java:31) ~[MapGenBase.class:?]
at net.minecraft.world.gen.ChunkProviderOverworld.provideChunk(ChunkProviderOverworld.java:228) ~[ChunkProviderOverworld.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:351) ~[World.class:?]
at net.minecraft.world.World.getChunkFromBlockCoords(World.java:343) ~[World.class:?]
at net.minecraft.world.World.getBlockState(World.java:977) ~[World.class:?]
at net.minecraft.world.World.isAirBlock(World.java:268) ~[World.class:?]
at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:241) ~[World.class:?]
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:87) ~[WorldProvider.class:?]
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:993) ~[WorldServer.class:?]
at net.minecraft.world.WorldServer.initialize(WorldServer.java:912) ~[WorldServer.class:?]
... 4 more

Posted

Again, read your errors.

 

Caused by: java.lang.RuntimeException: StructureStart "orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage$Start" missing ID Mapping, Modder see MapGenStructureIO

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.

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.