Cannot find behaviors class #19


  • Defect
  • Replied
Open
Assigned to _ForgeUser9840713
  • _ForgeUser10867129 created this issue Dec 8, 2013

    What steps will reproduce the problem?
    1. add de.ntcomputer.minecraft.controllablemobs.api.ai.behaviors.AIAttackMelee to imports or anything from behaviors.
    2. load server
    3.

    What is the expected output? What do you see instead?
    expected no error but got the following:
    http://pastebin.com/3Xy8ZAyu
    server refuses to load plugin

    What version of the API and CraftBukkit are you using?
    using version API v4 Alpha 2 on 1.5.2.

    Do you have an error log of what happened?
    http://pastebin.com/3Xy8ZAyu (same as above)

    Please provide any additional information below.

    was attempting to add the melee attack behavior to my zombie using

    AIAttackMelee behavior = new AIAttackMelee();
    controlledZombie.getAI().addBehavior(behavior);

    but even if I remove those 2 lines and have the unused import in my plugin I still get the error. All other functions of the plugin seem to be working fine though.

    EDIT: after fiddling around I found that using .addBehavior*s* fixed the issue.

  • _ForgeUser10867129 added the tags New Defect Dec 8, 2013
  • _ForgeUser10867129 edited description Dec 8, 2013
  • _ForgeUser9840713 posted a comment Dec 10, 2013

    Really strange issue!

    Are you sure those classes were not actually missing in your production .jar? Or were you using the (unmodified) plugin? Class loading may fail as well when an uncaught exception is thrown in static initializers (though that classes shouldn't contain any).

    Also, the "fix" doesn't make any sense at all, since (a) the classes are being loaded in the statement before and (b) the two statements are using the same classes.

    Also, you might just try a newer version.

  • _ForgeUser9840713 removed a tag New Dec 10, 2013
  • _ForgeUser9840713 added a tag Waiting Dec 10, 2013
  • _ForgeUser9614536 posted a comment Feb 17, 2014

    I also have an issue with classes loading. This plugin ONLY works on bukkit 2974. No spigot, none of the new bukkits.I was getting an issue with the NativeInterface class.

  • _ForgeUser9614536 posted a comment Feb 17, 2014

    I also have an issue with classes loading. This plugin ONLY works on bukkit 2974. No spigot, none of the new bukkits.I was getting an issue with the NativeInterface class.

  • _ForgeUser9614536 removed a tag Waiting Feb 17, 2014
  • _ForgeUser9614536 added a tag Replied Feb 17, 2014

To post a comment, please login or register a new account.