Jump to content

Modifying a mod depending on closed source mod


hoho

Recommended Posts

I'm a complete noob when it comes to MC modding but I'd consider myself good enough coder in general.

Today, just for fun, I tried to port HungerOverhaul to 1.6.4 and got a (small?) problem. The mod has full source available but depends on Pam's harvest craft and that one doesn't have either source or API. I've tried all sorts of things I could come up with to no result.

Initially I just added as an external lib (to get HC to compile) + added to mcp/jars/mods->


2013-10-25 19:36:22 [sEVERE] [ForgeModLoader] Caught exception from pamharvestcraft

java.lang.NoSuchFieldError: field_76254_j

    at assets.pamharvestcraft.BlockPamCrop.<init>(BlockPamCrop.java:44)

    at assets.pamharvestcraft.PamHarvestCraft.preInit(PamHarvestCraft.java:831)

    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)

....

I've tested HC with the same forge version as I'm using for developing and it loads up just fine. I guess it's erroring as it assumes obfuscated MC?

Next I tried to decompile it with both but it gets decompiled jd-gui and fernflower included in MCP but both caused HC to have a ton of problems as it was using obfuscated MC names. I tried to run BON and deobfuscate to srg but that didn't seem to help at all.

So, anyone has any idea how I might get it working?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...