[MECH/FUN] Guns+ v1.8 - Guns, Guns, Guns Galore![SPOUT][1.4.7-R1.0]

Discussion in 'Archived: Plugin Releases' started by atlan1, Jan 31, 2012.

  1. Offline

    djslapandtickle

    This is what I get when I try to start my server.

    17:35:56 [SEVERE] Could not load 'plugins\GunsPlus.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoSuchFieldError: MOUSE_RIGH
    T
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:151)
    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:213)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoSuchFieldError: MOUSE_RIGHT
    at team.GunsPlus.Enum.KeyType.<init>(KeyType.java:15)
    at team.GunsPlus.GunsPlus.<clinit>(GunsPlus.java:59)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:140)
    ... 8 more
     
  2. Offline

    GoTheRedSox

    do u have a link to the permissions for the plugin?
     
  3. Offline

    atlan1

    http://dev.bukkit.org/server-mods/guns/pages/permissions/

    1. Yes that would be possible. Perhaps we will do something like that in the future. Create a ticket for it to remember me.
    2. Would be a possible feature after Grenades+ has been released.
    3. Other games and mods.
    4. You can use the missing-chance node under accuracy.
    5. Not possible.
    Known caveat. You have to use at least SpoutPlugin build #1197.

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

    penguinbait

    atlan1 could you check it again? I posted the errors with debug mode on
     
  5. Offline

    GoTheRedSox

    ok thanks i put those in but there is still a problem they can shoot the first time they log in with a gun but when they log off then back on they cant shoot/zoom anymore? idk if this is just a problem with the permissions or if its a problem with the plugin
     
  6. Offline

    atlan1

    Permissions are working fine for myself. Just paste your permissions file on pastebin.com and send me a pm.
     
  7. Offline

    soul_man

    Is there a way as of now to insert a texture for the shots instead of using arrows etc. or no texture at all?
     
  8. Offline

    atlan1

    I am not sure what you mean. If you mean the ammo textures, yes you can use a custom texture, aswell as for guns. You can also use a projectile like arrows or fireballs.
     
  9. Offline

    TheFluffey

    He is wondering if you could retexture the projectiles - not currently.
     
  10. Offline

    soul_man

    yeah sorry I kind of said it in a confusing way. I know that I can use custom textures for the guns and zoom, and that you can use already existing projectiles like snowballs and stuff. But is there a way in the guns.yml that I can add a custom texture for the projectile? Just to rephrase it for you even though TheFluffey said no, which I believe to be correct.
     
  11. Offline

    GoTheRedSox

    ok i sent you a pm of the link to the pastebin
     
  12. Offline

    atlan1

    Yea, he is correct. We can't change the texture of e.g. the arrow, but what I can do - and I thought of implementing it perhaps - is that we use custom item drops as projectiles. That way we could have a custom texture on the "projectile" which is actually a drop.
     
    soul_man likes this.
  13. Offline

    penguinbait

    Atlan, the ticket about my bug, I cant use debug mode because it defaults because it doesnt find it in the general.yml and the default is false so i cant show it in debug mode. EDIT: Do you think a plugin is conflicting with it?
     
  14. Offline

    soul_man

    Brilliant Idea I like it, btw wonderful plugin.
     
  15. Offline

    Thanatos_Ghost

    Would it be possible to make for every 10 shots there is a .01 chance 10 won't fire?
     
  16. Offline

    atlan1

    Ah, thats really weird. I ve really no idea what could cause that. But I will release a new version today which perhaps fixes that problem.
    You could to:
    missing-chance: 10
    This means every 10 shot could miss.

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

    Typical_Name

    YAY! NEW VERSION! :D

    The link to API+ doesn't appear to work. It says it's under moderation. :confused:
     
  18. Offline

    atlan1

    Yea I have to explain the use of API+ a bit more :D, but you can still click on files and download version 0.1.
     
  19. Offline

    penguinbait

    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more
    11:20:28 [SEVERE] Could not load 'plugins\GunsPlus.jar' in folder 'plugins'
    org.bukkit.plugin.UnknownDependencyException: ApiPlus
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:195)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) EDITL: Nevermind I didnt have the API+
     
  20. Offline

    atlan1

    Guns+ now depends on API+.

    Ive just fixed some issues with effects and released 1.3.1.

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

    Torriel

    Hey I've got problem. I take Gunplus.jar file into my plugins folder and when i start my server nothing happended. It is like server doesnt see this plugin. Can anyone help me?

    Greetings
     
  22. Offline

    Coentjuhh

    What are the commands??
    please email me :)
     
  23. Offline

    Johnny Crazy

    I get a lot of errors while using Guns+

    API+ , Spout and Guns+ are on the Server, nothing else.

    When i want to shoot with the Pistol:
    Code:
    14:48:22 [INFORMATION] Could not execute Key Press Delegate of plugin [GunsPlus] for action [Fire]!
    14:48:22 [SCHWERWIEGEND] java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
    14:48:22 [SCHWERWIEGEND]        at team.GunsPlus.Util.GunUtils.getTargets(GunUtils.java:105)
    14:48:22 [SCHWERWIEGEND]        at team.GunsPlus.GunsPlusPlayer.fire(GunsPlusPlayer.java:158)
    14:48:22 [SCHWERWIEGEND]        at team.GunsPlus.FireBinding.keyPressed(FireBinding.java:37)
    14:48:22 [SCHWERWIEGEND]        at org.getspout.spout.keyboard.SimpleKeyBindingManager.summonKey(SimpleKeyBindingManager.java:72)
    14:48:22 [SCHWERWIEGEND]        at org.getspout.spoutapi.packet.PacketKeyBinding.run(PacketKeyBinding.java:67)
    14:48:22 [SCHWERWIEGEND]        at org.getspout.spout.packet.CustomPacket.handle(CustomPacket.java:141)
    14:48:22 [SCHWERWIEGEND]        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    14:48:22 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    14:48:22 [SCHWERWIEGEND]        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
    14:48:22 [SCHWERWIEGEND]        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    14:48:22 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    14:48:22 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    14:48:22 [SCHWERWIEGEND]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    14:48:22 [SCHWERWIEGEND] Could not pass event PlayerInteractEvent to Spout
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:147)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:605)
            at net.minecraft.server.Packet15Place.handle(SourceFile:39)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoClassDefFoundError: com/griefcraft/lwc/LWCPlugin
            at team.ApiPlus.API.Type.ToolType.onItemInteract(ToolType.java:32)
            at org.getspout.spout.SpoutCustomBlockMonitor.onPlayerInteract(SpoutCustomBlockMonitor.java:53)
            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:302)
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: com.griefcraft.lwc.LWCPlugin
            at java.net.URLClassLoader$1.run(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:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 20 more
    Even if i just want to grab a Item in my Inventory, it gives me a LOT of Errors in my Console...
    Any Suggestions?
     
  24. Offline

    penguinbait

    I figured that out :D it works now
     
  25. Offline

    atlan1

    This seems to be an issue that you have to have LWC installed. If you install LWC the error won't show up. Do that for a temporary fix. I'll fix that in the next version of API+.
     
  26. Offline

    Sypher40

    hey, i need help, when i use the Guns+ plugin, everytime i make/get a gun or ammo it gives me flint, how do i fix that?
     
  27. Offline

    Sherlock990

    when im trying to craft guns, the guns wont show up

    when im crafting the sniper bullets, i cant get them out of the crafting box 0_o
    help :(
     
  28. Offline

    Typical_Name

    I have problem. My guns have not been appearing in the creative menu ever since the latest couple of versions. At first I thought it was because I hadn't updated the "effects" node under my guns, but they haven't reappeared even after I fixed that.

    Here is the error:
    Show Spoiler
    2012-06-25 14:35:56 [INFO] [GunsPlus] Enabling GunsPlus v1.3.1
    2012-06-25 14:35:56 [INFO] [Guns+] Plugged into Spout!
    2012-06-25 14:35:56 [INFO] [Guns+] Plugged into WorldGuard!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'id-info-guns' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'id-info-ammo' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'id-info-additions' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'loaded-guns' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'loaded-ammo' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'loaded-additions' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'show-debug' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'show-warnings' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'use-permissions' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'send-notifications' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'auto-reload' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tool-like-gun-holding' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'zoom' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'fire' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'reload' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'hud' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'hud.enabled' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'hud.background' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'hud.position' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'hud.position.X' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'hud.position.Y' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.enabled' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.texture' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.hardness' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.max-count-per-player' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.force-zoom' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.inventory-size' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.recipe' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.recipe.type' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.recipe.amount' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [WARNING] [Guns+] The node 'tripod.recipe.ingredients' in general.yml is missing or invalid! Defaulting!
    2012-06-25 14:35:56 [INFO] [Guns+] ------------ ID's of the guns: -----------------
    2012-06-25 14:35:56 [INFO] EMPTY
    2012-06-25 14:35:56 [INFO] [Guns+] ------------ ID's of the ammo: -----------------
    2012-06-25 14:35:56 [INFO] EMPTY
    2012-06-25 14:35:56 [INFO] [Guns+] ------------ ID's of the additions: -----------------
    2012-06-25 14:35:56 [INFO] EMPTY
    2012-06-25 14:35:56 [INFO] [Guns+] ------------ loaded the tripod block --------------
    2012-06-25 14:35:56 [INFO] [Guns+] ID: 318:1122
    2012-06-25 14:35:57 [INFO] [Guns+] version 1.3.1 is now enabled.


    It appears that it's not acknowledging the existence of any of my files, although I don't know why.


    EDIT: Also, I have downloaded API+, but I don't know what to do with it. I is confused.
     
  29. Offline

    atlan1

    Do you use the Spoutcraft Client?
    That means you don't have the permission to craft the guns. You have to give yourself the permission: gunsplus.craft.all or gunsplus.craft.<itemname> to be able to craft it. If you want it easy op yourself :D

    Hmm, this is a weird issue that has been occured since a couple of versions before. It is not a new bug to 1.3 but I still have no idea, why it ignores your general.yml. Will have to take a closer look on that soon.
    Also you don't have to do something with API+, it is just a core library to make things easier for developers.
    Just drop it into your plugins folder and it should work fine. We only plan for having a loadouts folder inside the API+ folder where you can drop your zipped Loadout packages and they will be loaded like Texture packs or something like that. But that's the future.

    There are not really many commands, just /gp reload and /gp list to list all guns I guess.

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

    Typical_Name

    You didn't rename any of the files, did you? It seems to be ignoring EVERY file I have made. They were all made several versions ago, of course, but I've kept them updated with the new changes.


    EDIT: I attempted to delete the file so that the configs would regenerate, and it appears to have loaded the default sniper rifle successfully. I'll go ahead and try to edit my old configs back in and see what happens.
    EDIT2: The configs are broken again, but I've done nothing but add in stuff to the existing configs. It doesn't make since that something that worked before would break just because I added something else in, especially since I'm pretty certain what I added in is configured correctly.
    Here's my configs:
    general.yml - http://pastebin.com/mGBWssN8
    guns.yml - http://pastebin.com/Z3m1eVcK
    ammo.yml - http://pastebin.com/dg2UK0yh
    recipes.yml - http://pastebin.com/C1cj2kbu
    additions.yml - http://pastebin.com/CxbVPgGe



    Anyways, on a completely unrelated note, is there a way I can assign effects (besides damage) based on ammo? For instance, I want to design a blowgun that will poison people if it shoots poison-tipped darts, but not poison people if it uses regular darts. Is there a way to do this?
     

Share This Page