Banner
Blue Archive Weapon Skins [WIP]
Thumbnail
Downloads1,764
Views7,546
Publish Date1 year ago
Last Updated3 months ago by
Version0.8.1
Tags
Members
Avatar

The game crashes if you modify the desert eagle while having this and Super Duper Skin Swapper installed. I don't know why or how to fix it, since the crash log is a complete mess.

Avatar

It seems to work perfectly fine for me, cannot reproduce your issue.
Would be good to send your crashlog anyway (C:\Users\*your name*\AppData\Local\PAYDAY 2\crash.txt) and maybe what other mods you have installed.

Avatar

Alright, here it is.

Spoiler!

Application has crashed: C++ exception
[string "lib/managers/weaponfactorymanager.lua"]:538: bad argument #1 to 'pairs' (table expected, got string)

SCRIPT STACK

_get_override_parts() lib/managers/weaponfactorymanager.lua:538
_get_forbidden_parts() lib/managers/weaponfactorymanager.lua:471
get_stats() lib/managers/weaponfactorymanager.lua:1604
get_weapon_stats() lib/managers/blackmarketmanager.lua:2945
make_cosmetic_data() lib/managers/menu/blackmarketgui.lua:10816
original() lib/managers/menu/blackmarketgui.lua:11006
on_create_func() @mods/base/req/core/Hooks.lua:260
original() lib/managers/menu/blackmarketgui.lua:157
init() @mods/base/req/core/Hooks.lua:260
new() core/lib/utils/coreclass.lua:35
original() lib/managers/menu/blackmarketgui.lua:2187
_setup() @mods/base/req/core/Hooks.lua:260
init() lib/managers/menu/blackmarketgui.lua:1998
new() core/lib/utils/coreclass.lua:35
create_blackmarket_gui() lib/managers/menu/menucomponentmanager.lua:3012
create() lib/managers/menu/menucomponentmanager.lua:3003
original() lib/managers/menu/menucomponentmanager.lua:520
set_active_components() @mods/base/req/core/Hooks.lua:260
core/lib/managers/menu/coremenulogic.lua:89
_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
original() lib/managers/menumanagerpd2.lua:20
update() @mods/base/req/core/Hooks.lua:260
original() lib/setups/setup.lua:909
update() @mods/base/req/core/Hooks.lua:260
original() lib/setups/menusetup.lua:363
update() @mods/base/req/core/Hooks.lua:260
core/lib/setups/coresetup.lua:559


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                  KERNEL32  (???)     BaseThreadInitThunk                                 
                     ntdll  (???)     RtlInitializeExceptionChain                         
                     ntdll  (???)     RtlClearBits                                        

Current thread: Main


System information:
Application version : 1.143.246
CPU : 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (4 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 12.0
GPU : NVIDIA GeForce RTX 3080 Laptop GPU / nvldumd.dll[32.0.15.6070]
Language : english
Memory : 16085MB 512KB
OS : 6.2.9200 () 0x300-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : NVIDIA Corporation (MSI G273 (NVIDIA High Definition Audio))

Avatar

Just guessing but it looks like it doesn't like the included attachments for some reason? What happens when you go into modules/wskn_mari.xml and comment out or delete the whole <skin_attachments> part?

Avatar

The game still crashes with the same log. I did find that turning on certain filters in Super Duper Skin Swapper prevented the crash. I guess a specific skin isn't compatible with the desert eagle. Could be a common rarity skin, seeing how the crash happened when I enabled "Filter Rarity" and used common rarity. Seems like every Blue Archive skin is common rarity, so I'm going to change each of the skins' rarity to legendary, then I will filter rarity for only legendary skins, and I'll see which skin crashes the game.

Avatar

Okay, I figured it out. wskn_azuza.xml, wskn_hina.xml and wskn_saori.xml was crashing the game. I removed the <skin_attachments> from these files like you said, and that did the trick. Skin Swapper has code that removes any attachments the skin comes with, so it's likely attachments were being applied to the deagle that weren't possible. How the hell you weren't crashing is bizarre to me.

Avatar

Those 3 have in common that their custom attachments override certain units, Hina's overrides the barrel extension and Azusa's and Saori's both override the default iron sights.

That's probably what causing issues for you then, but that would also be out of my hand since a lot of vanilla attachments use this system too. Could maybe bring it up with the super duper skin swapper dev and see if it could be fixed?
Absolutely no idea why it crashes for you but not for me, do you use other mods that affect weapon skins in some way? I noticed I forgot to uninstall Optional Skin Attachments before trying with Super Duper Skin Swapper.

Avatar

I tried again without Optional Skin Attachments and just Super Duper Skin Swapper and now it actually does reproduce the crash you're having. Weirdly enough it crashes all the time now regardless if I have OSA or not. But I have no idea how to fix this other than not using SDSS.

Avatar

Super Duper Skin Swapper has not been updated for years now. It's not likely the author will update the mod just for these skins. I'd say don't worry about the issue. I'm the only person who's having a problem anyway. If more people have the same problem, then you ought to look into a fix. For now, forget it.

By the way, there's a typo in english.yaml where "famas_cnuy_asuna_desc" is located. It reads "bus as usual". Did you mean "but as usual"?

Avatar
(Owner)1 year ago(Edited)

Fair enough, there's not much I can do on my end anyway.

Yes that indeed was a typo lol. Fixed it and a few more I found and will ship them with the next skin, thanks for finding it.

Avatar

Sounds good. You're doing a great job.

52 1318