This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
someone9999's profile picture

[Solved] Unable to re-obfuscate and run

Started by someone9999, 09 November 2012 - 07:38 PM
someone9999 #1
Posted 09 November 2012 - 08:38 PM
Basically, I have been working on a simple peripheral for turtles, and when it is ran through mcp and eclipse, it works perfectly. When running in mcp, I do have the full computer craft mod running by using immibis' Bearded Octo Nemesis. The problem happens when I re-obfuscate, and put both Computer Craft and my add-on into the mods folder.

The problem it has is that the class dan200.turtle.api.ITurtleUpgrade is not found at runtime. I have checked to make sure that this was the location of the class when compiling the mod, but have been unsuccessful in figuring out how to fix the issue.

The class that seems to be causing the issue (mod_CCAddons.java)

Spoiler

package someone9999.ccaddons;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.modloader.ModLoaderGuiHelper;
import dan200.turtle.api.TurtleAPI;
import net.minecraft.src.BaseMod;
import net.minecraft.src.Block;
import net.minecraft.src.ModLoader;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraftforge.client.MinecraftForgeClient;
public class mod_CCAddons extends BaseMod {

public static final ItemAnalyzer itemAnalyzer = (ItemAnalyzer) new ItemAnalyzer(1000).setIconCoord(0, 0).setItemName("item.analyzer");
@SidedProxy(clientSide="someone9999.ccaddons.RenderProxyClient", serverSide="someone9999.ccaddons.RenderProxyServer")
public static IRenderProxy renderProxy;

@Override
public String getVersion() {
  return "1";
}
@Override
public void load() {
  renderProxy.initForge();

  ModLoader.addName(itemAnalyzer, "Analyzer");

  addRecipes();

}



@Override
public void modsLoaded() {
  System.out.println(ModLoader.getLoadedMods());
  System.out.println("All mods loaded. Beginning API hooks.");
  notifyComputerCraft();
}
private void addRecipes() {
  ModLoader.addShapelessRecipe(new ItemStack(itemAnalyzer.shiftedIndex, 1, 0), new Object[] { Block.dirt });
  ModLoader.addShapelessRecipe(new ItemStack(Block.wood.blockID, 64, 0), new Object[] { Block.dirt, Block.dirt });
  ModLoader.addShapelessRecipe(new ItemStack(Block.glass.blockID, 64, 0), new Object[] { Block.dirt, Block.dirt, Block.dirt });
  ModLoader.addShapelessRecipe(new ItemStack(Item.ingotIron.shiftedIndex, 64, 0), new Object[] { Block.dirt, Block.dirt, Block.dirt, Block.dirt });
  ModLoader.addShapelessRecipe(new ItemStack(Block.stone.blockID, 64, 0), new Object[] { Item.ingotIron } );
  ModLoader.addShapelessRecipe(new ItemStack(Item.redstone.shiftedIndex, 64, 0), new Object[] { Block.stone, Block.stone } );
}


private void notifyComputerCraft() {
  System.out.println("Attempting to integrate with Computer Craft.");
  TurtleAPI.registerUpgrade(new TurtleUpgradeAnalyzer());
}
}


The crash log:
Spoiler—- Minecraft Crash Report —-
// On the bright side, I bought you a teddy bear!

Time: 08/11/12 11:19 PM
Description: Failed to start game

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: someone9999.ccaddons.mod_CCAddons
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:150)
at net.minecraft.client.Minecraft.a(Minecraft.java:420)
at net.minecraft.client.Minecraft.run(Minecraft.java:752)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: someone9999.ccaddons.mod_CCAddons
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:126)
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.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:488)
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:478)
… 4 more
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:163)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:119)
… 32 more

