Jump to content

Reobfuscated classfiles error? | Forge | Eclipse | MCP |


Recommended Posts

Posted

Yeah, Hi!

 

I'm sorta new to modding, and decided to make a basic mod, which just adds decorative bricks.

 

Now, the mod works fine all in all when I run it in eclipse. I backed the MCP folder up, and then I tried recompiling and reobfuscating the classfiles. Instinctively, I went into the reobf folder. This is what was in it:

 

 

ReObf/minecraft/net/gemstone/src/CLASSFILES (Don't ask about the mod title :/)

 

I try to put the files in a zipfile, and put them in the mods folder. (Please note that I've tried putting the classfiles in the jar aswell, but I got the same error.

 

Here's my error log: (Using MultiMC)

 

      Minecraft has crashed!     

      ----------------------     

 

Minecraft has stopped running because it encountered a problem; Failed to start game

 

A full error report has been saved to /Users/Jakob/Desktop/MultiMC.app/Contents/Resources/instances/bloo/minecraft/crash-reports/crash-2012-12-29_18.12.58-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash :(

 

 

 

--- BEGIN ERROR REPORT 702bc5d4 --------

Full report at:

/Users/Jakob/Desktop/MultiMC.app/Contents/Resources/instances/bloo/minecraft/crash-reports/crash-2012-12-29_18.12.58-client.txt

Please show that file to Mojang, NOT just this screen!

 

Generated 12/29/12 6:12 PM

 

-- System Details --

Details:

Minecraft Version: 1.4.6

Operating System: Mac OS X (x86_64) version 10.6.8

Java Version: 1.6.0_37, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 483605360 bytes (461 MB) / 534708224 bytes (509 MB) up to 1069416448 bytes (1019 MB)

JVM Flags: 2 total; -Xms512m -Xmx1024m

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.25 FML v4.6.12.511 Minecraft Forge 6.5.0.480 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML [Forge Mod Loader] (coremods) Unloaded->Constructed

Forge [Minecraft Forge] (coremods) Unloaded->Constructed

testingMod [Fallings Bricks Mod] (falling.zip) Unloaded->Errored

LWJGL: 2.4.2

OpenGL: NVIDIA GeForce 9400M OpenGL Engine GL version 2.1 NVIDIA-1.6.36, NVIDIA Corporation

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.gemstone.src.modtestbase

at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)

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(Thread.java:680)

Caused by: java.lang.ClassNotFoundException: net.gemstone.src.modtestbase

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:247)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:414)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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)

... 5 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:222)

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171)

... 32 more

--- END ERROR REPORT e4a33a01 ----------

 

 

 

 

 

 

And here is my code:

 

CORE

 

package net.gemstone.src;

 

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.block.Block;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

@Mod (modid = "testingMod", name = "Fallings Bricks Mod", version = "1.0")

public class modtestbase {

 

public static final Block gemstoneBlock = new BlockGemstone(3000, 0).setLightValue(1F).setHardness(3F).setBlockName("gemstoneBlock");

public static final Item gemstone = new ItemGemstone(3300).setItemName("gemstone");

public static final Block gemstonegreenBlock = new BlockGreenbrick(3001, 1).setLightValue(1F).setHardness(3F).setBlockName("greenBlock");

public static final Block gemstoneredBlock = new BlockRedbrick(3002, 2).setLightValue(1F).setHardness(3F).setBlockName("redBlock");

 

@Init

public void load(FMLInitializationEvent event){

GameRegistry.registerBlock(gemstoneBlock);

GameRegistry.registerBlock(gemstonegreenBlock);

GameRegistry.registerBlock(gemstoneredBlock);

 

LanguageRegistry.addName(gemstoneredBlock, "Fallings Red Brick");

 

LanguageRegistry.addName(gemstoneBlock,  "Fallings Blue Brick");

 

LanguageRegistry.addName(gemstonegreenBlock, "Fallings Green Brick");

 

LanguageRegistry.addName(gemstone, "Fallings Edible Gem");

 

GameRegistry.addRecipe(new ItemStack(gemstoneredBlock, 4), new Object[]{

"#*#","#%#","#*#", Character.valueOf('#'), Block.stoneBrick, Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 1), Character.valueOf('%'), Item.lightStoneDust

});

 

GameRegistry.addRecipe(new ItemStack(gemstonegreenBlock, 4), new Object[]{

"#*#","#%#","#*#", Character.valueOf('#'), Block.stoneBrick, Character.valueOf('*'), Block.cactus, Character.valueOf('%'), Item.lightStoneDust

});

 

GameRegistry.addRecipe(new ItemStack(gemstoneBlock, 4), new Object[]{

"#*#","#%#","#*#", Character.valueOf('#'), Block.stoneBrick, Character.valueOf('%'), Item.lightStoneDust, Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 4)

});

}

 

 

