[FIXED] Custom weapon crash
#1
I wanted to test my first weapon but the game crashed as soon as I wanted to equip the weapon in the planning screen.

Since this is a aCcESs viOlAtIoN crash I thought it would just be a coincidence but It's somehow caused by my gun even though I can preview and customize it in the inventory without problems. Does anyone have an idea what causes this?


Code:
Wed Oct 04 06:45:30 2017


Application has crashed: access violation

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

Callstack:

        payday2_win32_release  (???)     zip_get_name                                        
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     ???                                                
        payday2_win32_release  (???)     zip_get_name                                        
        payday2_win32_release  (???)     ???                                                


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

Current thread: Main
Script stack:
              _preload_part()  lib/managers/weaponfactorymanager.lua:380          
          preload_blueprint()  lib/managers/weaponfactorymanager.lua:291          
             _reload_outfit()  lib/network/base/networkpeer.lua:1804              
orig_NetworkPeer_set_outfit_string()  lib/network/base/networkpeer.lua:1488              
          set_outfit_string()  @mods/BeardLib/Hooks/NetworkPeer.lua:163            
fs_original_menucallbackhandler_updateoutfitinformation()  lib/managers/menumanagerpd2.lua:597                
 _update_outfit_information()  @mods/Full                                          
                               Speed                                              
 Swarm/lua/menumanager.lua:69  equip_weapon()                                      
lib/managers/blackmarketmanager.lua:788  callback()                                          
lib/managers/menu/blackmarketgui.lua:10514  first_btn_callback()                                
lib/managers/menu/blackmarketgui.lua:10527  press_first_btn()                                  
lib/managers/menu/blackmarketgui.lua:6139  BlackMarketGui_mouse_double_click_original()        
lib/managers/menu/blackmarketgui.lua:6048  mouse_double_click()                                
@mods/WolfHUD-master/lua/MenuTweaks.lua:324  mouse_double_click()                                
lib/managers/menu/menurenderer.lua:429                                                      
lib/managers/mousepointermanager.lua:344  
-------------------------------
Reply
#2
I havent seen cases like this, generally, if your gun can be loaded fine in inventory, it wont have problem on-game/heist.

This is just a shot, but this is maybe something to do with how you set up the gun based_on.
Probably the game doesnt like certain based_on and upon loading it into game, it hits error.
Reply
#3
nope still crashes but at least it's a different crash


Wed Oct 04 08:09:44 2017


Application has crashed: C++ exception
[string "lib/network/base/networkpeer.lua"]:1811: attempt to index a nil value



SCRIPT STACK

orig_NetworkPeer_set_outfit_string() lib/network/base/networkpeer.lua:1488
set_outfit_string() @mods/BeardLib/Hooks/NetworkPeer.lua:163
create_local_peer() lib/network/base/basenetworksession.lua:52
create_local_peer() lib/network/base/hostnetworksession.lua:39
host_game() lib/network/base/networkmanager.lua:529
callback() lib/managers/menumanager.lua:3837
trigger() core/lib/managers/menu/items/coremenuitem.lua:150
core/lib/managers/menu/coremenulogic.lua:284
_execute_action_queue() core/lib/managers/menu/coremenulogic.lua:54
update() core/lib/managers/menu/coremenulogic.lua:64
update() core/lib/managers/menu/coremenumanager.lua:155
update() lib/managers/menumanagerpd2.lua:17
update() lib/setups/setup.lua:759
update() lib/setups/menusetup.lua:294
update() @mods/base/lua/MenuSetup.lua:6
core/lib/setups/coresetup.lua:537


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

Callstack:

payday2_win32_release (???) ???
payday2_win32_release (???) ???


-------------------------------
Reply
#4
What custom weapon you're trying to make?

I've never had custom weapon crashes that points to network peer.
Are you sure it's caused by the custom weapon?
Reply
#5
An akimbo HK416C.

And yes I'm very sure. It only happens when I equip the gun and click on crime net offline or when I'm in pre-planning and I equip the gun there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)