Inactive [Inactive][FUN] NPCX + Civilizations! [1.8] Everquest style BOTS, paths, aggro, loot, guard, shops,.

Discussion in 'Inactive/Unsupported Plugins' started by mixxit, Mar 19, 2011.

  1. Offline

    mixxit

    npcx!
    Version: See thread title for bukkit compatibility (usually RB)
    Test Server: world.soliniaonline.com:25565

    [​IMG]

    Implements everquest style npc spawngroups using the npc library allowing you to make persistent npcs/rare npcs spawn around your map. Npcs will fight back if attacked and even talk on right click. They will sell items and can even have loot assigned and be given factions and paths to walk and npc trading

    Install / Changelog / Commands / README

    All of this has now moved to http://soliniaonlinemc.wordpress.com/2011/09/24/npcx/

    Addendum

    I will be updating NPCX in the future with a rewrite for 1.9 bot functionality
     
  2. Offline

    Nafds

    I am usually on the site off and on.

    I don't really know for sure when I will be available. Might wanna start a conversation though. Don't want to spam this thread.
     
  3. Offline

    mixxit

    fixed, i err think!

    Use mysql workbench 5.2 ce, it's free to download and you can setup a database with user/pass quite easily

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  4. Offline

    TuRmoiLxx

    You think I could get some help regarding that via Discussion?
     
  5. Offline

    Nate204

    Ok, So creating a spawn group and a NPC yield no errors. When I add the NPC to the spawn group, nothing happens. It says it was added, but no NPC shows up. After checking my console, it floods this error:

     
  6. I'm in very deep water now since MySQL is beyond my understanding, so pardon my question, should it make me seem retarded!

    I've done all the steps but one, but first of all; after I install the npcx.jar into the plugin folder, the tables aren't created. Do I have to do something about the "prop.SetProperty" thingies first? I've read through the forum and decided to download and start up MySQL Workbench. But from there, I do not know where to go, as this is my first time using MySQL. And I don't see on my own, how to connect this to minecraft.

    If you decide to guide me through this, just tell me which buttons to press in this program. I'll find my way somehow.

    Good job creating this plugin though. I've always wished someone would make something like this. :)
     
  7. Offline

    Nate204

    Ok, Lets try and do this quick.
    What's your OS? If it's linux I can help. If it's windows ~ eh... I'm not too positive.
    For the most part though, It should all install its self. All those extra steps are confusing and un-needed.
     
  8. I use windows.

    I'll try redoing the entire installation and see if it changes anything.

    But do I have to tamper with MySQL databases at all during the installation?
     
  9. Offline

    Nate204

    For me on linux I didn't. I have MySQL already setup. Actually, all I did was setup a user in MySQL with the name of npcx and the passworld set as p4ssw0rd! Then I added a DB in MySQL (aka.... I made a folder) and named it xnpc.

    Then, I put the .jar inside my plugins folder for bukkit.

    The last step, was to put the MySQL connector.jar in my:
    usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext

    For you though, It should be:
    C:\Program Files\Java\jre6\lib\ext

    Just toss it in, and fire it up.

    Do all that, and THEN start it. Lets see what you get. What you want to see, is a server start up WITH an error. Then check your plugins folder. You'll want to see a new folder called npcx. If not, Something is wrong.

    If you already have that folder (npcx) in your plugins folder, delete it. Then try what I suggested.

    Let me know!
     
  10. Yeah, I reinstalled everything, and just like before, there's not an npcx folder in my plugin folder.

    I'm not hosting the server from my own network, by the way. I upload the files I want to use to the server host, so I don't know if I have to do something in a different way.
     
  11. Offline

    Nate204

    Does your provider offer MySQL support? (dumb question...sorry~)
    If they do, it should have some kind of Gui.

    What are your errors? (sorry if I didn't see them)
    Oh! and what Craftbukkit build? It only works with 552. (I believe that's the Rec. Build atm)
     
  12. Offline

    swedish2011

    mysql-connector-java-5.1.6-bin.jar [vs] mysql-connector-java-5.1.15-bin.jar

    hmm

    [copied]

    YOU MUST DO THIS
    Extract the mysql connect jar file from the following MySQL Connector zip): http://mysql.eukhost.com/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz

    This plugin uses the mysql-connector-java driver to handle MySQL database interactions - plugins tested with version 5.1.15
    Download: http://www.mysql.com/downloads/connector/j/
    ___________________________________________________________________________
    hmm :S
     
  13. Edit: (ISP? What am I ? Daft?) Yes, I contacted my provider (Brohoster) and there seems to be a problem that can be resolved. I hope that it'll be worked out now.

    And I have #556
     
  14. Offline

    mixxit

    Most of these errors seem to be from not setting up mysql correctly or running incorrect arguments through the commands
     
  15. Offline

    swedish2011

    I can make a movie how to do it. "mysql"
     
  16. Well I tried setting up a user, but once I try to connect, with the parameters you gave, I get an error message saying I could not connect to the database server.

    That's why I'm wondering if I have to, or where to insert the "prop.setProperty"-etc.

    I'm probably starting to become annoying by now, so I should just keep trying to find the answers on my own, or wait until my own comprehension is less needed. Thanks for trying to help me though. I'm starting to get the gist of this.
     
  17. Offline

    swedish2011

  18. Offline

    TheMap

    Ive got a database set up under that name, a user as well and both connectors placed in the proper directory. I also have the updated version, just downloaded it a few minutes ago. This is the error I get still.

    Code:
    npcx : initialising database connection
    22:54:26 [SEVERE] java.sql.SQLException: The url cannot be null
    22:54:26 [SEVERE]       at java.sql.DriverManager.getConnection(DriverManager.java:592)
    22:54:26 [SEVERE]       at java.sql.DriverManager.getConnection(DriverManager.java:200)
    22:54:26 [SEVERE]       at net.gamerservices.npcx.npcx.onEnable(npcx.java:439)
    22:54:26 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    22:54:26 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    22:54:26 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    22:54:26 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:85)
    22:54:26 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
    22:54:26 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    22:54:26 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    22:54:26 [SEVERE]       at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    22:54:26 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    22:54:26 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  19. Offline

    swedish2011

    I'll make a movie how.
     
  20. Offline

    Daveyo

    I didnt have to bother with other servers (db-host=db4free.net) with bigbrother, is there a way to set this up the same way. Also if I already have a database setup through that program, is there a different 'how to' then what you are going to show us. I'm sure it's not incredibly difficult once you figure it out but it's just like tring to learn chinese at the moment
     
  21. Offline

    Evan Melvin

    That field should be the location of your mysql server. If it's running on the same machine as your server, it should be set to "localhost".
     
  22. Offline

    Novemberman

    well this look a like a very fun and useful mod but until the mysql part is noob friendly i guess i wont be using it
     
    SirSeraph likes this.
  23. Offline

    Nate204

    It's ok. Even after you get past the MySQL it's still broken =(

    I posted the error a page or so back. Nothing happens~ No NPC spawns, but a flooded error
     
  24. Offline

    swedish2011



    Now the film is finished. Do not know if it's good.
     
  25. Offline

    Evan Melvin

    Working fine for me on 556.
     
  26. Offline

    Phat32

    Does this have multi world support? or are we limited to just 1 world?

    Its working no issues with me on 556 under linux

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  27. Offline

    mixxit

    Ok made it a bit easier, copy the mysql-connector-java-5.1.6-bin.jar into your bukkit/lib folder from now on
     
  28. Offline

    averad

    Thank you =)

    Request: Is it possible to add agro range to the NPCs?
     
  29. Offline

    mixxit

    atm its about 5 blocks - do you mean add it as a customisable setting?

    just one world at the moment

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  30. Offline

    averad

    Yes, please make it a setting per mob that way a place holder could be passive but the rare mob could be agro.
     
  31. Offline

    burningacidsdk

    Dude, i installed all things in the right way. The Console isen´t throwing out erros at all.
    So everything is fine!

    BUT : i cannot use any commands Ingame nor in the console.
    Some Tips?
     

Share This Page