Results 1 to 9 of 9

Thread: elgbot / website api / players stats in mohaa

  1. #1

    Question elgbot / website api / players stats in mohaa

    Is it impossible to send Elgbot stats with json code to website using http request or something like that.

  2. #2
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    It's possible with NightFall but it's not fully compatible with Mohaa yet. You gotta wait.

    There's another way, elgbot saves stats in ini files so you can write a script in any language that parses those files and sends them via http/json.

  3. #3

    Default

    iam trying to calculate stats per rounds in every map with elgbot its so hard really.
    elgbot increments stats for current player everytime but not per round + no verification for player name everyone can use same player name and calculate stats without any problem.
    Last edited by Octa o; April 13th, 2020 at 10:18 PM.

  4. #4
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Quote Originally Posted by Octa o View Post
    iam trying to calculate stats per rounds in every map with elgbot its so hard really.
    elgbot increments stats for current player everytime but not per round + no verification for player name everyone can use same player name and calculate stats without any problem.
    You can't verify a player are who you think they are in a Mohaa server, that's beyond elgbot job. Some mods implement in game login like base assault.


    You can check for file changes instead of intervals.
    If your statistics must be round based, you're going to do a lot of work either by a) modifying elgbot to store stats round based.
    b) create a mod that logs the stats in a round based manner.
    c)create a mod that lets your api know when each round is over (via a rcon cvar or a file). Then you check that cvar or file, once it's clear that a round is over you parse elgbot stats and the difference each time is what everyone did in the past round.

  5. #5

    Default

    The thing you can do at the moment is creating something on the website to pull the stats from the server using the rcon like Ryback have say or to pull the stats files and parse them to store the stats.

  6. #6

    Default

    i can get stats files from server to website but how with rcon any example ?
    Last edited by Octa o; April 15th, 2020 at 11:59 AM.

  7. #7

    Default

    another thing how to get map name in script?

  8. #8

  9. #9

    Default

    Hi Octa,
    Don't take this in a bad way, but It's weird that your first question was about advanced stuff like calculating players stats per round and sending it from the server to a website,
    but then you ask how to get a map name in a script, which is one of the most basic things you can do.
    It gives the impression that you want others to make the whole script for you, and that will scare people away from helping you

    I recommend you to do things step by step before trying to do more complex stuff.
    Read all the existing documentation (you can see some links on my signature)
    Download some mods, analyze and play with them until you understand what each line of code does in the script

    After that you will be able to write your own scripts and ask questions appropriately about what you want to do.

    Cheers

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •