Tried to update it but it broke, Title may be misleading #25


  • New
  • Defect
Open
Assigned to _ForgeUser9840713
  • _ForgeUser8566406 created this issue Jul 24, 2014

    What steps will reproduce the problem?
    1. Download source
    2. Change all the v1_7_R1 to v1_7_R4
    3. remove all PluginClassLoader related things
    4. change attribute.a() into attribute.getName() (NmsIAttribute Line12) and attribute.getAttribute() (NmsAttributeModifiable Line 24)
    (Don't know if what I did in step 4 was right but did it to remove errors as .a() was not a recognized method)

    The log when it breaks

    [14:29:44] [Server thread/WARN]: de.ntcomputer.minecraft.controllablemobs.implementation.nativeinterfaces.system.ServerReflectionException: [ControllableMobsAPI] detected an incompatibility between the API and this CraftBukkit version. Visit http://dev.bukkit.org/server-mods/controllable-mobs-api/ for more information. +++ de.ntcomputer.minecraft.controllablemobs.implementation.nativeinterfaces.primitives.NativeStaticFieldObject: class GenericAttributes, field a +++
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.implementation.nativeinterfaces.system.NativeInterface.handleException(NativeInterface.java:11)
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.implementation.nativeinterfaces.primitives.NativeStaticFieldObject.get(NativeStaticFieldObject.java:16)
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.implementation.CraftControllableMobAttributes.<init>(CraftControllableMobAttributes.java:25)
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.implementation.CraftControllableMob.<init>(CraftControllableMob.java:23)
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.api.ControllableMobs.putUnderControl(ControllableMobs.java:256)
    [14:29:44] [Server thread/WARN]: 	at me.euan142.main.mob.Mobs.spawn(Mobs.java:24)
    [14:29:44] [Server thread/WARN]: 	at me.euan142.main.main.onCommand(main.java:169)
    [14:29:44] [Server thread/WARN]: 	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    [14:29:44] [Server thread/WARN]: 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181)
    [14:29:44] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1016)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:846)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:731)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490)
    [14:29:44] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
    [14:29:44] [Server thread/WARN]: Caused by: java.lang.NoSuchFieldException: a
    [14:29:44] [Server thread/WARN]: 	at java.lang.Class.getDeclaredField(Unknown Source)
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.implementation.nativeinterfaces.system.NativeFieldPrivate.getField(NativeFieldPrivate.java:29)
    [14:29:44] [Server thread/WARN]: 	at de.ntcomputer.minecraft.controllablemobs.implementation.nativeinterfaces.primitives.NativeStaticFieldObject.get(NativeStaticFieldObject.java:14)
    [14:29:44] [Server thread/WARN]: 	... 19 more
    

    What version of the API and CraftBukkit are you using?
    API version MC1.7.9
    CraftBukkit version 1.7.10 R0.1

    Please provide any additional information below.
    What is happening when the error happens is me creating the Controllable mob and then getting the original entity (in this case Cow) from it.

    Please create some sort of upgrade guide or (if you can, don't know much nms at all) rewrite the nms in your plugin to something like proticollib so you/others don't have to update the plugin for each version.

    So far your API is the only API that fulfills my needs, I like your plugin but to use it I either need to downgrade everything to an older version or learn a lot of nms to make it work. Also if you need any other information on the error feel free to ask.

    Euan.

    Edit:
    Just discovered the source code on GitHub is quite outdated, this is probably the reason it isn't working but even so a updated source code would be nice.

  • _ForgeUser8566406 added the tags New Defect Jul 24, 2014
  • _ForgeUser8566406 edited description Jul 24, 2014
  • _ForgeUser8566406 edited description Jul 24, 2014

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