Jump to content

Androm

Members
  • Posts

    58
  • Joined

  • Last visited

Posts posted by Androm

  1. I didn´t find it. My log (skip the errors with unable loading pngs, because it is something I forgot to add a texture.):

     

     

     

    [14:50:58] [main/INFO]: Setting user: ForgeDevName

    [14:50:58] [Client thread/INFO]: LWJGL Version: 2.9.1

    [14:51:01] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MhytRPG

    [14:51:02] [sound Library Loader/INFO]: Sound engine started

    [14:51:03] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

    [14:51:03] [Client thread/ERROR]: Using missing texture, unable to load mhytrpg:textures/items/boundedChain.png

    java.io.FileNotFoundException: mhytrpg:textures/items/boundedChain.png

    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

    at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]

    at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]

    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

    at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]

    at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]

    at net.minecraft.client.Minecraft.startGame(Minecraft.java:593) [Minecraft.class:?]

    at net.minecraft.client.Minecraft.run(Minecraft.java:941) [Minecraft.class:?]

    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]

    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]

    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

    [14:51:03] [Client thread/INFO]: Created: 256x256 textures/items-atlas

    [14:51:03] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MhytRPG

    [14:51:03] [Client thread/ERROR]: Using missing texture, unable to load mhytrpg:textures/items/boundedChain.png

    java.io.FileNotFoundException: mhytrpg:textures/items/boundedChain.png

    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

    at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]

    at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]

    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

    at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]

    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:653) [Minecraft.class:?]

    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]

    at net.minecraft.client.Minecraft.startGame(Minecraft.java:596) [Minecraft.class:?]

    at net.minecraft.client.Minecraft.run(Minecraft.java:941) [Minecraft.class:?]

    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]

    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]

    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

    [14:51:03] [Client thread/INFO]: Created: 256x256 textures/items-atlas

    [14:51:03] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

    [14:51:04] [sound Library Loader/INFO]: Sound engine started

    [14:51:05] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

    [14:51:06] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

    [14:51:07] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

    [14:51:07] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

    [14:51:08] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

    [14:51:08] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

    [14:51:08] [server thread/INFO]: Generating keypair

    [14:51:08] [server thread/INFO]: Converting map!

    [14:51:08] [server thread/INFO]: Scanning folders...

    [14:51:08] [server thread/INFO]: Total conversion count is 0

    [14:51:09] [server thread/INFO]: Preparing start region for level 0

    [14:51:09] [server thread/ERROR]: Encountered an unexpected exception

    java.lang.NullPointerException

    at de.MhytRPG.www.worldgen.WorldGen.generateSurface(WorldGen.java:47) ~[WorldGen.class:?]

    at de.MhytRPG.www.worldgen.WorldGen.generate(WorldGen.java:26) ~[WorldGen.class:?]

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

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

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

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

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

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

    at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:315) ~[MinecraftServer.class:?]

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

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

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

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

    [14:51:09] [server thread/ERROR]: This crash report has been saved to: C:\Users\Knirps\Desktop\forge 1.7.10\eclipse\.\crash-reports\crash-2014-07-09_14.51.09-server.txt

     

     

  2. I get an error:

     

    my WorldGen code:

    package de.MhytRPG.www.worldgen;
    
    import java.util.Random;
    
    import cpw.mods.fml.common.IWorldGenerator;
    import de.MhytRPG.www.MhytRPG;
    import de.MhytRPG.www.structures.Schematic;
    import de.MhytRPG.www.structures.SchematicLoader;
    import net.minecraft.block.Block;
    import net.minecraft.init.Blocks;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenLiquids;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import net.minecraft.world.gen.feature.WorldGenerator;
    
    public class WorldGen 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 rand, int chunkX, int chunkZ) {}
    
    private void generateSurface(World world, Random rand, int chunkX, int chunkZ) {
            for(int k = 0; k < 10; k++){
            	int firstBlockXCoord = chunkX + rand.nextInt(16);
            	int firstBlockYCoord = rand.nextInt(200);
            	int firstBlockZCoord = chunkZ + rand.nextInt(16);
            	
            	(new WorldGenLiquids(MhytRPG.blockgoldenwater)).generate(world, rand, firstBlockXCoord, firstBlockYCoord, firstBlockZCoord);
            }
            for(int chanceForChuk = 0; chanceForChuk < 1; chanceForChuk++) {
            	Schematic spring = SchematicLoader.get("spring.schematic");
            	
            	int firstBlockXCoord = chunkX + rand.nextInt(16);
            	int firstBlockYCoord = rand.nextInt(200);
            	int firstBlockZCoord = chunkZ + rand.nextInt(16);
            	
            	 int i = 0;
                 for(int cy = 0; cy < spring.height; cy++)
                 for(int cz = 0; cz < spring.length; cz++)
                 for(int cx = 0; cx < spring.width; cx++){
    
                         Block b = Block.getBlockById(spring.blocks[i]);
                         if(b!= Blocks.air)
                         {
                             world.setBlockToAir(cx + firstBlockXCoord , cy + firstBlockYCoord, cz + firstBlockZCoord);
                             world.setBlock(cx + firstBlockXCoord, cy + firstBlockYCoord, cz + firstBlockZCoord, b, spring.data[i] , 2);
                         }
                         i++;
                 }
            }
    }
    
    private void generateNether(World world, Random rand, int chunkX, int chunkZ) {}
    }
    

     

     

     

     

    Description: Exception in server tick loop

     

    java.lang.NullPointerException: Exception in server tick loop

    at de.MhytRPG.www.worldgen.WorldGen.generateSurface(WorldGen.java:52)

    at de.MhytRPG.www.worldgen.WorldGen.generate(WorldGen.java:26)

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

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

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

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

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

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

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

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

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

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

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

     

     

     

    My Line 52 is:              for(int cy = 0; cy < spring.height; cy++)

     

    I don´t really know why, is the spring.height = 0 ?

  3. Oh, forget my code, i just write before I test. I read your code carefully but because of your rotationthings i am not sure about it, so how do you can generate a structure with the Schematic and blocks[] and data[] ?

     

    I used Integer.parseINt(String.valueOf(spring.data)); because i needed an integer and Integer.something returns an integer, but i didn´t saw a byte - convert, so i tried to make first a string from the data stored in data and then I tried to get the value of this string.. Very complicated..

  4. So this would be right in the WorldGenerate method:

    for(int chanceForChuk = 0; chanceForChuk < 1; chanceForChuk++) {
            	Schematic spring = SchematicLoader.get("spring");
            	 int i = 0;
                 for(int cy = 0; cy < spring.height; cy++)
                 for(int cz = 0; cz < spring.length; cz++)
                 for(int cx = 0; cx < spring.width; cx++){
    
                         Block b = Block.getBlockById(spring.blocks[i]);
                         if(b!= Blocks.air)
                         {
                             world.setBlockToAir(cx , cy, cz);
                             world.setBlock(cx, cy, cz, b, Integer.parseInt(String.valueOf(spring.data[i])), 2);
                         }
                         i++;
                 }
            }
    

    Or would it be other if cx, cy, cz are my coordinates ? I am new with structure spawning in the world... Thanks for your help

  5. Hello modders,

    I need help with my mod. Can you read schematic files and generate them randomly in the world without converting schematic to java code ? Maybe it is good to  read the schematic file into bytes and then set arrays or HashMaps ? Or best with inputStream? And how would you do it ? If you have an idea and a code for the beginning please help me. Thank you.

×
×
  • Create New...

Important Information

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