Jump to content

1.6 Eclipse BiomeGen Errors


fisherman77

Recommended Posts

Hello. This is the second time that I have gotten this error report. It seems to happen whenever I try to add world generation. Even when I take all the mods affiliated with world generation out of the build path, it still happens.

 

Here is the error:

 

 

Aug 5, 2013 11:32:55 AM net.minecraft.launchwrapper.LogWrapper log
INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker
2013-08-05 11:32:55 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.35.804 for Minecraft 1.6.2 loading
2013-08-05 11:32:55 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_51, running on Mac OS X:x86_64:10.8.4, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
2013-08-05 11:32:55 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-08-05 11:32:55 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg
2013-08-05 11:32:55 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg
2013-08-05 11:32:56 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2013-08-05 11:32:56 [iNFO] [ForgeModLoader] Launching wrapped minecraft
2013-08-05 11:32:58 [iNFO] [Minecraft-Client] Setting user: Player896
2013-08-05 11:32:58 [iNFO] [Minecraft-Client] (Session ID is null)
2013-08-05 11:32:59 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0
2013-08-05 11:33:00 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default
2013-08-05 11:33:01 [iNFO] [sTDOUT] 
2013-08-05 11:33:01 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-05 11:33:01 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-05 11:33:01 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-05 11:33:01 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-08-05 11:33:01 [iNFO] [sTDOUT] MinecraftForge v9.10.0.804 Initialized
2013-08-05 11:33:01 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.804 Initialized
2013-08-05 11:33:01 [iNFO] [sTDOUT] Replaced 101 ore recipies
2013-08-05 11:33:02 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-08-05 11:33:02 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/Buck/Desktop/Coding/Java/Mod Making/Forge 1.6.2/forge/mcp/jars/config/logging.properties
2013-08-05 11:33:02 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-08-05 11:33:02 [iNFO] [ForgeModLoader] Searching /Users/Buck/Desktop/Coding/Java/Mod Making/Forge 1.6.2/forge/mcp/jars/mods for mods
2013-08-05 11:33:02 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-05 11:33:02 [iNFO] [sTDOUT] 
2013-08-05 11:33:05 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 5 mods to load
2013-08-05 11:33:05 [iNFO] [mcp] Activating mod mcp
2013-08-05 11:33:05 [iNFO] [FML] Activating mod FML
2013-08-05 11:33:05 [iNFO] [Forge] Activating mod Forge
2013-08-05 11:33:05 [iNFO] [GlacierIce] Activating mod GlacierIce
2013-08-05 11:33:05 [iNFO] [TutorialMod] Activating mod TutorialMod
2013-08-05 11:33:05 [WARNING] [Glacier Ice] Mod Glacier Ice is missing a pack.mcmeta file, things may not work well
2013-08-05 11:33:05 [WARNING] [Tutorial Mod] Mod Tutorial Mod is missing a pack.mcmeta file, things may not work well
2013-08-05 11:33:05 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Glacier Ice, FMLFileResourcePack:Tutorial Mod
2013-08-05 11:33:06 [iNFO] [sTDOUT] 
2013-08-05 11:33:06 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-08-05 11:33:06 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-08-05 11:33:06 [iNFO] [sTDOUT] 
2013-08-05 11:33:06 [iNFO] [sTDOUT] 
2013-08-05 11:33:06 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-05 11:33:06 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2013-08-05 11:33:06 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2013-08-05 11:33:06 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-05 11:33:06 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-05 11:33:06 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-05 11:33:06 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-08-05 11:33:06 [iNFO] [sTDOUT] 
2013-08-05 11:33:06 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/BlueGlacierIce.png
2013-08-05 11:33:07 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/GreenGlacierIce.png
2013-08-05 11:33:07 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: tutorialmod:textures/items/Lime.png
2013-08-05 11:33:07 [iNFO] [sTDOUT] [Glacier Ice] Glacier Biome enabled.
2013-08-05 11:33:07 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 5 mods
2013-08-05 11:33:07 [WARNING] [Glacier Ice] Mod Glacier Ice is missing a pack.mcmeta file, things may not work well
2013-08-05 11:33:07 [WARNING] [Tutorial Mod] Mod Tutorial Mod is missing a pack.mcmeta file, things may not work well
2013-08-05 11:33:07 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Glacier Ice, FMLFileResourcePack:Tutorial Mod
2013-08-05 11:33:07 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: tutorialmod:textures/items/Lime.png
2013-08-05 11:33:07 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/BlueGlacierIce.png
2013-08-05 11:33:07 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/GreenGlacierIce.png
2013-08-05 11:33:08 [iNFO] [sTDOUT] 
2013-08-05 11:33:08 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-08-05 11:33:08 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-08-05 11:33:08 [iNFO] [sTDOUT] 
2013-08-05 11:33:08 [iNFO] [sTDOUT] 
2013-08-05 11:33:08 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-05 11:33:08 [sEVERE] [Minecraft-Client] ########## GL ERROR ##########
2013-08-05 11:33:08 [sEVERE] [Minecraft-Client] @ Post startup
2013-08-05 11:33:08 [sEVERE] [Minecraft-Client] 1281: Invalid value
2013-08-05 11:33:08 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-05 11:33:08 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-05 11:33:08 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-05 11:33:08 [iNFO] [sTDOUT] 
2013-08-05 11:33:09 [sEVERE] [Minecraft-Client] Realms: Invalid session id
2013-08-05 11:33:15 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2
2013-08-05 11:33:15 [iNFO] [Minecraft-Server] Generating keypair
2013-08-05 11:33:16 [iNFO] [Minecraft-Server] Converting map!
2013-08-05 11:33:16 [iNFO] [Minecraft-Server] Scanning folders...
2013-08-05 11:33:16 [iNFO] [Minecraft-Server] Total conversion count is 0
2013-08-05 11:33:16 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@13110f31)
2013-08-05 11:33:16 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@13110f31)
2013-08-05 11:33:16 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@13110f31)
2013-08-05 11:33:16 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-08-05 11:33:17 [iNFO] [Minecraft-Server] Preparing spawn area: 8%
2013-08-05 11:33:18 [iNFO] [Minecraft-Server] Preparing spawn area: 18%
2013-08-05 11:33:19 [iNFO] [sTDERR] java.lang.NullPointerException
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.World.getTopSolidOrLiquidBlock(World.java:2004)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:219)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:196)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.biome.BiomeGenBase.decorate(BiomeGenBase.java:366)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.gen.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:573)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:258)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:292)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)
2013-08-05 11:33:19 [iNFO] [sTDERR]    at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-05 11:33:19 [sEVERE] [Minecraft-Server] Encountered an unexpected exception NullPointerException
java.lang.NullPointerException
   at net.minecraft.world.World.getTopSolidOrLiquidBlock(World.java:2004)
   at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:219)
   at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:196)
   at net.minecraft.world.biome.BiomeGenBase.decorate(BiomeGenBase.java:366)
   at net.minecraft.world.gen.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:573)
   at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:258)
   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-05 11:33:19 [sEVERE] [Minecraft-Server] This crash report has been saved to: /Users/Buck/Desktop/Coding/Java/Mod Making/Forge 1.6.2/forge/mcp/jars/./crash-reports/crash-2013-08-05_11.33.19-server.txt
