morerokk / IreNFist

A continuation/fix of the IreNFist mod for PAYDAY 2
MIT License
4 stars 2 forks source link

weapon incompatibility crash.txt #16

Closed jhunt883 closed 4 years ago

jhunt883 commented 4 years ago

Application has crashed: C++ exception mods/IRE AND FIST REBORN/lua/wpn_parts.lua:387: attempt to index field 'wpnvalues' (a nil value)

SCRIPT STACK

init() @mods/base/req/core/Hooks.lua:268 new() core/lib/utils/coreclass.lua:35 original() lib/tweak_data/weapontweakdata.lua:6188 _init_data_player_weapons() @mods/base/req/core/Hooks.lua:265 original() lib/tweak_data/weapontweakdata.lua:26 old_init() @mods/base/req/core/Hooks.lua:265 original() @mods/Better Bots/betterbots.lua:293 init() @mods/base/req/core/Hooks.lua:188 new() core/lib/utils/coreclass.lua:35 init() lib/tweak_data/tweakdata.lua:531 new() core/lib/utils/coreclass.lua:35 lib/tweak_data/tweakdata.lua:3160 require() =[C] OrigRequire() @mods/base/base.lua:153 require() @mods/BeardLib/Core.lua:337 lib/setups/setup.lua:35 require() =[C] OrigRequire() @mods/base/base.lua:153 require() @mods/BeardLib/Core.lua:337 lib/setups/menusetup.lua:1 require() =[C] OrigRequire() @mods/base/base.lua:153 require() @mods/BeardLib/Core.lua:337 lib/entry.lua:13 require() =[C] OrigRequire() @mods/base/base.lua:153 require() @mods/BeardLib/Core.lua:337 core/lib/coreentry.lua:19


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                  KERNEL32  (???)     BaseThreadInitThunk                                 
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   
     payday2_win32_release  (???)     zip_get_name                                        

Current thread: Main Script stack: init() @mods/base/req/core/Hooks.lua:268
new() core/lib/utils/coreclass.lua:35
original() lib/tweak_data/weapontweakdata.lua:6188
_init_data_player_weapons() @mods/base/req/core/Hooks.lua:265
original() lib/tweak_data/weapontweakdata.lua:26
old_init() @mods/base/req/core/Hooks.lua:265
original() @mods/Better
Bots/betterbots.lua:293
init()
@mods/base/req/core/Hooks.lua:188 new()
core/lib/utils/coreclass.lua:35
init()
lib/tweak_data/tweakdata.lua:531 new()
core/lib/utils/coreclass.lua:35
lib/tweak_data/tweakdata.lua:3160 require()
=[C] OrigRequire()
@mods/base/base.lua:153 require()
@mods/BeardLib/Core.lua:337
lib/setups/setup.lua:35 require()
=[C]
OrigRequire()
@mods/base/base.lua:153 require()
@mods/BeardLib/Core.lua:337
lib/setups/menusetup.lua:1 require()
=[C] OrigRequire()
@mods/base/base.lua:153 require()
@mods/BeardLib/Core.lua:337
lib/entry.lua:13 require()
=[C]
OrigRequire()
@mods/base/base.lua:153 require()
@mods/BeardLib/Core.lua:337
core/lib/coreentry.lua:19

System information: Application version : 1.96.909 CPU : AMD E2-7110 APU with AMD Radeon R2 Graphics (2 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1 DirectX : 12.0 GPU : AMD Radeon(TM) R2 Graphics / aticfx32.dll[8.17.10.1433] Language : english Memory : 3529MB 8KB OS : 6.2.9200 () 0x300-0x1 (64 bits) Physics : threaded Renderer : DX9 threaded Sound : Realtek Semiconductor Corp. (Speaker/Headphone (Realtek High Definition Audio))

morerokk commented 4 years ago

This seems like a difficult one. Something appears to be triggering WeaponFactoryTweakData:init() before WeaponTweakdata is hooked. Can you post a list of all the other BLT mods you have installed?

Technically I can (and will) work around the issue by moving these stats to a different file that's included in a less dubious way, but I won't have time to do so until the weekend.

jhunt883 commented 4 years ago

sure. Stoic armorer (perk deck) ACR M203 AFSF2 AK-12 AN-94 Armor-healer (another perk deck) ARX160 A2 Assault (I have no idea what this is) Attachment descriptions Beardlib Better bots Big lobby 3 Carl's A-list, game-rip, GFL, and shitpost skins Classic skin pack reborn 1.7.1 Custom attachments for custom weapons Custom sights support for sights mods Custom weapon animation fixes Customfov Decreased stockpiler FN Five-seveN MK2 FN SCAR-L Golden repeater (skin) Hera arms pack Improved offline functionality IRE AND FIST REBORN Kel-Tec RFB M45A1 CQBP Missing textures universal skin MK-17 MOD 0 MK-18 specialist Rainbowmaker/neppu Tennouboshi Death row remix, dead end, jackpot, retribution, moonlight, and operation save the world (all music) No pager on domination Perkdecks refund bind PP-19-01 Vityaz Predator-lurker (perk deck) Q honey badger (secondary and primary versions RPD SCAR-20 (SCAR-SSR) Speedpull mag pack SVU (secondary version) Tactical reloading VEPR-12 Voicline framework Volta (M4 skin) Weaponlib

Bwamo commented 4 years ago

do you happen to be equipping your bots with custom beardlib weapons?

nvm, seems to be functional with better bots and a custom weapon

morerokk commented 4 years ago

I still have no idea which mod would cause this to happen, it will have to wait until the refactoring that I'm doing. Should be starting tomorrow.

morerokk commented 4 years ago

This issue should now be fixed. I'm leaving it open for a bit in case it isn't fixed. Please report back when you can.

morerokk commented 4 years ago

Closing due to inactivity, if this still happens feel free to reopen this issue, or make a new issue with a new crash report.

morerokk commented 4 years ago

Still happens on occasion, even after the code refactor, and only to some people. Already verified that InFmenu is not being overridden by another mod. It seems the core file can't be executed properly, either way something in InFmenu.wpnvalues is nil when it oughta not be.

Is this a locale issue?

morerokk commented 4 years ago

Most likely solved, please open PAYDAY 2/mods/saves folder and delete infsave.txt.