Jump to content

Flenix

Members
  • Posts

    440
  • Joined

  • Last visited

Everything posted by Flenix

  1. Can you post up the error?
  2. Can you post up the error?
  3. I think we'd need the source to even start to guess what's causing it. Probably easiest to put it up on Github. If you're on windows it couldn't be easier with the program they made.
  4. I think we'd need the source to even start to guess what's causing it. Probably easiest to put it up on Github. If you're on windows it couldn't be easier with the program they made.
  5. Alright, I'm close, I can rotate the top texture of the block now. Issue is, the top texture is copied around the block, and I can't quite work out why. I want the sides to be a different texture. Screenshot: The top is fine, but I want the side to be the same as the front. Code: package co.uk.silvania.roads.block; import co.uk.silvania.roads.CommonProxy; import co.uk.silvania.roads.Roads; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockDirectional; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.monster.EntityIronGolem; import net.minecraft.entity.monster.EntitySnowman; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.Facing; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class RBSideWhiteStripe extends BlockDirectional { public RBSideWhiteStripe(int par1, int par2) { super(par1, Material.pumpkin); this.blockIndexInTexture = par2; this.setTickRandomly(true); this.setCreativeTab(Roads.tabRoads); } @Override public String getTextureFile () { return CommonProxy.BLOCK_PNG; } @SideOnly(Side.CLIENT) public int getBlockTextureFromSideAndMetadata(int par1, int par2) { int var3 = getOrientation(par2); return var3 > 5 ? this.blockIndexInTexture : (par1 == var3 ? (this.blockIndexInTexture + 1 * 1) : (par1 == Facing.faceToSide[var3] ? 1 : 14)); } public int getRenderType() { return 16; } public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving) { int var6 = determineOrientation(par1World, par2, par3, par4, (EntityPlayer)par5EntityLiving); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); } public static int getOrientation(int par0) { return par0 & 7; } public static int determineOrientation(World par0World, int par1, int par2, int par3, EntityPlayer par4EntityPlayer) { int var7 = MathHelper.floor_double((double)(par4EntityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; return var7 == 0 ? 2 : (var7 == 1 ? 5 : (var7 == 2 ? 3 : (var7 == 3 ? 4 : 0))); } } Anyone able to assist? This is the last thing until I release my first beta
  6. Alright, I'm close, I can rotate the top texture of the block now. Issue is, the top texture is copied around the block, and I can't quite work out why. I want the sides to be a different texture. Screenshot: The top is fine, but I want the side to be the same as the front. Code: package co.uk.silvania.roads.block; import co.uk.silvania.roads.CommonProxy; import co.uk.silvania.roads.Roads; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockDirectional; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.monster.EntityIronGolem; import net.minecraft.entity.monster.EntitySnowman; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.Facing; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class RBSideWhiteStripe extends BlockDirectional { public RBSideWhiteStripe(int par1, int par2) { super(par1, Material.pumpkin); this.blockIndexInTexture = par2; this.setTickRandomly(true); this.setCreativeTab(Roads.tabRoads); } @Override public String getTextureFile () { return CommonProxy.BLOCK_PNG; } @SideOnly(Side.CLIENT) public int getBlockTextureFromSideAndMetadata(int par1, int par2) { int var3 = getOrientation(par2); return var3 > 5 ? this.blockIndexInTexture : (par1 == var3 ? (this.blockIndexInTexture + 1 * 1) : (par1 == Facing.faceToSide[var3] ? 1 : 14)); } public int getRenderType() { return 16; } public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving) { int var6 = determineOrientation(par1World, par2, par3, par4, (EntityPlayer)par5EntityLiving); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); } public static int getOrientation(int par0) { return par0 & 7; } public static int determineOrientation(World par0World, int par1, int par2, int par3, EntityPlayer par4EntityPlayer) { int var7 = MathHelper.floor_double((double)(par4EntityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; return var7 == 0 ? 2 : (var7 == 1 ? 5 : (var7 == 2 ? 3 : (var7 == 3 ? 4 : 0))); } } Anyone able to assist? This is the last thing until I release my first beta
  7. Thank you for your infinite wisdom and help. Anyone else able to actually help me? sorry but just saying "piston" really doesn't help at all due to all it's extra mechanics it has to check through.
  8. Thank you for your infinite wisdom and help. Anyone else able to actually help me? sorry but just saying "piston" really doesn't help at all due to all it's extra mechanics it has to check through.
  9. Well for anyone interested, I fixed it. And I made a tutorial, while it was fresh in my head. Might be a few mistakes, if so just edit them. http://www.minecraftforge.net/wiki/Creating_a_Liquid
  10. Well for anyone interested, I fixed it. And I made a tutorial, while it was fresh in my head. Might be a few mistakes, if so just edit them. http://www.minecraftforge.net/wiki/Creating_a_Liquid
  11. I'm in a similar boat so just replying to keep this thread alive. I don't mind using tile entites, but I heard they are more RAM intensive. What uses more RAM between 16 individual blocks, and one tile entity with 16 blocks? If it's not that big a deal, anyone got a good link for tile entity tutorial? Looks like both myself and the OP could do with a read through of it. The one on the wiki is incomplete.
  12. I'm in a similar boat so just replying to keep this thread alive. I don't mind using tile entites, but I heard they are more RAM intensive. What uses more RAM between 16 individual blocks, and one tile entity with 16 blocks? If it's not that big a deal, anyone got a good link for tile entity tutorial? Looks like both myself and the OP could do with a read through of it. The one on the wiki is incomplete.
  13. Anyone able to help here? I know my flowing liquid file is quite short, but the tutorial I followed had the same one and showed it working...
  14. Anyone able to help here? I know my flowing liquid file is quite short, but the tutorial I followed had the same one and showed it working...
  15. Hey guys, I want to rotate the top face of a block. I can rotate the side faces OK, but the top doesn't turn... Anyone able to point me in the right direction? I can't think of any vanilla blocks to use a reference (I learnt side rotation from Pumpkin) so just that would be enough if you can think of one.
  16. Hey guys, I want to rotate the top face of a block. I can rotate the side faces OK, but the top doesn't turn... Anyone able to point me in the right direction? I can't think of any vanilla blocks to use a reference (I learnt side rotation from Pumpkin) so just that would be enough if you can think of one.
  17. GitHub link: https://github.com/Flenix/FlenixRoads/ FlowingTarBlock.java is where I think the issue is. Roads.java is the base file.
  18. GitHub link: https://github.com/Flenix/FlenixRoads/ FlowingTarBlock.java is where I think the issue is. Roads.java is the base file.
  19. I've been trying to create a custom liquid. "Still" works OK, but when I place "Flowing", I get a crash as soon as it starts to actually flow. If I place it in a 1x1 gap, no crash; but as soon as I break a block I get the crash. Here's the error report: 2013-04-18 00:46:57 [iNFO] [sTDERR] t: Exception while ticking a block 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:675) 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:599) 2013-04-18 00:46:57 [iNFO] [sTDERR] at bdz.q(IntegratedServer.java:123) 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) 2013-04-18 00:46:57 [iNFO] [sTDERR] at fy.run(SourceFile:849) 2013-04-18 00:46:57 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException 2013-04-18 00:46:57 [iNFO] [sTDERR] at zz.a(Chunk.java:768) 2013-04-18 00:46:57 [iNFO] [sTDERR] at yc.a(World.java:554) 2013-04-18 00:46:57 [iNFO] [sTDERR] at yc.c(World.java:532) 2013-04-18 00:46:57 [iNFO] [sTDERR] at aky.l(SourceFile:17) 2013-04-18 00:46:57 [iNFO] [sTDERR] at aky.b(SourceFile:85) 2013-04-18 00:46:57 [iNFO] [sTDERR] at in.a(WorldServer.java:567) 2013-04-18 00:46:57 [iNFO] [sTDERR] at in.b(WorldServer.java:178) 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:669) 2013-04-18 00:46:57 [iNFO] [sTDERR] ... 4 more 2013-04-18 00:46:58 [iNFO] [ForgeModLoader] Unloading dimension 0 2013-04-18 00:46:58 [iNFO] [ForgeModLoader] Unloading dimension -1 2013-04-18 00:46:58 [iNFO] [ForgeModLoader] Unloading dimension 1 2013-04-18 00:46:58 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue 2013-04-18 00:46:58 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available FlenixRoads [FlenixRoads] (flenixroads_pre_alpha_1) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available 2013-04-18 00:46:58 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-04-18 00:46:58 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException 2013-04-18 00:46:58 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:117) 2013-04-18 00:46:58 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:761) 2013-04-18 00:46:58 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:464) 2013-04-18 00:46:58 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559) 2013-04-18 00:46:58 [iNFO] [sTDERR] at fy.run(SourceFile:849) 2013-04-18 00:47:07 [iNFO] [sTDOUT] Stopping! 2013-04-18 00:47:07 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-04-18 00:47:07 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com Just going to push my source to github now then I'll put the link up, but does anyone know what could be the issue from the error? EDIT: Does anyone know of a good IRC channel for getting help with mods? I feel bad because this is my third or fourth post here, I don't want to keep bogging it down with what I assume are pretty simple issues. I tried going on #minecraftforge but I don't have voice there.
  20. I've been trying to create a custom liquid. "Still" works OK, but when I place "Flowing", I get a crash as soon as it starts to actually flow. If I place it in a 1x1 gap, no crash; but as soon as I break a block I get the crash. Here's the error report: 2013-04-18 00:46:57 [iNFO] [sTDERR] t: Exception while ticking a block 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:675) 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:599) 2013-04-18 00:46:57 [iNFO] [sTDERR] at bdz.q(IntegratedServer.java:123) 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) 2013-04-18 00:46:57 [iNFO] [sTDERR] at fy.run(SourceFile:849) 2013-04-18 00:46:57 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException 2013-04-18 00:46:57 [iNFO] [sTDERR] at zz.a(Chunk.java:768) 2013-04-18 00:46:57 [iNFO] [sTDERR] at yc.a(World.java:554) 2013-04-18 00:46:57 [iNFO] [sTDERR] at yc.c(World.java:532) 2013-04-18 00:46:57 [iNFO] [sTDERR] at aky.l(SourceFile:17) 2013-04-18 00:46:57 [iNFO] [sTDERR] at aky.b(SourceFile:85) 2013-04-18 00:46:57 [iNFO] [sTDERR] at in.a(WorldServer.java:567) 2013-04-18 00:46:57 [iNFO] [sTDERR] at in.b(WorldServer.java:178) 2013-04-18 00:46:57 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:669) 2013-04-18 00:46:57 [iNFO] [sTDERR] ... 4 more 2013-04-18 00:46:58 [iNFO] [ForgeModLoader] Unloading dimension 0 2013-04-18 00:46:58 [iNFO] [ForgeModLoader] Unloading dimension -1 2013-04-18 00:46:58 [iNFO] [ForgeModLoader] Unloading dimension 1 2013-04-18 00:46:58 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue 2013-04-18 00:46:58 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available FlenixRoads [FlenixRoads] (flenixroads_pre_alpha_1) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available 2013-04-18 00:46:58 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-04-18 00:46:58 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException 2013-04-18 00:46:58 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:117) 2013-04-18 00:46:58 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:761) 2013-04-18 00:46:58 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:464) 2013-04-18 00:46:58 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559) 2013-04-18 00:46:58 [iNFO] [sTDERR] at fy.run(SourceFile:849) 2013-04-18 00:47:07 [iNFO] [sTDOUT] Stopping! 2013-04-18 00:47:07 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-04-18 00:47:07 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com Just going to push my source to github now then I'll put the link up, but does anyone know what could be the issue from the error? EDIT: Does anyone know of a good IRC channel for getting help with mods? I feel bad because this is my third or fourth post here, I don't want to keep bogging it down with what I assume are pretty simple issues. I tried going on #minecraftforge but I don't have voice there.
  21. Hey guys I've finished the pre-pre-alpha of my first mod attempt, but compiling is being a pain. Here's the error I'm getting, can anyone help? java.lang.ClassNotFoundException: co.uk.silvania.roads.Roads at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:418) 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:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 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:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.loadMods(Loader.java:479) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) at net.minecraft.client.Minecraft.a(Minecraft.java:410) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.objectweb.asm.ClassReader.<init>(Unknown Source) at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29) at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228) at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173) ... 32 more I can see it's not finding the class, I can't understand why it's not finding it. I used this tutorial: http://www.minecraftforge.net/wiki/Releasing_Mods
  22. Hey guys I've finished the pre-pre-alpha of my first mod attempt, but compiling is being a pain. Here's the error I'm getting, can anyone help? java.lang.ClassNotFoundException: co.uk.silvania.roads.Roads at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:418) 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:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 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:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.loadMods(Loader.java:479) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) at net.minecraft.client.Minecraft.a(Minecraft.java:410) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.objectweb.asm.ClassReader.<init>(Unknown Source) at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29) at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228) at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173) ... 32 more I can see it's not finding the class, I can't understand why it's not finding it. I used this tutorial: http://www.minecraftforge.net/wiki/Releasing_Mods
  23. All very useful information, thanks very much! Those tessilators will be great. I did a load of modelling for a Spout-based mod a while back called MoreMaterials which used quads, that'll make it easy to port things from there should I want to. I'll try that obj thing now though!
  24. All very useful information, thanks very much! Those tessilators will be great. I did a load of modelling for a Spout-based mod a while back called MoreMaterials which used quads, that'll make it easy to port things from there should I want to. I'll try that obj thing now though!
  25. Source please? If this is true, then anyone can feel free to contact me for any modelling requests and I'll get right on it. I can do that bit, it's Java I'm not so good at!
×
×
  • Create New...

Important Information

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