I'm trying to create a mod (my first) that adds Chisel's blocks as BuildCraft Facades using Forge Gradle with Forge-1.6.4-9.11.1.964. (I'm using 1.6.4 because that's the version I'm playing and my personal need for this mod will go away with 1.7 [AE cables becoming multiparts instead of BC Facade-compatible blocks])
However, when I try to access the block references in Chisel's main mod class I only get nulls. These blocks are being instantiated in the init event of the mod, but I only get nulls whether I access them in the init or postInit events of my own mod.
You can view my current code here (there's only three small classes) and a client log of the issue occurring here.
Am I doing something wrong here?
A separate issue I'm also running into is gradlew build not finding the Chisel JAR. I've added it as a dependency in build.gradle, but I've probably done something wrong. You can view the output of the command here.
Please let me know if you need any more information or if I've made any obvious mistakes.
Edit: To solve the null blocks problem, I built Chisel and AutoUtils from source with Forge Gradle and Forge-1.6.4-9.11.1.964 (I had to change the @PreInit/@Init/@PostInit annotations in their main classes to @EventHandler to get them to compile). I then built my own mod using these, but for release I used AUTOMATIC_MAIDEN's AutoUtils 1.01 and asie's Chisel 1.5.2 in the mods folder as normal.
To solve the gradlew build problem, I moved Chisel and AutoUtils into the /libs folder (instead of the /lib folder).
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Maybe, your mod is being initiated before the other one! So what I would do, and you don't have to do the same, is put the code in the init() function in the postInit() function, that uses the FMLPostInitializationEvent instead of the FMLInitializationEvent! Let me know if that helps!
I'm actually using PostInit instead of Init already. Unfortunately it's not working.
Thanks for the reply, though.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
It's strange, Chisel is shown in the FML log and shows up in the mods menu in-game, but none of its items or blocks show up in the Creative menu or in NEI.
I'll try make an issue at the repo, but I'm not sure Fenn is doing stuff for 1.6.4.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I'm using the release version, deobfuscated at runtime by CodeChickenCore. I've got the Chisel JAR in the /libs folder and have it added to Eclipse's classpath. I tried putting it in the /eclipse/mods folder and adding it to the classpath there, but FML complains of a duplicate mod:
14-07-26 17:40:16 [SEVERE] [ForgeModLoader] Found a duplicate mod Chisel at [C:\Users\USERNAME\Documents\Minecraft\ChiselFacades\eclipse\mods\CHISEL-1.6.4-1.5.2.jar, C:\Users\USERNAME\Documents\Minecraft\ChiselFacades\eclipse\mods\CHISEL-1.6.4-1.5.2.jar]
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I commented out all my code interacting with Chisel, moved Chisel to the mods folder and removed it from the build path and I got the same result (appears to load but doesn't register any items). I'm going to try run it from a fresh dev environment that doesn't interact with Chisel at all and see how that goes.
I tried using BON before, but I couldn't get it to work.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
A fresh dev environment with Chisel, AutoUtils, BuildCraft, CodeChickenCore and NEI has the same problem as before (loading but not registering).
I tried to set up BON again, but deobfuscating Chisel and AutoUtils did nothing (it did a bit of work and output a JAR but all fields still appear to be obfuscated).
I'll see if I can build the mods from their source.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Building Chisel and AutoUtils from source worked. Thanks for all the help.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
For anyone who cares, I just released version 1.0 on Curse. Once it's approved, the widget below should link to it.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
However, when I try to access the block references in Chisel's main mod class I only get nulls. These blocks are being instantiated in the init event of the mod, but I only get nulls whether I access them in the init or postInit events of my own mod.
You can view my current code here (there's only three small classes) and a client log of the issue occurring here.
Am I doing something wrong here?
A separate issue I'm also running into is gradlew build not finding the Chisel JAR. I've added it as a dependency in build.gradle, but I've probably done something wrong. You can view the output of the command here.
Please let me know if you need any more information or if I've made any obvious mistakes.
Edit: To solve the null blocks problem, I built Chisel and AutoUtils from source with Forge Gradle and Forge-1.6.4-9.11.1.964 (I had to change the @PreInit/@Init/@PostInit annotations in their main classes to @EventHandler to get them to compile). I then built my own mod using these, but for release I used AUTOMATIC_MAIDEN's AutoUtils 1.01 and asie's Chisel 1.5.2 in the mods folder as normal.
To solve the gradlew build problem, I moved Chisel and AutoUtils into the /libs folder (instead of the /lib folder).
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Happy Modding!
Hello!
Thanks for the reply, though.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I'll try make an issue at the repo, but I'm not sure Fenn is doing stuff for 1.6.4.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I tried using BON before, but I couldn't get it to work.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I tried to set up BON again, but deobfuscating Chisel and AutoUtils did nothing (it did a bit of work and output a JAR but all fields still appear to be obfuscated).
I'll see if I can build the mods from their source.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.