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.

Announcements



×
×
  • Create New...

Important Information

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