Jump to content

[1.5.2]Memory Heap


vandy22

Recommended Posts

Ok so I switched to a config as my id's insted of hardcoded Id's and now all of a sudden I get this error:

 

Eclipse Console Log:

2013-05-26 09:06:05 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.2.684 for Minecraft 1.5.2 loading
2013-05-26 09:06:05 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
2013-05-26 09:06:05 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-05-26 09:06:07 [iNFO] [sTDOUT] 229 recipes
2013-05-26 09:06:07 [iNFO] [sTDOUT] 27 achievements
2013-05-26 09:06:07 [iNFO] [Minecraft-Client] Setting user: Player952
2013-05-26 09:06:07 [iNFO] [sTDOUT] (Session ID is -)
2013-05-26 09:06:07 [iNFO] [sTDERR] Client asked for parameter: server
2013-05-26 09:06:08 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-05-26 09:06:08 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-05-26 09:06:08 [iNFO] [sTDOUT] MinecraftForge v7.8.0.684 Initialized
2013-05-26 09:06:08 [iNFO] [ForgeModLoader] MinecraftForge v7.8.0.684 Initialized
2013-05-26 09:06:08 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-05-26 09:06:08 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-05-26 09:06:08 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.2\jars\config\logging.properties
2013-05-26 09:06:08 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-05-26 09:06:08 [iNFO] [ForgeModLoader] Searching C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.2\jars\mods for mods
2013-05-26 09:06:09 [iNFO] [ForgeModLoader] Attempting to reparse the mod container bin
2013-05-26 09:06:10 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-05-26 09:06:10 [iNFO] [mcp] Activating mod mcp
2013-05-26 09:06:10 [iNFO] [FML] Activating mod FML
2013-05-26 09:06:10 [iNFO] [Forge] Activating mod Forge
2013-05-26 09:06:10 [iNFO] [shineToolPack] Activating mod ShineToolPack
2013-05-26 09:06:10 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-05-26 09:06:11 [iNFO] [sTDOUT] 
2013-05-26 09:06:11 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-05-26 09:06:11 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-05-26 09:06:11 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-05-26 09:06:11 [iNFO] [sTDOUT] OpenAL initialized.
2013-05-26 09:06:11 [iNFO] [sTDOUT] 
2013-05-26 09:06:12 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at java.lang.Class.getField(Unknown Source)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:443)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:732)
2013-05-26 09:06:12 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-05-26 09:06:12 [iNFO] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled
2013-05-26 09:06:12 [iNFO] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-05-26 09:06:12 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-05-26 09:06:13 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by net.minecraft.item.ItemSpade@6162259e while adding net.shinemod.ShineItem@7293da04
2013-05-26 09:06:13 [iNFO] [fml.ItemTracker] The mod ShineToolPack is overwriting existing item at 256 (net.minecraft.item.ItemSpade from Minecraft) with net.shinemod.ShineItem
2013-05-26 09:06:13 [iNFO] [sTDOUT] CONFLICT @ 622 item slot already occupied by net.shinemod.ShineItem@26fd94a1 while adding net.shinemod.ShineItem@5228ea06
2013-05-26 09:06:13 [iNFO] [fml.ItemTracker] The mod ShineToolPack is overwriting existing item at 878 (net.shinemod.ShineItem from ShineToolPack) with net.shinemod.ShineItem
2013-05-26 09:06:13 [iNFO] [sTDOUT] CONFLICT @ 631 item slot already occupied by net.shinemod.ShineItem@7c1c5a0d while adding net.shinemod.ShineItem@295c4b23
2013-05-26 09:06:13 [iNFO] [fml.ItemTracker] The mod ShineToolPack is overwriting existing item at 887 (net.shinemod.ShineItem from ShineToolPack) with net.shinemod.ShineItem
2013-05-26 09:06:13 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-05-26 09:06:13 [iNFO] [sTDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-05-26 09:06:13 [iNFO] [sTDERR] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-05-26 09:06:13 [iNFO] [sTDERR] 	at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-05-26 09:06:13 [iNFO] [sTDERR] 	at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-05-26 09:06:13 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-05-26 09:06:13 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/mod/CrypticBlock.png, but that file does not exist. Ignoring.
2013-05-26 09:06:13 [iNFO] [sTDERR] java.io.IOException: Server returned HTTP response code: 503 for URL: http://s3.amazonaws.com/MinecraftResources/
2013-05-26 09:06:13 [iNFO] [sTDERR] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-05-26 09:06:13 [iNFO] [sTDERR] 	at net.minecraft.util.ThreadDownloadResources.run(ThreadDownloadResources.java:57)
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-05-26 09:06:14 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-05-26 09:06:25 [iNFO] [sTDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-05-26 09:06:25 [iNFO] [sTDERR] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-05-26 09:06:25 [iNFO] [sTDERR] 	at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-05-26 09:06:25 [iNFO] [sTDERR] 	at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-05-26 09:06:25 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-05-26 09:06:25 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.5.2
2013-05-26 09:06:25 [iNFO] [Minecraft-Server] Generating keypair
2013-05-26 09:06:26 [iNFO] [ForgeModLoader] Loading dimension 0 (LALALA) (net.minecraft.server.integrated.IntegratedServer@de20431)
2013-05-26 09:06:26 [iNFO] [ForgeModLoader] Loading dimension 21 (LALALA) (net.minecraft.server.integrated.IntegratedServer@de20431)
2013-05-26 09:06:26 [iNFO] [ForgeModLoader] Loading dimension 20 (LALALA) (net.minecraft.server.integrated.IntegratedServer@de20431)
2013-05-26 09:06:26 [iNFO] [ForgeModLoader] Loading dimension 1 (LALALA) (net.minecraft.server.integrated.IntegratedServer@de20431)
2013-05-26 09:06:26 [iNFO] [ForgeModLoader] Loading dimension -1 (LALALA) (net.minecraft.server.integrated.IntegratedServer@de20431)
2013-05-26 09:06:26 [iNFO] [ForgeModLoader] Loading dimension 22 (LALALA) (net.minecraft.server.integrated.IntegratedServer@de20431)
2013-05-26 09:06:26 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-05-26 09:06:27 [iNFO] [sTDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-05-26 09:06:27 [iNFO] [sTDERR] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-05-26 09:06:27 [iNFO] [sTDERR] 	at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-05-26 09:06:27 [iNFO] [sTDERR] 	at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-05-26 09:06:27 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-05-26 09:06:30 [iNFO] [Minecraft-Client] Stopping!
2013-05-26 09:06:41 [iNFO] [sTDERR] java.lang.OutOfMemoryError: Java heap space
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at java.util.Arrays.copyOf(Unknown Source)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at java.util.ArrayList.grow(Unknown Source)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at java.util.ArrayList.add(Unknown Source)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.util.AABBPool.getAABB(AABBPool.java:51)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.block.Block.getCollisionBoundingBoxFromPool(Block.java:593)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.block.Block.addCollisionBoxesToList(Block.java:559)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1683)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:178)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:383)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:675)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
2013-05-26 09:06:41 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-05-26 09:06:41 [sEVERE] [Minecraft-Server] Encountered an unexpected exception OutOfMemoryError
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.util.ArrayList.grow(Unknown Source)
at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
at java.util.ArrayList.add(Unknown Source)
at net.minecraft.util.AABBPool.getAABB(AABBPool.java:51)
at net.minecraft.block.Block.getCollisionBoundingBoxFromPool(Block.java:593)
at net.minecraft.block.Block.addCollisionBoxesToList(Block.java:559)
at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1683)
at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:178)
at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:383)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:675)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-05-26 09:06:41 [sEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.2\jars\.\crash-reports\crash-2013-05-26_09.06.41-server.txt
2013-05-26 09:06:41 [iNFO] [Minecraft-Server] Stopping server
2013-05-26 09:06:41 [iNFO] [Minecraft-Server] Saving players
2013-05-26 09:06:41 [iNFO] [Minecraft-Server] Saving worlds
2013-05-26 09:06:41 [iNFO] [Minecraft-Server] Saving chunks for level 'LALALA'/Overworld
2013-05-26 09:06:44 [iNFO] [Minecraft-Server] Saving chunks for level 'LALALA'/Nether
2013-05-26 09:06:44 [iNFO] [Minecraft-Server] Saving chunks for level 'LALALA'/The End
2013-05-26 09:06:44 [iNFO] [Minecraft-Server] Saving chunks for level 'LALALA'/Eclipse
2013-05-26 09:06:44 [iNFO] [Minecraft-Server] Saving chunks for level 'LALALA'/Shine
2013-05-26 09:06:44 [iNFO] [Minecraft-Server] Saving chunks for level 'LALALA'/Cryptic
2013-05-26 09:06:50 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-05-26 09:06:50 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-05-26 09:06:50 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-05-26 09:06:50 [iNFO] [ForgeModLoader] Unloading dimension 21
2013-05-26 09:06:50 [iNFO] [ForgeModLoader] Unloading dimension 20
2013-05-26 09:06:50 [iNFO] [ForgeModLoader] Unloading dimension 22
2013-05-26 09:06:50 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue
2013-05-26 09:06:50 [sEVERE] [ForgeModLoader] 
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
ShineToolPack{1.5.2} [shineToolPack] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
2013-05-26 09:06:50 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available.
2013-05-26 09:06:50 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid
2013-05-26 09:06:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:134)
2013-05-26 09:06:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:800)
2013-05-26 09:06:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:468)
2013-05-26 09:06:50 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:531)
2013-05-26 09:06:50 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-05-26 09:06:50 [iNFO] [sTDOUT] 
2013-05-26 09:06:50 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-05-26 09:06:50 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-05-26 09:06:50 [iNFO] [sTDOUT] 
2013-05-26 09:15:26 [iNFO] [sTDERR] Someone is closing me!

 

