BattleRating

Discussion in 'Archived: Plugin Requests' started by FlyingPig_, Jun 29, 2014.

  1. Offline

    FlyingPig_

    Plugin category: Fun

    Suggested name: BattleRating

    What I want: A plugin were two players can duel each other with a command (shown) they can choose pre-made kits and they when they duel it randomizes a map/arena When the battle is over let's say that Dude12 and Cool12 dueled and Dude12 won so it'd be a rating like:

    Dude12 gained 15 rating (1415)

    Cool12 Lost 15 rating (1385)

    Now, the ratings would be randomized per duel depending on each others rating. And 1400 is the default rating.

    Ideas for commands: /duel /duel accept /duel deny

    Ideas for permissions: Battlerating.duel battlerating.deny battlerating.accept

    When I'd like it by: Doesn't matter.
     
  2. Offline

    jthort

    FlyingPig_ What version would you want this developed in?
     
  3. Offline

    FlyingPig_


    1.7.4
     
  4. Offline

    traipop

    id love an easy elo system itd be great if you could customize in config how much battlerating you get accuring to what armor the victim has, and config type name
     
  5. Offline

    jthort

    traipop FlyingPig_

    I'm working on this now, although I have a past of starting projects then just loosing interest. Right now I have the duel requests set up, I need the actual duel part and the ratings finished. I'm off to work, should be working on it again by 10:30 ET
     
  6. Offline

    5chris100

    So are the ratings kind of like a virtual currency?
     
  7. Offline

    traipop


    for me id say they are more of to "show off "
     
  8. Offline

    FlyingPig_


    Yea it's more of a show off thing.

    jthort also, it would be cool if you could add a /rating command which shows you your rating, kills, and deaths.
     
  9. Offline

    traipop

    imagine of having your current battlerating show up as numbers <- suffix after name in chat and character ingame
     
  10. Offline

    jthort

    traipop that's exactly what I had in mind, will do

    Edit: If you guys have anymore addons you want to suggest please do so now, It's easier to put it in while developing rather then change it later on
     
  11. Offline

    TheWolfBadger

    jthort If you need any help with anything just tahg me! ;) Good luck! I love helping out haha. :)
     
    jthort likes this.
  12. Offline

    traipop

    waiting for this :p
     
  13. Offline

    5chris100

    Ah, alright, then. :)

    Me too. I'd love to be as big of a help as I can. ;)
     
  14. Offline

    jthort

    5chris100 likes this.
  15. Offline

    5chris100

    Upload it on GitHub so we can contribute to it as well. :)
     
  16. Offline

    jthort

    5chris100 in that case I'll try to add comments and make it organized.
     
    5chris100 likes this.
  17. Offline

    5chris100

    Awesome. Maybe an API could even be established. ^^

    Oh, one more thing. Would OP's specified version...
    ...work in other 1.7.x versions, like 1.7.2 and 1.7.9? Just a thought.
    EDIT: Tagging jthort. I really need to remember this. ^-^;

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

    FlyingPig_


    Multi-Versoned would be cool
     
  19. Offline

    5chris100

    I code mostly in 1.7.2, and they work for most 1.7.x versions. The code itself hasn't changed much, but the protocol has, as well as hitting you with using UUIDs. (Speaking of which, I need to fix my plugins to be UUID-compliant. :p)
     
  20. Offline

    traipop

    so how is this going? :p
     
  21. Offline

    jthort

    traipop The plugin now has a dueling system in it, still taking out a few bugs in that part. After that I need to establish a point system, as well as the kits. I know you're probably wondering how much longer, it's hard to say. If I could guess I would say the end of tomorrow, or the day after that.

    FlyingPig_ I'm not sure how you guys want the arena system put in, your going to have to explain that a bit more please, Thanks

    Of course, it'll be up once I finished.
    API sounds good, I'll incorporate that once I get the plugin finished.

    I've honestly never worked with 1.7.9 but I'm sure I could throw in a few changes to get it working. It shouldn't be to difficult, but lets get the first version out then we can decide what to do next.
     
    5chris100 likes this.
  22. Offline

    5chris100

    The whole purpose of GitHub is to collaborate so you can get to a first release and onwards. You know that, right? :3 It kinda defeats the purpose when you upload it afterwards (unless it's an API-only plugin, like BarAPI). But you're the main author. You do what you want. :p
    EDIT: Changed :p to :3
     
  23. Offline

    jthort

    Haha I know what github is :), I would rather work on it myself (Sorry if this sounds selfish) but when other people touch my code and change it, kinda just bothers me lol. I mean afterwards it's fine because i'm done with it, but yeah, sorry
     
    5chris100 likes this.
  24. Offline

    traipop

    waiting for this badly :p would love to see this as suffix ingame
     
    5chris100 and jthort like this.
  25. Offline

    jthort

  26. Offline

    traipop

  27. Offline

    jthort

    traipop 5chris100 FlyingPig_ TheWolfBadger Alright guys I setup a saving system so that it can handle reloads, it took longer than I expected (forgot to save it after changing keys and couldn't figure out why it wasn't working) so that's done.

    It has four different configuration files, one default one (for you to edit and change to configure the plugin) and the other three are for saving the players inventorys (while they use the kits), saving the duels that are in progress, and save the ratings for each individual player (this can be changed ingame by an admin or in the config directly).

    What I have left to do is setup the kits and the point system, the point system should be easy.

    This plugin is going to be open source

    Edit: Sorry about the github link, I spent 2 hours trying to figure out how to push a damn repo...Anyway I figured it's almost done so I'll just wait till I finish then push. If you want the code I have so far just message me and I'll send you a personal link. I'll have a public repo setup for people who want to contribute later on
     
    5chris100 likes this.
  28. Offline

    traipop


    this one took longer than i thought :D
     
  29. Offline

    jthort

    Yeah sorry about that I've got a lot of stuff going on, but don't worry i'm still working on it a lot

    Edit: The rating system is done, this is how it works..

    If their ratings are equal, the winner gains 4 points and the loser loses 4 points

    If the winners rating is twice as good as the losers, they gain 1 point and the loser loses 1 point

    If the winner's rating is half the winners, they gain 10 points.

    It's a little more complicated then that but it should give you an idea. I'm also adding a "rating multiplier" that allows you to change the rating system to the main config file.

    The output looks like the following
    <Jthort> [10] <message>

    The output is going to be configurable so you can change colors and do something like this
    <jthort> [10 Rep] <message>

    It's difficult to work out the bugs to this plugin since you need multiple players so i'm allowing any players who are willing to help test (or check out the plugin for themselves) to join my private testing server. Sort of like a private beta, message me for details

    Edit2: Off to sleep, finished the inventory selection. I just need to give the kits, save their inventorys, then put the finishing touches on it.

    Edit3: Finished the kit selection, I just need to save their inventory's to the config file to handler reloads then we're set

    Edit: Everything seems to be done, i'm just cleaning up some things
     
  30. Offline

    FlyingPig_



    Awesome! This should be really cool!
     

Share This Page