Relevant Details:
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_03, Oracle Corporation
- Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 390830816 bytes (372 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xmx1024m -Xms512m
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- FML: MCP v7.19 FML v4.2.6.422 Minecraft Forge 6.0.1.341 6 mods loaded, 6 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
mod_CCAddons [mod_CCAddons] (cc3.zip) Unloaded->Errored
ComputerCraft [ComputerCraft] (ComputerCraft1.46.zip) Unloaded->Constructed
CCTurtle [ComputerCraft Turtles] (ComputerCraft1.46.zip) Unloaded->Constructed
- LWJGL: 2.8.3
- OpenGL: GeForce GTX 560M/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Definitely; 'forge,fml'
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: ~ERROR~ NullPointerException: null

Any help would be greatly appreciated. Thanks.


Edit: Some extra information, probably not important.
The peripheral that this mod adds in a upgrade to a turtle that allows the user to get the block id, block name, block metadata, and block count from the currently selected slot in the turtle.

Edit 2:
Thanks for the help Espen and Cloudy! I really appreciate it.
For anyone in the future who has the same problem as me, make sure that you add a mcmod.info file to your .zip, and list CCTurtle as a dependency.

Ex:


[
{
"modid": "someone9999.ccaddons",
"dependencies": [
"mod_MinecraftForge",
"CCTurtle"
],
"useDependencyInformation": "true"
}
]
Espen #2
Posted 09 November 2012 - 08:46 PM
What exactly is the folder structure of your cc3.zip file?
For example, the file mod_CCAddons.class should be located in the folder someone9999/ccaddons/ within your zip file.
Is that the case?
someone9999 #3
Posted 09 November 2012 - 08:50 PM
@Espen

Yes, that is the case.

The zip includes:
/someone9999/ccaddons/mod_CCAddons.class
/someone9999/ccaddons/TurtleUpgradeAnalyzer.class
/someone9999/ccaddons/TurtlePeripheralAnalyzer.class
/someone9999/ccaddons/RenderProxyServer.class
/someone9999/ccaddons/RenderProxyClient.class
/someone9999/ccaddons/IRenderProxy.class
/someone9999/ccaddons/ItemAnalyzer
/ccaddons/terrain.png

Thanks for the speedy reply.
Espen #4
Posted 09 November 2012 - 09:05 PM
Hmm, I'm not really seeing the problem. I noticed that you still use the old Modloader way by extending BaseMod.
I don't know if that might be an issue, since it seems to work when when you start directly from eclipse.

Could you perhaps also post your .minecraft/ForgeModLoader-client-0.log file?
It is much more detailed regarding the loading process. Thanks! :unsure:/>/>
someone9999 #5
Posted 09 November 2012 - 09:10 PM
Of course.

Here is the .minecraft/ForgeModLoader-client.0.log file:
Spoiler2012-11-08 23:25:24 [INFO] [ForgeModLoader] Forge Mod Loader version 4.2.6.422 for Minecraft 1.4.2 loading
2012-11-08 23:25:24 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-11-08 23:25:24 [FINEST] [ForgeModLoader] Discovering coremods
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir

2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir

2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir

2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Running coremod plugins
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Validating minecraft
2012-11-08 23:25:25 [FINEST] [ForgeModLoader] Minecraft validated, launching…
2012-11-08 23:25:26 [INFO] [STDOUT] 27 achievements
2012-11-08 23:25:26 [INFO] [STDOUT] 208 recipes
2012-11-08 23:25:26 [INFO] [STDOUT] Setting user: Someone9999, b7746e5522fbff36951b542ce6c9d0935599ce66
2012-11-08 23:25:26 [INFO] [STDERR] Client asked for parameter: server
2012-11-08 23:25:26 [INFO] [STDOUT] LWJGL Version: 2.8.3
2012-11-08 23:25:27 [INFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-11-08 23:25:27 [INFO] [STDOUT] MinecraftForge v6.0.1.341 Initialized
2012-11-08 23:25:27 [INFO] [ForgeModLoader] MinecraftForge v6.0.1.341 Initialized
2012-11-08 23:25:27 [INFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Found a minecraft related file at C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftbinminecraft.jar, examining for mod candidates
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Skipping known library file C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftbinlwjgl.jar
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Skipping known library file C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftbinlwjgl_util.jar
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Skipping known library file C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftbinjinput.jar
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Skipping known library file C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftlibargo-2.25.jar
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Skipping known library file C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftlibguava-12.0.1.jar
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Skipping known library file C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftlibasm-all-4.0.jar
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2012-11-08 23:25:27 [INFO] [ForgeModLoader] Searching C:UsersBrandonDesktopMulti MCinstancesCCAddons.minecraftmods for mods
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Found a candidate zip or jar file cc4.zip
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Found a candidate zip or jar file ComputerCraft1.46.zip
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods
2012-11-08 23:25:27 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Examining file cc4.zip for potential mods
2012-11-08 23:25:27 [FINE] [ForgeModLoader] The mod container cc4.zip appears to be missing an mcmod.info file
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Identified a BaseMod type mod someone9999.ccaddons.mod_CCAddons
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Examining file ComputerCraft1.46.zip for potential mods
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Located mcmod.info file in file ComputerCraft1.46.zip
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Identified an FMLMod type mod dan200.CCTurtle
2012-11-08 23:25:27 [FINEST] [ForgeModLoader] Parsed dependency info : [] [ComputerCraft] []
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Identified an FMLMod type mod dan200.ComputerCraft
2012-11-08 23:25:27 [FINEST] [ForgeModLoader] Parsed dependency info : [] [] []
2012-11-08 23:25:27 [INFO] [ForgeModLoader] Forge Mod Loader has identified 6 mods to load
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Received a system property request ''
2012-11-08 23:25:27 [FINE] [ForgeModLoader] System property request managing the state of 0 mods
2012-11-08 23:25:27 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Activating mod mcp
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Activating mod FML
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Activating mod Forge
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Enabling mod mod_CCAddons
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Activating mod mod_CCAddons
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Enabling mod CCTurtle
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Activating mod CCTurtle
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Enabling mod ComputerCraft
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Activating mod ComputerCraft
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Verifying mod requirements are satisfied
2012-11-08 23:25:27 [FINE] [ForgeModLoader] All mod requirements are satisfied
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Sorting mods into an ordered list
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Mod sorting completed successfully
2012-11-08 23:25:27 [FINE] [ForgeModLoader] Mod sorting data:
2012-11-08 23:25:27 [FINE] [ForgeModLoader] mod_CCAddons(mod_CCAddons:Not available): cc4.zip ()
2012-11-08 23:25:27 [FINE] [ForgeModLoader] ComputerCraft(ComputerCraft:1.46): ComputerCraft1.46.zip ()
2012-11-08 23:25:27 [FINE] [ForgeModLoader] CCTurtle(ComputerCraft Turtles:1.46): ComputerCraft1.46.zip (after:ComputerCraft)
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod mcp
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod mcp
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod FML
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod FML
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod Forge
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod Forge
2012-11-08 23:25:27 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod mod_CCAddons
2012-11-08 23:25:27 [INFO] [STDERR] Exception in thread "Minecraft main thread" java.lang.NoClassDefFoundError: dan200/turtle/api/ITurtleUpgrade
2012-11-08 23:25:27 [INFO] [STDERR] at java.lang.Class.forName0(Native Method)
2012-11-08 23:25:27 [INFO] [STDERR] at java.lang.Class.forName(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
2012-11-08 23:25:27 [INFO] [STDERR] at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:488)
2012-11-08 23:25:27 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-11-08 23:25:27 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-11-08 23:25:27 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
2012-11-08 23:25:27 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-11-08 23:25:27 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-11-08 23:25:27 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-11-08 23:25:27 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
2012-11-08 23:25:27 [INFO] [STDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
2012-11-08 23:25:27 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:150)
2012-11-08 23:25:27 [INFO] [STDERR] at net.minecraft.client.Minecraft.a(Minecraft.java:420)
2012-11-08 23:25:28 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:752)
2012-11-08 23:25:28 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
2012-11-08 23:25:28 [INFO] [STDERR] Caused by: java.lang.ClassNotFoundException: dan200.turtle.api.ITurtleUpgrade
2012-11-08 23:25:28 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:126)
2012-11-08 23:25:28 [INFO] [STDERR] at java.lang.ClassLoader.loadClass(Unknown Source)
2012-11-08 23:25:28 [INFO] [STDERR] at java.lang.ClassLoader.loadClass(Unknown Source)
2012-11-08 23:25:28 [INFO] [STDERR] … 29 more
2012-11-08 23:25:28 [INFO] [STDERR] Caused by: java.lang.NullPointerException
2012-11-08 23:25:28 [INFO] [STDERR] at org.objectweb.asm.ClassReader.<init>(Unknown Source)
2012-11-08 23:25:28 [INFO] [STDERR] at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
2012-11-08 23:25:28 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:163)
2012-11-08 23:25:28 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:119)
2012-11-08 23:25:28 [INFO] [STDERR] … 31 more
2012-11-08 23:25:29 [INFO] [STDERR] Someone is closing me!