I believe its something about a memory heap, I have no clue what the problem is, not even a cent of a clue. I hope someone can help! Thanks

 

Edit:Im not sure if this is any help, but like I said I just added a new config, and when I was looking the error up I found this forum: http://www.minecraftforum.net/topic/1749220-forgeminecraft-151-crash/

 

It says there, that he fixed it not by changing the amount of memory being used(Which I already tried, no luck)but by doing something with the config, something with the load. I dont know what thats supposed to mean, but apparently it might help, also his was the closest version I saw to mine, so I think my error is something with the config, since it was working fine before without it. Thanks

Link to comment
Share on other sites

  • 2 weeks later...

I have my config so much tied into my mod, that I don't think I can do without it. Im getting this error consistently, everytime I try to boot up a world it takes me back the the main screen then crashes. I have over 100 news items/ore/dimensions, and taking out a config would be a long time.

Link to comment
Share on other sites

yes here is my main mod file: It looks a bit different than normal as I have classes then load methods in those which I register in my main mod file, and Just incase  you think this may be the problem but I can assure you it wasent working before I organized my mod. Anyways here is the main mod file:

 

package net.shinemod;

import java.io.File;
import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityEggInfo;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.EnumHelper;
import net.shinemod.common.CommonProxy.CommonProxy;
import net.shinemod.configuration.ConfigBlockRegisters;
import net.shinemod.configuration.ConfigLanguageRegisters;
import net.shinemod.configuration.ConfigRecipeRegisters;
import net.shinemod.configuration.ConfigSmeltRegisters;
import net.shinemod.configuration.ConfigurationHandler;
import net.shinemod.configuration.ConfigurationInitializing_EntityRegistering;
import net.shinemod.configuration.ConfigurationInts;
import net.shinemod.configuration.ItemBlockHolder;
import net.shinemod.creatures.ShineChicken;
import net.shinemod.creatures.ShineCow;
import net.shinemod.creatures.ShineCreeper;
import net.shinemod.creatures.ShinePig;
import net.shinemod.creatures.ShineSheep;
import net.shinemod.creatures.ShineSkeleton;
import net.shinemod.creatures.ShineSpider;
import net.shinemod.creatures.ShineZombie;
import net.shinemod.dimensions.BiomeCryptic;
import net.shinemod.dimensions.BiomeEclipse;
import net.shinemod.dimensions.BiomeShine;
import net.shinemod.dimensions.CrypticWorldProvider;
import net.shinemod.dimensions.EclipsePortal;
import net.shinemod.dimensions.EclipseWorldProvider;
import net.shinemod.dimensions.ShrinePortal;
import net.shinemod.dimensions.WorldGenShineTrees;
import net.shinemod.dimensions.WorldProviderShrine;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.shinemod.dimensions.CrypticPortal;

