Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

mod : ClanGroup Size Penalty moved to server configuration #1204

Merged
merged 5 commits into from
Aug 11, 2023

Conversation

namidaka
Copy link
Collaborator

No description provided.

@namidaka namidaka requested a review from verdie-g July 25, 2023 19:59
Copy link
Owner

@verdie-g verdie-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Team balancing is what killed the AS server so we need to find a safest plan

@namidaka namidaka requested a review from verdie-g July 29, 2023 15:55
@namidaka
Copy link
Collaborator Author

Team balancing is what killed the AS server so we need to find a safest plan

Moved it to server configuration. So we can change it for a single day on a server by server basis , and run analysis of rounds for each server to tweak the penalty on a per server basis.
As the penalty is extremely meta dependent this makes sense

@namidaka namidaka changed the title mod : disabling team penalty when balancing. mod : ClanGroup Size Penalty moved to server configuration Jul 29, 2023
|| !float.TryParse(sizePenaltyStr, out float sizePenalty)
|| sizePenalty > 1.5f)
{
Debug.Print($"Invalid server multiplier: {sizePenaltyStr}");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To update

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -25,11 +25,28 @@ public static void Init()
public static CrpgRegion Region { get; }
public static string Service { get; }
public static string Instance { get; }
public static float ClanGroupSizePenalty { get; private set; } = 0f;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a global variable it's important to give as much context as possible in the name. We often say

The length of the identifier should be proportional to the distance between its declaration and use.

So here you could go with TeamBalancerClanGroupSizePenalty and crpg_team_balancer_clan_group_size_penalty

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@verdie-g verdie-g merged commit 330a902 into master Aug 11, 2023
4 checks passed
@verdie-g verdie-g deleted the remove-rating-penalty branch August 11, 2023 23:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants