Raised This Month: $27 Target: $400
 6% 

[ANY] Fix Null Activator [1.3 - 28/Feb/25]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
blueblur
Member
Join Date: Nov 2022
Location: 23℃
Plugin ID:
8814
Plugin Version:
1.3
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    40 
    Plugin Description:
    Fixes a rare crash caused by null activator when calling AcceptInput.
    Old 11-01-2024 , 03:43   [ANY] Fix Null Activator [1.3 - 28/Feb/25]
    Reply With Quote #1

    Description
    - This is an extended and updated version of the Original Author GoD-Tony's plugin GameUI Crash Fix.
    - This plugin fixes a rare crash caused by null activator when calling AcceptInput.
    - Currently supported games:
    • css
    • hl2dm
    • dods
    • tf2
    • l4d
    • l4d2
    • csgo
    • insurgency

    - Github Link

    Requirement
    - DHooks.

    What's new
    - New syntax updated.
    - All offsets updated to latest.
    - You can add keys in gamedata file to parse and prevent all entities that is possibly crashes the server for the reason related to null activator. e.g: filter_* entities with input "TestActivator" crashes the server if the activator is null. Same as entity "game_ui".

    Why is this a bug?
    - Please see the original post here
    Quote:
    - When calling `CBaseEntity::AcceptInput`, there could be chance that the activator player was disconnected or the activator entity was destroyed, which will cause the activator pointer to be null to pass to `CBaseEntity::AcceptInput`.
    `CBaseEntity::AcceptInput` dose not perform any check for the null activator pointer, so once this null pointer is passed to the target input function and this function try to access the pointer, the game crashes. This could be existed in any source games and any entity that is related to this logic such as `game_ui`, `filter_* entity`, etc.

    - This plugin dynamic hooks the `CBaseEntity::AcceptInput` function with specific entity and checks if the activator pointer is null before calling the target input function. If the activator pointer is null, `CBaseEntity::AcceptInput` will be skipped and won't call the target input function.
    Attached Files
    File Type: zip fix_null_activator.zip (10.1 KB, 63 views)

    Last edited by blueblur; 03-01-2025 at 01:35.
    blueblur is offline
    blueblur
    Member
    Join Date: Nov 2022
    Location: 23℃
    Old 11-01-2024 , 09:14   Re: [ANY] Fix Null Activator [1.2.1 - 1/Nov/24]
    Reply With Quote #2

    Updated 1.2.1
    Quote:
    - Use stringmap instead of arrylist. Thanks to Localia for reporting.
    - Hook entities on map start. Currently our target entities are created before on map start, it is way better than hooking them on created. Thanks to luoqixi for reporting.
    blueblur is offline
    JustDoItSH
    Junior Member
    Join Date: Nov 2019
    Location: China
    Old 02-25-2025 , 02:08   Re: [ANY] Fix Null Activator [1.2.1 - 1/Nov/24]
    Reply With Quote #3

    L 02/25/2025 - 15:06:01: [SM] Exception reported: Failed to find "CBaseEntity::AcceptInput" offset
    L 02/25/2025 - 15:06:01: [SM] Blaming: fix_null_activator.smx
    L 02/25/2025 - 15:06:01: [SM] Call stack trace:
    L 02/25/2025 - 15:06:01: [SM] [0] SetFailState
    L 02/25/2025 - 15:06:01: [SM] [1] Line 38, fix_null_activator.sp::OnPluginStart
    L 02/25/2025 - 15:06:01: [SM] Unable to load plugin "fix_null_activator.smx": Error detected in plugin startup (see error logs)

    Insurgency Dedicated Server
    windows 11 24h2 26100.3194
    JustDoItSH is offline
    blueblur
    Member
    Join Date: Nov 2022
    Location: 23℃
    Old 02-28-2025 , 00:42   Re: [ANY] Fix Null Activator [1.2.1 - 1/Nov/24]
    Reply With Quote #4

    Quote:
    Originally Posted by JustDoItSH View Post
    L 02/25/2025 - 15:06:01: [SM] Exception reported: Failed to find "CBaseEntity::AcceptInput" offset
    L 02/25/2025 - 15:06:01: [SM] Blaming: fix_null_activator.smx
    L 02/25/2025 - 15:06:01: [SM] Call stack trace:
    L 02/25/2025 - 15:06:01: [SM] [0] SetFailState
    L 02/25/2025 - 15:06:01: [SM] [1] Line 38, fix_null_activator.sp::OnPluginStart
    L 02/25/2025 - 15:06:01: [SM] Unable to load plugin "fix_null_activator.smx": Error detected in plugin startup (see error logs)

    Insurgency Dedicated Server
    windows 11 24h2 26100.3194
    Released a new version to support ins.
    blueblur is offline
    JustDoItSH
    Junior Member
    Join Date: Nov 2019
    Location: China
    Old 02-28-2025 , 05:45   Re: [ANY] Fix Null Activator [1.2.1 - 1/Nov/24]
    Reply With Quote #5

    Quote:
    Originally Posted by blueblur View Post
    Released a new version to support ins.
    thank you
    JustDoItSH is offline
    JustDoItSH
    Junior Member
    Join Date: Nov 2019
    Location: China
    Old 02-28-2025 , 06:30   Re: [ANY] Fix Null Activator [1.3 - 28/Feb/25]
    Reply With Quote #6

    L 02/28/2025 - 19:25:05: [SM] Exception reported: Failed to get key section "MaxEntityCount" from gamedata file "fix_null_activator.games".
    L 02/28/2025 - 19:25:05: [SM] Blaming: fix_null_activator.smx
    L 02/28/2025 - 19:25:05: [SM] Call stack trace:
    L 02/28/2025 - 19:25:05: [SM] [0] SetFailState
    L 02/28/2025 - 19:25:05: [SM] [1] Line 43, fix_null_activator.sp::OnPluginStart
    L 02/28/2025 - 19:25:05: [SM] Unable to load plugin "fix_null_activator.smx": Error detected in plugin startup (see error logs)

    left 4 dead 2 2.2.4.3
    windows 11 24h2 26100.3194
    JustDoItSH is offline
    blueblur
    Member
    Join Date: Nov 2022
    Location: 23℃
    Old 03-01-2025 , 01:32   Re: [ANY] Fix Null Activator [1.3 - 28/Feb/25]
    Reply With Quote #7

    Quote:
    Originally Posted by JustDoItSH View Post
    L 02/28/2025 - 19:25:05: [SM] Exception reported: Failed to get key section "MaxEntityCount" from gamedata file "fix_null_activator.games".
    L 02/28/2025 - 19:25:05: [SM] Blaming: fix_null_activator.smx
    L 02/28/2025 - 19:25:05: [SM] Call stack trace:
    L 02/28/2025 - 19:25:05: [SM] [0] SetFailState
    L 02/28/2025 - 19:25:05: [SM] [1] Line 43, fix_null_activator.sp::OnPluginStart
    L 02/28/2025 - 19:25:05: [SM] Unable to load plugin "fix_null_activator.smx": Error detected in plugin startup (see error logs)

    left 4 dead 2 2.2.4.3
    windows 11 24h2 26100.3194
    The plugin is updated to 1.3 too, use the newer version I uploaded yesterday or downlaod it from github.
    It added a config file, do not forget about this file.
    I may forget about to upload the plugin itself, if it is then sorry about that.

    Last edited by blueblur; 03-01-2025 at 01:36.
    blueblur is offline
    JustDoItSH
    Junior Member
    Join Date: Nov 2019
    Location: China
    Old 03-01-2025 , 02:59   Re: [ANY] Fix Null Activator [1.3 - 28/Feb/25]
    Reply With Quote #8

    Quote:
    Originally Posted by blueblur View Post
    The plugin is updated to 1.3 too, use the newer version I uploaded yesterday or downlaod it from github.
    It added a config file, do not forget about this file.
    I may forget about to upload the plugin itself, if it is then sorry about that.
    thank you
    JustDoItSH is offline
    mdma
    Member
    Join Date: Nov 2006
    Location: Adelaide, Australia
    Old 03-01-2025 , 20:34   Re: [ANY] Fix Null Activator [1.3 - 28/Feb/25]
    Reply With Quote #9

    Quote:
    Originally Posted by blueblur View Post
    Description
    - This is an extended and updated version of the Original Author GoD-Tony's plugin GameUI Crash Fix.
    - This plugin fixes a rare crash caused by null activator when calling AcceptInput.

    Thank you.
    __________________
    mdma 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 23:41.


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