[FUN/MECH] npcx (v0.0.31) - The NPC eXtender (now for 1.8.1) [1097-1157]

Discussion in 'Inactive/Unsupported Plugins' started by wizjany, May 9, 2011.

  1. Offline

    wizjany

    npcx - The NPC eXtender
    Version: 0.0.31

    UPDATE: mixxit has took the initiative to update the npclib to 1.8, all credit for this update goes to him! it should work on any 1.8 version of craftbukkit

    If you are having trouble, please read the old thread here and the included readme.txt that mixxit left. If you know of any other tutorials, do post and I'll add them.

    Info Update: Well long story short I am beginning to get bored of Minecraft and I don't have as much time as I would like to develop this plugin. This probably means that the rewrite I had planned is just going to die. Besides lack of time and motivation, I find it extremely pointless to write an API for NPCs outside of bukkit/craftbukkit, which makes the rewrite I was working on very frustrating. However, I will continue to update mixxit's code for new versions of minecraft, but don't expect any new features or anything.
    Update 2: As NPCs are being planned natively for 1.8 (the adventure update), I will probably be working on a (separate) plugin or directly with the NPC API if I have time.

    Note: If you have iConomy, make sure you have at least version 5+ or you'll get an error like this.
    Code:
    [SEVERE] Could not pass event WHATEVER_EVENT to npcx
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    You should also be able to add "use-iConomy=false" in the npcx properties file.

    If you're having trouble installing MySql on windows, here's a nice guide: http://forums.bukkit.org/posts/293544, thanks to Atticus Craft. Basic WAMP/LAMP/MAMP servers should work fine too, just make sure you have the username/password correct and the database with permissions to the right user.

    Features:
    • You can create npcs
    • And they do stuff
    • Everything should work like it did in mixxit's last version
    And by "work like it did" I mean I have no clue if there were bugs from then, but they're probably still around now. Please report any you find so I can take them into consideration.

    For MC 1.8.1 (1097+, no RB yet) Download
    For MC 1.7 (937+, 953, 1k): Download
    For MC 1.6 (807+): Download
    For MC 1.5 (740-803): Download
    Source Code

    Changelog:
    Version 0.0.31
    • Updated to MC 1.8.1 (by Mixxit)
    Version 0.0.3
    • Updated for Grum's internal renaming
    Version 0.0.2
    • Updated for 1.6
    Version 0.0.1
    • Updated for 1.5
    • Began code revamp
    All credits go to mixxit for his work. Special thanks to sk89q and fullwall, even if they don't know they helped.
     
    wassilij, Zoaen, nathanaelps and 2 others like this.
  2. Offline

    Darknessblea

    17:13:19 [WARNING] npcx: error: Table 'npcx.spawngroup' doesn't exist[Ljava.lang
    .StackTraceElement;@dff12f
    17:13:19 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Tab
    le 'npcx.spawngroup' doesn't exist
    17:13:19 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    17:13:19 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (NativeConstructorAccessorImpl.java:57)
    17:13:19 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(DelegatingConstructorAccessorImpl.java:45)
    17:13:19 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor
    .java:525)
    17:13:19 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    17:13:19 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:382)
    17:13:19 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
    ava:1052)
    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:
    3593)
    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:
    3525)
    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)

    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:21
    40)
    17:13:19 [SEVERE] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.
    java:2626)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeInternal(Prep
    aredStatement.java:2111)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(Prepar
    edStatement.java:2407)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(Prepar
    edStatement.java:2325)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(Prepar
    edStatement.java:2310)
    17:13:19 [SEVERE] at net.gamerservices.npcx.npcx.onCommand(npcx.java:1041)

    17:13:19 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:40)
    17:13:19 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:163)
    17:13:19 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:358)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:757)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:722)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:715)
    17:13:19 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    3)
    17:13:19 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:92)
    17:13:19 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :108)
    17:13:19 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:471)
    17:13:19 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:374)
    17:13:19 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:417)
    do we need to make the table or is the plugin ? please help :)
     
  3. Offline

    darkadders

    im currently making an adventure map, and it needs npc's to act out the parts of a game im replicating, can these npcs be hostile? can they spawn when an action ingame is set? can i give these npc's different skins? and most importantly, is it possible for them to work in singleplayer?

    PLEASE reply to this as soon as possible! i need it, seeing im nearly done with the map ^^
     
  4. Offline

    mixxit

    yep just assign a faction to them with the relevant settings for their base (see documentation)
     
  5. Offline

    Chett

    Nice to hear. I using them right now as Endbosses in selfmade Dungeons and as Talkingbots to assist Citizens Quest NPCs. I really would like to get rid of citizens.

    Any News about the state ? Or any ETA, maybe ?
     
  6. Offline

    thetank332

    Can I make so a npc tp u if u click it?

    Or can u make?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  7. Offline

    latinolli63

    when I start the server is a fault )-::'(
    2011-10-28 12:34:25 [INFO] npcx : config folder generation ended
    2011-10-28 12:34:25 [INFO] npcx : properties file generation ended
    2011-10-28 12:34:25 [INFO] npcx : initial setup ended
    2011-10-28 12:34:25 [INFO] npcx : load settings (0.031) begun
    2011-10-28 12:34:25 [INFO] jdbc:mysql://localhost:3306/npcx?autoReconnect=true
    2011-10-28 12:34:25 [INFO] npcx : initialising database connection
    2011-10-28 12:34:36 [INFO] *******************************************
    2011-10-28 12:34:36 [INFO] npcx : ERROR - Error during MySQL login *
    2011-10-28 12:34:36 [INFO] This generally means that you forgot to *
    2011-10-28 12:34:36 [INFO] create a MySQL user and database the same*
    2011-10-28 12:34:36 [INFO] as defined in your npcx.properties file *
    2011-10-28 12:34:36 [INFO] *******************************************
    2011-10-28 12:34:36 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2239)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2168)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    2011-10-28 12:34:36 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at net.gamerservices.npcx.myUniverse.openDB(myUniverse.java:129)
    2011-10-28 12:34:36 [SEVERE] at net.gamerservices.npcx.myUniverse.loadSetup(myUniverse.java:245)
    2011-10-28 12:34:36 [SEVERE] at net.gamerservices.npcx.npcx.onEnable(npcx.java:568)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-10-28 12:34:36 [SEVERE] Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2186)
    2011-10-28 12:34:36 [SEVERE] ... 25 more
    2011-10-28 12:34:36 [SEVERE] Caused by: java.net.ConnectException: Connection refused: connect
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.socketConnect(Native Method)
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.doConnect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.SocksSocketImpl.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.<init>(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.<init>(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
    2011-10-28 12:34:36 [SEVERE] ... 27 more
     
  8. Offline

    ladan208

    can i get some info about what this plugin does plz?
     
  9. Offline

    DKGamer7

    I haven't found any answer to this.
    Every time i try to do a command it says "An error occurred"
    Please Help
     
  10. Offline

    xeNium

    Where is the permissions.node ? .. Nodocumentation i found at this plugins thread
    No permissions.node? Please use DevBukkit to make your document easier to be understood?

    Can you make a documentation include everything? Improtant: Commands and permissions
     
  11. Offline

    seprom

    CAn someone create this for 1.0.0?
     
  12. Offline

    gait

    i have found a bug when a walk to a npc and jump on it it will boost me back and the console thought i was hacking/moving to fast
    it look like the NPC's are spawnging every second and there are coming more and more
    if you could fix this thanks!
    sorry for my bad english :S
     
  13. Offline

    Cidvond

    been haveing thease same few errors and I can not figure out what is worng. It only starts spaming the server when I spawn an NPC. Also the NPCs look like there is 5 in one spot when I only spawn 1 npc. Also if you run into the NPC it pushes you away from it sometimes lunching you really far away. When you attack the NPC it only can be hit once. Please help.

     
  14. Offline

    md_5

    Long time no see wizjany. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     

Share This Page