[DEAD] Spells v0.996

Discussion in 'Inactive/Unsupported Plugins' started by NathanWolf, Jan 16, 2011.

  1. Offline

    Normal

    Hmm, I miss /teach /spellbook - that can be an adventure in itself to collect spells form dangerous places. ;)
    Also I miss material components consumption, when you use the spells. :)
     
  2. Offline

    NathanWolf

    Yeah, I miss a lot of things from other plugins that no longer exist.
    --- merged: Mar 4, 2011 7:50 PM ---
    0.99 Released

    Please update Spells.jar and Persistence.jar. Delete Groups.jar, if you have it, and instead download PermissionsSupport.jar if you need Permissions support.

    Note that, as of Persistence 0.55, all my plugins have their own internal user/group/permission system. I've attempted to put something together that will resemble bukkit.permissions, but it is in no way endorsed by the bukkit team, and you can ignore it if you use PermissionsSupport and Permissions.
     
    Normal likes this.
  3. Offline

    Color42

    PermissionsSupport doesnt work for me :(


    2011-03-05 01:09:57 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cast' in plugin Spells v0.99
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:33)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:619)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    at com.nijiko.permissions.Control.permission(Control.java:289)
    at com.nijiko.permissions.Control.has(Control.java:264)
    at com.elmakers.mine.bukkit.plugins.permissions.PermissionsProxy.isSet(PermissionsProxy.java:18)
    at com.elmakers.mine.bukkit.permission.GroupManager.isSet(GroupManager.java:387)
    at com.elmakers.mine.bukkit.persistence.dao.PlayerData.isSet(PlayerData.java:336)
    at com.elmakers.mine.bukkit.persistence.dao.PluginCommand.checkPermission(PluginCommand.java:231)
    at com.elmakers.mine.bukkit.utilities.PluginUtilities.dispatch(PluginUtilities.java:332)
    at com.elmakers.mine.bukkit.utilities.PluginUtilities.dispatch(PluginUtilities.java:293)
    at com.elmakers.mine.bukkit.plugins.spells.SpellsPlugin.onCommand(SpellsPlugin.java:92)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
    ... 12 more
     
  4. Offline

    IronFerret

    same thing here, i just updated and persistence and spells died
     
  5. Offline

    kexus

    Spells is really messed up for me all of a sudden. I can use /spells, and it shows all of them, but when I try to cast one, it just says "/cast <spellname>", and the server spits out an error.
    Code:
    2011-03-04 19:11:32 [WARNING] Persistence: Can't find callback method onCast of
    com.elmakers.mine.bukkit.plugins.spells.SpellsPlugin for sender org.bukkit.craft
    bukkit.entity.CraftPlayer
     
  6. Offline

    NathanWolf

    Seems like I broke things when you're not using Permissions. How's that for a change?

    It's basically unusable without Permissions.jar installed right now.

    Grab an old version (http://www.elmakers.com/minecraft) if you want to back out- otherwise, I'm going to get this fixed ASAP. I apparently bound Persistence to Permissions, and that was so way not my intention. :p
     
  7. Offline

    fuzzyhunter0608

    Something I just noticed...
    When using mine on redstone, it only drops one piece, as opposed to the random amount you would get when mining it with a pick. Could you either change this in the code, or add a config option for mow much is dropped (potentially for each item)?
     
  8. Offline

    QQCucumber

    I couldn't get it to work WITH Permissions.jar installed.

    Code:
    2011-03-06 00:12:57 [SEVERE] Could not pass event PLAYER_ITEM to Wand
    java.lang.NullPointerException
    	at com.nijiko.permissions.Control.permission(Control.java:297)
    	at com.nijiko.permissions.Control.has(Control.java:271)
    	at com.elmakers.mine.bukkit.plugins.permissions.PermissionsProxy.isSet(PermissionsProxy.java:18)
    	at com.elmakers.mine.bukkit.permission.GroupManager.isSet(GroupManager.java:387)
    	at com.elmakers.mine.bukkit.persistence.dao.PlayerData.isSet(PlayerData.java:336)
    	at com.elmakers.mine.bukkit.plugins.spells.SpellVariant.hasSpellPermission(SpellVariant.java:109)
    	at com.elmakers.mine.bukkit.plugins.spells.Spells.getSpell(Spells.java:38)
    	at com.elmakers.mine.bukkit.plugins.wand.WandPlayerListener.spellHelp(WandPlayerListener.java:218)
    	at com.elmakers.mine.bukkit.plugins.wand.WandPlayerListener.onPlayerItem(WandPlayerListener.java:288)
    	at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:165)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:448)
    	at net.minecraft.server.Packet15Place.a(SourceFile:57)
    	at net.minecraft.server.NetworkManager.a(SourceFile:230)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  9. Offline

    Janb

    The version before this works great with 440, for those needing to rollback.

    Also, Dear Nathan, any idea idea of how soon we might see reagents/command costs? I'm a huge fan of this plugin, and I want my dudes to enjoy it, but I'm loath to give everyone unrestricted access :p
     
  10. Offline

    NathanWolf

    If the Permissions code is throwing an NPE, I can't help much there. Do you have one perm config set up per world? You'll need at least a world.yml and nether.yml for NetherGate to work, I think, if you're using that- not sure how the other multi-world plugins behave.
    --- merged: Mar 6, 2011 2:45 PM ---
    Well, to be honest, I've really slowed down here. The whole permissions thing is a huge pain, and I've gotten distracted trying to make myself happy with that.

    Frankly, as much as people ask for it, I'm kind of shocked no one else has made a reagents system yet. Does Raph's Mana plugin not do that?
     
  11. Offline

    QQCucumber

    I'm not using NetherGate and I'm only using one world. The error immediately went away when I took out the PermissionsSupport.jar.

    The NpcSpirit author wants to use Persistence as a dependency, by the way, so it'd be nice if you could get it updated.
    --- merged: Mar 6, 2011 2:53 PM ---
    Actually, maybe it's because my default (and only) world is called flatearth rather than world?
     
  12. Offline

    NathanWolf

    It shouldn't matter- though you probably still need your permissions config named flatearth.yml. This is a Permissions thing, not me. And you do know you need Permissions.jar, still, right? I'm not replacing Permissions, only supporting it!

    And Persistence is working fine for me- I'm really not sure why everyone is having so much trouble with it right now. I'm running it on my public server and my dev server, I've tested it with and without Permissions, etc.
     
  13. Offline

    QQCucumber

    Yes, I know. Permissions is working just fine, it has been the entire time. I didn't touch the jar. It freaked out on me with PermissionsSupport.jar loaded with it.
    --- merged: Mar 6, 2011 3:17 PM ---
    Well that's odd. I decided to give it another try to see if there was something wrong. I've changed absolutely nothing and the error didn't come up this time. Weird.
     
  14. Offline

    Janb

    I'm just as shocked, I haven't found anything like it yet (and I've been looking!). Essentials has a command cost thing, but I think it's been taken offline for the time being. ManaAlias doesn't play well with Wand, can't get the important part (/command) to work. I messaged Raph and he says expanding ManaAlias is very low on his priority list, and probably wont even consider it until the official Bukkit perms are out.

    I dunno, seems like there's quite a demand for it, like you said, but there isn't much out there. Would something like this be difficult to code? Or just too much of a headache with all the competing permissions and such?
     
  15. Offline

    NathanWolf

    Hm- well, probably not easy to code a generic one (like ManaAlias), but pretty easy for me to add to Spells.

    The problem is persistence- I haven't finished integrating Spells with Persistence, and I need it to save all the variants.

    That's basically all it takes- you'll need a console UI to manage simple changes, and some sort of bulk import capability (that's not SQL script, I guess, since people hate that!). But those features will come after the core support is there, and I'll be providing a couple of SQL scripts for a few different setups (basic reagents, free-for-all, etc).

    I'll probably eventually "host" different setups, such as a Harry Potter setup, Avatar (bending) setup, etc.

    I'm really hoping this will all be soon- I've also got a lot going on in my personal/professional life at the moment, though, and also (admittedly) Fable 3. :D
     
  16. Offline

    Janb

    Sigh. The clues were there all along... coming home glossy-eyed from the all-nighters, red thumbs from the gamepad use.. I just couldn't bring my self to accept you were playing another game... *sniffle*

    Thank you for the run down and all you've already invested (time and otherwise). I guess I'll stand-by to stand-by, in this case :) Cost for spells would be great, but reagents would really bring a more thematic element to the spellcasting (not to mention, a nice way to force some value on rare items) so that's what I'll be watching for.

    Also, a Harry Potter 'profile' or spellset or whatever would be -awesome-.


    EDIT:

    Double also.. I can't PM you because of whitelist and all but you should totally make this for me: http://forums.bukkit.org/posts/104390/
     
  17. Offline

    NathanWolf

    LOL!

    Well, the problem is not the game, not exactly anyway :)

    The only thing I love more than playing video games (hyperbole) is playing video games with my wife! Sadly, as hard as I've tried (and if you visit my public server, you may notice I have tried!) I just can't get her hooked on Minecraft :p

    So, we're married with kids now in Fable- kinda stupid, but also stupid fun. We get to go on adventures together, explore, etc- it works so well I want to buy a second xbox just so I don't have to stay within 20 feet of her at all times! :D

    It's basically how I always imagined it would be to MC with her.... I think it's just a little too raw. She needs the story, the people, the interaction, etc. I think it's just too much to say "here's an infinitely sized world that you (esp with my help) can basically bend to your will.... wanna play?"

    Anyways... :D

    Rest assured that MC is still very much my addiction, and if I can ever stop breaking crap WRT permissions, I'll hopefully be able to get back to "real work" soon. Though, NetherGate is still at the top of my queue- it's, like, inches from being done.

    Yes- the very first release of variants will have reagents support, because that's really the main thing I'm adding the system for :)

    It will probably have a framework in place for MP support, since that will basically be a variation on reagents- but the system itself to dole out MP over time, custom recharge rates per player, etc- that'll probably come a bit later.

    Glad you like! There are already several spells that I've made or have in mind which could have direct HP equivalents. The real trouble is there just aren't that many spells in the HP books- I need go read some fanfic or something :p

    Hm- interesting idea, but definitely not my thing ;)
     
  18. Offline

    QQCucumber

    @NathanWolf You could probably just check a Harry Potter wiki for spells.
     
  19. Offline

    NathanWolf

    TYVM! Sadly, you were a little late (or, rather, me reading this was a little late)- I just stumbled on that page, not 10 minutes ago :)

    And, yes, excellent reference, that. And, obviously, there are a lot of HP spells- I didn't know!
     
  20. Offline

    DThielke

    Thanks for the great plugin!

    I'm sorry if this has already been addressed (I only read through ~3 of the 20 pages of comments), but are there any plans for adding reagents/costs to the spells? The only thing our server would request from this plugin is exactly that - configurable costs for spells. The costs could be either blocks that must be in the player's inventory that are consumed (ie. blink costs 5 redstone dust), or more typical iConomy support.
    --- merged: Mar 7, 2011 6:25 PM ---
    Also, another feature request: the ability for players to 'learn' spells. I know this would be tricky with the current implementation since the only way to restrict spell use is through permissions, but it would be really nice if this feature were added. Our server has randomly scattered 'spell dungeons' that, if found and completed, teach a player a new spell.
     
  21. Offline

    Psychotron

    not working for me, it says "an internal error ocurred while attempting to perform this command"
     
  22. Offline

    trcharlie

    same problem here, cb build 493...any hints?
     
  23. Offline

    NathanWolf

    Unfortunately, I have no hints, other than that you have to set up Permissions, this isn't a problem I've been able to reproduce, and you're not the only ones having it.

    It seems to be related to the new permissions system and/or PermissionsSupport, but I'm really not sure. It doesn't seem to be working for anyone but me, though- or maybe a very quiet section of the audience as well.
     
  24. Offline

    okami13

    I've the same problem and I'm admin so I've all permissions and I've an internal error when I use the /cast command ...
     
  25. Offline

    NathanWolf

    @mudzereli shared a setup that I'm hoping will help me reproduce this issue. I'm confident that once I can actually make it happen on my end, I'll be able to track it down.

    Sorry, please stay tuned.
    [MERGETIME="1299589805"][/MERGETIME]
    Persisence 0.57 Released
    I think I fixed the player login NPE- please update!
     
  26. Offline

    trcharlie

    There is no error message anymore now, but nothing happens when I enter /spells or /cast [spell]...
     
  27. Offline

    NathanWolf

    Right now, PermissionsSupport.jar and Permissions.jar are basically required. Sorry about that.

    I'm going to get "my internal" permissions system working soon, just had a busy few days and am happy, for now, that things aren't crashing.

    You'll still have to set up permissions, though- I'll provide a sample config with an admin and wizard group. I don't current support any kind of 'default' group, and I don't think the permissions system does, either (it would be a 'default' permissions profile, I guess)- but I'd like to support this. I don't want you to have to manually add users to groups, if you'd prefer to just set up a default group.

    The default group could inherit from another group, like "wizard"- I'm also thinking of supporting multiple group inheritance (players already can be in multiple groups, but a group can currently only inherit from one group, its parent). This would let you setup a "default" group that your players get put into, that really refers to several groups such as "denybuild", "nospells", etc.

    Anyway, I really don't want to spend much time on yet another user/group system that will just be obsolete in 2 weeks, but I do want something I'm happy with, at least. So there will be another release of this, hopefully soon.
     
  28. Offline

    Bazinga

    Can you add a possibility to block blocks for use with spells? I really like playing with TNT but there should be some limits. [​IMG]
     
  29. Offline

    mudzereli

    I'm a bit confused with the config file. I was under the impression that modifying a frequency setting would modify the "cooldown" for that spell use?

    Setting:

    spells-blast-torch-frequency=20

    Makes me think it would make the spell have a 20 second cooldown.

    No matter what I put, I'm able to cast the spell as frequently as I want. Am I doing something incorrectly? The permissions look like this:
    - spells.cast.*
    - spells.commands.cast
    - spells.commands.spells

    Also, I presume that in the future we'll be able to set cooldowns/etc for each spell?

    I'm really enjoying it so far, thanks!
     
  30. Offline

    NEO

    Any spells that modify blocks dont work with protected zones. so anything protected can be modified with a spell unfortunately.
     

Share This Page