@Mod(modid = "ShineToolPack", name = "ShineToolPack", version = "1.5.2")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)


public class mod_shinepack { 


//CreativeTabs
public static CreativeTabs tabJVCraft = new CreativeTabJVCraft(CreativeTabs.getNextID(), "tabJVCraft", "JVCraft");

@SidedProxy(clientSide = "net.shinemod.client.ClientProxy.ClientProxy", serverSide = "net.shinemod.common.CommonProxy.CommonProxy")
public static CommonProxy proxy;
       
@PreInit
public void preInit(FMLPreInitializationEvent event) {
	ConfigurationHandler.init(new File(event.getModConfigurationDirectory().getAbsoluteFile()+ "ShineToolPack" + ".cfg"));

}	 

@Init
public void load(FMLInitializationEvent event){

//Dimension
DimensionManager.registerProviderType(20, WorldProviderShrine.class, false);
DimensionManager.registerDimension(20, 20);
DimensionManager.registerProviderType(21, EclipseWorldProvider.class, false);
DimensionManager.registerDimension(21, 21);
DimensionManager.registerProviderType(22, CrypticWorldProvider.class, false);
DimensionManager.registerDimension(22, 22); 

/*Entity Registers *\
 *******************
 */
//\\EntityRegistersShine.RegisterEntitys();

/*Configuration Inizilazers *\
 *******************
 */
ConfigurationInitializing_EntityRegistering.Initalize();
/*Configuration BlockRegisters *\
 *******************
 */
ConfigBlockRegisters.blockRegisters();
/*Configuration SmeltRegisters *\
 *******************
 */
ConfigSmeltRegisters.SmeltRegisters();
/*Configuration RecipeRegisters *\
 *******************
 */
ConfigRecipeRegisters.RecipeRegisters();
/*Configuration LanguageRegisters *\
 *******************
 */
 ConfigLanguageRegisters.LanguageRegisters();

 //Ore Generation
GameRegistry.registerWorldGenerator(new OreWorldGen());
GameRegistry.registerWorldGenerator(new WorldGenShineTrees());
//GameRegistry.registerWorldGenerator(new WorldGenShine2(false));

registerEntityEgg(ShineSpider.class, 0x25630C, 0xEB46E0);
registerEntityEgg(ShineCow.class, 0x35630C, 0xFB46E0);
registerEntityEgg(ShinePig.class, 0x25630C, 0xEB46E0);
registerEntityEgg(ShineSheep.class, 0x35630C, 0xFB46E0);
registerEntityEgg(ShineCreeper.class, 0x25630C, 0xEB46E0);
registerEntityEgg(ShineZombie.class, 0x35630C, 0xFB46E0);
registerEntityEgg(ShineSkeleton.class, 0x25630C, 0xEB46E0);
registerEntityEgg(ShineChicken.class, 0x35630C, 0xFB46E0);

}

public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor)
{
      if(ConfigurationInts.RespawnEggs == true){  
	int id = getUniqueEntityId();
        EntityList.IDtoClassMapping.put(id, entity);
        EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
      }
}


