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

[L4D/L4D2] Dialogue Criteria Fixes | 1.0 : Soon


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
7917
Plugin Version:
1.0
Plugin Category:
Technical/Development
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes internal problems with the game's talker criteria
    Old 01-09-2022 , 22:41   [L4D/L4D2] Dialogue Criteria Fixes | 1.0 : Soon
    Reply With Quote #1

    About:
    Recommended for servers that spawn all 8 survivors to make the L4D1 crew interact more in L4D2 campaigns instead of them being mute most of the time

    Formerly known as L4D1 "DistTo" Criteria Fix, the plug-in has been expanded to cover more of the affected talker criteria and they are the following:
    1. Is<Gambler/Producer/Coach/Mechanic>Alive
      - These are the ones required by several remarks, such as Zoey joking about the stairs being Bill's favorite in Dead Air, to be called.

      They are limited to Survivors team only though which means if they are moved over to the Passing team, the L4D2 survivors will just remain almost silent.
    2. Is<NamVet/TeenGirl/Biker/Manager>Alive
      - Same as above.

      However, these ones are not listed as valid criteria when the campaign in question uses the L4D2 set, meaning the original survivors won't be able to do those responses even in campaigns where they originally spawn in should they be modified.
    3. DistTo<Gambler/Producer/Coach/Mechanic>
      - These are responsible for helping survivors know if their teammates are close or far away.

      Same limitation as the first one.
    4. DistTo<NamVet/TeenGirl/Biker/Manager>
      - Same as above.

      Although, there are a few other responses that check for both this criterion and the second one on the list. An example is Francis saying "Groovy." after picking up T2 shotguns with Zoey or Louis nearby before either mock him and he bites back afterwards.

      Unlike the L4D1 "IsAlive" criteria, they return the correct distances in campaigns where the L4D1 survivors are the only playable characters.
    5. DistToClosestSurvivor
      - This determines how near a teammate is to a survivor.

      The thing about this criterion is it does not account for the L4D1 set. In other words, when walking through campaigns with the L4D2 crew, Bill, Zoey, Francis and/or Louis is/are just... there and the game will not see one of them as the nearest teammate to you or anyone else.
    6. ClosestSurvivor
      - An unused criterion and like the one above, this checks for who the nearest teammate is but with similar issue.

    ConVar(s):
    • dialogue_criteria_fixes_version
      → Version of the plug-in


    Bug(s):
    None

    Requirement(s):
    ✧ SourceMod 1.11+
    ✧ My fork of the Source Scramble extension

    Installation:
    💡 Get the precompiled .smx file below and put it in the plugins folder or click "Get Source" if you want to compile it on your end
    💡 (Optional) Download the .txt file and put it in the "gamedata" folder

    Note(s):
    📝 The game doesn't know how to handle clones well when it comes to fetching everyone's distances from each other. Let's say, you're Bill and another player is Zoey but there's someone else who's also Zoey. Whoever joined last would be the player that the game chooses to get the value of the "DistToTeenGirl" criterion and all voice lines that rely on Zoey's proximity will depend on the clone instead of the original.

    Thanks:
    🎮 Xiraiju Akara, EdisonGar, Xanaguy, Rise, Cuba, Sergi and Steakchelle - For testing

    Related Plug-in(s):
    [L4D/L4D2] Survivor Character Fixes

    FAQ(s):
    1. Why is it not working?
      Please specify in detail. Simply saying so won't get you any answer.
    2. My server starts lagging like hell after I added this. Is there any solution?
      It's because of the maximum amount of players in your server. Wait for the extension version.


    Changelog:
    Code:
    0.65 (03/10/22)
    + Corrected Windows offset for L4D2
    
    0.6 (03/09/22)
    * Renamed from "dialogue_criteria_fix-l4d2" to "dialogue_criteria_fix"
    + L4D1 support
    + Code optimization
    
    0.5 (02/12/22)
    + Unlocked all "IsAlive" criteria for the Passing team
    + Squashed a bug regarding spectators
    + Crash protection against "m_survivorCharacter" network property having a negative value
    
    0.4 (01/22/22)
    + Sorted out a possible handle leak
    + Server messages to know if the detours were enabled
    + Changed loop to iterate through every alive survivor all the time
    + Intercepted the appending of the distance related criteria to use the accurate values retrieved from the new method
    
    0.3 (01/16/22)
    + Made the loop in the new method only operational if there are 2 or more survivors present for optimization
    + Upped the character check in a function in order for the L4D1 "IsAlive" criteria to be added
    
    0.2 (01/14/22)
    * Renamed from "l4d1_distto_criteria_fix-l4d2" to "dialogue_criteria_fix-l4d2"
    + Removed the unnecessary team restriction for all "DistTo" criteria
    + Reconfigured the game's method of getting the closest teammate of a survivor
    
    0.1 (01/10/22)
    * First release
    + Removed the unnecessary survivor set restriction for the L4D1 "DistTo" criteria
    Attached Files
    File Type: sp Get Plugin or Get Source (dialogue_criteria_fix.sp - 647 views - 28.0 KB)
    File Type: smx dialogue_criteria_fix.smx (11.5 KB, 749 views)
    File Type: txt dialogue_criteria_fix.txt (7.1 KB, 844 views)

    Last edited by cravenge; 06-28-2023 at 08:40.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 01-13-2022 , 23:17   Re: [L4D2] Dialogue Criteria Fix | 0.2 : January 14, 2022 |
    Reply With Quote #2

    Updated! Please redownload and remove any traces of the old version.
    Code:
    * Renamed from "l4d1_distto_criteria_fix-l4d2" to "dialogue_criteria_fix-l4d2"
    + Removed the unnecessary team restriction for all "DistTo" criteria
    + Reconfigured the game's method of getting the closest teammate of a survivor

    Last edited by cravenge; 03-08-2022 at 20:21.
    cravenge is offline
    Edison1318
    Senior Member
    Join Date: Nov 2015
    Location: Peaceful place of the in
    Old 01-14-2022 , 03:24   Re: [L4D2] Dialogue Criteria Fix | 0.2 : January 14, 2022 |
    Reply With Quote #3

    I received this error while testing your latest update plugin and gamedata file.

    Code:
    L 01/14/2022 - 16:05:17: [SM] Exception reported: [FIX] Address for "ModifyOrAppendCriteria_CTP" returned null!
    L 01/14/2022 - 16:05:17: [SM] Blaming: dialogue_criteria_fix-l4d2.smx
    L 01/14/2022 - 16:05:17: [SM] Call stack trace:
    L 01/14/2022 - 16:05:17: [SM]   [0] SetFailState
    L 01/14/2022 - 16:05:17: [SM]   [1] Line 76, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\dialogue_criteria_fix-l4d2.sp::OnPluginStart
    L 01/14/2022 - 16:05:17: [SM] Unable to load plugin "dialogue_criteria_fix-l4d2.smx": Error detected in plugin startup (see error logs)
    __________________
    EdisonGar

    Last edited by Edison1318; 01-14-2022 at 03:40.
    Edison1318 is offline
    Send a message via Skype™ to Edison1318
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 01-14-2022 , 04:43   Re: [L4D2] Dialogue Criteria Fix | 0.2 : January 14, 2022 |
    Reply With Quote #4

    Quote:
    Originally Posted by Edison1318 View Post
    I received this error while testing your latest update plugin and gamedata file.

    Code:
    L 01/14/2022 - 16:05:17: [SM] Exception reported: [FIX] Address for "ModifyOrAppendCriteria_CTP" returned null!
    L 01/14/2022 - 16:05:17: [SM] Blaming: dialogue_criteria_fix-l4d2.smx
    L 01/14/2022 - 16:05:17: [SM] Call stack trace:
    L 01/14/2022 - 16:05:17: [SM]   [0] SetFailState
    L 01/14/2022 - 16:05:17: [SM]   [1] Line 76, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\dialogue_criteria_fix-l4d2.sp::OnPluginStart
    L 01/14/2022 - 16:05:17: [SM] Unable to load plugin "dialogue_criteria_fix-l4d2.smx": Error detected in plugin startup (see error logs)
    You must have the old version still installed.

    Silly me, I changed the address name in the game data file by mistake. Let the plugin manually create one for now since I'm on my phone.

    Fixed.

    Last edited by cravenge; 01-14-2022 at 12:32.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 01-15-2022 , 16:45   Re: [L4D2] Dialogue Criteria Fix | 0.3 : January 16, 2022 |
    Reply With Quote #5

    Updated!
    Code:
    + Made the loop in the new method only operational if there are 2 or more survivors present for optimization
    + Upped the character check in a function in order for the L4D1 "IsAlive" criteria to be included in the list of valid ones

    Last edited by cravenge; 01-22-2022 at 06:03.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 01-21-2022 , 17:22   Re: [L4D2] Dialogue Criteria Fix | 0.4 : January 22, 2022 |
    Reply With Quote #6

    Updated!
    Code:
    + Sorted out a possible handle leak
    + Server messages to know if the detours were enabled
    + Changed loop to iterate through every alive survivor all the time
    + Intercepted the appending of the distance related criteria to use the accurate values retrieved from the new method

    Last edited by cravenge; 03-08-2022 at 19:38.
    cravenge is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-21-2022 , 20:59   Re: [L4D2] Dialogue Criteria Fix | 0.4 : January 22, 2022 |
    Reply With Quote #7

    Quote:
    Originally Posted by cravenge View Post
    Updated!
    Code:
    + Sorted out a possible handle leak.
    + Changed loop to iterate through every alive survivor all the time.
    + Intercepted the appending of the distance related criteria to use the accurate values retrieved from the new method.
    Nice update
    __________________

    Last edited by HarryPotter; 01-21-2022 at 20:59.
    HarryPotter is offline
    BTFighter
    Junior Member
    Join Date: Mar 2017
    Old 01-23-2022 , 03:01   Re: [L4D2] Dialogue Criteria Fix | 0.4 : January 22, 2022 |
    Reply With Quote #8

    Sorry if this has been asked before, but will this conflict with mods like these?

    8 Player Modified Talker

    and

    Actively Talker
    BTFighter is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 01-23-2022 , 06:31   Re: [L4D2] Dialogue Criteria Fix | 0.4 : January 22, 2022 |
    Reply With Quote #9

    Quote:
    Originally Posted by BTFighter View Post
    Sorry if this has been asked before, but will this conflict with mods like these?

    8 Player Modified Talker

    and

    Actively Talker
    No, there will be no conflicts with those workshop mods but the plug-in will make lots of the voice lines in them be heard again unlike before when the L4D2 survivor set is selected.
    Quote:
    An example is Francis saying "Groovy." after picking up T2 shotguns with Zoey or Louis nearby before they react and he reacts back afterwards.
    Rise, the maker of the first mod you linked, and a few others thoroughly tested the latest update before I posted it.

    Last edited by cravenge; 03-08-2022 at 19:39.
    cravenge is offline
    BTFighter
    Junior Member
    Join Date: Mar 2017
    Old 01-23-2022 , 07:11   Re: [L4D2] Dialogue Criteria Fix | 0.4 : January 22, 2022 |
    Reply With Quote #10

    ^^ Thanks for the reply, will use this plugin now and test it.
    BTFighter 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:10.


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