[FUN] PVP Arena - configurable Arenas - Free Fight,Team Fight,CTF,CTP,Powerups - [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by slipcor, Oct 25, 2011.

  1. Offline

    Snaipe

    I just had this error :
    Code:
    [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to pvparena
    java.lang.IllegalArgumentException: Health must be between 0 and 20
        at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:42)
        at net.slipcor.pvparena.powerups.PowerupEffect.commit(PowerupEffect.java:205)
        at net.slipcor.pvparena.powerups.PowerupEffect.init(PowerupEffect.java:141)
        at net.slipcor.pvparena.powerups.Powerup.activate(Powerup.java:146)
        at net.slipcor.pvparena.listeners.PAPlayerListener.onPlayerPickupItem(PAPlayerListener.java:193)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:398)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.EntityItem.a_(EntityItem.java:135)
        at net.minecraft.server.EntityHuman.k(EntityHuman.java:352)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:344)
        at net.minecraft.server.EntityLiving.w_(EntityLiving.java:297)
        at net.minecraft.server.EntityHuman.w_(EntityHuman.java:158)
        at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:223)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:307)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:679)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Don't know if it's related.

    Furthermore, i'd like to request a feature :)
    Since bonuses are triggered with the pickup of a specific item, one nice thing would be to pop random ( or choosed ) items on the top of specific blocks.
     
  2. Offline

    slipcor

    hmm I'll check on this, will be fixed in next version :)

    about that spawning ... maybe, yeah :) first fix bugs with powerups :)
     
  3. Offline

    unv_annihlator

    I'm currently going through and trying to create my own gametype (1 flag ctf). And obviously I'm using your CTFArena as the base of the code. I also realize that everything I'll probably want to change will be in the CTFArena.java in the checkInteract function.

    With that said how you are controlling the flag pick-up, capture, and reset is hard for me to follow. Maybe it's just my lack of sleep but if you could possible help me out with some comments of what things do that'd greatly help me. (Or if I'm looking in the wrong area feel free to tell me :p).

    Edit: Figured out an easy way to do this. Now to make the gametype even more complicated ^-^
     
  4. Offline

    slipcor

    well if the source code is too hard for you, maybe you should start with an easier project? I added javadocs for every single method oO
     
  5. Offline

    ogr93

    i have a question . This plugin can regenerates the battlefield qhuen finish the game?(TNT destroy very much xD)
     
  6. Offline

    slipcor

  7. Offline

    aznkenshin

    I know this question has probably already been asked, but I desperately need help. I'm a newbie.

    I can make arenas just fine, using the in-game commands. However, when trying to edit class items using config_main.yml, my arena doesn't show up (when using /pa list)! Why's this? I'm thinking it's the formatting. I'm using notepad (the one that came with windows 7). I'm pasting my config_main.yml below.

    general:
    woolhead: false
    forceeven: false
    refillInventory: false
    startHealth: 20
    startFoodLevel: 20
    startSaturation: 20
    startExhaustion: 0.0
    colorNick: true
    readyCheckEach: true
    readyMin: 1
    wand: 280
    readyblock: IRON_BLOCK
    lives: 3
    language: en
    classperms: false
    preventDeath: true
    randomSpawn: false
    timed: 0
    joinrange: 0
    powerups: 'off'
    item-rewards: none
    checkRegions: false
    teamkill: false
    manual: true
    random: true
    world: world
    classitems:
    Assassin: 276
    Ranger: 261,262:64,299
    Pyro: 259,268,315
    Swordsman: 272,303
    Berserker: 279,308
    Tank: 275,311
    tp:
    win: old
    lose: old
    exit: exit
    death: spectator
    money:
    entry: 0
    reward: 0
    minbet: 0.0
    maxbet: 0.0
    protection:
    enabled: true
    blockplace: true
    blockdamage: true
    firespread: true
    lavafirespread: true
    tnt: true
    lighter: true
    checkExit: false
    checkSpectator: false
    checkLounges: false
    teams:
    red: RED
    blue: BLUE
    cfgver: 0.5.6.0
    spawns:
    redlounge: 246,67,-173,-94.88434,4.350007
    bluelounge: 162,68,-173,89.704384,25.050022
    bluespawn: 166,68,-174,271.3544,-2.9999762
    redspawn: 241,67,-172,90.3043,-5.4000072
    exit: 233,64,-147,-359.35132,27.402193
    spectator: 234,73,-162,-243.10132,8.95219
    regions:
    battlefield: 165,62,-194,243,93,-150
    redlounge: 244,65,-175,250,70,-170
    bluelounge: 158,66,-176,164,70,-171
    exit: 231,62,-148,235,62,-147
     
  8. Offline

    slipcor

    please use www.pastebin.com - as you should see, the alignment is totaly messed up here... thx :) yeah I think you might have done something wrong there. did you get any errors?
     
  9. Offline

    aznkenshin

    http://pastebin.com/LNxAjsda. Hopefully you can figure something out... D:

    And no, no errors whatsoever in-game. I type /pa list and my arena doesn't show up, even when I've got a complete config yml!
     
  10. Offline

    slipcor

    You got an error, on startup. At least I get it when starting my test server with your config. mh I need to add more debugging there.

    Check your Assasin line. You need to do it like that:

    Assassin: '276'
     
  11. Offline

    Snaipe

    I had some complains about dying in lava/fire.
    It seems that when the arena ends, players that are on fire still burn, leading them to another death.
    Maybe you should set the fireticks to 0 for every player at the end of an arena.
     
  12. Offline

    aznkenshin

    1. What do you mean by your assassin part there? I see quotes.
    2. Here's my error log! Found it! Tons of them! http://pastebin.com/YTVYnRqE

    Thanks for your help, slipcor. This is the central, main mod our server is using. We love you!
     
  13. Offline

    slipcor

    You are very welcome to check on my code. When removing the player (once at death AND when teleporting out of arena (player death is not the end ;) ), this is what I do. I read the old player values and set health, fire ticks, hunger, saturation, exhaustion and it just does not seem to work, lets check that with the nex tversion. If it persists, I will open up a ticket on bukkit :)

    Let me rephrase my short reply. This is what your config looks like (under ClassItems)

    Code:
    Assassin: 276
    this is how it SHOULD be

    Code:
    Assassin: '276'
    you need the quotes ' in there for it to work

    (next big update will fix that, next week maybe)
     
  14. Offline

    aznkenshin

    Thanks. Will try that out when I get home. More questions for you:

    1. I can't fire arrows. Holding down right click and releasing it, nothing. No arrows fly out.
    2. Pyro class can't burn anyone with his Flint & Steel. Right-clicking briefly makes a fire appear, but it's immediately gone. No damage, no burning, whatsoever.
     
  15. Offline

    slipcor

    are you sure you started the match with hitting the ready block? For Pyro things, check this site:
    http://dev.bukkit.org/server-mods/pvp-arena/pages/configuration/tnt/
     
  16. Offline

    aznkenshin

    Pyro and Arrows work!

    However, now another question. When players lose a life, they're stuck with their class! They can't change to a new one in their lounge. This is bad for archers and pyros, which run out of things.
     
  17. Offline

    slipcor

    erm well , give them more xD you can activate somthing that gives them their inventories back... refillInventory?
     
  18. Offline

    Snaipe

    Oh, yeah. Some new bug came up. It seems that randomy, the fight states that it is still in progress ( though the fight should have ended ), saying to the ones that want to join, they can't.
    I tried to use the forcestop command, but I got a NPE:

    Code:
    2012-01-14 21:26:40 [SEVERE] Error occurred while disabling pvparena vv0.5.4.9 (Is it up to date?): null
    java.lang.NullPointerException
        at net.slipcor.pvparena.PARegion.restore(PARegion.java:143)
        at net.slipcor.pvparena.arenas.Arena.clearArena(Arena.java:1477)
        at net.slipcor.pvparena.arenas.Arena.reset(Arena.java:1484)
        at net.slipcor.pvparena.managers.ArenaManager.reset(ArenaManager.java:237)
        at net.slipcor.pvparena.PVPArena.onDisable(PVPArena.java:147)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:190)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:989)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:181)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:376)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  19. Offline

    aznkenshin

    I love fire, but it stays after match ends. I thought the plugin automatically regenerates the battlefield? I already set /pa main region, then cuboid, then /pa main region battlefield.
     
  20. Offline

    slipcor

    hm thats still a WIP, though for me, fire was gone though we lit the entire arena on fire during a match. Did you setup the arena for TNT usage?

    can you try to investigate when this happens? I never saw that one..
     
  21. Offline

    TomYaMee

    For those hu dont know how to create arena for capture the pumpkin... here's the vid tutorial by me


    Made this video since slipcor's video tutorial nvr teach about capture the pumpkin.....

    To slipcor: Just tell me if u dun wan my tutorial :D
     
  22. Offline

    slipcor

    I'll do a new one once I finished the new game modes :) Thanks :)

    I like your video alot :) especcially the info at the end ( I didnt have the info at the time I did the tutorials :D )

    Thanks for your video, Ill link it in this thread and on the dev bukkit page :)
     
  23. Offline

    varessen

    I can configure players limit on arena? (TDM) Why exit region didn't work ? Why when one player lose on arena must write /pa leave to get back items?

    Sorry for my very bad english :)
     
  24. Offline

    slipcor

    1) yes, the player limits are PER arena, in config_***.yml
    2) more information, works for me
    3) maybe you have errors in your console? check for that
     
  25. Offline

    varessen

    When i start battle, players join to both team, all fight, when players dead he go to spectator and dont get back items. I dont have any error in log.

    When one ppl stay on arena cant exit without write /pa leave , coz exit region didnt work.

    I cant find in config_teams.yml per, u can help?
    And why bowman didnt work, when i try shot, i lost arrow but dont make dmg?
     
  26. Offline

    aznkenshin

    1. Put an Iron Block in each lounge.
    2. >1 persons must type /pa teams j
    3. Punch (left-click) the Iron Block.
    4. When teleported to Spawn, game starts!
    5. Arrow now works.
     
  27. Offline

    varessen

    THX. But now how i can configure max players in arena?
     
  28. Offline

    slipcor

    oh.... MAX players will be coming next version :)
     
  29. Offline

    Naviboi

    Is this compatible with MobArena?
     
  30. Offline

    slipcor

    well, I use both on my server, but you can not yet have one physical arena hold both arenas, we are working on that ;)
     

Share This Page