public static int getUniqueEntityId(){
    if(ConfigurationInts.RespawnEggs == true){
do
    {
            ItemBlockHolder.startEntityId++;
    }
    while(EntityList.getStringFromID(ItemBlockHolder.startEntityId) != null);
   
   
    }
    	return ItemBlockHolder.startEntityId;
    }

}			



 

[btw the defualt ID's are hardcoded for how everlong until there changed in eclipse if thats what you mean. I mean from a players perspectaive there already programmed with hardcoded ID's but a programmers perspectaive is you can change them in the code whenever. Also it seems like my config doesnt auto regenerate if I change the id's in eclipse. If I change the id's in the config it will change Id's in the game though. Its not a problem it just whenever I change a ID in eclipse I have to delete my config so it makes a new one with the right hardcoded id's in eclipse. I hope you understand what Im saying. If you dont everything that is in the brakets doesnt matter just read the top.]

Link to comment
Share on other sites

So you can see all the files? Uhm not currently but I could upload a folder containing all of it to Git. Would that helP?

Yes. I need to see all of your config code. I have my doubts as to whether you're using it right anyway...

 

Besides, you can't ship the config file with your mod.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

  • 2 weeks later...

So you can see all the files? Uhm not currently but I could upload a folder containing all of it to Git. Would that helP?

Yes. I need to see all of your config code. I have my doubts as to whether you're using it right anyway...

 

Besides, you can't ship the config file with your mod.

 

Sorry to revive this old thread a bit, but you actually can.

 

<ClassName>.class.getClassLoader().getResourceAsStream("filename.extension");

 

You can even extend that to extracting other mod dependencies from your package into the mods folder if you feel so inclined!

 

A nice little method to do so, localName is the name of the file inside the package, filesystemLocation is where you want to put it once it is loaded. (Ensure you include extensions)

    private static void extractFile(String localName, String filesystemLocation) throws IOException
    {
        File target = new File(filesystemLocation);
        if (target.exists())
            return;

        FileOutputStream out = new FileOutputStream(target);
        InputStream in = LoadShippedConfig.class.getClassLoader().getResourceAsStream(localName);

        byte[] buf = new byte[8*1024];
        int len;
        while((len = in.read(buf)) != -1)
        {
            out.write(buf,0,len);
        }
        out.close();
            in.close();
    }

Link to comment
Share on other sites

Someone please help. I'm updating to 1.6 so ill see if that helps but for now if anyone can help that would be awesome!

 

As for the memory heap, just add an argument to the startup parameters of minecraft

-Xms=1024m -Xmx=1024m 

Link to comment
Share on other sites

  • 2 weeks later...

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

    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • 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.
  • Topics

×
×
  • Create New...

Important Information

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