Raised This Month: $51 Target: $400
 12% 

DOD:S Team Balancer


Post New Thread Reply   
 
Thread Tools Display Modes
Trice
Member
Join Date: Nov 2017
Location: Germany
Old 03-31-2023 , 15:36   Re: DOD:S Team Balancer
Reply With Quote #41

Hello

an error i think

[1] Line 107, dodsbalancer.sp::TimerSwitchTeam

if(IsValidClient(client)){
decl String:clientName[64];
ChangeClientTeam(client, GetOtherTeam(GetClientTeam(client)));
GetClientName(client, clientName, sizeof(clientName));
// PrintToChatAll("\x04[TeamBalancer]\x01 %s has been switched to balance the teams.", clientName);
char message[256];
// Format(Chattext, sizeof(Chattext), "\x04[Equibrage Automatique]\x01 %s a été changé de team pour équilibrer.", clientName);
Format(message, sizeof(message), "%T", "message_tb", LANG_SERVER, clientName);
PrintChatAll(message);

i have added the language "de" and "en" but the error every time there


my dodsbalancer.phrases.txt

"Phrases"
{

"message_tb"
{
"#format" "{1:N}"
"fr" "\x04[Equilibrage Automatique]\x01 {1} a été changé de team pour équilibrer."
}
"message_tb"
{
"#format" "{1:N}"
"en" "\x04[Teambalance]\x01 {1} change team for compensation."
}
"message_tb"
{
"#format" "{1:N}"
"de" "\x04[Automatischer Ausgleich]\x01 {1} Teams wurden zum Ausgleich geändert."
}

}

Last edited by Trice; 03-31-2023 at 15:37.
Trice is offline
Send a message via Skype™ to Trice
micmacx
Member
Join Date: May 2021
Old 09-30-2023 , 22:33   Re: DOD:S Team Balancer
Reply With Quote #42

Hi,
Yes an error in your file :

You can't do like this, you must put one file in EN
1 file in FR folder
1 file in DE folder

+++. :-) :-) :-)
micmacx is offline
DNA.styx
Junior Member
Join Date: Dec 2023
Old 12-15-2023 , 11:39   Re: DOD:S Team Balancer
Reply With Quote #43

Quote:
Originally Posted by micmacx View Post
Hi,
Another version that handles humans and bots separately.


Similar to Trice, v1.2 doesn't load with the below error message. I had put dodsbalancer.phrases.txt in the root of sourcemod/translations folder. Then tried creating a EN folder (my server is English) as indicated by your post. No better. v1.1 working fine but I'm loving the idea of the bot first team balance. Any ideas?

L 12/15/2023 - 1610: SourceMod error session started
L 12/15/2023 - 1610: Info (map "dod_avalanche") (file "")
L 12/15/2023 - 1610: [SM] Exception reported: Language phrase "message_tb" not found (arg 6)
L 12/15/2023 - 1610: [SM] Blaming: dodsbalancer.smx
L 12/15/2023 - 1610: [SM] Call stack trace:
L 12/15/2023 - 1610: [SM] [0] Format
L 12/15/2023 - 1610: [SM] [1] Line 107, dodsbalancer.sp::TimerSwitchTeam

----

Edit: Found the reason: My server is English but the default dodsbalancer.phrases.txt file that goes into the folder /dod/addons/sourcemod/translations file is hard coded with 'fr'. Change that to 'en' and the plugin loads fine.

-----

Edit2: get this when the plugin tries to move a bot.

L 12/16/2023 - 14:04:05: Info (map "dod_avalanche") (file "")
L 12/16/2023 - 14:04:05: [SM] Exception reported: Client index 1111708251 is invalid (arg 6)
L 12/16/2023 - 14:04:05: [SM] Blaming: dodsbalancer.smx
L 12/16/2023 - 14:04:05: [SM] Call stack trace:
L 12/16/2023 - 14:04:05: [SM] [0] Format
L 12/16/2023 - 14:04:05: [SM] [1] Line 107, dodsbalancer.sp::TimerSwitchTea

-------

Edit 3: have got [DoD:S] TeamManager Source v1.22 working with RCBot so I'm happy using that.
__________________

Last edited by DNA.styx; 12-17-2023 at 16:27. Reason: Found fix
DNA.styx is offline
micmacx
Member
Join Date: May 2021
Old 01-21-2024 , 08:49   Re: DOD:S Team Balancer
Reply With Quote #44

Another update 1.3...
Attached Files
File Type: sp Get Plugin or Get Source (dodsbalancer.sp - 34 views - 3.6 KB)
__________________
micmacx is offline
Happy DODs player
AlliedModders Donor
Join Date: Sep 2009
Old 01-21-2024 , 10:53   Re: DOD:S Team Balancer
Reply With Quote #45

@ micmacx

What is changed with 1.3 mate
__________________
Happy DODs player 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 19:13.


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