PAYDAY 2

PAYDAY 2

32 ratings
Modifying WolfHUD and PocoHUD for MUI Compatibility
By kyuketsuki★
I've set some tweaks to make both WolfHUD and PocoHUD work with MUI. I wanted to share it with other people, so here we are.
   
Award
Favorite
Favorited
Unfavorite
In-Game Options
Let's start with the basics. We've to set something essential to get better results. After you've installed all of those three mods, navigate in to their mod options in game and select MUI.

MUI Settings
You've to close some components from Components menu to prevent crashes and conflicts with WolfHUD. They listed as;
  • Chat
  • Interact
Now for the other settings, they are my personal settings, you can change them whatever you like. If you get unusual layout at the end unlike my screenshot, you should play values to get best results.
Other settings shouldn't affect compatibility at all, but I'll drop my settings save at the end if you want to get a clean state.

PocoHUD Settings
You can set your PocoHUD settings with Backspace key. Only thing you should enable is Bottom Infobox. Set those settings like this[i.imgur.com]. Don't forget to disable other components because they can stack with WolfHUD and make your game crash. Not all of them, but we can't let it to luck.

WolfHUD Settings
WolfHUD has tons of options, I'll try my best to not miss any kind of important thing, however at the end I've drop my mod saves at the end, you can always use them to get a clean result.
  • Untick Use CustomHUD from General HUD Panel Options
  • Untick Display Killcounter from Killcounter Options
  • Untick Advanced Assault Banner from Assault Banner Options
  • Untick Dynamic Damage Indicator from Damage Indicator
  • Untick Show Enemy Healthbar from Enemy Healthbar
  • Untick Show Driving HUD from DrivingHUD Options
  • Player Panel[i.imgur.com]
  • Teammate Panels[i.imgur.com] and Remaining Options[i.imgur.com]
For TabStats, you can simply disable MUI's Statistics component to use it, however I don't love the default look of Tab and want to use MUI's. I'll do it on this guide like that. Untick Use Tabstats from Tabstats Options.

That's all we can manage to do from in-game, If you try to enter game in this state you'll probably get lots of crashes. We're going to do remaining things with ol' fashioned way.
Out-Game Tweaks
Go to your PAYDAY 2 installation place. Inside mods there is a folder named WolfHUD. We're going to delete few things to make it work. They listed as;
  • KillCounter.lua
  • EnemyHealthbar.lua
  • DownCounter.lua
  • DamageIndicator.lua
  • AdvAssault.lua
Now we are going to in some advanced stuff. You don't need it, however I highly recommend to use Notepad++ for this tweaks.
Open up TabStats.lua and remove following lines
managers.hud:update_stats_screen()
function HUDManager:feed_heist_time(time, ...) HUDManager_feed_heist_time_original(self, time, ...) if self._hud_statsscreen then self._hud_statsscreen:feed_heist_time(time) end end
function HUDManager:update_stats_screen(item) if self:showing_stats_screen() then self._hud_statsscreen:update_stats(item) end end
managers.hud:update_stats_screen()
To prevent crashes. Now lets tweak something else instead of WolfHUD. Go to PocoHUD's file and open up Hud3.lua and search this line
pnl:set_world_position(wp[1] + (btmO.offsetX or 0) ,wp[2]-pnl:h())
replace it with this
if not isMe then pnl:set_world_position(wp[1] + (btmO.offsetX - 30 or 0) ,wp[2]-pnl:h()) else pnl:set_world_position(wp[1] + (btmO.offsetX or 0) ,wp[2]-pnl:h()) end

Not it should be work without any flaws. It might be seem complicated, but it's not. Results are glorious and worth your every time to set that up. You need to set all of these things if those mods got updated. For people who wants to skip in-game options, here's my personal ones.

https://pastebin.com/JxKjFdR9
https://pastebin.com/JbjMw4dg
https://pastebin.com/3SzTzgVw

Game ready tweaked files can be get from here[drive.google.com]. Just made it not CTD, it might be seem ugly without any tweaks from Mod Options.

Special thanks to guy who found a way to make PocoHUD aligns with MUI's player panel in this post.
22 Comments
dennis 2 Jul, 2021 @ 3:29am 
oh well, the hud was great sad it's outdated now.
kyuketsuki★  [author] 2 Jul, 2021 @ 2:31am 
sadly, this should be outdated AF.
dennis 1 Jul, 2021 @ 3:30pm 
C++ exception
mods/MUI/lua/mui_stats.lua:585: attempt to index field 'combat' (a nil value)

SCRIPT STACK
load_state() @mods/MUI/lua/mui_stats.lua:204
init() @mods/MUI/lua/mui_stats.lua:193
new() core/lib/utils/coreclass.lua:35
func() @mods/MUI/lua/mui_manager.lua:512
Call() @mods/base/req/core/Hooks.lua:109
_setup_player_info_hud_pd2() @mods/MUI/lua/mui_manager.lua:27
setup() 4
setup() lib/managers/hudmanager.lua:330
load_hud() lib/managers/hudmanager.lua:317
init_finalize() lib/managers/hudmanager.lua:219
init_finalize() lib/setups/gamesetup.lua:707
init_finalize() lib/setups/networkgamesetup.lua:15
core/lib/setups/coresetup.lua:442

Callstack:
payday2_win32_release (???) ??? (3x)
payday2_win32_release (???) zip_get_name
ntdll (???) RtlAllocateHeap

I got no idea, maybe you'd know? Sorry for bothering.
dennis 9 Mar, 2019 @ 4:36pm 
Hey, I added you to help me fix my crash log issue, I cannot fit it in because it's more than 1000 words.
SodiuMeme 2 Jun, 2018 @ 4:29pm 
nvm
SodiuMeme 2 Jun, 2018 @ 8:11am 
What do I have to change to use both left list and the assault banner?
kyuketsuki★  [author] 2 Jun, 2018 @ 4:35am 
There should be a line of code for it in HUDList.lua.
SodiuMeme 2 Jun, 2018 @ 4:26am 
Do I have to disable the left list things in wolfhud? I want to be able to use them, but if i try then the list just conflicts with the assault banner. Any way I can move it?
ErnestJugend 22 Feb, 2018 @ 2:03pm 
oh do i get rid of the yellow-red skull that appears when killing an enemy? also the number showing how many damage you did?
Driscus 6 Dec, 2017 @ 3:26pm 
thank you for telling me