Jump to content

Mentula

Community Members
  • Posts

    85
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Mentula

  1. To de-activate a mod, you can follow this (pretty simple) alternative way.

    1. Locate a configuration file on your computer named user.cfg. This page will help you locating this file, depending on the Operative System you use.
    2. Open the user.cfg file with a text editor and look for a line starting with mod.enabledmods.
    3. Delete the name of mods that give you troubles from this line.
    4. Save user.cfg and restart 0 A.D.

    Not all mods are cross-compatible. It might be that you have installed two (or more) mods that don't work well together.

    • Like 1
    • Thanks 1
  2. Cheats are allowed for this game. If you look into the metadata.json file you attached you can see:

    "cheatsEnabled":true

    You can also notice from the commands.txt file you attached:

    cmd 1 {"type":"cheat","action":"addresource","text":"wood","player":1,"parameter":1000,"selected":[]}

    which confirms that your opponent used cheatcodes.

    Double-check game settings before starting a game, especially if rated. ;)

    • Haha 2
  3. On 17/10/2022 at 5:15 PM, Philip the Swaggerless said:

    Just a question:  Has a weighting "meta" emerged?

    This question deserves attention.

    Due to the way LocalRatings is structured, this is slightly similar to asking: what summary scores describe players' skills best? I am not aware of any (recent) related topic on the forum; if anyone knows, please link it.

    I personally find the default weights quite reliable, albeit not perfect. Any of the experienced players has a better clue?

    • Like 1
  4. 8 hours ago, seeh said:

    The sorting works great and so does the search. could you save these? so that the next time you visit, it's already in there?

    I am not planning to release a new version soon, unless some important bug is spotted. All changes and additional features will have to wait for a while.

    However, I opened an issue on the GitLab repository following your suggestion: https://gitlab.com/mentula0ad/LocalRatings/-/issues/30. That means that, if nobody works on it before the next release, I will (probably) add it.

    9 hours ago, seeh said:

    maybe I can program that little think too. would that be okay? do you support me if i have questions?

    Sure, you can do that. All are welcome to modify the project at their own needs, long live to free software! :) The feature should be easy to implement, but if you find difficulties, feel free to PM me.

    • Like 1
  5. Cheers and... WELCOME TO ALPHA 26!

    The newest version of the LocalRatings mod (v0.26.1) is attached to this post.

    Major new features:

    1. Automatic (and much faster!) list update.
    2. New per-civ rating chart.
    3. Ratings of players visible in the lobby page.
    4. Documentation, including the rating system and F.A.Q. is now available (clicking on the "Info" button).
    5. New match filter: starting resources.

    .. and other little perks:

    1. Player names colored as in lobby.
    2. Hovering on evolution chart shows detailed information.
    3. More statistical data (e.g. standard deviation).

    Release notes: the attached new version of LocalRatings v0.26.1 is compatible with Alpha 25.

    Installation: see the first post of this thread for instructions.

    Have fun!

     

    LocalRatings.pyromod LocalRatings.zip

    • Like 3
  6. It likely seems to be an issue of StarGui mod introduced between StarGui4 and StarGui7. Maybe @Sevda can take a quick look?

    It's not the first time I find incompatibility issues across different 0 A.D. mods. Most of the times this is due to modders not proxying existing functions, but overwriting them. I don't know if this is the case... if time allows I can help looking into StarGui.

  7. @seehat a first glance the issue does not seem to be related with the LocalRatings mod, but arising from somewhere else.

    I am not using any of the mods you listed but I'll give them a look to see where the issue is originated.

    One thing you can try to do is to run mods in a different order, 0 A.D. allows to do that (from the Mod Selection page). If this works for you, please leave a comment, other people might be affected too.

    • Thanks 1
  8. Hello 0 A.D. friends!

    Now that Alpha25 is about to be replaced by the new Alpha 26, I want to share my LocalRatings data from Alpha 25 with you, I believe all of us can benefit from it. Feel free to do the same if you wish so!

    I include a picture of my TOP 30. Further, I attach the entire database (JSON format) for those of you who want to see the bigger picture. Since the ratings depend of the user-defined weights and filters, I declare mine: Score Weights -> default; Match filters -> default; Player Filters -> minimum number of games played = 5.

    Enjoy!

    MyLocalRatings.png.2c4a7cc784b1b84785d3b5441ffbb167.png

    Additional info

    • the forum thread of the LocalRatings mod is here.
    • if you wish to share your entire database as I did, look on your computer for a file named ratingsDatabase.json.

    ratingsDatabase_Mentula_A25.json

  9. Hi everybody,
    no version update here, just a little piece of information from the author of the LocalRatings mod (me).

    The next LocalRatings version (v0.26.1) will be released as soon as the new 0 A.D. Alpha 26 is out. I am impatient to play the new Alpha26 and to see how players' statistics change. As you may know, there will be a new civilization, the Han Chinese and it will be interesting to see how players perform with it. And speaking of civilizations... here's a preview of what you will find in the next LocalRatings version!

    civs.thumb.png.915ca0f3fd816d503b149ef3cc57f50f.png


    Yes, per-civ statistics. Cool, isn't it?

    This is one of many new changes and features I have been working on. It will help giving a more concrete idea on civilization balance and I'm very curious to see what the Han Chinese civilization will reveal!

    I will provide a full list of new features when the release day comes. For the moment, if any of you wants to try it in advance, you can download the zip file of the development version (or download it manually from the GitLab page). It runs on both A25 and A26. I appreciate any feedback, in particular regarding the new explanatory page, that can be opened from the "About Local Ratings" button on the top of the page. Surely more content can be added and the English might not be perfect (my mother tongue is not English), so I appreciate any suggestion in that sense. Other type of feedback is welcome too. Should you have any thought, feel free to send me a private message.

    Thanks and... see you on A26!

    • Like 5
    • Thanks 5
  10. @faction02 raised a good point. I have updated the last release (v0.25.8) with a small update. From the Options>Charts menu you can now hide/show charts. This will improve readability, I hope. You will now be able to see charts like this:

    Chart.thumb.png.9d330fbe3622bdb5ec488b9b5112dda2.png

    New features will appear in a future version (probably in A26). Attached you can find the updated version (v0.25.8.2). The same zip file can be found attached to the first comment of the current thread.

    LocalRatings-v0.25.8.2.zip

    • Like 4
  11. Just now, faction02 said:

    What is exactly "performance over time"? It takes values that varies substantially from negative to very high values and currently, it seem very hard to see how "Rating evolution" is actually moving.

    Every (x,y)-point of the Performance over time graph has y-coordinate equal to the player's rating calculated on the x-th game played. For example, if a player has performed 10% better than the average on their first game (where "better" depends on the weights set, of course), then (1, 10.00) will be a point on the Performance over time graph.

    8 minutes ago, faction02 said:

    Maybe making some tiny adjustment (using different scale or units of measurement, when generating the graph creating an option such that not everything is added ...) to get the different information on the graph more easy to read could be good? 

    Thanks! Actually, the Performance over time graph can have very high and low peaks, making the Rating evolution graph poorly readable. I will put some option to hide/show certain elements of the chart and maybe readjust units/scale if needed. There are plenty of further improvements that can be made, charts have great potential.

    • Like 1
  12. CHARTS!

    Hello 0 A.D. friends,

    I am happy to announce a new release (v0.25.8) of the LocalRatings mod with new amazing features!

    Are we getting better over time? Is our archenemy becoming everyday stronger? Charts will tell! Explanatory picture below.

    Charts.thumb.png.c0383bae114ba29bbd49198c72e6e091.png

    And if you don't like the default chart colors you can always change them (see picture below).

    Spoiler

    ChartsColor.png.c94188cbf5fce0c163dc10566d8ea678.png

    Further, two new Score Weights have been added: the amount of resources used and the amount of resources sold at the market.

    Finally, Other minor issues have been addressed.

    Download: you can download the new release (v0.25.8) of the mod from the zip file attached to this post or from the zip file attached to the first post of this thread or from the official page.

     

    LocalRatings-v0.25.8.2.zip

    • Like 7
  13. Hi everyone,

    I have updated the LocalRatings mod, including a new match filter: the date of validity. This means that the mod now allows to filter out games played before a certain date to the aim of computing the rating. See picture below.

    This is probably the last update including new features before A26 is officially released. There have been many ideas on how to improve the mod and I wish to collect more feedback from users before committing to new changes.

    Spoiler

    recentDateUpdate.thumb.png.2fa77f35c106fc3d1084695f4dd3cb05.png

    Download: as usual, you can download the new release (v0.25.7) of the mod from the zip file attached to this post or from the zip file attached to the first post of this thread or from the official page.

    LocalRatings-v0.25.7.zip

    • Like 1
  14. Thanks @woodpecker and @sarcoma. The idea of filtering/weighting replays according to the date has been brought to attention multiple times (for example by @seeh and @BreakfastBurrito_007) and seems to be a must-have. I guarantee this will be implemented in a future version of the LocalRatings mod.

    Besides a new match filter that takes into consideration the replay date, I am imagining a customizable "weighting function" that assigns a weight of 1 to the most recent replay and slowly decreases back in time, according to user-given parameters. Thinking out loud, such function could be linear, logarithmic, a step function or even we can let the user choose among multiple possibilities. If any of you has thoughts / references / expertise feel free to give a comment.

    PS: thanks to all of you who are proposing new ideas, @real_tabasco_sauce, @Sevda and @rossenburg among others. I am happy to see that the LocalRatings mod has raised interest in many players. Although I am not responding to all comments, I am taking all suggestions and their feasibility into consideration.

    • Like 3
  15. Sure @Sevda. First of all, I can't see from your pictures the number of matches you've played with the players in your list, but I can imagine that the number of matches is small for those players that you believe being far from your expectations. When the number of matches is small, statistics are unreliable; you need many games to get significant data values. Notice that the mod (v0.25.6, the last version at the moment I am writing) allows you to filter out players whose number of games is small (from the Options > Player Filters menu).

    That being said, I'll do my best to explain the algorithm hereby; you can find more info at the repository page and, if you want to look at the part of the code that handles the rating computation, you can look at this file.

    Spoiler

    As an example, I assume we are computing the rating of a player whose username is Mentula.

    1. First, we scan all replays having Mentula as an active player and we ignore the others (this would be extremely inefficient from an algorithmic perspective; this is not how the mod works, but let's assume the mod works this way for simplicity).
    2. For each replay, we look at the statistics of Mentula at all instants of the replay (and not only at game's end). In fact, 0 A.D. stores data at given moments of the game, so you can imagine the timeline as a discrete timeline consisting of n instants t_1, ..., t_n.
    3. For each instant, we compute Mentula's score according to the weights you set: for example, with "Enemy units killed (number)" set to 1 and all other weights set to 0 ("top killer", as you say) we multiply the weight (1 in our case) by the number of units killed by Mentula at that instant of the game, so to get the score of Mentula at that instant. Thus, we obtained n scores s_1, ..., s_n, each relative to an instant t_1, ..., t_n.
    4. We then compute Mentula's average score over all instants. In formulas: (s_1 + ... + s_n) / n. This is Mentula's average score relative to the particular replay we are considering.
    5. We also compute the average score of the game, namely the sum of all the average scores of all players (as in step 4), divided by the number of players. This represents the average score of all players as if they were one single player.
    6. We compute the ratio (Mentula's score - average score) / average score. This is Mentula's rating relative to the particular replay we are considering. For example, if Mentula's rating turns out to be 0.1, then Mentula has an average score during the game 10% higher than the average score of all players combined.
    7. We produce the final rating of a player by computing the average rating over all replays (namely, we sum the ratings obtained at step 6 over all replays and we divide by the number of replays).

    Sorry for the long answer, I hope it's clear enough.

    • Like 1
    • Thanks 1
  16. 7 hours ago, sarcoma said:

    Whats the difference between some categories (value/umber)?

    @sarcoma let us consider a specific example: "Enemy units killed (value)" vs "Enemy units killed (number)".

    If you set a weight of 1 to "Enemy units killed (value)", the contribution of this parameter to the rating corresponds to the total value of enemy unit killed, that is, the cost to produce them. For example, with a weight of 1, a player gets 50 points for killing an enemy citizen woman, 100 for a base infantry unit, 150 for a base cavalry unit and so on... On the other hand, if you set a weight of 1 to "Enemy units killed (number)", the system will assign one point for each enemy unit killed, disregarding the type of unit and the cost to produce it. For example, with a weight of 1, a player gets 1 point for killing and enemy citizen woman, 1 for a base infantry unit, 1 for a base cavalry unit...

    To continue with this example, if you set a weight of 1 to both "Enemy units killed (value)" and "Enemy units killed (number), you will get 51 points for killing and enemy citizen woman, 101 for a base infantry unit, 151 for a base cavalry etc... So probably you might want to consider one of the two parameters only and set the other to 0, but this up to your rating design.

    The mod's default weight for "Enemy units killed (value)" is 0.1 because in 0 A.D. each enemy unit killed increases a player's score by 10% of the unit's value. For the same reason, the default weight for "Enemy units killed (number)" is 0 because in 0 A.D. a player's score is not affected by the number of enemy units killed (but only by their value). The LocalRatings default weights are the ones that 0 A.D. uses to calculate the total score of a player.

    • Thanks 1
  17. 1 hour ago, real_tabasco_sauce said:

    However: If I host a TG and balance based on how well people play versus me, am I likely to get a balanced game? I guess this comes down to the certainty of the score (how many matches I have played)

    so the recipe for a balanced TG is to balance my (the host's) local ratings on both sides, correct?

    Short answer: I would personally balance a TG by balancing the total ratings of the two teams.

    However, let me be prudent in giving a definitive answer. One big fact to take into account is that the rating heavily depends the weights you choose. Different weights can give rise to very different ratings. The weights are supposed to change the "meaning" you give to the rating. But once you have decided upon the weights to choose, it's true what you say: the more games you played, the more reliable ratings are.

    56 minutes ago, real_tabasco_sauce said:

    I wonder if using "value ratio" would be suitable for this mod? This could also give a more appropriate score to rushing players, since I see Aslan. and H. Herle are poorly rated in my lists. What do you think @Mentula?

    In practice, I guess this would look like adding resources spent to the available weights customization window, although the ratio would also be nice.

    Yes, the amount of spent resources could be a weight to add, thanks for suggesting. Regarding the ratio, ratios can't be used as weights for the following reason: the rating of a player is determined by comparing the player's parameters with the average game parameters, so at some point a division occurs in the calculation. Ratios can sometimes be close to 0 (or to infinity), and we all (well.. many of us) know what happens if a number close to 0 (or to infinity) is at the denominator. Actually, during the early stage of the mod development I have considered including ratios (like k/d ratio, resources sold/bought, tributes sent/received, ...) and results were odd, to say the least.

    51 minutes ago, real_tabasco_sauce said:

    It also looks like the default weight for map exploration is 10 (version 0.26.5). I bet this is a typo, right?

    The number 10 is the correct one. The "Exploration Score" (the same one that you can see in the Summary at the end of a game), is obtained by multiplying the percentage of explored map by 10.

    • Like 2
×
×
  • Create New...