Raised This Month: $32 Target: $400
 8% 

[L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)


Post New Thread Reply   
 
Thread Tools Display Modes
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 03-06-2012 , 10:17   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.4 (2012-02-19)
Reply With Quote #131

You can always ask ash/psy perhaps, or track them down on irc if your not already there..
__________________
Arguing with a fool only proves there are two
snelvuur is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-06-2012 , 14:24   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.4 (2012-02-19)
Reply With Quote #132

Here's a new Debug build, but just of the TF2 version. As of this version, all Debug builds will automatically have additional logging used to track down bugs.

Anyway, this version will now, if a translation fails, attempt a manual FindTranslation so we can get an actual error code back. This error code will be logged as a brief description of the reported problem to the standard SourceMod log immediately after logging the translation phrase, client name, and language number.

I think the error is related to the way SourceMod caches translations on the C++ side, but I need more data before I file a bug report on it...

The version number will still report as 0.5.6.

Edit: Whoops, I noticed that it should display 0.5.7 not 0.5.6... which means the version number in the respository is wrong. I'll fix this soon.

Edit 2: See debug link on first page.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-06-2012 at 15:43.
Powerlord is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 03-06-2012 , 16:32   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #133

I will install this version and verify when i get a complaint again (or if i have it). Will come back to you on that.

Update: insrtalled, lets see what happens. I dont see it being advertised as 0.5.7a though..
__________________
Arguing with a fool only proves there are two

Last edited by snelvuur; 03-07-2012 at 03:35.
snelvuur is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 03-09-2012 , 06:05   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.1 (2012-01-19)
Reply With Quote #134

Quote:
Originally Posted by Powerlord View Post
Is this on Linux or Windows?

I've heard reports of this, but I haven't had a chance to set up a server to test it.
Yes i have reported this several times. My kinda stupid solution is to set the vote before nextmap 10 minutes before the map ends. This way there isnt any chance or rather little chance for the server to change map before the vote ends.
__________________
cool_myll is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-09-2012 , 08:09   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.1 (2012-01-19)
Reply With Quote #135

Quote:
Originally Posted by cool_myll View Post
Yes i have reported this several times. My kinda stupid solution is to set the vote before nextmap 10 minutes before the map ends. This way there isnt any chance or rather little chance for the server to change map before the vote ends.
Actually, we did a whole bunch of new versions to fix crashing errors. Try 0.5.7 and see if the issue still happens.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 03-09-2012 , 14:35   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #136

Dont know if its of any help but i have this in the logs now (dont have any reports that it didn't work at the same time yet)

L 03/09/2012 - 200:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "Ã<81>øLLã Ã<9c>IÃ<85>Ã<85>ãâ<88><8Ã<98>_Ã<98>)" using language 7
L 03/09/2012 - 200:06: [BV] FindTranslation returned: No Error.
03/09/2012 - 200:06: [BV] Sending vote cast to hintbox for gumf597.
L 03/09/2012 - 200:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "gumf597" using language 7
L 03/09/2012 - 200:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "PRO KALLE" using language 7
L 03/09/2012 - 200:06: [BV] FindTranslation returned: No Error.

I grepped on the FindTranslation but always "no error" except for above so far..
__________________
Arguing with a fool only proves there are two
snelvuur is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-09-2012 , 15:42   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #137

Quote:
Originally Posted by snelvuur View Post
Dont know if its of any help but i have this in the logs now (dont have any reports that it didn't work at the same time yet)

L 03/09/2012 - 200:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "Ã<81>øLLã Ã<9c>IÃ<85>Ã<85>ãâ<88><8Ã<98>_Ã<98>)" using language 7
L 03/09/2012 - 200:06: [BV] FindTranslation returned: No Error.
03/09/2012 - 200:06: [BV] Sending vote cast to hintbox for gumf597.
L 03/09/2012 - 200:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "gumf597" using language 7
L 03/09/2012 - 200:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "PRO KALLE" using language 7
L 03/09/2012 - 200:06: [BV] FindTranslation returned: No Error.

I grepped on the FindTranslation but always "no error" except for above so far..
That's... strange. The FormatString command fails, but the command it's supposed to be using internally is returning no error. I may have to write even more debugging code to examine the parameter stack.

Also, I wish I knew what language #7 was... but there is no API to get the language name from the language number using the C++ API.

Although, now that I look, there is a way to retrieve language info by number in the SourcePawn API. Let me whip up a quick script...

According to my server, language 7 is:
languageid 7
Name: danish, Code: da

And this clue may have given me the solution I've been looking for.

In SourceMod 1.3.8, this is what translations/da/core.phrases.txt had in it for Vote Count:
Code:
    "Vote Count"
    {
        "da"        "Stemnings tal"
    }
This is what translations/core.phrases.txt had in it for Vote Count:
Code:
    "Vote Count"
    {
        "#format"        "{1:i},{2:i},{3:i}"
        "en"            "Votes: {1}/{2}, {3}s left"
    }
As you can see, the number of parameters doesn't match.

However, this is what 1.4.1 has for translations/da/core.phrases.txt

Code:
    "Vote Count"
    {
        "da"        "Stemmer: {1}/{2}, {3}sekunder tilbage"
    }
As you can see, the 1.4.1 version has the correct number of arguments.

Apparently this was fixed between versions.

So, I recommend replacing your SourceMod translation files with the ones from the 1.4.1 archive.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 03-10-2012 , 07:54   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #138

Also had an error for language 7
Code:
L 03/10/2012 - 11:05:19: [BV] Unknown fatal error while translating phrase "Voted For" for client "sloeri" using language 7
L 03/10/2012 - 11:05:19: [BV] FindTranslation returned: No Error.
According to HLstatsX:CE the player is from Belgium and wikipedia says their official language is Dutch, French and German.
I've found a flaw in the dutch translation where it is
Code:
"Voted For"
	{
		"nl"		"heeft gestemd op {2}"
	}
when it should be
Code:
"Voted For"
	{
		"nl"		"{1} heeft gestemd op {2}"
	}
I've sent a PM to tcviper as he is a moderator for the dutch translation.
Btw this is for the SM 1.4.1 translations

Edit: Just got the same error for 2 dutch players so language 7 seems to be dutch on my server.

Last edited by gH0sTy; 03-10-2012 at 08:11.
gH0sTy is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-12-2012 , 08:23   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #139

Quote:
Originally Posted by gH0sTy View Post
I've sent a PM to tcviper as he is a moderator for the dutch translation.
Btw this is for the SM 1.4.1 translations
Thanks, I've added the corrected line to the translation tool, it'll need to wait on one of the Dutch translators to approve it then it should be in 1.4.2 when it's released.
__________________
asherkin is online now
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-13-2012 , 10:25   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #140

Quote:
Originally Posted by gH0sTy View Post
Edit: Just got the same error for 2 dutch players so language 7 seems to be dutch on my server.
Oh right, I forgot to post the quick plugin I wrote to identify the language based on the language number, since they likely change for each new version and possibly even from server to server. It adds a command languageid that takes a number as an argument. I showed the output of it last week. Requires the generic admin flag to use, and will return language 0 (the server lang)'s info if you pass in a non-numeric argument.

(I should probably also file a feature request for a GetLanguageInfo like function in the translation extension API so that this can be done in the extension's error reporting. Edit: Feature Request Filed)

Edit: Reposted attachment, I originally posted a slightly older version.
Attached Files
File Type: sp Get Plugin or Get Source (languageid.sp - 465 views - 978 Bytes)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-16-2012 at 17:17.
Powerlord 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 18:58.


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