1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Forum KScripting together

Discussion in 'Community Dev Corner' started by SnIcKeRs, Apr 7, 2013.

Mods: Downburst, Mazey
  1. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Completed mods:
    Name: Ranks
    Author: SnIcKeRs
    Version: 0.30
    Description: Shows player's kill/death ratio
    Usage: Type to chat "/rank [player name]" or "/rank" (without ",])
    "/rank -round" - show current round stats
    "/rank -r" - show current round stats
    "/rank reset" - reset your stats
    "/rank -h" - show list of commands
    "/rank -v" - show Ranks version
    Before stopping KS use "/save" command!

    >>>Download!<<<
    Name: Maps Randomizer v.0.11
    Author: SnIcKeRs
    Version: 0.11
    Description: Randomizes maps in mypcycle.cfg every round.
    Usage:
    Before using, make mapcycle.cfg backup and delete all comments (#all words after this symbol).
    Then add full path to MAPCYCLE option.

    >>>Download!<<<
    Name: Spam Kick
    Author: SnIcKeRs
    Version: 0.1
    Description: Bans players for spamming(default 10 mins).
    Usage: ...

    >>>Download!<<<
    Name: MOTD
    Author: SnIcKeRs
    Version: 0.1
    Description: Shows the message from motd.txt file every 15 minutes
    Usage: "/motd" - show message now

    >>>Download!<<<
    Name: Time
    Author: SnIcKeRs
    Version: 0.1
    Description: Shows curent UTC and Server time
    Usage: Type to chat "/time"

    >>>Download!<<<
    Name: Sys Info
    Author: SnIcKeRs
    Version: 0.2
    Description: Shows mem usage, cpu load average 15 mins and uptime
    Usage: Type to chat "/info"
    Only permitted players can use it, add them to PERMISSIONS option!

    >>>Download!<<<
    Name: BadBoyDetector
    Author: Miniu, jammer312
    Version: 2.0
    Description: Muting when player is insulting
    Usage: ...

    >>>Download!<<<
    Name: Profanity Mute
    Author: Kovett
    Version: 0.11
    Description: Gives mutes for profanity
    Usage: ...

    >>>Download!<<<

    You can find all mods here:
    https://www.dropbox.com/sh/7v063tjv58zfv5x/AAB97l5tItC4oRtZh68__-EVa?dl=0
     
    Last edited: Aug 15, 2017
    Clemo7, GloriousToast, miniu and 4 others like this.
  2. How exactly does the Ranks work? I've added it to the server I host: RAVE Official CTF, but typing "/rank me", gets that "Playersoulrealm does not exist". Can I copy stats over (are they in the same form?)?

    Or does it record it into the 'stats' folder? How long or when does it save into 'stats' folder?
     
  3. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    No, you cant copy them from server's folder, it needs some code modifications. After killing or diyng file will be created and you will not see this message.
     
  4. master4523

    master4523 Masterful KAG Guard Global Moderator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    378
    Good job on making those mods, they are really great.
    One suggestion for the stats mod: you should use a timer (javascript's setInterval) then save the stats every 15 minutes or so, instead of saving them everytime someone kills somebody.
     
    soulrealm likes this.
  5. This is all pretty great. Thanks master for making a great tool. :)

    What i've done with the Gather bot (different language and tool, but same idea) is save at end-of-round; this prevents any lag or skipped beats during gameplay.
     
  6. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Ranks v0.22 mod update:
    *some fixes
    *save all stats every 10 minutes and when player left the geme

    Before stopping KS use "/save" command!
    </br>--- merged: Apr 20, 2013 12:09 AM ---</br>
    +++New mods:+++
    +Time
    +The message of the day(MOTD)

    ~~~In the future:~~~
    ~Help
    ~Top
    -Sys info
     
  7. master4523

    master4523 Masterful KAG Guard Global Moderator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    378
    Awesome mods, love them.
     
    Digger101 likes this.
  8. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Thx :)
     
  9. master4523

    master4523 Masterful KAG Guard Global Moderator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    378
    I have a request for some additional features/changes, for the ranks mod.
    - It'd be great having a /top function which shows the top 5 players in k/d ratio
    - Add a /rank playerName command! So we can check the rank of other players
    - If you add /rank playerName, then make it so /rank (without any parameters) shows your rank by default. Also, remove the /rank me command (since "me" is a valid player name)
    - Bug: if you have 0 kills and 0 deaths, the k/d ratio will print "NaN".
     
  10. Is this just me or...does the ranks reset every now and then? Since the server has started using it, the ranks has reseted twice... ie. I get 400 kills 200 deaths, kdr 2. Next morning I play, /rank me gives 0 kills 0 Deaths kdr NaN
     
  11. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    "/rank playerName" works but only with players on the server

    Ranks mod update v0.23:
    - if you have 0 kills and 0 deaths, it shows kd r = 0
    - fixed borders
    - command "/rank" shows your rank without parametr "me"
    - added command "/rank reset", resets your stats = 0
    - some code fixes
    </br>--- merged: Apr 25, 2013 1:28 PM ---</br>
    - command "/rank reset" hotfix
     
    soulrealm likes this.
  12. Could you do something that allows players to get personalised Welcome Messages (mod) (eg. /welcomeme Welcome to RAVE soulrealm! ---- sets welcome message)?

    Also ability to import data for /rank Mod?
     
  13. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Interesting idea, I will try to make that.

    Import from kag PlayerStats folder?
     
    soulrealm likes this.
  14. Indeed so.
     
  15. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Try it.
    Doesn't work with old format, only with KAG stats
     
  16. master4523

    master4523 Masterful KAG Guard Global Moderator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    378
    One little bug on the rank mod, if you have let's say 8 kills, and 0 deaths, then your ratio should be 8.0, but it's currently 0.0.
    A /top command would definitly be a great addition. Or, if it's too complicated, maybe you could make a /best command which shows the best player currently connected on the server.
     
  17. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    A "/top" command is almost done. Now I am working on saving stats for top (without it, stats clears after player reconnects to the server). After testing I will public it.
     
  18. master4523

    master4523 Masterful KAG Guard Global Moderator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    378
    Alright. Also, I'm not sure but I think that printing the rank message on 4 lines is a bit spammy on a server like Black Death CTF which usually has 40 players. Maybe you could add an option to reduce it to one line ?
     
    soulrealm likes this.
  19. What exactly is this?
    Does is base /rank on the server stats or...
    But yeah, I just want to (if its possible) import the data from the server's stats (before this existed) onto the /ranks, and that it doesn't reset automatically.
     
  20. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Copy files from PlayerStats into stats Ranks mod folder and use that modifed mod wothout converting
     
    soulrealm likes this.
Mods: Downburst, Mazey