Jump to content

61352151511

Forge Modder
  • Posts

    403
  • Joined

  • Last visited

Everything posted by 61352151511

  1. Problem with custom NPCs, you have an alpha. There's a "Release" and a newer "Beta" out now on http://minecraft.curseforge.com/projects/custom-npcs/files the bug may have been fixed so trying downloading the latest 1.8 version and see if that fixes it.
  2. if you ran gradle seutpDecompWorkspace make sure you also do gradle eclipse The command you should run to set up any workspace is "gradle setupDecompWorkspace eclipse" try refreshing the project after running that.
  3. I was about to post about how it still doesn't worked and then realised you put lots of emphasis on the fact xSize and ySize has to be in the constructor. I noticed that mine were just declared outside of it, changed it, and it worked. Thank you guys so much for helping to fix this.
  4. It appears more than once, this is with the texture size being 512x512 (Same thing occurs when cropped to the proper size of 372x166). Anyone that can help? @Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { GlStateManager.color(1, 1, 1, 1); this.mc.getTextureManager().bindTexture(backgroundTexture); drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, xSize, ySize); //xSize being 372, ySize being 166 }
  5. Nope, because for whatever reason I thought the items folder just had to mirror the blocks folder, and the item in the inventory went to blockstates to find out what model to use. That solved it, thank you!
  6. ok that sort of helped, however it still doesn't work for whatever reason. Here's what I have for the registering now. [spoiler=ModelHelper.java] public static void registerItem(Item item, int... metadata) { ItemModelMesher mesher = Minecraft.getMinecraft().getRenderItem().getItemModelMesher(); if (item instanceof RainbowSaplingItemBlock) { LogHelper.warn("Special cased RainbowSapling ItemBlock"); for (int i : metadata) { LogHelper.warn("Registering " + RainbowSaplingItemBlock.getVariants()); mesher.register(item, i, new ModelResourceLocation(RainbowSaplingItemBlock.getVariants(), "inventory")); } } else { for (int i : metadata) { LogHelper.warn("Registering " + item.getUnlocalizedName().substring(5) + ":" + i); mesher.register(item, i, new ModelResourceLocation(item.getUnlocalizedName().substring(5), "inventory")); } } } public static void registerBlock(Block block, IStateMapper mapper, int... metadata) { registerItem(Item.getItemFromBlock(block), metadata); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager().getBlockModelShapes().registerBlockWithStateMapper(block, mapper); } [spoiler=ClientProxy.java] ModelBakery.addVariantName(Item.getItemFromBlock(ModBlocks.rainbowSaplingBlockZL), RainbowSaplingItemBlock.getVariants()); ModelHelper.registerBlock(ModBlocks.rainbowSaplingBlockZL, (new StateMap.Builder()).withName(RainbowSaplingBlockZL.TYPE).withSuffix("_sapling").ignore(RainbowSaplingBlockZL.STAGE).build(), 0, 1, 2, 3, 4, 5, 6); [spoiler=log] [07:21:07] [Client thread/WARN] [Zylroth]: Special cased RainbowSapling ItemBlock [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:red_sapling [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:orange_sapling [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:yellow_sapling [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:green_sapling [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:blue_sapling [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:indigo_sapling [07:21:07] [Client thread/WARN] [Zylroth]: Registering zylroth:violet_sapling [... Irrelevant ...] [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:violet_sapling#inventory not found [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:red_sapling#inventory not found [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:indigo_sapling#inventory not found [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:green_sapling#inventory not found [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:yellow_sapling#inventory not found [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:orange_sapling#inventory not found [07:21:14] [Client thread/ERROR] [FML]: Model definition for location zylroth:blue_sapling#inventory not found
  7. I've literally been struggling with this for over an hour and am ready to give up and see if anybody knows how to get this to work. I have custom saplings and the textures work fine when placed, however when in the inventory they don't work. This confuses the heck out of me because I have blocks registered that do work and know how they should be registered, they just don't want to work, no matter what I try. Below are all relevant classes, jsons, etc. All irrelevant parts of the code are cut out for simplicity sake. If someone can tell me what the problem is, that would really really help. Thanks. [spoiler=RainbowSaplingBlockZL.java] public class RainbowSaplingBlockZL extends BlockBush implements IGrowable { public static final PropertyEnum<TreeColor> TYPE = PropertyEnum.<TreeColor>create("type", TreeColor.class); public static final PropertyInteger STAGE = PropertyInteger.create("stage", 0, 1); public RainbowSaplingBlockZL() { super(); } @Override @SideOnly(Side.CLIENT) public void getSubBlocks(Item item, CreativeTabs tab, List list) { for (TreeColor color : TreeColor.values()) { list.add(new ItemStack(item, 1, color.getMeta())); } } @Override public IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(TYPE, TreeColor.get(meta & 7)).withProperty(STAGE, Integer.valueOf((meta & >> 3)); } @Override public int getMetaFromState(IBlockState state) { int i = 0; i = i | ((TreeColor) state.getValue(TYPE)).getMeta(); i = i | ((Integer) state.getValue(STAGE)).intValue() << 3; return i; } @Override protected BlockState createBlockState() { return new BlockState(this, new IProperty[] {TYPE, STAGE}); } } [spoiler=TreeColor.java] public enum TreeColor implements IStringSerializable { RED(0, "red"), ORANGE(1, "orange"), YELLOW(2, "yellow"), GREEN(3, "green"), BLUE(4, "blue"), INDIGO(5, "indigo"), VIOLET(6, "violet"); private String name; private int meta; private TreeColor(int meta, String name) { this.name = name; this.meta = meta; } @Override public String getName() { return this.name; } public int getMeta() { return this.meta; } public static TreeColor get(int meta2) { for (TreeColor color : values()) { if (color.getMeta() == meta2) return color; } return RED; } } [spoiler=ClientProxy.java] @Override public void registerItemRenderers() { // Called in init phase of mod ModelHelper.registerBlock(ModBlocks.rainbowSaplingBlockZL, (new StateMap.Builder()).withName(RainbowSaplingBlockZL.TYPE).withSuffix("_sapling").ignore(RainbowSaplingBlockZL.STAGE).build(), 0, 1, 2, 3, 4, 5, 6); } [spoiler=ModelHelper.java] @SideOnly(Side.CLIENT) public class ModelHelper { public static void registerItem(Item item, int... metadata) { ItemModelMesher mesher = Minecraft.getMinecraft().getRenderItem().getItemModelMesher(); for (int i : metadata) { mesher.register(item, i, new ModelResourceLocation(item.getUnlocalizedName().substring(5), "inventory")); } } public static void registerBlock(Block block, IStateMapper mapper, int... metadata) { registerItem(Item.getItemFromBlock(block), metadata); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager().getBlockModelShapes().registerBlockWithStateMapper(block, mapper); } } red_sapling, there is one for each color. [spoiler=blockstates/red_sapling.json] { "variants": { "normal": { "model": "zylroth:tree/redSapling" } } } [spoiler=models/block/tree/redSapling.json] { "parent": "block/cross", "textures": { "cross": "zylroth:blocks/tree/redSapling" } }
  8. That helps but I keep getting this in my logs Nov 29, 2015 11:13:40 AM io.netty.channel.ChannelOutboundBuffer safeSuccess WARNING: Failed to mark a promise as success because it is done already: DefaultChannelPromise@502302ae(success) Nov 29, 2015 11:13:40 AM io.netty.channel.ChannelOutboundBuffer safeSuccess WARNING: Failed to mark a promise as success because it is done already: DefaultChannelPromise@413c7443(success) Whenever one of my custom packets is used.
  9. So I understand most of this whole raw type/generic thing, I've changed my code in a few places to reflect on this (Entity/Entity Rendering) however when it comes to the Packets I don't know how I should make them paramaterized for example @Override public Packet getDescriptionPacket() { In a TileEntity what should that be, and with custom packets what should they be, example: public static Packet getCustomPacket(int number) { CustomMessage msg = new CustomMessage(); msg.index = 0; msg.num = number; return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg); }
  10. [14:56:16] [Netty IO #2/INFO] [FML]: Client attempting to join with 3 mods : [email protected],[email protected],[email protected] [14:56:16] [Netty IO #2/INFO] [FML]: Attempting connection with missing mods [Mantle, TConstruct] at CLIENT According to the log you do not have those mods installed. They should be in your .minecraft/mods directory
  11. Well do you have those mods installed on your client (Mantle and Tinkers Construct) and if you do, do you have the proper version?
  12. Uhhh, I said check the config. Configs are files that exist outside of the game and don't require having the game open to check/edit. Go to your minecraft directory (Likely .minecraft) then the config folder and check the config for Xtracraft.
  13. java.lang.IllegalArgumentException: Failed to register dimension for id 2, One is already registered Xtracraft is trying to register the dimension after another mod already has, check to see if there's a config for the dimension ID. If not tell the author to add one.
  14. http://www.minecraftforge.net/forum/index.php/topic,20.0.html Ctrl+F "java.lang.IndexOutOfBoundsException"
  15. With the F3 menu open the boss bar renders incorrectly. This only happens with the F3 menu open, I have no mods installed (Purely forge). This does not happen in vanilla.
  16. Well I'm not sure what the issue is but it is most likely with the only mod installed "SendamMod" I've never heard of this mod before (You may be making it yourself?), The first problem I notice with it is that it is a ZIP, I'm not sure how many problems (if any) this may cause but mods should be a jar file. Try backing up your world, removing the mod, testing the server out without the mod. If the issue stops it is probably your mod, however I don't see where it comes into play in the crash report, so can't tell you why it happens.
  17. Minecraft Forge is currently for Minecraft 1.8, not for 1.8.8, Change the version of minecraft you are running to 1.8, then run the game. After that you can install forge.
  18. That would be an error on your part then. Most mods when you go to download them, if they require another mod it will say on the download page "This mod requires [...] to run download at [...]" In your case one of the mods you have installed requires this mod: http://www.curse.com/mc-mods/minecraft/228114-gilded-games-util
  19. It's not a CoFH Problem [15/8/2015 19:52:12 PM] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading It helps to have a version that they want. I don't think it matters that that specific version doesn't exist as long as your forge version is at least 1448, so you could use the latest which is 1492 you should be good.
  20. I think this was fixed a while ago, you're way out of date on your mod version though. Update EnderStorage http://chickenbones.net/Pages/links.html http://chickenbones.net/maven/codechicken/EnderStorage/1.7.10-1.4.7.36/EnderStorage-1.7.10-1.4.7.36-universal.jar (Link to latest universal for it)
  21. "[19:55:21] [server thread/ERROR] [FML/]: Found a duplicate mod ForgeMicroblock at [D:\Program Files (x86)\Feed The Beast\server\mods\1.7.10\ForgeMultipart-1.7.10-1.2.0.345-universal.jar, D:\Program Files (x86)\Feed The Beast\server\mods\1.7.10\ForgeMultipart-1.7.10-1.1.0.309-universal.jar] [19:55:21] [server thread/ERROR] [FML/]: Found a duplicate mod ForgeMultipart at [D:\Program Files (x86)\Feed The Beast\server\mods\1.7.10\ForgeMultipart-1.7.10-1.2.0.345-universal.jar, D:\Program Files (x86)\Feed The Beast\server\mods\1.7.10\ForgeMultipart-1.7.10-1.1.0.309-universal.jar] [19:55:21] [server thread/ERROR] [FML/]: Found a duplicate mod McMultipart at [D:\Program Files (x86)\Feed The Beast\server\mods\1.7.10\ForgeMultipart-1.7.10-1.2.0.345-universal.jar, D:\Program Files (x86)\Feed The Beast\server\mods\1.7.10\ForgeMultipart-1.7.10-1.1.0.309-universal.jar]" Delete ForgeMultipart 309 jar and keep the 345 jar
  22. The problem is not with the installer, it is with you using a cracked launcher instead of buying the game. Go buy the game and use the official minecraft launcher.
  23. Disable the loading screen in config/splash.properties Set enabled=false
×
×
  • Create New...

Important Information

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