Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"rating" score does not work #9

Open
rik297981 opened this issue Mar 4, 2021 · 6 comments
Open

"rating" score does not work #9

rik297981 opened this issue Mar 4, 2021 · 6 comments

Comments

@rik297981
Copy link

good evening, I'm finding that at the end of the game the "rating" calculation always remains at 0.
can you explain to me the dynamics of this?
what and where should I make the change to enable this?
I am attaching photos
I attach video

[
rating1
pes rating

](url)

https://streamable.com/ojawzd

@juce
Copy link
Owner

juce commented Mar 5, 2021

I don't think i ever implemented "rating". Sixserver just always sends 0 for it, whenever client is expecting to receive it. PES5 didn't have "rating", and in PES6 it was not obvious how it was different from "points". The "points" are adjusted after each match - based on whether you won, lost, or drawn the game.
( the math for that is here: https://github.com/juce/fiveserver/blob/master/lib/fiveserver/rating.py . Ironically, i called the class - RatingMath - but in fact, it deals with concept of "points", not "rating" )

There is also "rank", which is calculated daily - that shows how you are ranked relative to other players (1 - being the best)

If you know how "rating" should work, i can probably add that logic to Sixserver, but personally i have no clue on what it is :)

@rik297981
Copy link
Author

you can't know what an honor it is for me to have had your direct answer.
thank you for that.
Then the dynamics of the rating are as follows:

  1. CATEGORY DB TEAMS (EDITABLE - WITH THE POSSIBILITY OF IMPORTING TO SERVER VIA FTP)

each team has its own value ranging from 85 (maximum ex: Barcelona) to 66 (poor)

  • to this end, you must have a db that must be edited and imported if an update to the pes game is made (for example a patch to the 2021 championship) with a different team name and value.

these will generate a team score scale

example:
(team) - (value) [TEAM POINTS]
barcelona - 85 [24]
manchester city - 85 [24]
inter - 84 [24]
Chelsea - 82 [24]
Ac Milan - 79 [18]
and continue like this until you get to the poorest teams that will have a value of 66 [0]

the team values ​​table will assign the range of team points as follows:

from value - to value = team points to be assigned in rating

team points table based on value:
66 -> 71 = 0
72 -> 75 = 6
76 -> 77 = 12
78 -> 79 = 18
80 -> 85 = 24

  1. BONUS TABLE

the bonus table takes into consideration the category assigned to the two challengers, and assigns a percentage bonus (%) to the winner:

Winning team category (CV)
Losing team category (CL)
Winner Bonus (B% W)

(CV) - (CL) - (B% W)
2 - 1 = + 20%
3 - 1 = + 40%
3 - 2 = + 20%
4 - 1 = + 60%
4 - 2 = + 40%
4 - 3 = + 20%
5 - 1 = + 80%
5 - 2 = + 60%
5 - 3 = + 40%
5 - 4 = + 20%

SCORE CALCULATION DYNAMICS

example player valid for bonus calculation as per bonus table

PALYER 1 (category 3)
PALYER 2 (category 3)

if the best team wins, NO TEAM BONUSES
and only the score of the match made is calculated

example: PLAYER 1 who has CHELSEA (team value 82 [24]) wins against PLAYER 2 MILAN (team value 79 [18])
the calculation will be as follows:

Game type: 1VS1 -> Single

The best team [PLAYER 1 - CHELSEA (team value 82 [24])] won, no team bonus
PLAYER 1 wins 32 game points [0 team points] for a total of 32 points.

PLAYER 2 loses 0 for a total of 0 points.


if the poorest team wins, team bonus is calculated.

example: PLAYER 1 who has MILAN (team value 79 [18]) wins against PLAYER 2 CHELSEA (team value 82 [24])
the calculation will be as follows:

Game type: 1vs1 -> Single

AC Milan team points: 18
Chelsea FC: 24
Team bonus using Chelsea FC: 6 * 1.07 ~ 6 [24-18 = 6 added to coefficient 1.07 = 6]
PLAYER 1 wins 38 (32 game points +6 for the team) for a total of 38 points.

PLAYER 2 loses 0 for a total of 0 points.

@rik297981
Copy link
Author

let's focus on the bonus table and the team score calculation coefficient

we said that:

Coefficient is 1.07

example:

PALYER 1 (category 3)
PALYER 2 (category 3)

Game type: 1vs1 -> Single

AC Milan team points: 18
Chelsea FC: 24
Team bonus using Chelsea FC: 6 * 1.07 ~ 6 [24-18 = 6 added to coefficient 1.07 = 6]
PLAYER 1 wins 38 (32 game points +6 for the team) for a total of 38 points.

PLAYER 2 loses 0 for a total of 0 points.

as you can see, the base coefficient [1.07] has been applied because the challengers are of the same category

PLAYER 2 does not lose rating points as it is the same category and does not suffer any penalty

the bonus table is:

(CV) - (CL) - (B% W)
2 - 1 = + 20%
3 - 1 = + 40%
3 - 2 = + 20%
4 - 1 = + 60%
4 - 2 = + 40%
4 - 3 = + 20%
5 - 1 = + 80%
5 - 2 = + 60%
5 - 3 = + 40%
5 - 4 = + 20%

this will affect the basic calculation coefficient set at 1.07

therefore it will be composed as follows:

(CV) - (CL) - (B% W) COEFFICIENT
2 - 1 = + 20% - 1.27
3 - 1 = + 40% - 1.47
3 - 2 = + 20% - 1.27
4 - 1 = + 60% - 1.67
4 - 2 = + 40% - 1.47
4 - 3 = + 20% - 1.27
5 - 1 = + 80% - 1.87
5 - 2 = + 60% - 1.67
5 - 3 = + 40% - 1.47
5 - 4 = + 20% - 1.27

example of a challenge with challengers of different categories

PALYER 1 (category 5)
PALYER 2 (category 2)

5 - 2 = + 60% - 1.67

Game type: 1vs1 -> Single

Austria team points: 18
Germany team points: 24
Team bonus using Germany: 6 * 1.67 ~ 10
PLAYER 1 wins 60 (50 game points +10 for the team) for a total of 60 points.

PLAYER 2 loses 35 for a total of 177 points.

the calculation dynamics of the loser is done as follows:

the 177 points is calculated in this way

35 game points
24 + 18 team categories
100 minor category defeat
= 177

@juce
Copy link
Owner

juce commented Mar 5, 2021

ok, thanks for the details. I will need to study this carefully when i have a bit more time :)
Have you come up with this system yourself? Or is that how original Konami servers worked...?

@rik297981
Copy link
Author

What an honor, what an honor, what an honor ... Thank you thank you thank you ... What I've shown you is right for most things. I studied it by looking at how things go on the calculations that the rating system does. If I can give you all my study documentation, it would be an honor. How can I give you this? I also have a lot of code made that implement this

@rik297981
Copy link
Author

Sorry, I didn't create ... I can't do that. It would be nice. But I have material that I found on the net. And I am willing to test with you. I have your code loaded and running on my vps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants