Inactive [FUN/MECH/RPG] SquadBot V0.2 - have NPC bots in combat! [1.4.2]

Discussion in 'Inactive/Unsupported Plugins' started by orange451, Nov 6, 2011.

  1. Offline

    Frozty

    Did you abandon this :eek:
    It looks great!
    Update it to 1.3!
     
  2. Offline

    orange451

    It stopped working, and the npc library glitches... a lot.
    Until I can find a better way of spawning ncp's, then yes, it's abandoned.

    Updated for the newest bukkit.
    The movement was a little glitchy, so I redid it in a rush.

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

    hadriel

    Could you possibly add a configurable setting to limit what the npcs can spawn with? for example id like to make it so they wont spawn with diamond armor or weapons
     
  4. Offline

    orange451

    so I completely rewrote the plugin using a npc library of my own. Now not all the code in my npc spawning library is my own, the "spawning" part of it is from citizens, but all the physics (collisions, friction, velocity, targeting is my own).

    What's new?
    • bots now walk fluidly
    • bots will not get stuck INSIDE walls anymore
    • bots have proper physics (gravity, friction, speed, ect)
    • there are two types of bots that spawn, tameable npcs and hostile ones
    • the plugin runs much smoother, and doesn't seem to have any glitches at the moment.
    I want to use this new version but I am getting too many essential profiles created!
    • never fear! I've spoken to the essentials guys, they've made a new version of essentials which is compatible with this plugin, and they will release it this weekend probably).
    Where can I get this fantastic piece of art!?
    • why, good sir, right here!
     
  5. Offline

    chopstick121

    Will it work still if i have aafezone and can they still attack players
     
  6. Offline

    orange451

    From what I've seen, if you're in a safezone, bots cannot hurt you.

    I made a couple of little changes :)
    -if you have the attack whencrouched option turned off, bots will stop attacking when right clicked (no matter if crouching or standing)
    -I made the bots a little slower
    -i fixed some bugs in the targeting system for tameable npcs

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

    zenyl

    When I start the server with this plugin, I get this error:

    Code:
    20:56:19 [INFO] While loading SquadBot3 (plugins\squadbot.jar) found old-data fo
    lder: plugins\squadbot next to the new one: plugins\SquadBot3
    20:56:19 [SEVERE] Could not load 'plugins\squadbot.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError
    : com/orange451/squadbot3/main : Unsupported major.minor version 51.0
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:155)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:305)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:230)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
            at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(Server
    ConfigurationManagerAbstract.java:50)
            at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
     
            at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: com/orange451/squadbot3/main
    : Unsupported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:44)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:144)
            ... 9 more
     
  8. Offline

    orange451

    Update your java.
     
    zenyl likes this.
  9. Offline

    zenyl

    Ah, so it was Java all the time. Must've downloaded it wrong, in some way. Works perfectly now, thanks! And, thanks for an epic plugin. Much easier to stalk people via Twitter now! ^_^
     
  10. Offline

    orange451

    smallish update :)
    -tameable bots can no longer SPAWN with gear better than leather/stone
    -tameable bots can be given any type of armor or weapon (sword, axe, shovel, hoe)
    -if you dont want bots to be able to accept diamonds, set "allowDiamondGear=false" in the config (default is is false)
    -if you want bots to be able to pick up items while standing set "collectItemsWhileStanding=true" (default is false)
    -bots now "talk" to you when you right click and tame them
    ----------------------
    if collectItemsWhileStanding is false, then you NEED to right click your bots to sit them down if you want to give them items

    download!? here!
     
  11. Offline

    GarretSidzaka

    THIS PLUGIN RULES!!!~
    it was made for my server! thank you orange!!

    (it only took a year to finish :p )
     
  12. Offline

    orange451

    a year, and three rewrites :)

    though, only took 3 hours to make this entire plugin xP
     
  13. Offline

    chopstick121

    THe bot are not geting damamge???
     
  14. Offline

    orange451

    Then you probably have a plugin blocking it.
     
  15. Offline

    checkphp

    Hello orange451
    First, I love the idea of the mod.
    Second, let me quote: "and attempt to hurt anyone you hurt"
    In my case, they do not. Yes, I can tame them, yes, they follow me.
    But they simply stand idly while taking damage from spiders/skeletons basically any hostile mobs.
    Running bukkit 1.3.1-R2.0 with few plugins, even tried to deactivate all the plugins, still doesn't work for me.
    Console? Only that:
    15.09 16:52:27 [Server] INFO [SquadBot2] Enabling SquadBot2 v0.2
    15.09 16:52:27 [Server] INFO SquadBotv2 enabled

    all clear. no erros, just nothing.
    Any ideas?

     
  16. Offline

    chopstick121

    [quote
    What plugin will block it?
     
  17. Offline

    orange451

    What plugins do you have on your server?
     
  18. Offline

    chopstick121

  19. Offline

    lowellsbmx

    i just downloaded zip and put the .jar and the folder in the plugin folder but its not loading when i start the server up
    what did i do wrong?
     
  20. Offline

    orange451

    Check the console, see if you see any errors.
    The steps you used to set it up are perfect.
     
  21. Offline

    chopstick121

    2012-09-16 21:27:20 [SEVERE] Could not pass event NPCRightClickEvent to SquadBot3
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at com.orange451.SpawnHuman.event.EventListen.onPlayerInteractEntity(EventListen.java:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1000)
    at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:160)
    at net.minecraft.server.Packet7UseEntity.handle(SourceFile:36)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:296)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NoClassDefFoundError: ru/tehkode/permissions/bukkit/PermissionsEx
    at com.orange451.squadbot3.PermissionInterface.checkPermission(PermissionInterface.java:11)
    at com.orange451.squadbot3.NPCListener.onNPCRightClick(NPCListener.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
    ... 24 more
     
  22. Offline

    Warsoly

    I'm using the latest version that you have posted here and installed it by unzipping the archive in the plugins directory, and I have it configured like so:

    maxUntamedNPCs=1
    maxNPCs=10

    But the configuration file doesn't seem to have any effect and the bots spawn at a rapid rate up to populations of over 100.

    And the plugin also throws an error if I use the listbot command in the server console. Here's the log for that:

    Time: 9/17/12 8:32 AM
    Description: Exception in server tick loop

    org.bukkit.command.CommandException: Unhandled exception executing command 'listbot' in plugin SquadBot3 v0.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:488)
    at net.minecraft.server.DedicatedServer.ai(DedicatedServer.java:249)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:214)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    at com.orange451.squadbot3.main.onCommand(main.java:55)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 8 more

    Relevant Details:
    - Minecraft Version: 1.3.2
    - Operating System: Windows 7 (amd64) version 6.1
    - Java Version: 1.7.0_03, Oracle Corporation
    - CraftBukkit Information:
    Running: CraftBukkit version git-Bukkit-1.3.2-R0.1-b2352jnks (MC: 1.3.2) (Implementing API version 1.3.2-R0.1) [org.fusesource.jansi.internal.Kernel32._getch(Native Method), org.fusesource.jansi.internal.WindowsSupport.readByte(WindowsSupport.java:46), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readByte(WindowsTerminal.java:184), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:53), org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:151).
     
  23. Offline

    orange451

    This plugin is based off of PermissionsEx, you need PermissionsEx.

    I'll look in to that.
    That's because its meant to be used as a player command.
     
  24. Offline

    chopstick121

    @orange451
    can you make it support groupmanager please
     
  25. Offline

    torpdeo

    HELP!!!
    17:00:27 [SEVERE] Could not load 'plugins/squadbot.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/orange451/squadbot3/main : Unsupported major.minor version 51.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
    at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
    at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
    at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: com/orange451/squadbot3/main : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
    ... 9 more
    idk how to fix this im on a mac so is that the problem?
     
  26. Offline

    mcviper101

    hey man why does it not work for me how do i install it
     
  27. ive just downloaded this plugin and i love it everything works perfect but the problem im having is that when i go to tame a npc with cookies that is the item it says in the congfig thingy, it doesnt work why not ive right clicked them left clicked them but then they attack me it real anoying!
     
  28. Offline

    orange451

    I've said this a bunch now (please read other posts).
    You're on a slightly older version of java, please update.

    You either are on an old version of the plugin OR you do not have permissionsex.
    I will make it so if the server does not detect permissionsex, you can tame bots without admin :)
     
  29. Offline

    duppie25


    ok then where can i get permissionsex because i also cant tame them and i am the owner of the server
     
  30. Offline

    orange451

Share This Page