Raised This Month: $19 Target: $400
 4% 

Solved [L4D2] Tank hits multi players with one punch in Coop?


Post New Thread Reply   
 
Thread Tools Display Modes
Forgetest
Junior Member
Join Date: Aug 2020
Old 05-03-2021 , 15:30   Re: [L4D2] Tank hits multi players with one punch in Coop?
Reply With Quote #21

Quote:
Originally Posted by yzybb View Post
L 05/02/2021 - 17:02:43: [SM] Exception reported: Cannot create new entity when no map is running
L 05/02/2021 - 17:02:43: [SM] Blaming: l4d_sweep_fist_patch.smx
L 05/02/2021 - 17:02:43: [SM] Call stack trace:
L 05/02/2021 - 17:02:43: [SM] [0] CreateEntityByName
L 05/02/2021 - 17:02:43: [SM] [1] Line 172, J:\Documents\GitHub\MoYu_Server_Stupid_Plugin s\The Last Stand\l4d_sweep_fist_patch\l4d_sweep_fist_pat ch.sp::IsAllowedGamemode
L 05/02/2021 - 17:02:43: [SM] [2] Line 111, J:\Documents\GitHub\MoYu_Server_Stupid_Plugin s\The Last Stand\l4d_sweep_fist_patch\l4d_sweep_fist_pat ch.sp::OnConfigsExecuted
L 05/02/2021 - 17:02:43: [SM] [3] Line 119, J:\Documents\GitHub\MoYu_Server_Stupid_Plugin s\The Last Stand\l4d_sweep_fist_patch\l4d_sweep_fist_pat ch.sp::OnGameModeChanged

But any map that can generate tank with buttons will make mistakes. Who can fix this mistake?

@Forgetest @Crasher_3637 @HarryPotter
Pushed an implement to escape such errors. But I actually have no idea why this would happen since map was literally loaded.
Forgetest is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 05-03-2021 , 15:34   Re: [L4D2] Tank hits multi players with one punch in Coop?
Reply With Quote #22

btw, Forgetest, I made pull request for adding L4D1 linux support (without breaking anything else).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch) (my New server L4D2)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 05-03-2021 , 15:37   Re: [L4D2] Tank hits multi players with one punch in Coop?
Reply With Quote #23

Quote:
Originally Posted by Forgetest View Post
Pushed an implement to escape such errors. But I actually have no idea why this would happen since map was literally loaded.
I remember Silvers also implemented a walkaround against this not so long (at least, in the latest plugins).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch) (my New server L4D2)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Middle of Nowhere
Old 05-04-2021 , 06:14   Re: [L4D2] Tank hits multi players with one punch in Coop?
Reply With Quote #24

I can't help but see a scenario where the patch would fail occasionally. That scenario being with multiple Tanks in play at once where the punches may come consecutively. I know the chances of that happening is slim due to the function being called in different frames but it grows gradually the more Tanks spawn.

Last edited by cravenge; 05-04-2021 at 06:15.
cravenge is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 05-04-2021 , 23:11   Re: [L4D2] Tank hits multi players with one punch in Coop?
Reply With Quote #25

Quote:
Originally Posted by cravenge View Post
I can't help but see a scenario where the patch would fail occasionally. That scenario being with multiple Tanks in play at once where the punches may come consecutively. I know the chances of that happening is slim due to the function being called in different frames but it grows gradually the more Tanks spawn.
The game logic is single-threaded. That means nothing can happen between the end of a function and its post hook. Once a patch is applied, only the post hook can remove it. You donít have to worry about the patch being removed for one Tank swing while being applied for another because the detours wonít overlap no matter how many Tanks are swinging at the same time.
__________________
AFK like JFK
Crasher_3637 is offline
Reply


Thread Tools
Display Modes

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 21:53.


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