Jump to content

World Generation error


Alix_The_Alicorn

Recommended Posts

Here is my error in eclipse.

 

2013-08-03 20:43:20 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.

 

Here is my main class:

 

package jason.test;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraftforge.common.Configuration;

@Mod(modid="Test", name="Test", version="pre1a")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class Test {
        
        
        @Instance("Test")
        public static Test instance;

        public static int TestOreBlockID;
        public static int TestIngotItemID;
        public static int ChiselItemID;
        
        public final static Item testIngot = new TestIngot(TestIngotItemID);
        public final static Block testOre = new TestOre(TestOreBlockID, Material.rock);
        public final static Item chisel = new Chisel(ChiselItemID);
        
        @SidedProxy(clientSide="jason.test.client.ClientProxy",
                        serverSide="jason.test.CommonProxy")
        public static CommonProxy proxy;
        
        @EventHandler
        public void preInit(FMLPreInitializationEvent event) {
        	Configuration config = new Configuration(event.getSuggestedConfigurationFile());
    		
    		config.load();
    		
    		TestOreBlockID = config.getBlock("TestOre", 501).getInt();
    		TestIngotItemID = config.getItem("TestIngot", 5001).getInt();
    		ChiselItemID = config.getItem("Chisel", 5002).getInt();
    		
    		config.save();
        }
        
        @EventHandler
        public void load(FMLInitializationEvent event) {
                LanguageRegistry.addName(testIngot, "Test Ingot");
                LanguageRegistry.addName(testOre, "Test Ore");
                LanguageRegistry.addName(chisel, "Chisel");
                MinecraftForge.setBlockHarvestLevel(testOre, "pickaxe", 3);
                GameRegistry.registerBlock(testOre, "testOre");
                ItemStack testIngot = new ItemStack(TestIngotItemID, 1, 0);
                ItemStack diamondPickaxe = new ItemStack(278, 1, 0);
                ItemStack diamond = new ItemStack(Item.diamond);
                ItemStack chisel = new ItemStack(ChiselItemID, 1, 0);
                ItemStack stick = new ItemStack(Item.stick.itemID, 1, 0);
                GameRegistry.registerWorldGenerator(new TestOreWorldGen());
                GameRegistry.addShapelessRecipe(diamond, testIngot, chisel);
                GameRegistry.addSmelting(TestOreBlockID, testIngot, 300);
                GameRegistry.addRecipe(chisel, "  x", " y ", "y  ", 'x', testIngot, 'y', stick);
        }
        
        @EventHandler
        public void postInit(FMLPostInitializationEvent event) {
                // Stub Method
        }
}

 

And here is my Ore world gen class

 

package jason.test;

import java.util.Random;

import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
import net.minecraft.block.Block;
import jason.test.TestOre;

public class TestOreWorldGen implements IWorldGenerator {

@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
		IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch(world.provider.dimensionId){
case -1:
	generateNether(world, random, chunkX * 16, chunkZ * 16);
	break;
case 0:
	generateSurface(world, random, chunkX * 16, chunkZ * 16);
	break;
case 1:
	generateEnd(world, random, chunkX * 16, chunkZ * 16);
	break;
	}

}

private void generateEnd(World world, Random random, int i, int j) {}
private void generateSurface(World world, Random random, int i, int j) {
	for(int k = 0; k < 10; k++) {
		int TestOreXCoord = i + random.nextInt(16);
		int TestOreYCoord = random.nextInt(64);
		int TestOreZCoord = j + random.nextInt(16);

		(new WorldGenMinable(jason.test.Test.TestOreBlockID, 13)).generate(world, random, TestOreXCoord, TestOreYCoord, TestOreZCoord);
	}
}
private void generateNether(World world, Random random, int i, int j) {}

}

Link to comment
Share on other sites

Full log out of eclipse

 

