How to update your mod to BLT 2
Avatar

Hi,
BLT 2 changed a bunch of stuff, and you might need to update your mod if it doesn't work anymore.

New mod.txt keys

There is new keys for the mod.txt file:

"blt_version" : 2,                // This key is now needed if you want to get rid of the red text "this mod is outdated"
"image" : "blt.png",              // Used if you want to add an icon to your mod.
"color" : "255 0 255",            // This will determine the color of your mod box in the mod manager.
"undisablable" : true,            // Setting to true will prevent players to disable your mod
"disable_safe_mode" : false,      // Not sure what is safe mode. Leave it to false i guess

Mod options node changed

If your mod used options, you will need to change the parent_menu_id from lua_mod_options_menu to blt_options

New BLT functions

The doc hasn't been updated so you can always check what changed in the BLT github: https://github.com/JamesWilko/Payday-2-BLT-Lua

Replies
Avatar

The mod options is really helpful for mod that uses txt or generate menu through lua..

But for mod like PDTH and Poser that integrate BeardLib into its internal working, I'm kinda clueless how to fix them, as I'm afraid they'll crash user in-heist.

Avatar

Safe mode is new thing.
When Base game has major update, BLT goes into "safe mode", turning off almost every mods automatically.
Disableing safe mode make that mod loads no matter what happens... i guess.

Avatar
Safe mode is new thing.
When Base game has major update, BLT goes into "safe mode", turning off almost every mods automatically.
Disableing safe mode make that mod loads no matter what happens... i guess.

oh thats not good..
espciaily for custom beardlib stuff user, as that would pretty much wipe their inventory from already-bought custom stuff..

any way to make safe mode disabled permanently?

Avatar

how BLT will know when there is a major update?

Avatar

To repair the menu settings, there are 2 methods depending on the mod

  1. Simple fix: Search the menu.txt, options.txt or other file that content "parent_menu_id", and change the value for: "blt_options"

  2. A more complex (A little) Search in lua base of mod the line that content MenuHelper:AddMenuItem(...., example:

MenuHelper:AddMenuItem(MenuHelper:GetMenu("lua_mod_options_menu"),....

and, change that for MenuHelper:AddMenuItem(nodes["blt_options"],....

Avatar

so to stop my mods from being outdated I just add that first key and everything should be good?

Avatar

how do i fix keybind things example (also what i want to fix) timespeed

34 816