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

[L4D & L4D2] Left 4 DHooks Direct (1.146) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-02-2020 , 22:33   Re: [L4D & L4D2] Left 4 DHooks Direct (1.23) [27-Sep-2020]
Reply With Quote #201

Quote:
Originally Posted by Forgetest View Post
Sorry for troubles brought to guys due to my words, but I'd like to say that it looks kind of weird to start from 1. But well I never reach the reason why downtown sticks to these values without a correction of description, just throwing an error where contains the valid values instead. It seems that there's no report about this native. Anyway for now I think it would be fine to just give it a fix in the include file.

Besides, campaign scores don't act as expected as the remark shows. They actually keep up with the realtime score, instead of not being set until 2nd round end. In regard of map score, it will be set to 0 once the current round ends. In addition, values of team obeys the conversion around InSecondHalfOfRound and AreTeamsFlipped.
I'm trying to keep backwards compatibility with older plugins that used Left4Downtown, so changing the values required isn't such a good idea (hence the revert). Downtown accepted 1 set of values, but would throw an error saying a different set of values required, this is where the whole confusion comes in. I don't know what should be used but if the actual values are 0/1 accepted by the game then I'll use that. I have no test case to verify what it actually should be. If you can provide code/steps to replicate the issue I'll look into it.

I don't think the scores ever updated live, only on round end. Using sourcemod GameRules* natives you might be able to get current score values, I don't recall 100% if that's true.



Quote:
Originally Posted by TiTz View Post
Hey Silvers,

Getting this error on my L4D1 server

Code:
L 10/02/2020 - 22:34:50: Info (map "l4d_airport01_greenhouse") (file "D:\servl4dt1\left4dead\addons\sourcemod\logs\errors_20201002.log")
L 10/02/2020 - 22:34:50: [left4dhooks.smx] Failed to find "AddonEclipse1" offset.
L 10/02/2020 - 22:34:50: [left4dhooks.smx] Failed to find "AddonEclipse2" offset.
Cheers

TiTz
Thanks, will update eventually, thought I put the code into L4D2 only section. If you have older version revert since all recent changes were for L4D2 and L4D1 hasn't really had any major fixes in the plugin.
__________________

Last edited by Silvers; 10-02-2020 at 22:34.
Silvers is offline
TiTz
Member
Join Date: Jan 2020
Old 10-03-2020 , 11:20   Re: [L4D & L4D2] Left 4 DHooks Direct (1.26) [01-Oct-2020]
Reply With Quote #202

Hi Silvers,
Now worries I'll revert to the previous version ...
I'm sure when you have the time ... as I can see from the mega thread L4D2 updates have made things very busy.

Cheers

TiTz
TiTz is offline
Forgetest
Member
Join Date: Aug 2020
Old 10-03-2020 , 13:22   Re: [L4D & L4D2] Left 4 DHooks Direct (1.26) [01-Oct-2020]
Reply With Quote #203

I'm so bad at expressing myself

Test shows that L4D_GetTeamScore stores map scores real-time, compared to method through GameRules updating on current round end, whilst the former clears those on next round start, the latter being not. Regarding campaign ones, seems both perform the same: update scores on every round end.

This native should continue to use values 1 and 2, but it's confusing because instructions in the include file read:
PHP Code:
@param logical_team        0 for Afor 
So I was indeed suggesting that there should be a little update for the description, as well as the plugin, for the newly reported conversion from round input to real team respecting InSecondHalfOfRound() and AreTeamFlipped().
Forgetest is offline
Iizuka07
Senior Member
Join Date: Aug 2018
Location: Underground
Old 10-06-2020 , 07:49   Re: [L4D & L4D2] Left 4 DHooks Direct (1.27) [05-Oct-2020]
Reply With Quote #204

Seems like this plugin https://forums.alliedmods.net/showthread.php?t=264265 won't work due to the game update. Would you mind taking a look at it? Before the last stand update, the plugin works flawlessly with the use of your Left4Dhooks plugin but now I don't think it functions properly.
__________________
死が待っている

Last edited by Iizuka07; 10-06-2020 at 07:50.
Iizuka07 is offline
Ja-Forces
Senior Member
Join Date: Jul 2009
Location: Leningrad
Old 10-06-2020 , 10:53   Re: [L4D & L4D2] Left 4 DHooks Direct (1.27) [05-Oct-2020]
Reply With Quote #205

Anorher error with l4d part one

L 10/06/2020 - 17:52:02: SourceMod error session started
L 10/06/2020 - 17:52:02: Info (map "l4d_hospital01_apartment") (file "/home/gameserver9654/serverfiles/left4dead/addons/sourcemod/logs/errors_20201006.log")
L 10/06/2020 - 17:52:02: [left4dhooks.smx] Failed to find "g_pServer" address.
__________________
Ja-Forces is offline
a2121858
Member
Join Date: Sep 2020
Old 10-08-2020 , 08:46   Re: [L4D & L4D2] Left 4 DHooks Direct (1.27) [05-Oct-2020]
Reply With Quote #206

Has anyone encountered this problem?
When I was using L4D_OnTryOfferingTankBot and L4D2Direct_SetTankTickets, the server crashed during map change.:休克:
a2121858 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-08-2020 , 19:43   Re: [L4D & L4D2] Left 4 DHooks Direct (1.27) [05-Oct-2020]
Reply With Quote #207

