[FUN] SoftAir v0.9b - A real AirSoft experience on your bukkit server[1060]

Discussion in 'Inactive/Unsupported Plugins' started by Slash1987, Aug 16, 2011.

  1. Offline

    Slash1987

    [​IMG]

    SoftAir V0.9b


    This plug-in tries to simulate an AirSoft game. Two teams battle one another across a map until one achieves victory. On one side we have the Gold Team, donning a gleaming set of Golden Armor and on the other side we have the Diamond Team, bearing their hardened Diamond Armor. Both teams are equipped with a Toy-Bow and Arrow insuring no real damage occurs. As in any real AirSoft you only need to strike your opponent once in order to eliminate them from the game.

    Features:
    No Damage System during the event . (Just like airsoft\paintball\laser games)
    Bows, Arrows and Armor are added to players when they join.
    The player’s inventory will be stored securely during the event, it will be returned at the end.
    One hit system, when a player gets shot once they will be teleported to where the game begins.

    Request:
    Dear users, don't be afraid to post and inform me of any bugs, errors, issues or ideas. I haven't had many opportunities to test this plug-in thoroughly. I'll be very grateful and you'll be helping me to improving this.


    Installation Guide:
    Just put softair.jar in your plugin folder, start the server and set the spawnpoint for the two teams(CMD: /sofair setSpawn [DIAMOND/GOLD]).

    Update from previous:
    Simply remove the "softair.db" from the bukkit folder

    Commands:
    /softair Help : see in-game help
    /softair opHelp : see admin commands help
    /softair setSpawn [Gold\Diamond] : set the spawn-point of the team (ADMIN COMMAND)
    /softair enable : enable the game (ADMIN COMMAND)
    /softair disable : disable the game (ADMIN COMMAND)
    /softair initialize : delete all configuration (like a fresh install) (ADMIN COMMAND)
    /softair join : join the team with less members
    /softair leave : leave the game
    /softair players : tell how many player in the game and in each team
    /softair ready : tell the plugin that you're ready to play


    Download:
    V0.9b <Edit by Moderator: Redacted mediafire url>
    V0.9b alternative link
    http://www.fileserve.com/file/Gd2TGGr


    Source:
    https://github.com/Slash1987/SoftAir to just look at it or to make fork
    For personal uses, it's included in the .jar

    Know Issues:
    1)Still to find

    Todo list:
    1)Add iConomy and Permissions support(iConomy 80% done)
    2)Waiting for Spout team to add the possibility of create new block/items to make my own SoftAir equipment(to use only in softair game)


    Changelog:
    v0.9b
    1)Fixed the arrow control (now one hit and you're out)
    2)Added chat color code
    3)Some minor bugfix

    v0.8b
    1)Control if there is other player on playerLeave event (and eventually notify victory to the remaining team)
    2)Reinitialize game when all players leave and after a game
    3)Some minor changes

    Show Spoiler
    v0.7b
    1)Fixed the bug that prevent for starting a new game
    2)Added global message when the game is enabled/disabled
    3)Now, after joining, it says to type /softair ready to start the game
    4)On login, player crashed will receive a message telling that all of theyr stuff is been restored
    5)Added initial support for iConomy, but not yet implemented(4 new commands still doing nothing, next release i'll active them. Focused on bugfixing for this release)

    v06b
    1)Fixed an error that prevent the hitByArrow event
    2)Fixed the error that prevent the scheduler to stop and reinitialize the countdown
    3)Added a global message telling who won the game

    v0.5b
    1)Fixed all known bug
    2)Some minor code restyling
    3)Some DB table modified (just delete the old db file)
    4)Added a new command to drop all the tables and create new one

    v0.4b:
    1)Complete code restyling
    2)New DB configuration
    3)Some minor buxfixes
    4)Removed the bug that cause the god mode to be disabled

    v0.3b:
    1) introduction of SQLite DB
    2)Spawn Point saved in the DB
    3)Players inventory saved in the DB to prevent lose of information due to a crash
    4)Restoring of player inventory as they log in after a crash or after they log out during a play
    5)Added the option for the Admin to disable the game
    v0.2b - Added a config file. You don't need to set spawn point everytime
    v0.1b - First Release


    Credits:
    @JDD for English revision
    @Evilhaunting for the testing
     
    Last edited by a moderator: Nov 12, 2016
    halothe23 and Massimo1993 like this.
  2. Offline

    Slash1987

    Yes, i've noticed it, still working to fix those annoyng issue, i'm planning to release a stable version in a couple of day, maybe a week... I'm working hard on this plugin to make everything perfect...
    So continue posting all the errors and, if you could, include in a spoiler the LOG of the server when the errors occurs

    The next release will be delayed due to a massive code restyling....
    I apologize for that

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

    Axelthecritic

    Could you make a video, please?
     
  4. Offline

    Slash1987

    As i've told earlier in the post, as soon as i'll release a stable version i'll add a video....
    Unfortunately, it's still kinda buggy so it's nearly useless to make a video right now
     
  5. Offline

    number1_Master

    video maybe plz !?
     
  6. Will you be making a demo video of this plugin or would you like me to make one and give you the embed code?
     
  7. Offline

    Slash1987

    If u would do this i'll be very gratefull... I haven't got the possibility to host an online server so the most of the time it's me playing against me
     
  8. Offline

    timoun

    hello,
    thanks for your job even if it is not perfect.
    You use event.setCancelled(false); at the begining of onEntityDamage with no condition and it's a huge mistake, you remove all protection from an server like protection against pvp and god mode...
    just remove this line, it is useless and add problem where there are no problem...
     
  9. Offline

    Slash1987

    i doesn't know that that line would cause such a big problem.... thanks for the information (i've made the plugin license free cause i'm a new developer and i can't get out of everything on my own)
    New release ready soon, and this "BUG" will be removed as well
     
  10. Offline

    timoun

    ok good :)
    I like your plugin idea ;)
     
  11. Okay, well I will release a video withing the next 24 hours and will give you a link, okay?
     
  12. Offline

    Slash1987

    ok
     
  13. Offline

    bigkevin112

    I know your probably busy with trying to fix this plugin but I am having a problem with it. I can make the spawn points and everything. Everything is fine when I join, it saves my inventory like it should. But then when I leave the "softair game" i get this

    Code:
    2011-08-25 12:32:55 [INFO] bigkevin112, Inventory 278:1:0;278:1:0;278:1:0;278:1:0;278:1:0;278:1:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0;0:0:0; ,armor 0:0:-1;0:0:-1;0:0:-1;0:0:-1;
    2011-08-25 12:33:21 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'softair' in plugin SoftAir v0.3b
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at slash.softAir.SoftAir.restoreInventory(SoftAir.java:251)
        at slash.softAir.SoftAir.removeFromPlay(SoftAir.java:357)
        at slash.softAir.SoftAir.notifyVictory(SoftAir.java:315)
        at slash.softAir.SoftAir.removeFromPlay(SoftAir.java:366)
        at slash.softAir.SoftAir.onCommand(SoftAir.java:159)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Also wanted to let you know that I can confirm what timoun said about the event.setCancelled(false) I had godmode on and mobs were still killing me. Just so you know that timoun is not lying.
     
  14. Offline

    Slash1987

    New version release.... Most code restyled, some minor bugfix, crash restoration system should now work....
    Reort every Issue and please attach the LOG too
     
  15. I dont seem to be able to leave the game.
     
  16. Offline

    MrMan8080

    why cant i stop the game when its in progress
     
  17. Offline

    Slash1987

    it's a known bug, i'm still trying to fix it...
    If some Developer would join the project or just help me finding bug i will really appreciate it
     
  18. Offline

    Nipper

    Not for sure what happened. I use multi worlds and tried to use this on my creative world. It would start the game like it was spouse to but when you did damage it would not boot the other player out.

    Here is my WG report http://mcdominion.net/report.txt

    It never tossed errors to console at all.
     
  19. Offline

    Slash1987

    UP
    Version 0.5Beta is finally out
    It's a stable version(for now) and if anyone wouldn't notice bug i will claim it as Version 1.0 and start working on Permission and iConomy support (maybe also Spout)
     
  20. Offline

    ApplePieRocks

    when i start it says start the fight each time an arrow is fired and nothing happens when someone gets hit by an arrow
     
  21. Offline

    Slash1987

    what bukkit version are you using? and it give you some error in the LOG?

    UP - Version 0.6beta is out, some bugfixing to make the game stable (hoping no other bug will spoil out)
    Working on iConomy

    I'll put an idea just as i Thought of it....
    What do you think of a betting system??? for those who don't like to fight, i could implement a betting system so you could bet on a team and, if this team won, you will get some kind of multiplier... yet thinking on how to structure this (like make a bonus if the team you're betting to it's outnumbered... or something similar)
    Just let me know your impressions and your ideas to help me make this plugin as Awesome as it could be

    Oh, forgot to tell, i'm implementing iConomy so to play you need to pay a fee and the team that wins will take all the money(i'll let you also configure this so you can make the game free or just let the last standing men take everything). Comment also on this

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

    Nipper

    @Slash1987 Still does not work. Even when shot with a arrow.

    Also Idea. When you type /softair enable have it broadcast a message saying the game has started taking players type "/softair join" to join. Then once they join send another message saying to type "/softair ready" when ready to start.
     
  23. Offline

    Slash1987

    have you got bukkit 1060?? or still the 1000?
    Tested it on my test server with 4 client connected and i've played a full game with no probelm several times... (have you downloaded the version 0.6?)
     
  24. Offline

    Nipper

    As I posted above http://mcdominion.net/report.txt is my server info it is 1060. I tested it with just 1 vs 1. was using newest build the .6b i think it was.

    Just went and tested it on my own windows computer. It spams the start the fight message. As well as not work. I have just that plugin and it still wont work with 2 people.

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

    Slash1987

    Tested it once again and all works for me.... I don't know what kind of problem this could be
    Sorry to not be able to help you
     
  26. Offline

    Skyline1989

    Just installed on my 1060 server
    try to play with 2 players but there was no one hit kill and there was a problem with starting a new game.
    plz contact me via icq 263112194 and i can show you the problem
     
  27. Offline

    Nipper

    @Skyline1989 I think your having the same issue I am. But the maker says there is no issue.
     
  28. Offline

    G4meM0ment

    Nice Plugin, Iam from germany I hope you can understand my stucking english :D
    i love it but there is a bug, i want to report.
    After finishing 1 game he always tells me, the game is running, but no one plays.
    Please fix that.
    Thanks.
     
  29. Offline

    Slash1987

    bug found, i'll post a fix in a few minutes

    UP - version 0.7b out
    Shortly the new 0.8 with iConomy support

    I've never said there is no issue at all, i've just told that i haven't found none...
    Try the version .7, maybe it'll work well as i've made some fixes

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

    Ozo

    the link is broken? =/
     
  31. Offline

    DutchNinja

    The link broke again :(
    However, It sounds amazing and i would really like to try it :)
     

Share This Page