1. Forum
  2. Wiki
  3. Bugtracker
  4. Blog
  5. Members
    1. Recent Activities
    2. Users Online
    3. Team
    4. Search Members
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Forum
  • Pages
  • More Options
  1. IC² Forum
  2. Forum
  3. IndustrialCraft²
  4. Support
IC2 Experimental builds (jenkins):
v2.0/2.1/2.2 / 2.3 / 2.5 / 2.6 / 2.7 / 2.8 (For Minecraft 1.6.4/1.7.2/1.7.10 / 1.8.9 / 1.9.4 / 1.10 / 1.11 / 1.12)
IndustrialCraft² recent version: v1.117!

Creating an addon

  • Platinman
  • April 5, 2017 at 5:43 PM
1st Official Post
  • Platinman
    Tree Cutter
    Posts
    7
    • April 5, 2017 at 5:43 PM
    • #1

    Hello Everyone!

    I am currently trying to write a small test addon for industrialcraft, but ran into a problem, I hope someone can help me fix it.

    Forge is set up correctly, i hope, as it starts normaly without any 'libs' or mods.

    But when a i add any kind of mod to the mods folder or to the librarys of my ide (InteliJ 2017.1) i get a crash while startup.
    I read online, that i have to add CodeChickenCore to the mods to enable runtime deobfuscation but it still crashes.

    Crashlog:
    https://pastebin.com/fnk9S3NF

    • Quote
  • Aroma1997
    IC² Developer
    Reactions Received
    55
    Posts
    999
    • April 5, 2017 at 8:04 PM
    • Official Post
    • #2

    This is probably cause by you using different mcp mappings than IC2 uses for the dev jar. Which mcp mappings are you using?

    Check out my mods here.

    • Next Official Post
    • Quote
  • Platinman
    Tree Cutter
    Posts
    7
    • April 5, 2017 at 8:09 PM
    • #3

    I am using the "stable_12" mappings with thge forge version "1.7.10-10.13.4.1558-1.7.10" and it also crashes if i add other mods eg thermal expansion

    • Quote
  • Aroma1997
    IC² Developer
    Reactions Received
    55
    Posts
    999
    • April 6, 2017 at 9:04 AM
    • Official Post
    • #4

    That's weird. I think we're also using the stable_12 mappings. What's the crash log if you add TE?

    Check out my mods here.

    • Previous Official Post
    • Next Official Post
    • Quote
  • Speiger
    TMT & IC2 Classic Dev
    Reactions Received
    12
    Posts
    1,086
    Location
    Germany
    • April 6, 2017 at 11:12 AM
    • #5

    Did you take out the Jar that is inside the IC2Exp jar and put it into your Eclipse/Idea lib folder and registered it into your aviable source?

    Because IC2Exp has a Library that it can't extract when its in a dev envioment. And that could cause the crash. (I had that issue already)

    • Quote
  • Chocohead
    Drowning in mods.
    Reactions Received
    100
    Posts
    5,058
    Location
    Badly generated chunks.
    • April 6, 2017 at 3:45 PM
    • Official Post
    • #6
    Quote from Speiger

    And that could cause the crash.

    Not that crash, none of that code even requires EJML. If it was missing the library it would (or at the very least should) break trying to find it.

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.

    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(

    I see this too much.

    • Previous Official Post
    • Next Official Post
    • Quote
  • Speiger
    TMT & IC2 Classic Dev
    Reactions Received
    12
    Posts
    1,086
    Location
    Germany
    • April 6, 2017 at 4:16 PM
    • #7

    It doesnt do that in a dev Envioment.

    • Quote
  • Platinman
    Tree Cutter
    Posts
    7
    • April 6, 2017 at 4:36 PM
    • #8

    Ok Guys I am back home.
    If i add TE i get this crash: https://pastebin.com/RMTVMJ7R
    I realy hope it isnt caused because of Intelij :/

    And adding the lib, as expected, did nothing (Not even shure why i even tryed it)

    • Quote
  • Aroma1997
    IC² Developer
    Reactions Received
    55
    Posts
    999
    • April 6, 2017 at 5:49 PM
    • Official Post
    • #9

    Try removing all mods but forge and see if it works then. If it doesn't work, your dev env is messed up.

    Check out my mods here.

    • Previous Official Post
    • Next Official Post
    • Quote
  • Platinman
    Tree Cutter
    Posts
    7
    • April 6, 2017 at 5:58 PM
    • #10

    It works if no mods are in the mods folder, it also works if there is only CodeChickenCore(still dont know if it is needed)

    Edited once, last by Platinman (April 6, 2017 at 9:25 PM).

    • Quote
  • Speiger
    TMT & IC2 Classic Dev
    Reactions Received
    12
    Posts
    1,086
    Location
    Germany
    • April 7, 2017 at 9:28 AM
    • #11

    could be that you need a dev version.

    • Quote
  • Aroma1997
    IC² Developer
    Reactions Received
    55
    Posts
    999
    • April 7, 2017 at 12:28 PM
    • Official Post
    • #12

    if you have CCC and CCL, you should be able to use the normal jar (not the dev one). iirc, CCC does runtime deobfuscation of mods in 1.7.10.

    Check out my mods here.

    • Previous Official Post
    • Next Official Post
    • Quote
  • Platinman
    Tree Cutter
    Posts
    7
    • April 7, 2017 at 4:38 PM
    • #13

    It is still crashing, i tried to add Code Chicken Core and NEI to the dependencies via the build.gradle, which worked, but with the same results as before, the game crashed.
    Also i get a asm stacktrace if i add NEI and then a class not found exception from NEI.
    And I tried using eclipse, without any results.

    • Quote
  • Chocohead
    Drowning in mods.
    Reactions Received
    100
    Posts
    5,058
    Location
    Badly generated chunks.
    • April 7, 2017 at 4:57 PM
    • Official Post
    • #14

    It sounds like there's something badly wrong with the environment if NEI is also crashing with CNF exceptions.

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.

    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(

    I see this too much.

    • Previous Official Post
    • Quote
  • Platinman
    Tree Cutter
    Posts
    7
    • April 7, 2017 at 5:57 PM
    • #15

    I used a tutorial to set up my enviroment :/

    looks like the classloader denies acces to the classes or smth, as it cant find the classes/Methods within the same mod

    • Quote

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
Powered by WoltLab Suite™