I'm personally stumped at the issue.
Espen #6
Posted 09 November 2012 - 09:23 PM
That's really odd. Are you making use of the ComputerCraft API? If so, maybe include it in your project.
It shouldn't really be necessary because it's already in the ComputerCraft zip-file, but at the moment I'm stumbling in the dark as well.^^
Would you mind uploading your zip file so we can try it ourselves? Just if you don't mind.

P.S.: If you haven't noticed it already: you might want to search&amp;replace your name in the log-file if you don't want it to be public.
someone9999 #7
Posted 09 November 2012 - 09:31 PM
Sure.

http://dl.dropbox.co...3952279/cc5.zip

I'll try adding the api to the zip and see if that works.

Thanks for the catch on the name.

Edit: Adding the api files directly to the zip with the obfuscated class files works. This befuddles me, but it works now. Thanks!

Edit 2: Adding the zip without the api files to a minecraft folder that has another computer peripheral installed, such as cables seems to allow the mod to work as well.
Espen #8
Posted 09 November 2012 - 09:45 PM
Yep, just confirmed the same error, as well as getting it to work with the API files included in the project.
I always put them in my project without really thinking about it. In the back of my mind I guess I just assumed that having ComputerCraft in the mods folder as well would be enough and I was just over-careful.

But thinking about it now, it makes sense, as every mod loads in its own namespace. Therefore you have to include the API explicitly?
Hmm, I'm not too sure at the moment, but I'm glad you got it working.
I really need to take a nap now, it's almost 10 in the morning (again) and I haven't slept yet.
Cu &amp; have fun! :unsure:/>/>
someone9999 #9
Posted 09 November 2012 - 09:48 PM
Your right, It probably is something to do with namespaces.