2013-08-05 11:33:19 [iNFO] [Minecraft-Server] Stopping server
2013-08-05 11:33:19 [iNFO] [Minecraft-Server] Saving players
2013-08-05 11:33:19 [iNFO] [Minecraft-Server] Saving worlds
2013-08-05 11:33:19 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-08-05 11:33:19 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-08-05 11:33:19 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-08-05 11:33:21 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-08-05 11:33:21 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-08-05 11:33:21 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-08-05 11:33:21 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
2013-08-05 11:33:29 [iNFO] [Minecraft-Server] Stopping server
2013-08-05 11:33:29 [iNFO] [Minecraft-Server] Saving players
2013-08-05 11:33:29 [iNFO] [Minecraft-Server] Saving worlds
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

WorldGenGrapeTree.java:

 

package fisherman77.zeuscraft.common.worldgen;

import java.util.Random;
import cpw.mods.fml.common.IWorldGenerator;
import fisherman77.zeuscraft.common.Zeuscraft;
import fisherman77.zeuscraft.common.blocks.BlockGrapeSapling;
import net.minecraft.block.Block;
import net.minecraft.block.BlockSapling;
import net.minecraft.util.Direction;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.common.ForgeDirection;

public class WorldGenGrapeTree extends WorldGenerator implements IWorldGenerator
{
    /** The minimum height of a generated tree. */
    private final int minTreeHeight;
    /** True if this tree should grow Vines. */
    private final boolean vinesGrow;
    /** The metadata value of the wood to use in tree generation. */
    private final int metaWood;
    /** The metadata value of the leaves to use in tree generation. */
    private final int metaLeaves;
    public WorldGenGrapeTree(boolean par1)
    {
        this(par1, 3, 0, 0, false);
    }
    public WorldGenGrapeTree(boolean par1, int par2, int par3, int par4, boolean par5)
    {
        super(par1);
        this.minTreeHeight = par2;
        this.metaWood = par3;
        this.metaLeaves = par4;
        this.vinesGrow = par5;
    }
    public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
    {
        int l = par2Random.nextInt(3) + this.minTreeHeight;
        boolean flag = true;
        if (par4 >= 1 && par4 + l + 1 <= 256)
        {
            int i1;
            byte b0;
            int j1;
            int k1;
            for (i1 = par4; i1 <= par4 + 1 + l; ++i1)
            {
                b0 = 1;
                if (i1 == par4)
                {
                    b0 = 0;
                }
                if (i1 >= par4 + 1 + l - 2)
                {
                    b0 = 2;
                }
                for (int l1 = par3 - b0; l1 <= par3 + b0 && flag; ++l1)
                {
                    for (j1 = par5 - b0; j1 <= par5 + b0 && flag; ++j1)
                    {
                        if (i1 >= 0 && i1 < 256)
                        {
                            k1 = par1World.getBlockId(l1, i1 -1, j1);
                            /** Custom grass block **/
                            Block block = Block.grass;
                            if (k1 != 0 && !block.isLeaves(par1World, l1, i1, j1)
                            
                            /** Custom grass block **/
                            && k1 != Block.grass.blockID
                            && k1 != Block.dirt.blockID
                            && !block.isWood(par1World, l1, i1, j1))
                            {
                                flag = false;
                            }
                        }
                        else
                        {
                        flag = false;
                        }
                    }
                }
            }
            if (!flag)
            {
                return false;
            }
            else
            {
                i1 = par1World.getBlockId(par3, par4 - 1, par5);
                
                /** Custom grass block **/
                Block soil = Block.grass;
                
                /** Custom Sapling block **/
                boolean isSoil = (soil != null && soil.canSustainPlant(par1World, par3, par4 - 1, par5, ForgeDirection.UP, (BlockGrapeSapling)Zeuscraft.GrapeSapling));
                if (isSoil && par4 < 256 - l - 1)
                {
                    soil.onPlantGrow(par1World, par3, par4 - 1, par5, par3, par4, par5);
                    b0 = 3;
                    byte b1 = 0;
                    int i2;
                    int j2;
                    int k2;
                    for (j1 = par4 - b0 + l; j1 <= par4 + l; ++j1)
                    {
                        k1 = j1 - (par4 + l);
                        i2 = b1 + 1 - k1 / 2;
                        for (j2 = par3 - i2; j2 <= par3 + i2; ++j2)
                        {
                            k2 = j2 - par3;
                            for (int l2 = par5 - i2; l2 <= par5 + i2; ++l2)
                            {
                                int i3 = l2 - par5;
                                if (Math.abs(k2) != i2 || Math.abs(i3) != i2 || par2Random.nextInt(2) != 0 && k1 != 0)
                                {
                                    int j3 = par1World.getBlockId(j2, j1, l2);
                                    Block block = Block.blocksList[j3];
                                    if (block == null || block.canBeReplacedByLeaves(par1World, j2, j1, l2))
                                    {
                                        /** Custom leaf block **/
                                        this.setBlockAndMetadata(par1World, j2, j1, l2, Zeuscraft.GrapeLeaves.blockID, this.metaLeaves);
                                    }
                                }
                            }
                        }
                    }
                    for (j1 = 0; j1 < l; ++j1)
                    {
                        k1 = par1World.getBlockId(par3, par4 + j1, par5);
                        Block block = Block.blocksList[k1];
                        if (k1 == 0 || block == null || block.isLeaves(par1World, par3, par4 + j1, par5))
                        {
                            /** Custom Log block **/
                            this.setBlockAndMetadata(par1World, par3, par4 + j1, par5, Zeuscraft.GrapeLog.blockID, this.metaWood);
                        }
                    }
                    if (par2Random.nextInt(5) == 0 && l > 5)
                    {
                        for (j1 = 0; j1 < 2; ++j1)
                        {
                            for (k1 = 0; k1 < 4; ++k1)
                            {
                                if (par2Random.nextInt(4 - j1) == 0)
                                {
                                    i2 = par2Random.nextInt(3);
                                    this.setBlockAndMetadata(par1World, par3 + Direction.offsetX[Direction.rotateOpposite[k1]], par4 + l - 5 + j1, par5 + Direction.offsetZ[Direction.rotateOpposite[k1]], Block.cocoaPlant.blockID, i2 << 2 | k1);
                                }
                            }
                        }
                    }
                }
                return true;
            }
        }
        return flag;
    }
    
    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world,
    IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        String s = world.getBiomeGenForCoords(chunkX + 8, chunkZ + .biomeName;
        if (s.startsWith("Forest"))
        {


            for(int i = 0; i < 10; i++)
            {
                
                int xCoord = chunkX + random.nextInt(16);
                int yCoord = random.nextInt(16);
                int zCoord = chunkZ + random.nextInt(16);
                
                /** Custom WorldGenTutorialTree block **/
                (new WorldGenGrapeTree(false, 9, 0, 0, false)).generate(world, random, xCoord, yCoord, zCoord);
            }
        }
        
    }
}

 

