Jump to content

vandy22

Members
  • Posts

    224
  • Joined

  • Last visited

Everything posted by vandy22

  1. I dont use config files, but in my code I know its under 255.
  2. See thats the strange thing. IT IS!
  3. [glow=red,2,300]BUMP[/glow]
  4. So Im making a mod with a multiple dimensions I have 2 dimensions already done and on my 3rd one, im getting this error: Minecraft log Error: Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Failed to start game A full error report has been saved to C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.2\jars\.\crash-reports\crash-2013-05-19_13.14.48-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash --- BEGIN ERROR REPORT fa6b0592 -------- Full report at: C:\Users\jacks_000\Documents\My Games\Minecraft\Modding\MCP 1.5.2\jars\.\crash-reports\crash-2013-05-19_13.14.48-client.txt Please show that file to Mojang, NOT just this screen! Generated 5/19/13 1:14 PM -- System Details -- Details: Minecraft Version: 1.5.2 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_13, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 763366112 bytes (728 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized ShineToolPack{1.5.2} [shineToolPack] (bin) Unloaded->Constructed->Pre-initialized->Errored LWJGL: 2.4.2 OpenGL: AMD Radeon HD 7570 GL version 4.2.11750 Compatibility Profile Context, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null java.lang.NullPointerException at net.shinemod.dimensions.BiomeCryptic.<init>(BiomeCryptic.java:34) at net.shinemod.mod_tutorial.load(mod_tutorial.java:341) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:732) at java.lang.Thread.run(Unknown Source) --- END ERROR REPORT edff6e42 ---------- Heres the lines it refers too in my code: at net.shinemod.dimensions.BiomeCryptic.<init>(BiomeCryptic.java:34) at net.shinemod.mod_tutorial.load(mod_tutorial.java:341) BiomeCryptic.java:34(my biome class) this.fillerBlock = (byte) mod_tutorial.CDirt.blockID; mod_tutorial.java:341(my main mod file) Cryptic = (new BiomeCryptic(25));
  5. I was thinking about doing that!! Can you plese show an example of what you did?
  6. Ok so In my mod I need my ore to be generating in my custom dimension. Heres what I thought might work for code, because it works for the surface so try plugging in my dimension Ids in the switch statement and go from there. package net.shinemod; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class OreWorldGen implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId) { case -1: generateNether(); break; case 0: generateSurface(world, random, chunkX*16, chunkZ*16); break; case 1: generateEnd(); break; case 20: generateShine(world, random, chunkX * 16, chunkZ * 16); break; case 21: generateEclipse(world, random, chunkX * 16, chunkZ * 16); break; } } private void generateEclipse(World world, Random rand, int chunkX, int chunkZ) { //BlackWhite ORE for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(64); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.EclipseBlock.blockID, 10)).generate(world, rand, randPosX, randPosY, randPosZ); } } private void generateShine(World world, Random rand, int chunkX, int chunkZ) { //BlackWhite ORE for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(20); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.BlackWhiteOre.blockID, 2)).generate(world, rand, randPosX, randPosY, randPosZ); } for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(16); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.RainbowOre.blockID, 1)).generate(world, rand, randPosX, randPosY, randPosZ); } for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(64); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.EclipseBlock.blockID, 10)).generate(world, rand, randPosX, randPosY, randPosZ); } } public void generateNether() { } public void generateSurface(World world, Random rand, int chunkX, int chunkZ) { // 30 veins of ore per chunk //YELLOW ORE for (int i = 0; i < 12; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(64); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.YellowOre.blockID, ).generate(world, rand, randPosX, randPosY, randPosZ); } //BLUE ORE for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(60); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.BlueOre.blockID, 7)).generate(world, rand, randPosX, randPosY, randPosZ); } //RED ORE for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(54); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.RedOre.blockID, 6)).generate(world, rand, randPosX, randPosY, randPosZ); } //GREEN ORE for (int i = 0; i < 8; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(46); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.GreenOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } //Silver ORE for (int i = 0; i < 11; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(64); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.SilverOre.blockID, ).generate(world, rand, randPosX, randPosY, randPosZ); } //PINK ORE for (int i = 0; i < 7; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(42); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.PinkOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ); } //PURPLE ORE for (int i = 0; i < 5; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(37); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.PurpleOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } //BLACK ORE for (int i = 0; i < 5; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(34); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.BlackOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } } public void generateEnd() { } } Note that overworld generation does work, yet none of my dimensions do. Also since my dimension has a custom biome, only 1 Custom biome I figured I might as well try to generate ores from my biome using the decorate method. package net.shinemod.dimensions; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.entity.monster.EntityCreeper; import net.minecraft.entity.monster.EntityEnderman; import net.minecraft.entity.monster.EntitySkeleton; import net.minecraft.entity.monster.EntitySlime; import net.minecraft.entity.monster.EntitySpider; import net.minecraft.entity.monster.EntityZombie; import net.minecraft.entity.passive.EntityBat; import net.minecraft.entity.passive.EntityChicken; import net.minecraft.entity.passive.EntityCow; import net.minecraft.entity.passive.EntityPig; import net.minecraft.entity.passive.EntitySheep; import net.minecraft.entity.passive.EntitySquid; import net.minecraft.src.ModLoader; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.SpawnListEntry; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraft.world.gen.feature.WorldGenTaiga1; import net.minecraft.world.gen.feature.WorldGenTaiga2; import net.minecraft.world.gen.feature.WorldGenerator; import net.shinemod.mod_tutorial; 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; public class BiomeShine extends BiomeGenBase { public BiomeShine(int par1) { super(par1); this.setBiomeName("Shine"); this.fillerBlock = (byte) mod_tutorial.SDirt.blockID; this.topBlock = (byte) mod_tutorial.SGrass.blockID; this.maxHeight = 0.55f; this.minHeight = 0; this.theBiomeDecorator.treesPerChunk = 3; /**Adding My Monsters/Creatures**/ this.spawnableCreatureList.add(new SpawnListEntry(ShineCow.class, 8, 4, 4)); this.spawnableMonsterList.add(new SpawnListEntry(ShineSpider.class, 10, 4, 4)); this.spawnableCreatureList.add(new SpawnListEntry(ShineSheep.class, 10, 4, 4)); this.spawnableMonsterList.add(new SpawnListEntry(ShineCreeper.class, 10, 4, 4)); this.spawnableCreatureList.add(new SpawnListEntry(ShinePig.class, 10, 4, 4)); this.spawnableCreatureList.add(new SpawnListEntry(ShineChicken.class, 10, 4, 4)); this.spawnableMonsterList.add(new SpawnListEntry(ShineZombie.class, 10, 4, 4)); this.spawnableMonsterList.add(new SpawnListEntry(ShineSkeleton.class, 10, 4, 4)); /**Despawning Other Monsters**/ this.spawnableCreatureList.remove(new SpawnListEntry(EntitySheep.class, 12, 4, 4)); this.spawnableCreatureList.remove(new SpawnListEntry(EntityPig.class, 10, 4, 4)); this.spawnableCreatureList.remove(new SpawnListEntry(EntityChicken.class, 10, 4, 4)); this.spawnableCreatureList.remove(new SpawnListEntry(EntityCow.class, 8, 4, 4)); this.spawnableMonsterList.remove(new SpawnListEntry(EntitySpider.class, 10, 4, 4)); this.spawnableMonsterList.remove(new SpawnListEntry(EntityZombie.class, 10, 4, 4)); this.spawnableMonsterList.remove(new SpawnListEntry(EntitySkeleton.class, 10, 4, 4)); this.spawnableMonsterList.remove(new SpawnListEntry(EntitySlime.class, 10, 4, 4)); this.spawnableMonsterList.remove(new SpawnListEntry(EntityEnderman.class, 1, 1, 4)); this.spawnableWaterCreatureList.remove(new SpawnListEntry(EntitySquid.class, 10, 4, 4)); this.spawnableCaveCreatureList.remove(new SpawnListEntry(EntityBat.class, 10, 8, ); this.spawnableCreatureList.clear(); this.spawnableMonsterList.clear(); } public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenShineTrees() : new WorldGenShine2(false)); } public void decorate(World world, Random rand, int chunkX, int chunkZ) { //BlackWhite ORE for (int i = 0; i < 10; i++) { //16x16 area up to y = 64 int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(64); int randPosZ = chunkZ + rand.nextInt(16); // 10 blocks per vein (new WorldGenMinable(mod_tutorial.EclipseBlock.blockID, 10)).generate(world, rand, randPosX, randPosY, randPosZ); } } } And no luck came from that. If anyone could please help me, theres no videos or tutorials on how to do this. I would appericate anyone willing to help. Thanks!
  7. Ok so in my dimension, whenever I enter the dimension theres no portal behind me!! Also if I try to create a portal in the dimension it doesnt work, does anyone know how to fix this?!?! Thanks!
  8. http://i1172.photobucket.com/albums/r566/vandy2224/ShineToolPackBanner_zps21a775c7.png[/img] Have you ever wanted a mod with super cool awesome tools, armors, and a custom dimension?? Then this is the mod for you! This mod contains many, many cool features. This is also a brand new mod, so any beta testing and if you find and error and can get back to me that would be great! This mod requires forge. Whatever version your using of my mod you need to be using the highest forge build for that version! Features: - 10 different types of ores, armors, and tools. - A brand new dimension with all custom features. - All new mobs for the dimension - Paxels, aka(All weapons/tools in one)! - Custom blocks for each ore. - Brand new item called "ToolFragment" for each type of color. - And many more features! Recipes/Smelting Downloads: Photos: I hope to have someone do a spotlight for this mod! I will give credit to them on the forum and to anyone else who does. Please inbox me or comment and I will put you name down after watching the video once. Can/Cannots: You cannot reuse this script, it is illegal and not permitted. You can make videos of this content, make sure you credit vandy2224! You can write reviews with screenshots, make sure you credit vandy2224!
  9. Yeah I think this should work. Also which meta is which side, and on the block what side is what? So like if side == 1, will that be the top bottom or some random side?! Edit: I don't totally understand yet how to use textures and metadata for them. I wish I knew or if there was a tutorial out there on it. Also whenever I add code to the Icon getIcon method it says "unreachable code" even if I use all param's or not.
  10. Well lets think, if I wanted a log that would mean just the top and sides are different. But I also need a grass block, which means i need different top and bottom but all sides remain the same.
  11. Ok so I updated to the most recent version of forge for 1.5.1 and the whole texturing system is kind of new. Im making logs for my dimension trees, and in recent versions this kind of code would work fine: package tutorial; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.util.Icon; public class SLog extends Block{ public SLog(int par1, Material par2Material) { super(par1, par2Material); } private Icon sides,bottom,top; public void registerIcon(IconRegister par1IconRegister) { this.sides = par1IconRegister.registerIcon("shinetree3"); this.bottom = par1IconRegister.registerIcon("shinetree2"); this.top = par1IconRegister.registerIcon("shinetree1"); } public Icon getBlockTextureFromSideAndMetadata(int i, int j) { if (i == 0) { return bottom; } if (i == 1) { return top; } else { return sides; } } } In the newer version the code doesnt work like that, here is the VANILLA coded log class is like: package net.minecraft.block; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.util.List; import java.util.Random; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; import net.minecraft.util.Icon; import net.minecraft.world.World; public class BlockLog extends Block { /** The type of tree this log came from. */ public static final String[] woodType = new String[] {"oak", "spruce", "birch", "jungle"}; public static final String[] treeTextureTypes = new String[] {"tree_side", "tree_spruce", "tree_birch", "tree_jungle"}; @SideOnly(Side.CLIENT) private Icon[] iconArray; @SideOnly(Side.CLIENT) private Icon tree_top; protected BlockLog(int par1) { super(par1, Material.wood); this.setCreativeTab(CreativeTabs.tabBlock); } /** * The type of render function that is called for this block */ public int getRenderType() { return 31; } /** * Returns the quantity of items to drop on block destruction. */ public int quantityDropped(Random par1Random) { return 1; } /** * Returns the ID of the items to drop on destruction. */ public int idDropped(int par1, Random par2Random, int par3) { return Block.wood.blockID; } /** * ejects contained items into the world, and notifies neighbours of an update, as appropriate */ public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6) { byte b0 = 4; int j1 = b0 + 1; if (par1World.checkChunksExist(par2 - j1, par3 - j1, par4 - j1, par2 + j1, par3 + j1, par4 + j1)) { for (int k1 = -b0; k1 <= b0; ++k1) { for (int l1 = -b0; l1 <= b0; ++l1) { for (int i2 = -b0; i2 <= b0; ++i2) { int j2 = par1World.getBlockId(par2 + k1, par3 + l1, par4 + i2); if (Block.blocksList[j2] != null) { Block.blocksList[j2].beginLeavesDecay(par1World, par2 + k1, par3 + l1, par4 + i2); } } } } } } /** * Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata */ public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) { int j1 = par9 & 3; byte b0 = 0; switch (par5) { case 0: case 1: b0 = 0; break; case 2: case 3: b0 = 8; break; case 4: case 5: b0 = 4; } return j1 | b0; } @SideOnly(Side.CLIENT) /** * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata */ public Icon getIcon(int par1, int par2) { int k = par2 & 12; int l = par2 & 3; return k == 0 && (par1 == 1 || par1 == 0) ? this.tree_top : (k == 4 && (par1 == 5 || par1 == 4) ? this.tree_top : (k == 8 && (par1 == 2 || par1 == 3) ? this.tree_top : this.iconArray[l])); } /** * Determines the damage on the item the block drops. Used in cloth and wood. */ public int damageDropped(int par1) { return par1 & 3; } /** * returns a number between 0 and 3 */ public static int limitToValidMetadata(int par0) { return par0 & 3; } @SideOnly(Side.CLIENT) /** * returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks) */ public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) { par3List.add(new ItemStack(par1, 1, 0)); par3List.add(new ItemStack(par1, 1, 1)); par3List.add(new ItemStack(par1, 1, 2)); par3List.add(new ItemStack(par1, 1, 3)); } /** * Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage * and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null. */ protected ItemStack createStackedBlock(int par1) { return new ItemStack(this.blockID, 1, limitToValidMetadata(par1)); } @SideOnly(Side.CLIENT) /** * When this method is called, your block should register all the icons it needs with the given IconRegister. This * is the only chance you get to register icons. */ public void registerIcons(IconRegister par1IconRegister) { this.tree_top = par1IconRegister.registerIcon("tree_top"); this.iconArray = new Icon[treeTextureTypes.length]; for (int i = 0; i < this.iconArray.length; ++i) { this.iconArray[i] = par1IconRegister.registerIcon(treeTextureTypes[i]); } } @Override public boolean canSustainLeaves(World world, int x, int y, int z) { return true; } @Override public boolean isWood(World world, int x, int y, int z) { return true; } } I tried editing this and adding in my stuff but it ended up being a failure, and my game crashed, or the texture wasent working. Ive looked everywhere on youtube and forms but no one seems to have the code for multi-textured blocks in the updated 1.5.1 forge and mcp versions. Hope you can help! Thanks!
  12. Ok turns out I had a bunch of methods that were not needed like you said, so I hope that fixed that problem.
  13. Here is my zip file: https://www.dropbox.com/s/sfrsf1sbxk8n2hd/ShineToolPackOK.zip All my files in eclipse are located in a package called tutorial, then it splits off in tutorial in to client and common. Heres a screen shot of my eclipse, look at the bottom: https://www.dropbox.com/s/m9djwfoh19kmbdc/EclipsePackages.png Honestly I think all my files are located in the right place! I really hope this is a fixable error. The thing that upsets me the most is that people have dimensions working perfectly fine in 1.5.1 and Im not sure how to get around this error! Hope you can help! Thanks! Remember if you need any code from me to figure out the solution, just ask and I will gladly give you that! Thanks!
  14. Ok so I updated to the latest 1.5.1 version, and turns out it works!!! I recompiled my mod, and rebofuscated and now I get this error: Minecraft log(Highlighted areas i figured important?): Here is the line I highlighted in the spoiler error code that refers to my mod_tutorial class(line 276): DimensionManager.registerProviderType(20, WorldProviderShrine.class, false); Just in case here is my WorldProviderClass also(WorldProviderShine): package tutorial; import java.util.Random; import net.minecraft.util.ChunkCoordinates; import net.minecraft.world.WorldProvider; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.WorldChunkManagerHell; import net.minecraft.world.chunk.IChunkProvider; import net.minecraftforge.common.DimensionManager; public class WorldProviderShrine extends WorldProvider { //The WorldProvider covers all the basics of the dimension. Look in WorldProviderBase.java and //WorldProvider.java for all the potential qualities you can assign to your dimension. //The save file will be called DIM65 (DIM + id number). public String getDimensionName(){ return "Shine"; } /** public static WorldProvider getProviderForDimension(int par0) { return DimensionManager.createProviderFor(20); } **/ public boolean renderClouds() { return false; } public boolean renderEndSky() { return false; } public boolean renderVoidFog() { return true; } public float setMoonSize() { return 1.0F; } public float setSunSize() { return 1.5F; } public boolean renderStars() { return true; } public String getRespawnMessage() { return " Leaving The Shrine Dimension"; } //You can use an existing WorldChunkManager, or create your own. You must create your own to //add multiple unique biomes to a dimension. @Override public void registerWorldChunkManager() { worldChunkMgr = new WorldChunkManagerHell(mod_tutorial.Shine, 1.0F, 0.0F); //Your Biome goes here this.hasNoSky = false; } //This is where you define your terrain generator. public IChunkProvider createChunkGenerator() { return new ChunkProviderShrine(worldObj, worldObj.getSeed(), false); } //Note that, if you respawn in the dimension, you will end up at the coordinates of your //overworld spawn point, not at the location of your first entrance to the dimension or //something like that. Note also that beds don't work if you cannot respawn in the dimension. public boolean canRespawnHere() { return false; } public float calculateCelestialAngleShine(long par1, float par3) { int j = (int)(par1 % 24000L); float f1 = ((float)j + par3) / 24000.0F - 0.25F; if (f1 < 0.0F) { ++f1; } if (f1 > 1.0F) { --f1; } float f2 = f1; f1 = 1.0F - (float)((Math.cos((double)f1 * Math.PI) + 1.0D) / 2.0D); f1 = f2 + (f1 - f2) / 3.0F; return f1; } public String func_80007_l() { return null; } } I hope you guys can help! Thanks! Remember if you need any code from me to figure out the solution, just ask and I will gladly give you that! Thanks!
  15. Ok thanks, im still getting this error though in my world: 2013-05-09 08:08:21 [sEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly 2013-05-09 08:08:21 [sEVERE] [ForgeModLoader] The world 4bb18127 (Jackson3) has leaked. I know, i know its a hole different problem, but it should be fixable, im just not sure how to fix it. My dimension was working fine for 50 World Generations!!! Then for some reason it started only generating like 4 chunks and was laggy and such. Also, i spawn first in my dimension insted of the overworld which is a big no, no for me but i dont know how to fix it. Thanks!
  16. It actually doesnt come from copy and pasting tutorials its called looking at the WorldProvider and adding in the methods you want for yours....... Im not really sure what you mean. All of these methods are in WorldProvider that i use. New name/signature? Im not sure what im supposed to be looking for. And i do get an error on getChunkProvider() when i add @Override in my WorldProviderShrine, even though its a method in WorldProvider.
  17. Anyday now................
  18. Seriosuly... How long do i have to wait?
  19. bump
  20. bump
  21. Randomly ive been getting these errors of leaking worlds with my mod, but i really didnt pay attention and then now, my dimension only generates like 5 chunks and is buggy and all that. Also for some reason I now spawn there insted of starting by spawning in the overworld. That is a HUGE problem for my mod! I really hope you can help guys! I hate when things happen and I don't know what causes them, it bothers me so much! And for me just to get on the computer after testing it like 10 minutes ago with it working, then this and im not sure why the random spawning now in my dimension, which like I said is a HUGE problem. I really hope you can help! Thank you!
  22. Randomly ive been getting these errors of leaking worlds with my mod, but i really didnt pay attention and then now, my dimension only generates like 5 chunks and is buggy and all that. Also for some reason I now spawn there insted of starting by spawning in the overworld. That is a HUGE problem for my mod! I really hope you can help guys! I hate when things happen and I don't know what causes them, it bothers me so much! And for me just to get on the computer after testing it like 10 minutes ago with it working, then this and im not sure why the random spawning now in my dimension, which like I said is a HUGE problem. I really hope you can help! Thank you!
  23. Please someone help!!!! Ive waited and yet no help!! If you know anything or if you have a working dimension that has been rebofuscated and recompiled please tell me what yours looks like or if you got this error, how you fixed it!!!!!!!
  24. Please someone help!!!! Ive waited and yet no help!! If you know anything or if you have a working dimension that has been rebofuscated and recompiled please tell me what yours looks like or if you got this error, how you fixed it!!!!!!!
  25. BUMP
×
×
  • Create New...

Important Information

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