Thanks for all the help in getting my mod to work. I really appreciate it.
Espen #10
Posted 09 November 2012 - 10:04 PM
Ok, I think I found the reason. The API interfaces included in the ComputerCraft zip are the latest ones, whereas the separately released API interfaces aren't.
And since they are different they are incompatible with each other.

So I guess in the future I'll just ignore the separate (older) API interface and just use the ones from the deobfuscated ComputerCraft zip directly.
That is, as long as it doesn't reference base classes and only contains "cleanly" deobfuscated names, if you know what I mean.

Alright, learned something as well, so thank you too.^^

Cu
Cloudy #11
Posted 09 November 2012 - 10:21 PM
The issue is your mod is getting loaded before ComputerCraft. That is happening because you didn't set ComputerCraft as a requirement to load after - check the BaseMod spec for how to do that.

It is nothing todo with old API interfaces - we haven't changed the location nor substantially changed the API's to the extent it would cause an issue (except with two functions, and that would be a different error).
Espen #12
Posted 09 November 2012 - 10:46 PM
Ok, I just remembered that I set this up many weeks ago in the mcmod.info when I first created the mod-skeleton and have never since thought about it.
No wonder I never encountered this problem with my own mods from then on.
Now I know why, lol. Thanks for bringing illumination to this issue. :unsure:/>/>