View Single Post
Mika Misori
Senior Member
Join Date: Sep 2022
Old 07-15-2023 , 14:19   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #69

Quote:
Originally Posted by Silvers View Post
This is a modified version of 1.4 - I sent to someone and they reported it no longer crashes.

Author: please compare to see the changes.

Calling some natives before OnMapStart seems to be the crash. The next left4dhooks update will simply block the calls but for now you can add these checks into your plugin (and since some others maybe slow in updating left4dhooks). L4D2_NavAreaBuildPath and other NavArea natives, and a few other things.

There are more things that could be optimized, I haven't had time to go through and write anything about it.
Very strange, but after a month I got another crash with this error. On the updated version of the plugin Survivor Bot AI Improver v1.5 and Left 4 DHooks Direct v1.133, nothing else has changed on the servers. For a month everything worked stably and here it is again.

Accelerator:
https://crash.limetech.org/6xlhjtlmhsjy

Stack Trace:
Code:
Function
0 server_srv.so!bool NavAreaBuildPath<ShortestPathCost>(CNavArea*, CNavArea*, Vector const*, Vector const*, ShortestPathCost&, CNavArea**, float, int, bool) + 0x490

[...]

  12: jit_code_3777933312_1048576 + 0x248ca [ l4d2_sb_ai_improver.smx::.197092.GetClientTravelDistance ]
      eip: 0xe130f8ca esp: 0xffdbe4b0 ebp: 0xffdbe4e8 ebx: 0xdb0d6d10
      esi: 0xdaea4008 edi: 0x00232ce8

  13: jit_code_3777933312_1048576 + 0xadf4 [ l4d2_sb_ai_improver.smx::.50956.SurvivorBotThink ].
      eip: 0xe12f5df4 esp: 0xffdbe4f0 ebp: 0xffdbe4f8

  14: jit_code_3654950912_1048576 + 0x9d98a [ l4d2_sb_ai_improver.smx::OnPlayerRunCmd ]
      eip: 0xd9e3f98a esp: 0xffdbe500 ebp: 0xffdbe508
Mika Misori is offline