Link to comment
Share on other sites

 

 

for(int i = 0; i < 10; i++)

            {

               

                int xCoord = chunkX + random.nextInt(16);

                int yCoord = random.nextInt(16);

                int zCoord = chunkZ + random.nextInt(16);

               

                /** Custom WorldGenTutorialTree block **/

                (new WorldGenGrapeTree(false, 9, 0, 0, false)).generate(world, random, xCoord, yCoord, zCoord);

            }

 

 

Well first, you are creating 10 instances of your class within the class.

And your "grape tree", should it spawn at the lava level ? underground ?

Link to comment
Share on other sites

 

 

for(int i = 0; i < 10; i++)

            {

               

                int xCoord = chunkX + random.nextInt(16);

                int yCoord = random.nextInt(16);

                int zCoord = chunkZ + random.nextInt(16);

               

                /** Custom WorldGenTutorialTree block **/

                (new WorldGenGrapeTree(false, 9, 0, 0, false)).generate(world, random, xCoord, yCoord, zCoord);

            }

 

 

Well first, you are creating 10 instances of your class within the class.

And your "grape tree", should it spawn at the lava level ? underground ?

 

So then, should I raise the y coordinates to 256 to where I end up with something like this instead?

 

int yCoord = random.nextInt(256);

 

EDIT: Thank you, that helped. Now I'm getting an error with a different part of the code where I'm trying to make sure that the block below is dirt:

 

