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

[L4D & L4D2] Reverse Friendly-Fire [v2.8.5 (07-Oct-2023)]


Post New Thread Reply   
 
Thread Tools Display Modes
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-27-2021 , 20:05   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.0.1 (25-Feb-2021)]
Reply With Quote #61

Quote:
Originally Posted by Marttt View Post
Is a simple fix, I already told you how to fix it (if you know how to compile).

Is normal having this kind of errors cause L4D2 has some events and entities that L4D1 doesn't have.

Just wait for the author reply, probably he will fix it soon since he is active in the forum.
Thanks Marttt, working on it now.
__________________
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-27-2021 , 20:47   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #62

New version 2.1 released, see original post for download.

27-Feb-2021 v2.1
- New L4D2 check before hooking L4D2-only events.
- New method to verify/load required translation file.
- New ConVar (reverseff_tankmaxdmg) since tanks do much more "friendly-fire" damage than other special infected.
- Modified cfg file default max damage values: reverseff_survivormaxdmg=200, reverseff_infectedmaxdmg=50, reverseff_tankmaxdmg=300

Since special infected only do 4-10 HP "friendly-fire" damage with their claws, and it is rare to accidentally claw a teammate, the default infected max damage was lowered to 50, which is 5-12 hits depending on SI. However, the tank is far more likely to do accidental friendly-fire damage, especially with rock throws, so a separate max damage ConVar was created for it, with a default of 300.

@kooper990, thanks for reporting the issue with cfg file creation on L4D1, it should be fixed now. Please try the new 2.1 version and let me know the results.
__________________

Last edited by Mystik Spiral; 02-27-2021 at 20:59.
Mystik Spiral is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 02-27-2021 , 21:21   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #63

HI,Mystik Spiral just updated the plugin and it's not loading.
I put the plugin in the plugin folder and the translations text file in the translation folder.
L 02/27/2021 - 18:08:59: Error log file session closed.
L 02/27/2021 - 18:09:14: SourceMod error session started
L 02/27/2021 - 18:09:14: Info (map "c1m1_hotel") (file "/home/tcagame/1234/11392/left4dead2/addons/sourcemod/logs/errors_20210227.log")
L 02/27/2021 - 18:09:14: [SM] Exception reported: Missing required translation file "translations/l4d_reverse_ff.phrases.txt", please download.
L 02/27/2021 - 18:09:14: [SM] Blaming: l4d_reverse_ff.smx
Krufftys Killers is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-27-2021 , 21:30   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #64

It loads fine for me, and has for a few days. Here is the actual code...

Code:
public void LoadPluginTranslations()
{
    char path[PLATFORM_MAX_PATH];
    BuildPath(Path_SM, path, PLATFORM_MAX_PATH, "translations/%s.txt", TRANSLATION_FILENAME);
    if (FileExists(path))
        LoadTranslations(TRANSLATION_FILENAME);
    else
        SetFailState("Missing required translation file \"translations/%s.txt\", please download.", TRANSLATION_FILENAME);
}
...and earlier in the code is this entry...

Code:
#define TRANSLATION_FILENAME "l4d_reverse_ff.phrases"
What OS platform are you on? My development/testing is on Windows but it appears you are on Linux. I suspect something related to "Path_SM".
Please check the file owner/group and permissions match those of other working translation files.
__________________

Last edited by Mystik Spiral; 02-27-2021 at 21:40.
Mystik Spiral is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 02-27-2021 , 21:37   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #65

Quote:
Originally Posted by Mystik Spiral View Post
It loads fine for me, and has for a few days. Here is the actual code...

Code:
public void LoadPluginTranslations()
{
    char path[PLATFORM_MAX_PATH];
    BuildPath(Path_SM, path, PLATFORM_MAX_PATH, "translations/%s.txt", TRANSLATION_FILENAME);
    if (FileExists(path))
        LoadTranslations(TRANSLATION_FILENAME);
    else
        SetFailState("Missing required translation file \"translations/%s.txt\", please download.", TRANSLATION_FILENAME);
}
...and earlier in the code is this entry...

Code:
#define TRANSLATION_FILENAME "l4d_reverse_ff.phrases"
I suspect something related to "Path_SM". What OS platform are you on?
Am running linux server
Krufftys Killers is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-27-2021 , 21:49   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #66

@Krufftys Killers

What is the result of...

ls -l /home/tcagame/1234/11392/left4dead2/addons/sourcemod/translations/l4d*
__________________
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-27-2021 , 22:27   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #67

Going to bed, I'll check for your reply tomorrow.
__________________
Mystik Spiral is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 02-27-2021 , 22:48   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #68

That's just how the server company set up its server
Krufftys Killers is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-28-2021 , 06:11   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #69

Quote:
Originally Posted by Krufftys Killers View Post
That's just how the server company set up its server
That is okay, but the error is saying it cannot read the file...

/home/tcagame/1234/11392/left4dead2/addons/sourcemod/translations/l4d_reverse_ff.phrases.txt

To help diagnose the issue, please run the this command exactly as shown and provide the output...

ls -l /home/tcagame/1234/11392/left4dead2/addons/sourcemod/translations/l4d*

That should show all of the files in the translations directory that begin with "l4d". If the output does not contain the file l4d_reverse_ff.phrases.txt, or if it has owner/group/permissions different from the other phrases files, then that is likely the issue.

Wait...forget everything I just typed above... I know what the issue is now.

Plugin versions 2.0 and 2.0.1 used a file named "l4d_reverse_ff_phrases.txt". That does not follow convention, so I fixed it to use "l4d_reverse_ff.phrases.txt". Note the character before "phrases" is now a dot rather than an underscore. I've updated the original post to include the correctly named phrases file. My apologies for overlooking that upload, but if you download the new phrases file it should resolve the issue.
__________________
Mystik Spiral is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 02-28-2021 , 11:50   Re: [L4D & L4D2] Reverse Friendly-Fire [v2.1 (27-Feb-2021)]
Reply With Quote #70

Quote:
Originally Posted by Mystik Spiral View Post
That is okay, but the error is saying it cannot read the file...

/home/tcagame/1234/11392/left4dead2/addons/sourcemod/translations/l4d_reverse_ff.phrases.txt

To help diagnose the issue, please run the this command exactly as shown and provide the output...

ls -l /home/tcagame/1234/11392/left4dead2/addons/sourcemod/translations/l4d*

That should show all of the files in the translations directory that begin with "l4d". If the output does not contain the file l4d_reverse_ff.phrases.txt, or if it has owner/group/permissions different from the other phrases files, then that is likely the issue.

Wait...forget everything I just typed above... I know what the issue is now.

Plugin versions 2.0 and 2.0.1 used a file named "l4d_reverse_ff_phrases.txt". That does not follow convention, so I fixed it to use "l4d_reverse_ff.phrases.txt". Note the character before "phrases" is now a dot rather than an underscore. I've updated the original post to include the correctly named phrases file. My apologies for overlooking that upload, but if you download the new phrases file it should resolve the issue.
Thanks its all working now
Krufftys Killers 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:54.


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