segabl / pd2-useful-bots

A lightweight bot overhaul
GNU General Public License v3.0
8 stars 6 forks source link

Game crash after recent update. #21

Closed nikidziuba closed 1 year ago

nikidziuba commented 1 year ago

Game crashes whenever the assault starts. Even though the mod isn't directly mentioned in the crashlog, it is the only one that was recently updated and hooks to this file. Crash log:

[string "lib/units/player_team/logics/teamailogicassau..."]:198: attempt to compare number with nil

SCRIPT STACK

update() lib/units/player_team/logics/teamailogicassault.lua:104
lib/units/enemies/cop/copbrain.lua:234

-------------------------------

Callstack:

         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     ???                                                 
         payday2_win32_release  (???)     zip_get_name                                        
                         ntdll  (???)     RtlAllocateHeap                                     

-------------------------------

Current thread: Main

-------------------------------

System information:
    Application version : 1.136.176
    CPU : Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz (1 core); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
    DirectX : 12.0 
    GPU : NVIDIA GeForce GTX 960 / nvldumd.dll[31.0.15.3118]
    Language : english
    Memory :     16336MB 484KB
    OS : 6.2.9200 () 0x100-0x1 (64 bits)
    Physics : threaded
    Renderer : DX9 threaded
    Sound : SteelSeries ApS (SteelSeries Sonar - Gaming (SteelSeries Sonar Virtual Audio Device))

It is possible but unlikely that it's just a collision between mods so here's the full list:

base
BeardLib
BeardLib-Editor
Berserk Helper
Better Assault Indicator
Borderless Windowed Updated
BuilDB
Corpse Disposal
CustomFOV_Fixed
Everything Meth
Extra Heist Info
FloatingHealthBars-master
GoonMod's Custom Waypoints
introcinematics125
Iter
Keepers
Less Inaccurate Weapon Laser
logs
Money In Hud
Monkeepers
No Duplicated Bullets
Overdrill Activator
PD2-AdvancedCrosshairs
PD2-ColorPicker
pd2-hoplib-master
pd2-useful-bots-master
QuickKeyboardInput
REBuyAssets
Remove Contour on Death
Rich Presence Definitive
RNGModifier
saves
SecretAchievementHighlightFilter
Simple Mod Updater
STI Simple Toggleable Interactions
The Fixes

If any more info is needed I will be happy to provide it

segabl commented 1 year ago

Does this literally happen always on assault start? What base priority setting are you using for the bots?

nikidziuba commented 1 year ago

It happens mostly at the end of the anticipation phase (tested on No Mercy). Here are my priority settings : obraz obraz I tried changing some of these but it didn't help. I also forgot to mention that disabling the mod stops the issue.

segabl commented 1 year ago

Ah I see, seems to be related to having base targeting at "No changes". the other settings don't matter btw when "no changes" is selected. I'll see why using the vanilla function crashes.

nikidziuba commented 1 year ago

I can confirm that changing Base Targeting works for me. Do I close the ticket or is there anything I can help with?