Aug 03, 2013 8:42:37 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker
2013-08-03 20:42:37 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.35.804 for Minecraft 1.6.2 loading
2013-08-03 20:42:37 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Mac OS X:x86_64:10.9, installed at /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre
2013-08-03 20:42:37 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-08-03 20:42:37 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2013-08-03 20:42:39 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2013-08-03 20:42:39 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg
2013-08-03 20:42:40 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg
2013-08-03 20:42:40 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg
2013-08-03 20:42:41 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2013-08-03 20:42:41 [iNFO] [sTDOUT] Adding AccessTransformer: nei_at.cfg
2013-08-03 20:42:41 [iNFO] [sTDOUT] Adding Accesstransformer map: temp.dat
2013-08-03 20:42:41 [iNFO] [sTDOUT] Loaded 53 rules from AccessTransformer config file temp.dat
2013-08-03 20:42:42 [iNFO] [ForgeModLoader] Launching wrapped minecraft
2013-08-03 20:42:44 [iNFO] [sTDOUT] Inserted super call into net.minecraft.client.gui.inventory.GuiInventory.updateScreen
2013-08-03 20:42:44 [iNFO] [sTDOUT] awv was overriden from NotEnoughItems 1.6.0.6.jar
2013-08-03 20:42:44 [iNFO] [Minecraft-Client] Setting user: Player446
2013-08-03 20:42:44 [iNFO] [Minecraft-Client] (Session ID is null)
2013-08-03 20:42:45 [iNFO] [sTDOUT] Generated BlockMobSpawner helper method.
2013-08-03 20:42:47 [iNFO] [sTDOUT] Completely ignored arguments: [--username:jmanpenilla, --password:{LOL_NOPE}]
2013-08-03 20:42:47 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0
2013-08-03 20:42:48 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default
2013-08-03 20:42:48 [iNFO] [sTDOUT] 
2013-08-03 20:42:48 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-03 20:42:49 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-03 20:42:49 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-03 20:42:49 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-08-03 20:42:49 [iNFO] [sTDOUT] MinecraftForge v9.10.0.804 Initialized
2013-08-03 20:42:49 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.804 Initialized
2013-08-03 20:42:49 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-03 20:42:49 [iNFO] [sTDOUT] 
2013-08-03 20:42:49 [iNFO] [sTDOUT] Replaced 101 ore recipies
2013-08-03 20:42:49 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-08-03 20:42:49 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/config/logging.properties
2013-08-03 20:42:49 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-08-03 20:42:50 [iNFO] [ForgeModLoader] Searching /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/mods for mods
2013-08-03 20:42:50 [iNFO] [ForgeModLoader] Also searching /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/mods/1.6.2 for mods
2013-08-03 20:42:53 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 6 mods to load
2013-08-03 20:42:53 [iNFO] [mcp] Activating mod mcp
2013-08-03 20:42:53 [iNFO] [FML] Activating mod FML
2013-08-03 20:42:53 [iNFO] [Forge] Activating mod Forge
2013-08-03 20:42:53 [iNFO] [CodeChickenCore] Activating mod CodeChickenCore
2013-08-03 20:42:53 [iNFO] [NotEnoughItems] Activating mod NotEnoughItems
2013-08-03 20:42:53 [iNFO] [Test] Activating mod Test
2013-08-03 20:42:53 [WARNING] [Not Enough Items] Mod Not Enough Items is missing a pack.mcmeta file, things may not work well
2013-08-03 20:42:53 [WARNING] [Test] Mod Test is missing a pack.mcmeta file, things may not work well
2013-08-03 20:42:53 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Not Enough Items, FMLFileResourcePack:Test
2013-08-03 20:42:53 [iNFO] [sTDOUT] 
2013-08-03 20:42:53 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-08-03 20:42:54 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-08-03 20:42:54 [iNFO] [sTDOUT] 
2013-08-03 20:42:54 [iNFO] [sTDOUT] 
2013-08-03 20:42:54 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-03 20:42:54 [iNFO] [ForgeModLoader] FML has found a non-mod file CodeChickenCore 0.9.0.2.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2013-08-03 20:42:54 [iNFO] [ForgeModLoader] FML has found a non-mod file NotEnoughItems 1.6.0.6.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2013-08-03 20:42:54 [iNFO] [ForgeModLoader] FML has found a non-mod file CodeChickenLib-dev-1.6.2-1.0.0.11.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2013-08-03 20:42:54 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2013-08-03 20:42:54 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-03 20:42:54 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2013-08-03 20:42:54 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-03 20:42:54 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-03 20:42:54 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by net.minecraft.item.ItemSpade@18ac6680 while adding jason.test.TestIngot@5e7d6a27
2013-08-03 20:42:54 [iNFO] [fml.ItemTracker] The mod Test is overwriting existing item at 256 (net.minecraft.item.ItemSpade from Minecraft) with jason.test.TestIngot
2013-08-03 20:42:54 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by jason.test.TestIngot@5e7d6a27 while adding jason.test.Chisel@1725972c
2013-08-03 20:42:54 [iNFO] [fml.ItemTracker] The mod Test is overwriting existing item at 256 (jason.test.TestIngot from Test) with jason.test.Chisel
2013-08-03 20:42:54 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-08-03 20:42:54 [iNFO] [sTDOUT] 
2013-08-03 20:42:55 [iNFO] [sTDOUT] Removing TMI Uninstaller
2013-08-03 20:42:55 [iNFO] [sTDOUT] Deleting Dir: /Users/jason/Desktop/mcdev/1.6.2/mcp/eclipse/Minecraft/bin/net/minecraft/client/TMIUninstaller
2013-08-03 20:42:55 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 6 mods
2013-08-03 20:42:56 [WARNING] [Not Enough Items] Mod Not Enough Items is missing a pack.mcmeta file, things may not work well
2013-08-03 20:42:56 [WARNING] [Test] Mod Test is missing a pack.mcmeta file, things may not work well
2013-08-03 20:42:56 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Not Enough Items, FMLFileResourcePack:Test
2013-08-03 20:42:56 [iNFO] [sTDOUT] 
2013-08-03 20:42:56 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-08-03 20:42:56 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-08-03 20:42:56 [iNFO] [sTDOUT] 
2013-08-03 20:42:56 [iNFO] [sTDOUT] 
2013-08-03 20:42:56 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-03 20:42:56 [sEVERE] [Minecraft-Client] ########## GL ERROR ##########
2013-08-03 20:42:56 [sEVERE] [Minecraft-Client] @ Post startup
2013-08-03 20:42:56 [sEVERE] [Minecraft-Client] 1281: Invalid value
2013-08-03 20:42:56 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-03 20:42:56 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-03 20:42:56 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-03 20:42:57 [iNFO] [sTDOUT] 
2013-08-03 20:42:57 [sEVERE] [Minecraft-Client] Realms: Invalid session id
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting level test6
2013-08-03 20:43:03 [iNFO] [sTDOUT] Attempt 1...
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/data
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM-1
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM-1/data
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM1
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM1/data
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/level.dat
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/level.dat_mcr
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/NEI.dat
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/players
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.-1.-1.mca
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.-1.0.mca
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.0.-1.mca
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.0.0.mca
2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/session.lock
2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2
2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Generating keypair
2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Converting map!
2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Scanning folders...
2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Total conversion count is 0
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Loading dimension 0 (test7) (net.minecraft.server.integrated.IntegratedServer@525fda68)
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Loading dimension 1 (test7) (net.minecraft.server.integrated.IntegratedServer@525fda68)
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Loading dimension -1 (test7) (net.minecraft.server.integrated.IntegratedServer@525fda68)
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-08-03 20:43:20 [iNFO] [sTDERR] java.lang.NullPointerException
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:754)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.world.World.setBlock(World.java:557)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.world.gen.feature.WorldGenMinable.generate(WorldGenMinable.java:80)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at jason.test.TestOreWorldGen.generateSurface(TestOreWorldGen.java:38)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at jason.test.TestOreWorldGen.generate(TestOreWorldGen.java:22)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:259)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:292)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)
2013-08-03 20:43:20 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-03 20:43:20 [sEVERE] [Minecraft-Server] Encountered an unexpected exception NullPointerException
java.lang.NullPointerException
at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:754)
at net.minecraft.world.World.setBlock(World.java:557)
at net.minecraft.world.gen.feature.WorldGenMinable.generate(WorldGenMinable.java:80)
at jason.test.TestOreWorldGen.generateSurface(TestOreWorldGen.java:38)
at jason.test.TestOreWorldGen.generate(TestOreWorldGen.java:22)
at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:259)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153)
at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:292)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-03 20:43:20 [sEVERE] [Minecraft-Server] This crash report has been saved to: /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./crash-reports/crash-2013-08-03_20.43.20-server.txt
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Stopping server
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving players
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving worlds
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving chunks for level 'test7'/Overworld
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving chunks for level 'test7'/Nether
2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving chunks for level 'test7'/The End
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-08-03 20:43:20 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
2013-08-03 20:43:43 [iNFO] [Minecraft-Server] Stopping server
2013-08-03 20:43:43 [iNFO] [Minecraft-Server] Saving players
2013-08-03 20:43:43 [iNFO] [Minecraft-Server] Saving worlds
AL lib: (EE) alc_cleanup: 1 device not closed

 

