Raised This Month: $ Target: $400
 0% 

[CS:GO] Skill Auto Balance (v4.1.2, 2021-2-20)


Post New Thread Reply   
 
Thread Tools Display Modes
Effeff
AlliedModders Donor
Join Date: Jan 2019
Location: discord: ff#0533
Old 04-05-2020 , 11:55   Re: [CS:GO] Skill Auto Balance (v2.0.5, 2020-4-3)
Reply With Quote #51

Quote:
Originally Posted by eliteroyal View Post
sab_enableforcejointeam "0"
i had this disabled when the bug happened, or at least i put that cvar to 0 after the config was created but i dont remember if the map changed and it took effect or not.
Yeah I just fixed that in latest update. "Hooked all cvars so that it properly sets/updates their values when they are changed."
Effeff is offline
Effeff
AlliedModders Donor
Join Date: Jan 2019
Location: discord: ff#0533
Old 04-05-2020 , 22:21   Re: [CS:GO] Skill Auto Balance (v2.0.5, 2020-4-5)
Reply With Quote #52

2.0.6: Still investigating cause of bug where players spawn in opposing team's spawn. This update may have fixed it, still testing.

When balancing team player count, it now picks the player who connected to the server most recently, and avoids picking the same player repeatedly. This existed before but I forgot to re-implement it with 2.0.X rewrite.

Fixed some logic on jointeam hook, to prevent unassigned players from joining any team if force-join was disabled. Also got rid of all the Plugin_Continue's in jointeam hook, replacing them with Plugin_Changed - this might be what was causing the bug mentioned earlier (?)
Effeff is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-09-2020 , 15:46   Re: [CS:GO] Skill Auto Balance (v2.0.6, 2020-4-5)
Reply With Quote #53

Bug with the spawn points still persists, using the last version
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
Effeff
AlliedModders Donor
Join Date: Jan 2019
Location: discord: ff#0533
Old 04-11-2020 , 03:06   Re: [CS:GO] Skill Auto Balance (v2.0.7, 2020-4-11)
Reply With Quote #54

2.0.7: Improved logic inside SwapPlayer function, BalanceTeamCount function, and Sort_Times function. Once again, hoping these improvements will resolve the bug where players spawn frozen in opposing team's spawn.

