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 03-09-2023 , 13:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #831

Quote:
Originally Posted by ProjectSky View Post
L4D_OnReplaceTank forward doesn't seem to work.
plugin is load, but it not list in sm_l4dd_detours
Need more details. Win/Nix? L4D1 or L4D2? Did you change map, or run the command to reload detours since loading the plugin? Is the plugin using "public void L4D_OnReplaceTank(..)" specifically the "public" part?
__________________
Silvers is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 03-09-2023 , 22:11   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #832

Quote:
Originally Posted by Silvers View Post
Need more details. Win/Nix? L4D1 or L4D2? Did you change map, or run the command to reload detours since loading the plugin? Is the plugin using "public void L4D_OnReplaceTank(..)" specifically the "public" part?
l4d2, linux

load test.smx
sm_l4dd_reload
sm_l4dd_detours not listed test.smx is use L4D_OnReplaceTank
change map? result same

test.sp
PHP Code:
public void L4D_OnReplaceTank(int tankint newtank)
{
    
PrintToServer("L4D_OnReplaceTank %N -> %N"tanknewtank);

edit:
i have test it few times, forward works. it just not list in detours.

Last edited by ProjectSky; 03-10-2023 at 08:09.
ProjectSky is offline
MRSantiago57
Junior Member
Join Date: Mar 2023
Old 03-10-2023 , 17:33   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #833

Ok i found a fix for my problem. Since it is a memory error, all i have to do is install the 4GB patch.
MRSantiago57 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 03-11-2023 , 01:38   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #834

Quote:
Originally Posted by MRSantiago57 View Post
Well i am playing in single player so it is probably listen server im not sure sorry. As for the crash, it only happens when left4dhooks is installed, so i dont think it is the game's fault, or my computer's. Im surprised that this only happens to me, i dont see this being reported in the comments.
Go to install dedicated server.

https://wiki.alliedmods.net/Installi...rceMod_(simple)
Quote:
A listen server is the server you host when using the in-game "create server" feature. NOTE: as of recent, SourceMod cannot run on a listen server by default. It is not recommended to use a listen server.
__________________

Last edited by HarryPotter; 03-11-2023 at 01:41.
HarryPotter is offline
MRSantiago57
Junior Member
Join Date: Mar 2023
Old 03-11-2023 , 03:12   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #835

Quote:
Originally Posted by HarryPotter View Post
I fixed my issue. It is an out of memory error and it seems that installing the 4GB PATCH and patching the left4dead.exe did the trick. Thanks for the suggestion anyways
MRSantiago57 is offline
ioioio
New Member
Join Date: Mar 2023
Old 03-19-2023 , 22:04   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #836

PHP Code:
"left4dead2"
    
{
        
"Signatures"
        
{
            
"WarpToValidPositionIfStuck"
            
{
                
"library"   "server"
                "linux"        "@_ZN13CTerrorPlayer26WarpToValidPositionIfStuckEv"
                "windows"     "\x55\x8B\xEC\x81\xEC\x80\x00\x00\x00\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x56\x8B\xF1\x80\xBE\x05\x3A\x00\x00\x00"
            
}
        }
    } 
can you add this sig?
ioioio is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-20-2023 , 05:12   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #837

As a forward, or native, or what?
__________________
Silvers is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 03-20-2023 , 11:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.128) [06-Feb-2023]
Reply With Quote #838

He asks "WarpToValidPositionIfStuck" as native I think.
To unstuck player.
__________________

Last edited by HarryPotter; 03-20-2023 at 11:03.
HarryPotter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-31-2023 , 02:50   Re: [L4D & L4D2] Left 4 DHooks Direct (1.129) [31-Mar-2023]
Reply With Quote #839

Code:
1.129 (31-Mar-2023)
    - Added native "L4D_WarpToValidPositionIfStuck" to teleport a stuck player. Requested by "ioioio".
    - Added forwards "L4D_OnTakeOverBot", "L4D_OnTakeOverBot_Post" and "L4D_OnTakeOverBot_PostHandled" that triggers when a client takes over a bot.
    - Updated "left4dhooks_lux_library" include file to version "0.5.7".

    - Updated: Plugin and test plugin.
    - Updated: "left4dhooks.inc" Include file.
    - Updated: "left4dhooks_lux_library.inc" Include file.
    - Updated: "/gamedata/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/gamedata/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
Silvers is offline
3ipKa
Member
Join Date: Jul 2013
Old 04-07-2023 , 07:09   Re: [L4D & L4D2] Left 4 DHooks Direct (1.129) [31-Mar-2023]
Reply With Quote #840

Does anybody use natives L4D_GetAllNavAreas and L4D_GetNavArea_SpawnAttributes ?
Got this errors:

Usually happens on first maps start (for example on server start up, map change), than goes normal...
Code:
L 04/07/2023 - 17:31:44: [SM] Exception reported: g_pTheNavAreas_List not available (WIN/2/1.129).
L 04/07/2023 - 17:31:44: [SM] Blaming: left4dhooks.smx
L 04/07/2023 - 17:31:44: [SM] Call stack trace:
L 04/07/2023 - 17:31:44: [SM]   [0] ThrowNativeError
L 04/07/2023 - 17:31:44: [SM]   [1] Line 174, l4dd\l4dd_natives.sp::ValidateAddress
L 04/07/2023 - 17:31:44: [SM]   [2] Line 3048, l4dd\l4dd_natives.sp::Native_GetAllNavAreas
L 04/07/2023 - 17:31:44: [SM]   [4] L4D_GetAllNavAreas
Happens on some maps(didn't check thoroughly)
Code:
Exception reported: Invalid address 0x12a is pointing to reserved memory.
L 04/07/2023 - 17:26:48: [SM] Blaming: left4dhooks.smx
L 04/07/2023 - 17:26:48: [SM] Call stack trace:
L 04/07/2023 - 17:26:48: [SM]   [0] LoadFromAddress
L 04/07/2023 - 17:26:48: [SM]   [1] Line 3142, l4dd\l4dd_natives.sp::GetTerrorNavArea_Attributes
L 04/07/2023 - 17:26:48: [SM]   [2] Line 3135, l4dd\l4dd_natives.sp::Native_GetTerrorNavArea_Attributes
L 04/07/2023 - 17:26:48: [SM]   [4] L4D_GetNavArea_SpawnAttributes
Sometimes server crashes or gets stuck on map change at all
3ipKa 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 04:09.


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