Quote:
Originally Posted by Iizuka07 View Post
Seems like this plugin https://forums.alliedmods.net/showthread.php?t=264265 won't work due to the game update. Would you mind taking a look at it? Before the last stand update, the plugin works flawlessly with the use of your Left4Dhooks plugin but now I don't think it functions properly.
What's wrong with it? Any errors? Theres no gamedata attached and I'm not going to start hunting for it to verify the signature. Old syntax, no checks and the author is still active so ask them.


Quote:
Originally Posted by Ja-Forces View Post
Anorher error with l4d part one

L 10/06/2020 - 17:52:02: SourceMod error session started
L 10/06/2020 - 17:52:02: Info (map "l4d_hospital01_apartment") (file "/home/gameserver9654/serverfiles/left4dead/addons/sourcemod/logs/errors_20201006.log")
L 10/06/2020 - 17:52:02: [left4dhooks.smx] Failed to find "g_pServer" address.
Which OS? How often does this happen? Works fine here on windows/linux and don't see why this would ever happen, nothings changed and no one else has reported an issue. Do you have some private plugin/extension detouring the engine binary "Unpause" function?


Quote:
Originally Posted by a2121858 View Post
Has anyone encountered this problem?
When I was using L4D_OnTryOfferingTankBot and L4D2Direct_SetTankTickets, the server crashed during map change.:休克:
Do you have a plugin I can test this with? Or steps to replicate the issue?
__________________
Silvers is offline
Ja-Forces
Senior Member
Join Date: Jul 2009
Location: Leningrad
Old 10-08-2020 , 23:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.27) [05-Oct-2020]
Reply With Quote #208

Quote:
Which OS? How often does this happen? Works fine here on windows/linux and don't see why this would ever happen, nothings changed and no one else has reported an issue. Do you have some private plugin/extension detouring the engine binary "Unpause" function?
Linux OS / SM 1.10. Error appears when starting the server. Tested on clean installed sourcemod using sdkhooks 2.2.0-detours14a. I'll try to rebuild my version of SM. Thank you for help.
__________________

Last edited by Ja-Forces; 10-08-2020 at 23:49.
Ja-Forces is offline
a2121858
Member
Join Date: Sep 2020
Old 10-09-2020 , 01:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.27) [05-Oct-2020]
Reply With Quote #209

Quote:
Originally Posted by Silvers View Post
Do you have a plugin I can test this with? Or steps to replicate the issue?
I used this plugin and it crashed.https://github.com/SirPlease/L4D2-Co..._control_eq.sp .

I extracted a separate code to compile it, and it still crashed during the map change without any error log.
PHP Code:
public Action L4D_OnTryOfferingTankBot(int tank_indexbool &enterStatis)
{    
    for (new 
1<= MaxClientsi++)
    {
        if (
IsClientInGame(i) && !IsFakeClient(i) && GetClientTeam(i)==3)
        {
            
L4D2Direct_SetTankTickets(i0);
        }
    }
    
    return 
Plugin_Continue;

Thank you for your help, Silvers.
a2121858 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-09-2020 , 02:23   Re: [L4D & L4D2] Left 4 DHooks Direct (1.28) [09-Oct-2020]
Reply With Quote #210

Quote:
Originally Posted by a2121858 View Post
I used this plugin and it crashed.https://github.com/SirPlease/L4D2-Co..._control_eq.sp .

I extracted a separate code to compile it, and it still crashed during the map change without any error log.

Thank you for your help, Silvers.
Thanks. I tested on windows and have no crash on map change. Which OS is your server? I find it unlikely this code would cause a crash specifically on map change, if anything it would crash when the functions being called. Have you installed Accelerator extension? If not can you install and post the crash link here, it would help figuring out exactly what's causing the crash.

Come to think of it, I have encountered some SDKCalls if called would crash server on map change, but that's because they were missing an internal pointer for example "g_pServer" when calling "CBaseServer::SetReservationCookie" (just an example, cannot remember the actual SDKCalls which caused this). But "L4D2Direct_SetTankTickets" uses memory patching without any SDKCalls and "L4D_OnTryOfferingTankBot" is a forward so it's still unclear why this specifically would cause a crash. Haven't looked at the plugin linked yet.



Quote:
Originally Posted by Ja-Forces View Post
Linux OS / SM 1.10. Error appears when starting the server. Tested on clean installed sourcemod using sdkhooks 2.2.0-detours14a. I'll try to rebuild my version of SM. Thank you for help.
After running on L4D1 Linux I also saw it could not find the address. Have updated the gamedata to fix this and tested to confirm it's working. Just shows how much this plugin is used in L4D1 since no one reported the issue that came from the Unreserve Lobby update: 1.16 [05-Jun-2020] lol. Thanks for reporting.



Code:
1.28 (09-Oct-2020)
    - Added command "sm_l4dd_unreserve" to remove lobby reservation. Added for testing purposes but is functional.
    - Fixed L4D1 GameData failing to find "g_pServer" address. Thanks to "Ja-Forces" for reporting.
    - Fixed native "L4D_OnFirstSurvivorLeftSafeArea" throwing errors about null pointer.
__________________

Last edited by Silvers; 10-09-2020 at 02:23.
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 02:18.


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