-
Posts
812 -
Joined
-
Last visited
-
Days Won
11
Everything posted by planetguy
-
They both look good. Maybe the green one should be summoned as a minion by spellcasters and the purple one a hostile version that lives in the underworld? Oh, and Markarthian, if you figure out why you can't build a version to distribute, please tell me. I think I'm in the exact same situation with Gizmos. (v0.5 is the classes copied and pasted from the eclipse/bin folder, and it didn't work when I tested it.)
-
Poryy is banned for having a mustache beyond allowable size under the International Facial Hair Non-Proliferation Treaty of 1586.
-
I found it. I was using a block ID of zero because I never initialized the value. Oops...
-
I'll look into it. Edit: Fixed (I think...) with v0.4.1
-
Might I recommend technicpack.net?
-
Vanilla flower fix (Works 1.5, shouldn't break. Reuploaded with source code) Several mods add many flowers of their own. However, more flower mods dilute the chance of vanilla flower spawns to almost nothing. Also, it deeply annoys me that dandelions are twice as common as roses, especially when I need roses. This mod adds a configurable amount of spawn weight to vanilla flowers. Roses are by default weighted 10, dandelions by default 20. Note: This mod can only increase spawn rates of vanilla flowers when bonemeal is used.
-
Block causes OutOfMemoryException in AxisAlignedBB pool
planetguy replied to planetguy's topic in Mod Makers Market
Nope. Exact same error. -
Made it. Should work barring a major Forge break, because it only uses Forge. It can only be used to increase flower spawn density, not decrease.
-
Block causes OutOfMemoryException in AxisAlignedBB pool
planetguy replied to planetguy's topic in Mod Makers Market
I don't see it. I don't think it calls itself, and I don't see how changing blocks would fire an onBlockActivated event in any changed. I'm not even at the stage of having a testable fork bomb yet, but when this crashed my game it was partly through wgen and hadn't started lighting. Swamp biomes look funny with the mushrooms hovering in midair and no leaves on the trees. -
I have isolated the error to this block because with the line that loads it commented out, it works fine. With the block loaded, it gives me this stack trace when I try to load a world: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2245) at java.util.Arrays.copyOf(Arrays.java:2219) at java.util.ArrayList.grow(ArrayList.java:213) at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:187) at java.util.ArrayList.add(ArrayList.java:411) 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:1681) 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:674) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) I started my Minecraft passing in 2GB as the JVM memory allocation, and it took up all of it, so I think there must be a problem in my code. (I can consistently trigger or avoid it by commenting/uncommenting the part in my main class that loads the block below.) The block itself: package planetguy.Gizmos.timebomb; import java.util.Random; import planetguy.Gizmos.ConfigHolder; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.item.EntityTNTPrimed; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.Icon; import net.minecraft.world.World; public class BlockTimeBomb extends Block{ private Icon topTex; private Icon bottomTex; public BlockTimeBomb(int id) { super(id, Material.tnt); this.setTickRandomly(true); this.setCreativeTab(CreativeTabs.tabRedstone); // TODO Auto-generated constructor stub } public void registerIcons(IconRegister ir){ System.out.println("GraviBomb textures loading"); topTex=ir.registerIcon(ConfigHolder.modName+":"+"bombTop"); bottomTex=ir.registerIcon(ConfigHolder.modName+":"+"bombBottom"); } @SideOnly(Side.CLIENT) public Icon getBlockTextureFromSideAndMetadata(int side, int meta){ if(side==0||side==1){ return topTex; } if(meta%2==0){//We're a plain time bomb }else{//Fork bomb > } return topTex; } public void updateTick(World w, int x, int y, int z, Random r){ int curMeta=w.getBlockMetadata(x,y,z); int a=r.nextInt(5); if(a==0){ curMeta+=2; } if(curMeta>15){ w.spawnEntityInWorld(new EntityTNTPrimed(w, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), (EntityLiving) null)); } w.setBlockMetadataWithNotify(x, y, z, curMeta, 0x02); } public boolean onBlockActivated(World w, int x, int y, int z, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9){ fork(w,x,y,z); return true; } /** The fork method for the fork bomb variant of the time bomb. Moves the bomb to all available spaces * around it, or if there isn't space leaves it where it is. * */ private void fork(World w, int x, int y, int z){ if(w.getBlockMetadata(x, y, z)%2!=1||!ConfigHolder.allowFB){ return; } boolean hasReplaced=false; int meta=w.getBlockMetadata(x, y, z); if(w.getBlockMaterial(x+1, y, z)==Material.air){ w.setBlock(x+1, y, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x-1, y, z)==Material.air){ w.setBlock(x-1, y, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y+1, z)==Material.air){ w.setBlock(x, y+1, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y-1, z)==Material.air){ w.setBlock(x, y-1, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y, z+1)==Material.air){ w.setBlock(x, y, z+1, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y, z-1)==Material.air){ w.setBlock(x, y, z-1, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(hasReplaced){ w.setBlockToAir(x, y, z); } } } Can anyone help me with this one?
-
I have isolated the error to this block because with the line that loads it commented out, it works fine. With the block loaded, it gives me this stack trace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2245) at java.util.Arrays.copyOf(Arrays.java:2219) at java.util.ArrayList.grow(ArrayList.java:213) at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:187) at java.util.ArrayList.add(ArrayList.java:411) 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:1681) 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:674) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:570) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) The block itself: package planetguy.Gizmos.timebomb; import java.util.Random; import planetguy.Gizmos.ConfigHolder; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.item.EntityTNTPrimed; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.Icon; import net.minecraft.world.World; public class BlockTimeBomb extends Block{ private Icon topTex; private Icon bottomTex; public BlockTimeBomb(int id) { super(id, Material.tnt); this.setTickRandomly(true); this.setCreativeTab(CreativeTabs.tabRedstone); // TODO Auto-generated constructor stub } public void registerIcons(IconRegister ir){ System.out.println("GraviBomb textures loading"); topTex=ir.registerIcon(ConfigHolder.modName+":"+"bombTop"); bottomTex=ir.registerIcon(ConfigHolder.modName+":"+"bombBottom"); } @SideOnly(Side.CLIENT) public Icon getBlockTextureFromSideAndMetadata(int side, int meta){ if(side==0||side==1){ return topTex; } if(meta%2==0){//We're a plain time bomb }else{//Fork bomb > } return topTex; } public void updateTick(World w, int x, int y, int z, Random r){ int curMeta=w.getBlockMetadata(x,y,z); int a=r.nextInt(5); if(a==0){ curMeta+=2; } if(curMeta>15){ w.spawnEntityInWorld(new EntityTNTPrimed(w, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), (EntityLiving) null)); } w.setBlockMetadataWithNotify(x, y, z, curMeta, 0x02); } public boolean onBlockActivated(World w, int x, int y, int z, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9){ fork(w,x,y,z); return true; } /** The fork method for the fork bomb variant of the time bomb. Moves the bomb to all available spaces * around it, or if there isn't space leaves it where it is. * */ private void fork(World w, int x, int y, int z){ if(w.getBlockMetadata(x, y, z)%2!=1||!ConfigHolder.allowFB){ return; } boolean hasReplaced=false; int meta=w.getBlockMetadata(x, y, z); if(w.getBlockMaterial(x+1, y, z)==Material.air){ w.setBlock(x+1, y, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x-1, y, z)==Material.air){ w.setBlock(x-1, y, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y+1, z)==Material.air){ w.setBlock(x, y+1, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y-1, z)==Material.air){ w.setBlock(x, y-1, z, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y, z+1)==Material.air){ w.setBlock(x, y, z+1, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(w.getBlockMaterial(x, y, z-1)==Material.air){ w.setBlock(x, y, z-1, ConfigHolder.timeExplosivesID, meta, 0x02); hasReplaced=true; } if(hasReplaced){ w.setBlockToAir(x, y, z); } } } Can anyone help me with this one?
-
You probably would have better luck asking for this on the IC2 forums, as your request is more an IC2 thing than anything else. You do have a point though, the Q-suit is an immense pain to make and they don't let you fly like jetpacks do.
-
I would go forward in time a few years on the off chance that Mojang finishes the Minecraft API by then.
-
I think BC uses two fake players, [buildCraft] and [[buildCraft]] (or variants with different capitalization). The two are for different machines.
-
Use either BukkitForge or MCPC+. BukkitForge is an imperfect port of Bukkit to Minecraft Forge, and MCPC+ is an imperfect port of Forge to Bukkit. BukkitForge should have no mods introduced into Forge mods, while MCPC+ should have the better plugin support. Either one should work in most cases.
-
It goes in the server's mods folder.
-
It is SMP too, use the same link as for a client installation. As of MC 1.3, singleplayer=local server and separate client.
-
[1.5.1] BoostCraft - Minecraft Performance Enhancer
planetguy replied to BoostCrafters's topic in Modders Metropolis
Not really, it's an EXE and Minecraft runs on Windows, Mac or Linux. One would be expected to notice this after three months in the community between the Linux and Mac versions available on minecraft.net and the regular appearance of screenshots with distinctly non-Windows GUIs around the game. No source and no manual installer is distinctly suspect, too. Most Minecraft mods are not put through a virus scanner, either. Edit: DO NOT DOWNLOAD! The checksum of the file scanned for viruses does NOT match the download from Mediafire, meaning that they are probably different files. -
Keepcalm already merged the 1.5 branch of BukkitForge into master. There should be 1.5 builds of BukkitForge on the Technic Pack CI, anything after 259 should work.
-
Lukeb28 is banned for having a floating belt below his avatar. Witchcraft! Burn ban him!
-
You don't craft anything in your inventory anymore, and hope you already have a workbench. If you don't, tough luck. The level saves are encrypted to stop people from chickening out and giving themselves items in survival mode.
-
Back on topic: It is illogical to allow anything to last forever despite regular use. Minecraft commits this horrid offense against reality with one item: The crafting bench. Thus, I propose a durability counter to be added to the bench, after which it would collapse into 3 wood blocks. The counter would be infinite on peaceful mode, 1000 on easy, 500 on medium, 250 on hard, 125 on hardcore and 3 with GregTech's nerfs applied. The latter would also add a durability counter to in-inventory crafting.
-
Vanilla a la GregTech: All crafting recipes use complete stacks instead of single items. Since when did we get into the GregTech jokes?
-
location of a 1.1.2.0 technic launcher download please
planetguy replied to Tman015's topic in Platform Pagoda
It looks like the launcher isn't set up to deal with the Minecraft version currently available from Mojang's servers. One of the Technic people would need to set up binary patches from 1.5.1 to 1.4.7.