@PreInit

public void init(FMLPreInitializationEvent preEvent){

 

}

 

}

 

 

BLOCK 1/2/3

 

package net.gemstone.src;

 

import net.minecraft.block.material.Material;

import net.minecraft.block.Block;

import net.minecraft.creativetab.CreativeTabs;

 

public class BlockGreenbrick extends Block {

 

public BlockGreenbrick(int par1, int par2) {

super(par1, par2, Material.rock);

setCreativeTab(CreativeTabs.tabBlock);

}

 

public String getTextureFile() {

return"/gemstone_mod/Blocks.png";

}

}

 

 

 

The blocks are all alike, but with different names.

 

The package all the classes are in is called net.gemstone.src

 

Thanks for all help, If there's anything more I need to provide, please feel free to ask.

 

PS. I'm probably just a huge noob, so please, don't be too hard on me, it's my first mod! ;)

 

/Falling

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Yep I did upgrade just because it showed me a new version available.  I'll redownload the mod list and make sure anything works.  Thanks!
    • The latest log was taken down by pastebin for some reason. Did you try removing the mods you added? The mods you updated, was there a specific reason you updated, or just because? It's possible the updates introduced incompatibilitie, or even need a newer build of forge. If you didn't need the updates for a specific reason, you could also try downgrading those mods.
    • Please read the FAQ, and post logs as described there. https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/
    • I am using forge 1.20.1 (version 47.3.0). My pc has an RTX 4080 super and an i9 14900 KF, I am on the latest Nvidia graphics driver, latest windows 10 software, I have java 23, forge 1.12.2 works and so does all vanilla versions but for some reason no version of forge 1.20.1 works and instead the game just crashes with the error code "-1." I have no mods in my mods fodler, I have deleted my options.txt and forge.cfg files in case my settings were causing a crash and have tried removing my forge version from the installations folder and reinstalling but no matter what I still crash with the same code and my log doesn't tell me anything: 18:34:53.924 game 2025-02-06 18:34:53,914 main WARN Advanced terminal features are not available in this environment 18:34:54.023 game [18:34:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, mrmirchi, --version, 1.20.1-forge-47.3.0, --gameDir, C:\Users\aryam\AppData\Roaming\.minecraft, --assetsDir, C:\Users\aryam\AppData\Roaming\.minecraft\assets, --assetIndex, 5, --uuid, 2db00ea8d678420a8956109a85d90e9d, --accessToken, ????????, --clientId, ZWI3NThkNzMtNmNlZS00MGI5LTgyZTgtYmZkNzcwMTM5MGMx, --xuid, 2535436222989555, --userType, msa, --versionType, release, --quickPlayPath, C:\Users\aryam\AppData\Roaming\.minecraft\quickPlay\java\1738838092785.json, --launchTarget, forgeclient, --fml.forgeVersion, 47.3.0, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] 18:34:54.027 game [18:34:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.8 by Microsoft; OS Windows 10 arch amd64 version 10.0 18:34:54.132 game [18:34:54] [main/INFO] [ne.mi.fm.lo.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow 18:34:54.191 game [18:34:54] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6 18:34:54.303 game [18:34:54] [main/INFO] [EARLYDISPLAY/]: Requested GL version 4.6 got version 4.6 18:34:54.367 monitor Process Monitor Process crashed with exit code -1     screenshot of log: https://drive.google.com/file/d/1WdkH88H865XErvmIqAKjlg7yrmj8EYy7/view?usp=sharing
    • I am currently working on a big mod, but I'm having trouble with my tabs, I want to find a way to add tabs inside tabs, like how in mrcrayfishes furniture mod, his furniture tab has multiple other sub tabs to them, so i know it is possible but i just don't know how it is possible, any help would be appreciated, thanks
  • Topics

×
×
  • Create New...

Important Information

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