Added convar to enable/disable BalanceTeamCount (if you have this enabled, there's no need for mp_autoteambalance but it doesn't really matter if that in game convar is enabled or not as it will never trigger with this enabled.

I have narrowed down the issue once again. I'm honestly not sure if what I changed fixed it though.
Read this if you're curious https://forums.alliedmods.net/showpo...91&postcount=2
Effeff is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-11-2020 , 23:14   Re: [CS:GO] Skill Auto Balance (v2.0.7, 2020-4-11)
Reply With Quote #55

Very big bug in version 2.0.7
Example:
You are in a 3vs3 situation, everybody from your team dies and you are the last one alive. If you move to spectate the round never ends until you join back in your team as a dead player.
Used the smx from the post, my cfg is:

Quote:
// This file was auto-generated by SourceMod (v1.10.0.647
// ConVars for plugin "tools/skillautobalance.smx"


// The amount to subtract from a streak if UseDecay is true
// -
// Default: "2"
// Minimum: "1.000000"
sab_decayamount "2"

// Whether to display chat messages if a balance occurs or not
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_displaychatmessages "1"

// If enabled, balances player count at round end so no team has 2 or more players than the other team
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_enableBalanceTeamCount "1"

// Add this to 'server commands' in generic admin menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_enableadminforcebalance "0"

// Add this to 'player commands' in generic admin menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_enableadminsetteam "0"

// Prevent clients from switching team. Can join spectate. Can switch if it is impossible for them to rejoin same team due to team-size
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_enableblockteamswitch "0"

// Force clients to join a team upon connecting to server
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_enableforcejointeam "1"

// Whether to freeze the person swapped if they are alive at round end. If false, they are killed
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_freezesurvivor "1"

// The amount of players not in spectate must be at least this number for a balance to occur
// -
// Default: "10"
// Minimum: "2.000000"
sab_minplayers "10"

// Amount of wins in a row a team needs before autobalance occurs
// -
// Default: "5"
// Minimum: "0.000000"
sab_minstreak "5"

// Formula used to determine player 'skill'. 0 = K/D, 1 = K/D+K, 2 = K*K/D
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sab_scoretype "0"

// Randomize teams instead of using a skill formula
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_scramble "0"

// If 1, subtract decayamount from a team's streak when they lose if their streak is greater than sab_decayamount
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sab_usedecay "0"

__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-11-2020 , 23:16   Re: [CS:GO] Skill Auto Balance (v2.0.7, 2020-4-11)
Reply With Quote #56

And I have this too:
Quote:
L 04/12/2020 - 04:20:57: Info (map "awp_containers_eg") (file "/home/client8664/service8611/csgo/csgo/addons/sourcemod/logs/errors_20200412.log")
L 04/12/2020 - 04:20:57: [SM] Exception reported: Array index out-of-bounds (index 66, limit 66)
L 04/12/2020 - 04:20:57: [SM] Blaming: tools/skillautobalance.smx
L 04/12/2020 - 04:20:57: [SM] Call stack trace:
L 04/12/2020 - 04:20:57: [SM] [1] Line 539, skillautobalance.sp::BalanceTeamCount
L 04/12/2020 - 04:20:57: [SM] [2] Line 600, skillautobalance.sp::EventRoundEnd
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
Effeff
AlliedModders Donor
Join Date: Jan 2019
Location: discord: ff#0533
Old 04-12-2020 , 01:19   Re: [CS:GO] Skill Auto Balance (v2.0.7, 2020-4-11)
Reply With Quote #57

Quote:
Originally Posted by xSLOW View Post
Very big bug in version 2.0.7
Example:
You are in a 3vs3 situation, everybody from your team dies and you are the last one alive. If you move to spectate the round never ends until you join back in your team as a dead player.
Thank you for letting me know, I was able to repeat this issue and fix it.

Quote:
Code:
L 04/12/2020 - 04:20:57: Info (map "awp_containers_eg") (file "/home/client8664/service8611/csgo/csgo/addons/sourcemod/logs/errors_20200412.log")
L 04/12/2020 - 04:20:57: [SM] Exception reported: Array index out-of-bounds (index 66, limit 66)
L 04/12/2020 - 04:20:57: [SM] Blaming: tools/skillautobalance.smx
L 04/12/2020 - 04:20:57: [SM] Call stack trace:
L 04/12/2020 - 04:20:57: [SM] [1] Line 539, skillautobalance.sp::BalanceTeamCount
L 04/12/2020 - 04:20:57: [SM] [2] Line 600, skillautobalance.sp::EventRoundEnd
fixed this as well.

2.0.8: Fixed bug where, if last player moves to spectate, the round doesn't end because they are not killed. Also reworked logic inside BalanceTeamCount function to avoid scenario where it checks more clients than are possible.

Added cvar sab_slaysurvivor. If freezing is disabled, the survivor can either be swapped+killed, or swapped+model changed and not killed. Maybe I could add some visual to indicate to themselves that they've been swapped. I think this is too chaotic but I'm adding this as another way to find what the cause of this "player spawns in other team frozen in mid air" bug.

Last edited by Effeff; 04-12-2020 at 02:04.
Effeff is offline
OXYD
AlliedModders Donor
Join Date: Aug 2019
Location: pluto
Old 04-12-2020 , 12:48   Re: [CS:GO] Skill Auto Balance (v2.0.8, 2020-4-12)
Reply With Quote #58

Hello! I've tryed to change the plugin messages and color them but i get this errors
HTML Code:
// F:\carantina\skillautobalance.sp(15) : error 001: expected token: "{", but found "struct"
// F:\carantina\skillautobalance.sp(16) : error 001: expected token: "public", but found "int"
// F:\carantina\skillautobalance.sp(17) : error 001: expected token: "}", but found "int"
// F:\carantina\skillautobalance.sp(18) : error 054: unmatched closing brace ("}")
// F:\carantina\skillautobalance.sp(647) : warning 203: symbol is never used: "args"
// F:\carantina\skillautobalance.sp(647) : warning 203: symbol is never used: "command"
// F:\carantina\skillautobalance.sp(767) : error 017: undefined symbol "playerinfo"
// F:\carantina\skillautobalance.sp(767) : warning 215: expression has no effect
// F:\carantina\skillautobalance.sp(767) : error 001: expected token: ";", but found "]"
// F:\carantina\skillautobalance.sp(767) : error 029: invalid expression, assumed zero
// F:\carantina\skillautobalance.sp(767) : fatal error 190: too many error messages on one line
//
Do you know why? (This erros comes from the unedited source of the plugin)
__________________
ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
89.40.104.210:27015 // COMPETITIVE SERVER
DISCORD: KENOXYD#9098
OXYD is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 04-12-2020 , 13:19   Re: [CS:GO] Skill Auto Balance (v2.0.8, 2020-4-12)
Reply With Quote #59

Seems like a old compiler (SM1.9?). Update your compiler to the latest version of SM1.10.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
OXYD
AlliedModders Donor
Join Date: Aug 2019
Location: pluto
Old 04-12-2020 , 18:19   Re: [CS:GO] Skill Auto Balance (v2.0.8, 2020-4-12)
Reply With Quote #60

It worked, thanks
__________________
ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
89.40.104.210:27015 // COMPETITIVE SERVER
DISCORD: KENOXYD#9098
OXYD is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode