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

[L4D & L4D2] Gear Transfer (2.33) [28-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Kid_Bandes
Member
Join Date: May 2010
Old 05-17-2021 , 23:01   Re: [L4D & L4D2] Gear Transfer (2.13) [26-Feb-2021]
Reply With Quote #321

Quote:
Originally Posted by N.U.S.C. View Post
Seems to have found the cause, is a conflict with WeaponHandling, this plugin and WeaponHandling installed at the same time, will crash. And, after the server starts, if no player has ever connected, quit does not crash. Once has player connected, quit will crash.
I'm using both of them for my local server, they are working fine, no crash.

Last edited by Kid_Bandes; 05-17-2021 at 23:03.
Kid_Bandes is offline
TheSolenOne
Junior Member
Join Date: Jan 2020
Old 07-06-2021 , 00:17   Re: [L4D & L4D2] Gear Transfer (2.13) [26-Feb-2021]
Reply With Quote #322

I have a stupid question, what could be the problem of the plugin not reading the configuration file?
In cfg file I have
l4d_gear_transfer_types_give "567"
when I check this cvar on server I have
l4d_gear_transfer_types_give
"l4d_gear_transfer_types_give" = "123456789"
notify
- Which type can bots auto give. 0=Off. 1=Adrenaline, 2=Pain Pills, 3=Molotov, 4=Pipe Bomb, 5=Vomit Jar, 6=First Aid, 7=Explosive Rounds, 8=Incendiary Rounds, 9=Defibrillator. Any string combination.
TheSolenOne is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-06-2021 , 05:01   Re: [L4D & L4D2] Gear Transfer (2.13) [26-Feb-2021]
Reply With Quote #323

Quote:
Originally Posted by N.U.S.C. View Post
Seems to have found the cause, is a conflict with WeaponHandling, this plugin and WeaponHandling installed at the same time, will crash. And, after the server starts, if no player has ever connected, quit does not crash. Once has player connected, quit will crash.
https://forums.alliedmods.net/showpo...5&postcount=68


Quote:
Originally Posted by TheSolenOne View Post
I have a stupid question, what could be the problem of the plugin not reading the configuration file?
Get the Command Buffer Overflow Fixer plugin from my signature.
__________________

Last edited by Silvers; 07-06-2021 at 09:33.
Silvers is offline
imyz
Junior Member
Join Date: Dec 2013
Old 07-24-2021 , 10:16   Re: [L4D & L4D2] Gear Transfer (2.13) [26-Feb-2021]
Reply With Quote #324

Hi, Silvers:

First of all, thank you so much for your great work to make this happen. With this plugin, playing with Bot could be much more fun ever. However, as a Chinese, I found that some of the word orders are not able to be adjusted, which makes the Chinese chat output kinda ‘lame’.

To remedy that, I made some minor modifications to both of the scripting & translation files as follows:
1. ‘l4d_gear_transfer.sp’:
a. Created a new function/method called Translate() to translate some necessary key phrases into corresponding language strings, which are going to be used as parameters by a new function to be introduced next;
b. Created a new function/method called MPrintToChatAll() to eventually translate the sentence to be printed to chat, according to the appropriate language order/customs, with aforesaid parameters, defined in the Phrases.txt;
c. Disabled original function/method CPrintToChatAll(), and replace it with MPrintToChatAll(), refer to your original code Line #1345-1353(Gave, Grab, Switch), and Line #1884 (bot auto-grab).

2. ‘gear_transfer.phrases.txt’:
d. Modified the translation file ‘gear_transfer.phrases.txt’ to satisfy your own language habits.

Believe this could be a relief to those who have the same demand as I did

P.S.: After many attempts to try to upload/paste a in-game screenshot to show the results were all failed, I have to leave it to you to go through the code to find out. Or, maybe someone would tell me the trick ? And thank you.

--------------------------------------------
Turns out, the reason I failed to upload the screenshot was because the size of my image exceeded...
Attached Thumbnails
Click image for larger version

Name:	GearTrans-Chi.png
Views:	89
Size:	92.1 KB
ID:	190515  
Attached Files
File Type: sp Get Plugin or Get Source (l4d_gear_transfer.sp - 126 views - 72.7 KB)
File Type: txt gear_transfer.phrases.txt (1.2 KB, 76 views)

Last edited by imyz; 07-24-2021 at 23:21.
imyz is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-24-2021 , 14:56   Re: [L4D & L4D2] Gear Transfer (2.13) [26-Feb-2021]
Reply With Quote #325

Thanks.

I guess I'll be updating this to detect the Survivor Shove plugin and delay transferring items by 1 frame, maybe depends how complex (haven't looked).

While I do that I'll use the version you have posted with the new translations, but to support backwards compatibility I'll rename the new translations to "gear_transfer.new.phrases.txt" and use the new method if the file is detected, otherwise it will use the old translation file which I'll no longer post as a download. This way people can slowly update to the new or use the old if they haven't downloaded the new one.

Seems like a bunch of work to modify the 5 other translations into this new format so no promise on when or if I'll do it.
__________________
Silvers is offline
imyz
Junior Member
Join Date: Dec 2013
Old 07-24-2021 , 23:18   Re: [L4D & L4D2] Gear Transfer (2.13) [26-Feb-2021]
Reply With Quote #326

Good day Silvers,

Glad that I managed to upload the screenshot, and I'll appreciate it if you could put another 'Thanks' to your work.

BTW, may I ask why you'd like to delay transferring items by 1 frame?I'm curious.
imyz is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-25-2021 , 05:33   Re: [L4D & L4D2] Gear Transfer (2.14) [25-Jul-2021]
Reply With Quote #327

Ok support for Survivor Shove plugin is done. Both plugins need updating if you use them. This is why the 1 frame delay was required, it only delays if detecting the Survivor Shove plugin.

Code:
2.14 (25-Jul-2021)
    - New translation files added (please update them all).
    - Compatibility support for the "Survivor Shove" plugin (version 1.10 or newer).
Thanks to "imyz" I've added the new code and translations.

As a note, the old translations file had 17702 downloads since it's last update on 10-May-2012!
__________________

Last edited by Silvers; 07-25-2021 at 05:34.
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-25-2021 , 08:00   Re: [L4D & L4D2] Gear Transfer (2.14) [25-Jul-2021]
Reply With Quote #328

Quote:
Originally Posted by Silvers View Post
As a note, the old translations file had 17702 downloads since it's last update on 10-May-2012!
O_o

This plugin is really high traffic. Something like if you would have hands but unable to use them

Silvers - is a doctor =)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 07-25-2021 at 08:01.
Dragokas is offline
KasperH
Senior Member
Join Date: Apr 2016
Location: Hungary
Old 07-31-2021 , 12:56   Re: [L4D & L4D2] Gear Transfer (2.14) [25-Jul-2021]
Reply With Quote #329

Updated Hungarian translation.
Attached Files
File Type: txt gear_transfer.new.phrases.txt (980 Bytes, 67 views)
__________________

"I've Got You In My Sights!"
KasperH is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-31-2021 , 15:19   Re: [L4D & L4D2] Gear Transfer (2.14) [25-Jul-2021]
Reply With Quote #330

Quote:
Originally Posted by KasperH View Post
Updated Hungarian translation.
Thanks! Added.
__________________
Silvers 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 05:05.


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