I had to force quit the "Launch" application (minecraft) cause it was stuck on generating the world. No better result if I use a pre generated world.

Link to comment
Share on other sites

2013-08-03 20:43:20 [iNFO] [sTDERR] java.lang.NullPointerException

2013-08-03 20:43:20 [iNFO] [sTDERR] at jason.test.TestOreWorldGen.generate(TestOreWorldGen.java:22)

 

Check line 22 in the TestOreWorldGen class. You need to put a (variable == null) or (variable != null) check in there to make sure the variable is never null.

 

If you'd like a little more detailed help, can you post that class?

Link to comment
Share on other sites

I would recommend that you read more into java, null and such problems are quite common but usually easy to fix once you master the basics!

So if you master them before modding, you will save A LOT of time! ;)

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

that would work for minecraft modding, thats just basic java Alix :)

If it's not working for you it's probably because you need it to be non-null in order to do what you want!

 

I don't mean to be rude, this is all intended to help you:

please learn some more basic programming, it will benefit you GREATLY! :D

If you need tips on where to start check out http://docs.oracle.com/javase/tutorial/ and

http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

well it should work as in not crash if you check for != null as in if (worldProvider != null) that shouldnt crash it.

if it still gives an Null pointer exception you have a different problem.

 

But if the problem is that nothing gets generate then I can understand the issue a bit better :P

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

if it still gives an NPE look at the line the NPE is thrown at, if it's not clear why it's null set a break point and check it out :)

 

If both those fails, share the updated code and let us have a look ;)

But try the above first ^^

If you guys dont get it.. then well ya.. try harder...

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
    • When I came across the 'Exit Code: I got a 1 error in my Minecraft mods, so I decided to figure out what was wrong. First, I took a look at the logs. In the mods folder (usually where you'd find logs or crash reports), I found the latest.log file or the corresponding crash report. I read it through carefully, looking for any lines with errors or warnings. Then I checked the Minecraft Forge support site, where you can often find info on what causes errors and how to fix them. I then disabled half of my mods and tried running the game. If the error disappeared, it meant that the problem was with the disabled mod. I repeated this several times to find the problem mod.
    • I have no idea - switch to a pre-configured modpack and use it as working base    
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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