Raised This Month: $ Target: $400
 0% 

[L4D/L4D2] Black And White Checker | 1.77 : November 28, 2020 |


Post New Thread Reply   
 
Thread Tools Display Modes
viaxiamu
New Member
Join Date: Jun 2016
Old 10-20-2020 , 14:00   Re: [L4D/L4D2] Black And White Checker | 1.7 : October 20, 2020 |
Reply With Quote #21

Chinese language translation bit messy
I have already sent you the private message

Last edited by viaxiamu; 10-20-2020 at 14:04.
viaxiamu is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 10-21-2020 , 07:02   Re: [L4D/L4D2] Black And White Checker | 1.7 : October 20, 2020 |
Reply With Quote #22

Updated.

- Proper translations for both Simplified and Traditional Chinese, huge thanks to viaxiamu.
__________________
cravenge is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 10-24-2020 , 15:38   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #23

Updated.

- Reworked name translation method to resolve errors regarding it.
__________________
cravenge is offline
CrAzYno0oB
Junior Member
Join Date: Jun 2020
Old 11-08-2020 , 01:58   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #24

It conflict with mutant tank.
PHP Code:
L 11/08/2020 13:29:21: [SMException reportedLanguage phrase "Mirage Tank" not found (arg 6)
L 11/08/2020 13:29:21: [SMBlamingblack_and_white_checker.smx
L 11
/08/2020 13:29:21: [SMCall stack trace:
L 11/08/2020 13:29:21: [SM]   [0Format
L 11
/08/2020 13:29:21: [SM]   [1Line 678black_and_white_checker.sp::TranslateBotName
L 11
/08/2020 13:29:21: [SM]   [2Line 379black_and_white_checker.sp::OnPlayerDeath
L 11
/08/2020 13:29:32Error log file session closed
CrAzYno0oB is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 11-08-2020 , 06:40   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #25

Unfortunately, there is nothing I can do to fix this. That plugin will have to alter its method on naming Tanks.
__________________

Last edited by cravenge; 11-08-2020 at 06:41.
cravenge is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 11-09-2020 , 01:47   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #26

Quote:
Originally Posted by cravenge View Post
Unfortunately, there is nothing I can do to fix this. That plugin will have to alter its method on naming Tanks.
An easy solution to this is to just edit your plugin to check if a certain phrase exists, in this case, "Mirage Tank", and if it doesn't exist, then it defaults to the "Tank" phrase. You can do this for survivors and other special infected as well, so it can be compatible with all plugins/mods that rename bots.

SM 1.10 has a new native: TranslationPhraseExists - Determines if the specified phrase exists within the plugin's translation cache.

Use that to check if a bot's name has a cached phrase, and if it doesn't, default to whatever phrase you want.
__________________
AFK like JFK
Crasher_3637 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 11-09-2020 , 02:01   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #27

Quote:
Originally Posted by Crasher_3637 View Post
SM 1.10 has a new native: TranslationPhraseExists - Determines if the specified phrase exists within the plugin's translation cache.

Use that to check if a bot's name has a cached phrase, and if it doesn't, default to whatever phrase you want.
Wait, really? I should pay more attention to every new addition in SM often.
__________________
cravenge is offline
MagicMikan
New Member
Join Date: Nov 2020
Old 11-12-2020 , 06:16   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #28

What should i do if i want L4D2 also display a white clone of the body?
MagicMikan is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 11-12-2020 , 07:16   Re: [L4D/L4D2] Black And White Checker | 1.71 : October 25, 2020 |
Reply With Quote #29

Quote:
Originally Posted by MagicMikan View Post
What should i do if i want L4D2 also display a white clone of the body?
I purposefully didn't want to use that method in order for it to be compatible with aura giving plugins but you can remove the checks I added for the grave and leave the clone one intact, should you stick to that route with your changes.
__________________

Last edited by cravenge; 11-12-2020 at 07:17.
cravenge is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 11-12-2020 , 13:41   Re: [L4D/L4D2] Black And White Checker | 1.75 : November 13, 2020 |
Reply With Quote #30

Updated.

- Added a failsafe check in the name translation method.
- More translation corrections.
__________________
cravenge is offline
Reply


Thread Tools
Display Modes

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:29.


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