Jump to content

Acaeris

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by Acaeris

  1. I expected as much as a reply despite my stating the details I could :/. No code: I cannot legally post my code in public, even though it is unrelated to my work, under my current contract. I'm sorry about this but at the moment, I cannot do anything about this. No logs: There's no logs because I don't even know what I can possibly log from it. There are no errors, Forge doesn't natively post logs of the colours it uses to display the sky and all my attempts to the log the values being passed through 'getSkyColorByTemp', the only function I am aware has anything to do with this, show that I am consistently supplying Forge with the correct value for the sky colour (and, as mentioned, this is occurring in vanilla biomes so it's not even as though I have overwritten the sky colour there). No examples of the issue: I could post a screenshot if you really want but it'll just show a vanilla Minecraft biome with sky the flickers between all the colours of the rainbow as I move. The change seemingly tied to the x and z coordinates (but not the y) and limited to the area x:0 - 256, y:0 - 256. Outside of that area the sky is black. As I mentioned, I don't expect anything to come of this, I posted to see if there was anyone who knew of other Forge methods that affect sky colour beyond the 'getSkyColorByTemp' function. Edit: After some further thinking, this may be a fault in my FogEventHandler when handling areas that are not supposed to be using custom fog. I could be wrong with this but it's the only other area I can think of that could be causing this effect.
  2. Hi, I've hit an issue with a mod I am working on where the colour of the sky just above the horizon will rapidly change based on the movement of the player, even within vanilla biomes. It appears that, if the x or z coordinates go about 255, this area of the sky becomes black. I've done a lot of investigation into `getSkyColorByTemp` (which, to my understanding, changes the overhead sky color) but that's either returning the vanilla default or a static value and this bug isn't biome dependant anyway. Unfortunately, I'm not in a position to be able to share the code publicly so I do not expect a solution. I would be grateful, however, if anyone who might know a bit more about this area could point me in the direction of what controls the color of this particular area of the sky, as I believe I could work out the solution once I know where to look. Thanks [SOLVED] The issue was a calculation error in my colour manipulation class. Minor changes in colour were being magnified to extremes.
  3. OK, I get it now. It's not that obvious that that would apply to vanilla variants, especially with it not mentioning vanilla format on that page and none of the pages that do referencing it but thank you very much for putting up with me.
  4. I have read the documentation you linked. The specific page you linked does not mention using the vanilla format however, the page that does is somewhat vague about the format. I cannot see anything in it that makes it clear what I am doing wrong. The same goes for the Mojang documentation on how variants are written. This is also the only case where my using the vanilla format has thrown errors. The majority of my blocks use Forge format but vines and ladders were much easier to copy from vanilla and amend the texture. So I'm definitely missing something in this particular case but that is why I have posted here, even though I know these should be very simple questions. I know you guys get fed up of this shit all time. I do too when I think a question being asked should be obvious from the documentation on my own projects. All I'm asking is: Are combination states for picking a texture possible in the Forge format? Forget the vanilla errors, that just me trying to solve a problem while I haven't had an answer to that question and seemingly that has distracted the thread which I'm sorry for.
  5. I know. I'm trying vanilla ones while I'm still awaiting for some advice on my original question about how to use the forge blockstate format to assign a texture based on a combination of variant values. The vanilla variant format is working for the blockstates of another block I have but not this one and I can't work out a way of doing what I want using forge blockstate format.
  6. I tried that but still get the same errors messages, just with things switched around: src/main/resources/assets/rebuild/blockstates/crystal.json { "forge_marker": 1, "defaults": { "model": "cube_all", "transform": "forge:default-block" }, "variants": { "active=false,style=green": { "textures": { "all": "rebuild:blocks/crystal/green/inactive" } }, "active=false,style=red": { "textures": { "all": "rebuild:blocks/crystal/red/inactive" } }, "active=true,style=green": { "textures": { "all": "rebuild:blocks/crystal/green/active" } }, "active=true,style=red": { "textures": { "all": "rebuild:blocks/crystal/red/active" } } } } Error output: [17:36:22] [main/ERROR] [FML]: Exception loading model for variant rebuild:crystal#active=false,style=red for blockstate "rebuild:crystal[active=false,style=red]" and for item "rebuild:crystal", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model rebuild:crystal#active=false,style=red with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:305) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1169) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 20 more I think I've managed to get the vine model doing what I want though using vanilla blockstate JSON, so it's just the question of how to get a texture set based on the combination of values
  7. Decided to try and tackle this using the vanilla variants method while waiting but hitting issues with that method as well. src/main/resources/assets/rebuild/blockstates/crystal.json { "forge_marker": 1, "defaults": { "model": "cube_all", "transform": "forge:default-block" }, "variants": { "style=green,active=true": { "textures": { "all": "rebuild:blocks/crystal/green/active" } }, "style=green,active=false": { "textures": { "all": "rebuild:blocks/crystal/green/inactive" } }, "style=red,active=true": { "textures": { "all": "rebuild:blocks/crystal/red/active" } }, "style=red,active=false": { "textures": { "all": "rebuild:blocks/crystal/red/inactive" } } } } Error output: [17:36:22] [main/ERROR] [FML]: Exception loading model for variant rebuild:crystal#style=red,active=false for blockstate "rebuild:crystal[style=red,active=false]" and for item "rebuild:crystal", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model rebuild:crystal#style=red,active=false with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:305) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1169) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 20 more So yeah, still not sure how to solve these questions.
  8. Hi, I have a couple of questions regarding the Blockstate JSON format and how to configure certain things I'm currently working on: 1) A fairly simple question: I seem to be missing something in how to create vines/ladders using Forge's blockstate format. Do I need to resort to vanilla Minecraft's format or is there a model I can't find documentation for to do this type of block? 2) Slightly more complex but still something I've failed to find questions or documentation for: How do you define a texture based on the combination of variables? e.g. { "forge_marker": 1, "defaults": { "model": "cube_all", "transform": "forge:default-block" }, "variants": { "style": { "blue": { "textures": { "all": "rebuild:blocks/crystal/blue..." // Needs to know if this is active. } }, "green": { "textures": { "all": "rebuild:blocks/crystal/green..." // Needs to know if this is active. } } }, "active": { "true": { "textures": { "all": "rebuild:blocks/crystal/...active" // Needs to know what style } }, "false": { "textures": { "all": "rebuild:blocks/crystal/...inactive" // Needs to know what style } } } } } I've done ones where a model was defined by one variable and the texture another (or in one case where one set of sides were one variable and the other set another) but not one that has all sides dependant on the combination of variables.
  9. Aha, thank you. Your comment actually made me realise I was being dumb and had not put the deobfuscated jar in the lib folder. Switched over and it works fine now. Thanks!
  10. Hi, I'm getting failures when I run a build of my mod saying that "GuiPedestal is not abstract and does not override abstract method drawGuiContainerBackgroundLayer(float, int, int) in GuiContainer". However, GuiPedestal is extending RebuildGuiContainer which extends GuiContainer and RebuildGuiContainer already has an override for that function. IntelliJ can see this and does not display any error in either class. public GuiPedestal extends RebuildGuiContainer { // No drawGuiContainerBackgroundLayer function } public RebuildGuiContainer extends GuiContainer { @Override protected void drawGuiContainerBackgroundLayer(float partialTick, int x, int y) { // Does basic background drawing for all mod Guis here. } } I can't work out how Gradle is happily seeing that GuiPedestal is a distant child of GuiContainer but not seeing that RebuildGuiContainer has already implemented the abstract method.
  11. I know, that's the frustrating thing, it should work fine but doesn't
  12. [18:24:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:24:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:24:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [18:24:43] [main/INFO] [FML]: Forge Mod Loader version 7.2.109.1022 for Minecraft 1.7.2 loading [18:24:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_21, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [18:24:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:24:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:24:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:24:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:24:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:24:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:24:43] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:24:44] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Acaeris/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1022/forgeSrc-1.7.2-10.12.0.1022.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [18:24:44] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [18:24:44] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Acaeris/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1022/forgeSrc-1.7.2-10.12.0.1022.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [18:24:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:24:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:24:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:24:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [18:24:44] [main/INFO]: Setting user: Player555 [18:24:45] [Client thread/INFO]: LWJGL Version: 2.9.0 [18:24:45] [Client thread/ERROR]: Couldn't set icon javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_21] at net.minecraft.client.Minecraft.readImage(Minecraft.java:680) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:46] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [18:24:46] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1022 Initialized [18:24:46] [Client thread/ERROR] [FML]: Unable to determine registrant mod for net.minecraftforge.common.ForgeInternalHandler@78267233. This is a critical error and should be impossible java.lang.Throwable at cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:42) [EventBus.class:?] at net.minecraftforge.common.MinecraftForge.initialize(MinecraftForge.java:46) [MinecraftForge.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at cpw.mods.fml.common.FMLCommonHandler.callForgeMethod(FMLCommonHandler.java:184) [FMLCommonHandler.class:?] at cpw.mods.fml.common.FMLCommonHandler.beginLoading(FMLCommonHandler.java:96) [FMLCommonHandler.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:178) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:46] [Client thread/INFO] [FML]: Replaced 128 ore recipies [18:24:46] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [18:24:46] [Client thread/INFO] [FML]: Searching C:\Users\Acaeris\Documents\Projects\forge\mods for mods [18:24:46] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [18:24:48] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:24:48] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Rebuild [18:24:48] [Client thread/INFO] [Rebuild]: Starting Rebuild2 [18:24:48] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:24:48] [Client thread/INFO] [Rebuild]: Pre-Initialisation Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [18:24:48] [Client thread/ERROR]: Using missing texture, unable to load rebuild:textures/blocks/table/top.png java.io.FileNotFoundException: rebuild:textures/blocks/table/top.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:48] [Client thread/ERROR]: Using missing texture, unable to load rebuild:textures/blocks/table/side.png java.io.FileNotFoundException: rebuild:textures/blocks/table/side.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:48] [Client thread/ERROR]: Using missing texture, unable to load rebuild:textures/blocks/table/bottom.png java.io.FileNotFoundException: rebuild:textures/blocks/table/bottom.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:48] [Client thread/ERROR]: Using missing texture, unable to load rebuild:textures/blocks/table/bottom.png java.io.FileNotFoundException: rebuild:textures/blocks/table/bottom.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:48] [Client thread/ERROR]: Using missing texture, unable to load rebuild:textures/blocks/table/top.png java.io.FileNotFoundException: rebuild:textures/blocks/table/top.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:48] [Client thread/ERROR]: Using missing texture, unable to load rebuild:textures/blocks/table/side.png java.io.FileNotFoundException: rebuild:textures/blocks/table/side.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:928) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [18:24:49] [sound Library Loader/INFO]: Sound engine started [18:24:49] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [18:24:49] [Client thread/INFO]: Created: 256x256 textures/items-atlas [18:24:49] [Client thread/INFO] [Rebuild]: Initialisation [18:24:49] [Client thread/INFO] [Rebuild]: Post-Initialisation [18:24:49] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:24:50] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [18:24:51] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press [18:24:54] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
  13. Hi there, I'm having a couple of issues with converting my mod to 1.7.2 that I cannot work out. The first is that assets are not loading into Minecraft when I run it from Eclipse (including some vanilla assets such as sounds and text). I've checked countless threads about this but still not found a solution for what is happening in my case. I had a similar problem in 1.6.4 but solved it by placing my assets in the bin folder directly but that doesn't work for ForgeGradle. Here is the folder structure just to clarify: forge/ src/ main/ java/ mod/ rebuild/ blocks/ TableBlock.java Rebuild.java resources/ assets/ rebuild/ textures/ blocks/ table/ top.png side.png bottom.png and the code I'm using to load the textures: iconRegister.registerIcon("rebuild:table/top"); iconRegister.registerIcon("rebuild:table/side"); iconRegister.registerIcon("rebuild:table/bottom"); The second issue I have come across is that when I place a block in the world it's metadata is 0 even if it had a different metadata in the inventory. My table block currently has two different meta state that have different models. The inventory shows two blocks, 1 of each model but placing them in the world always results in the same model and using world.getBlockMetadata(x, y, z) to check the block always returns 0. In TableBlock.java @Override public void func_149666_a(Item item, CreativeTabs tabs, List list) { for (int iter = 0; iter < 5; iter++) { list.add(new ItemStack(item, 1, iter)); } } In Renderer.java @Override public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) { EnumModels model = EnumModels.findModel(block, metadata); // Finds the correct Model model.getModel().renderInventoryBlock(block, metadata, modelID, renderer); } @Override public boolean renderWorldBlock(IBlockAccess world, int xPos, int yPos, int zPos, Block block, int modelID, RenderBlocks renderer) { int metadata = world.getBlockMetadata(xPos, yPos, zPos); System.out.println(metadata); // Always outputs 0 EnumModels model = EnumModels.findModel(block, metadata); // Only finds the default table model return model.getModel().renderWorldBlock(world, xPos, yPos, zPos, block, modelID, renderer); } EnumModels is just a collection of the available models in the mod: public enum EnumModels { SINGLETABLE(RContent.table, -1, new TableModel()), HALFTABLE(RContent.table, 1, new HalfTableModel()); private Block block; private int blockMeta; private IModel model; private EnumModels(Block block, int meta, IModel model) { this.block = block; blockMeta = meta; this.model = model; } public static EnumModels findModel(Block block, int meta) { EnumModels output = null; EnumModels defaultModel = null; for (EnumModels enumModel : values()) { if (enumModel.getBlock().equals(block) && enumModel.getMeta() == meta) { output = enumModel; } if (enumModel.getBlock().equals(block) && enumModel.getMeta() == -1) { defaultModel = enumModel; } } if (output == null && defaultModel != null) { output = defaultModel; } return output; } public Block getBlock() { return block; } public int getMeta() { return blockMeta; } public IModel getModel() { return model; } } Any ideas?
  14. I eventually got it working. I basically ran setupDecompWorkspace, deleted the .classpath file, setupDevWorkspace and then manually added the sourcepath entries to the new .classpath file. Why it worked this way around and not the other I do not know.
  15. Unfortunately, that hasn't seemed to work in my case either. After making that change Forge no longer appears in the dependency list at all. I checked the Gradle cache and both the forgeSrc and forgeBin files are there and the .classpath entry points to them correctly but they are not showing in Netbeans, all other entries in the .classpath file are showing fine.
  16. This didn't solve it in my case.
  17. I'm having this issue as well. Forge 1.7.2-10.12.0.1012 Both setupDecompWorkspace and eclipse commands completed successfully. In Netbeans I get the following project errors with the example mod: package net.minecraft.init does not exist package cpw.mods.fml.common does not exist package cpw.mods.fml.common.Mod does not exist package cpw.mods.fml.common.event does not exist In the projects list I can see those packages though: forge1.7.2 + Dependencies + Compile for main + forgeSrc-1.7.2-10.12.0.1012.jar + cpw.mods.fml.common Mod + cpw.mods.fml.common.event FMLInitializationEvent + net.minecraft.init Blocks
×
×
  • Create New...

Important Information

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