Error:

 

 

Aug 5, 2013 2:07:36 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker
2013-08-05 14:07:37 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.35.804 for Minecraft 1.6.2 loading
2013-08-05 14:07:37 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_51, running on Mac OS X:x86_64:10.8.4, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
2013-08-05 14:07:37 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-08-05 14:07:38 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg
2013-08-05 14:07:38 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg
2013-08-05 14:07:39 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2013-08-05 14:07:40 [iNFO] [ForgeModLoader] Launching wrapped minecraft
2013-08-05 14:07:43 [iNFO] [Minecraft-Client] Setting user: Player209
2013-08-05 14:07:44 [iNFO] [Minecraft-Client] (Session ID is null)
2013-08-05 14:07:46 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0
2013-08-05 14:07:48 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default
2013-08-05 14:07:49 [iNFO] [sTDOUT] 
2013-08-05 14:07:49 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-05 14:07:49 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-05 14:07:49 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-05 14:07:50 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-08-05 14:07:50 [iNFO] [sTDOUT] MinecraftForge v9.10.0.804 Initialized
2013-08-05 14:07:50 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.804 Initialized
2013-08-05 14:07:51 [iNFO] [sTDOUT] Replaced 101 ore recipies
2013-08-05 14:07:51 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-05 14:07:51 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-08-05 14:07:51 [iNFO] [sTDOUT] 
2013-08-05 14:07:51 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/Buck/Desktop/Coding/Java/Mod Making/Forge 1.6.2/forge/mcp/jars/config/logging.properties
2013-08-05 14:07:51 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-08-05 14:07:51 [iNFO] [ForgeModLoader] Searching /Users/Buck/Desktop/Coding/Java/Mod Making/Forge 1.6.2/forge/mcp/jars/mods for mods
2013-08-05 14:07:55 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 6 mods to load
2013-08-05 14:07:55 [iNFO] [mcp] Activating mod mcp
2013-08-05 14:07:55 [iNFO] [FML] Activating mod FML
2013-08-05 14:07:55 [iNFO] [Forge] Activating mod Forge
2013-08-05 14:07:55 [iNFO] [GlacierIce] Activating mod GlacierIce
2013-08-05 14:07:55 [iNFO] [TutorialMod] Activating mod TutorialMod
2013-08-05 14:07:55 [iNFO] [Zeuscraft] Activating mod Zeuscraft
2013-08-05 14:07:55 [WARNING] [Glacier Ice] Mod Glacier Ice is missing a pack.mcmeta file, things may not work well
2013-08-05 14:07:55 [WARNING] [Tutorial Mod] Mod Tutorial Mod is missing a pack.mcmeta file, things may not work well
2013-08-05 14:07:55 [WARNING] [Zeuscraft] Mod Zeuscraft is missing a pack.mcmeta file, things may not work well
2013-08-05 14:07:55 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Glacier Ice, FMLFileResourcePack:Tutorial Mod, FMLFileResourcePack:Zeuscraft
2013-08-05 14:07:55 [iNFO] [sTDOUT] 
2013-08-05 14:07:55 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-08-05 14:07:56 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-08-05 14:07:56 [iNFO] [sTDOUT] 
2013-08-05 14:07:56 [iNFO] [sTDOUT] 
2013-08-05 14:07:56 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-05 14:07:56 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2013-08-05 14:07:56 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2013-08-05 14:07:56 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-05 14:07:56 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-05 14:07:56 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-05 14:07:56 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-08-05 14:07:56 [iNFO] [sTDOUT] 
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/BlueGlacierIce.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/AltarSide.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/Marble.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeSapling.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/GreenGlacierIce.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/AltarTopBottom.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeWoodTop.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeWoodSide.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeLeaves.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/MarbleSmooth.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Scepter.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: tutorialmod:textures/items/Lime.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/PearlWater.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/PearlThunder.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Grapes.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Wine.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Goblet.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/PearlNether.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/ReedPipes.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Thunderbolt.png
2013-08-05 14:07:57 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Trident.png
2013-08-05 14:07:57 [iNFO] [sTDOUT] [Glacier Ice] Glacier Biome enabled.
2013-08-05 14:07:58 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 6 mods
2013-08-05 14:07:58 [WARNING] [Glacier Ice] Mod Glacier Ice is missing a pack.mcmeta file, things may not work well
2013-08-05 14:07:58 [WARNING] [Tutorial Mod] Mod Tutorial Mod is missing a pack.mcmeta file, things may not work well
2013-08-05 14:07:58 [WARNING] [Zeuscraft] Mod Zeuscraft is missing a pack.mcmeta file, things may not work well
2013-08-05 14:07:58 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Glacier Ice, FMLFileResourcePack:Tutorial Mod, FMLFileResourcePack:Zeuscraft
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Scepter.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: tutorialmod:textures/items/Lime.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/PearlWater.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/PearlThunder.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Grapes.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Wine.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Goblet.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/PearlNether.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/ReedPipes.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Thunderbolt.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/items/Trident.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/BlueGlacierIce.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/AltarSide.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/Marble.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeSapling.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: glacierice:textures/blocks/GreenGlacierIce.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/AltarTopBottom.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeWoodTop.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeWoodSide.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/GrapeLeaves.png
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: zeuscraft:textures/blocks/MarbleSmooth.png
2013-08-05 14:07:58 [iNFO] [sTDOUT] 
2013-08-05 14:07:58 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-08-05 14:07:58 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-08-05 14:07:58 [iNFO] [sTDOUT] 
2013-08-05 14:07:58 [iNFO] [sTDOUT] 
2013-08-05 14:07:58 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] ########## GL ERROR ##########
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] @ Post startup
2013-08-05 14:07:58 [sEVERE] [Minecraft-Client] 1281: Invalid value
2013-08-05 14:07:58 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-08-05 14:07:58 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-08-05 14:07:58 [iNFO] [sTDOUT] OpenAL initialized.
2013-08-05 14:07:59 [iNFO] [sTDOUT] 
2013-08-05 14:08:01 [sEVERE] [Minecraft-Client] Realms: Invalid session id
2013-08-05 14:08:11 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2
2013-08-05 14:08:11 [iNFO] [Minecraft-Server] Generating keypair
2013-08-05 14:08:11 [iNFO] [Minecraft-Server] Converting map!
2013-08-05 14:08:11 [iNFO] [Minecraft-Server] Scanning folders...
2013-08-05 14:08:11 [iNFO] [Minecraft-Server] Total conversion count is 0
2013-08-05 14:08:11 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@cdfa65c)
2013-08-05 14:08:11 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@cdfa65c)
2013-08-05 14:08:11 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@cdfa65c)
2013-08-05 14:08:11 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-08-05 14:08:12 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Exception getting block type in world
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.World.getBlockId(World.java:421)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at fisherman77.zeuscraft.common.worldgen.WorldGenGrapeTree.generate(WorldGenGrapeTree.java:66)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at fisherman77.zeuscraft.common.worldgen.WorldGenGrapeTree.generate(WorldGenGrapeTree.java:175)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:259)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:292)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-05 14:08:12 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.World.getTopSolidOrLiquidBlock(World.java:2004)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:219)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:196)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.biome.BiomeGenBase.decorate(BiomeGenBase.java:366)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:573)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:258)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:166)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.World.getChunkFromChunkCoords(World.java:527)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	at net.minecraft.world.World.getBlockId(World.java:412)
2013-08-05 14:08:12 [iNFO] [sTDERR] 	... 11 more
2013-08-05 14:08:12 [sEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException
net.minecraft.util.ReportedException: Exception getting block type in world
at net.minecraft.world.World.getBlockId(World.java:421)
at fisherman77.zeuscraft.common.worldgen.WorldGenGrapeTree.generate(WorldGenGrapeTree.java:66)
at fisherman77.zeuscraft.common.worldgen.WorldGenGrapeTree.generate(WorldGenGrapeTree.java:175)
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)
Caused by: java.lang.NullPointerException
at net.minecraft.world.World.getTopSolidOrLiquidBlock(World.java:2004)
at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:219)
at net.minecraft.world.biome.BiomeDecorator.decorate(BiomeDecorator.java:196)
at net.minecraft.world.biome.BiomeGenBase.decorate(BiomeGenBase.java:366)
at net.minecraft.world.gen.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:573)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:258)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:166)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:527)
at net.minecraft.world.World.getBlockId(World.java:412)
... 11 more
2013-08-05 14:08:12 [sEVERE] [Minecraft-Server] This crash report has been saved to: /Users/Buck/Desktop/Coding/Java/Mod Making/Forge 1.6.2/forge/mcp/jars/./crash-reports/crash-2013-08-05_14.08.12-server.txt
2013-08-05 14:08:12 [iNFO] [Minecraft-Server] Stopping server
2013-08-05 14:08:12 [iNFO] [Minecraft-Server] Saving players
2013-08-05 14:08:12 [iNFO] [Minecraft-Server] Saving worlds
2013-08-05 14:08:12 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-08-05 14:08:12 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-08-05 14:08:12 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-08-05 14:08:12 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-08-05 14:08:12 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-08-05 14:08:12 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-08-05 14:08:12 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
2013-08-05 14:08:19 [iNFO] [Minecraft-Server] Stopping server
2013-08-05 14:08:19 [iNFO] [Minecraft-Server] Saving players
2013-08-05 14:08:19 [iNFO] [Minecraft-Server] Saving worlds
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

The troubled lines:

Line 66:

k1 = par1World.getBlockId(l1, i1 -1, j1);

 

Line 175:

(new WorldGenGrapeTree(false, 9, 0, 0, false)).generate(world, random, xCoord, yCoord, zCoord);

 

Entire code available in first post.

Link to comment
Share on other sites

No actually, I would go with this:

int xCoord, yCoord, zCoord;
for(int i = 0; i < 10; i++)
{
       xCoord = chunkX + random.nextInt(16);
       yCoord = 50 + random.nextInt(206);//try generate between 50 and 256
       zCoord = chunkZ + random.nextInt(16);
if(generate(world, random, xCoord, yCoord, zCoord))
       break;
}

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

×
×
  • Create New...

Important Information

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