# PAYDAY-2-BeardLib
A large library that assists in mod creation.
- Script File Manipulation.
- Custom maps
- Easy ability to add content. Such as masks, melee weapons, weapon mods, suits, gloves, etc
- Modules system
## Editors
Editors were moved to BeardLib-Editor a while ago, get them there [BeardLib-Editor](https://github.com/GreatBigBushyBeard/PAYDAY-2-BeardLib-Editor)
## Documentation
The main documentation can be found on the [wiki](https://github.com/GreatBigBushyBeard/PAYDAY-2-BeardLib/wiki).
## Dependencies
* [SuperBLT](https://superblt.znix.xyz)
## Templates
You can find them here: https://github.com/ModWorkshop/BeardLib-Templates
## BeardLib mods
* [Custom heists](https://modworkshop.net/category/502)
* [Custom weapons and weapon mods](https://modworkshop.net/category/528)
* [Custom masks](https://modworkshop.net/category/8)
* [All](https://modworkshop.net/find/mod?gid=1&tags=11)
## GitHub
https://github.com/simon-wh/PAYDAY-2-BeardLib
https://github.com/simon-wh/PAYDAY-2-BeardLib/commits/master
## 4.5.4
- Fixed a crash when reloading some heists
## 4.5.3
- Fixed a long time BeardLib oversight where opened files would not close. That lead some people to crash when using a lot of mods.
## 4.5.2
- Fixed networking related crash
- Fixed a bug relating to gloves on team ai ingame.
## 4.5.1
- Fixed a crash with the menu color save value
## 4.5
- To be listed
## 4.4.1
- Fixed a crash that could happen for some mods that have 'use_clbk' in their package/add files
- Fixed a crash that happened with the input utilities (felt in the editor generally)
- Update Chinese localization
- New GitHub provider (Thanks Mako https://github.com/simon-wh/PAYDAY-2-BeardLib/pull/406)
## 4.4
*If your mod uses one of the new features, add min_lib_ver="4.4" to your main.xml*
Additions:
- StealthMusic module (template should be coming soon)
- New HUDIconModule (generally for waypoints)
- Support for multiple alternate tracks (thanks Hoppip) https://github.com/simon-wh/PAYDAY-2-BeardLib/pull/392
- New marker system and recursive queue/random in sounds module (thanks Cpone) https://github.com/simon-wh/PAYDAY-2-BeardLib/pull/393
- Function: Utils:GetNameFromModPath - gets the name of a mod from its ModPath (works only for BLT mods)
- BeardLib's own DelayedCalls function that can work in paused state
- Custom heists filter (only works if both client and host have the 4.4 and up)
- A way for mods to force download updates
- Support for more combinations for input utilites and Keybind MenuUI item
- `script_data_type` value for add files allowing you to add custom_xml, generic_xml, and json type files
- Path:GetFilePathNoExt function, returns the path of a file without its extension
- `from_db` option for add files. This allows you to load any file in the game's database as you wish. **Do note however, that this is not functional at the moment as it relies on an upcoming feature in SuperBLT**
- A delay for list searching (150 ms) to improve performance while searching huge lists
Bugs/Crashes:
- Fixed a crash that occurs when loading into a heist https://github.com/simon-wh/PAYDAY-2-BeardLib/issues/368
- Fixed rich presence not working properly for custom heists
- Fixed a crash in the file browser dialog
- Fixed typo in music module that could cause a crash
- Fixed a crash in end screen with custom sounds (thanks Mako and Cpone) https://github.com/simon-wh/PAYDAY-2-BeardLib/pull/399
- Fixed a file's name being inconsistent with the file name defined in main.xml which can cause issues for Linux
- Fixed tooltips not working properly in MenuUI
- Fixed mod skins tab not showing (thanks Mako) https://github.com/simon-wh/PAYDAY-2-BeardLib/pull/405
Changes:
- Changed the dialog of the 'message' area for dialogs slightly
- Volume of custom music can now be changed per track (if defined, thanks Hoppip)
- `PAYDAY-2-BeardLib-master` folder name is ignored by BeardLib now too
- `add` and `include` are now deprecated in level module
- `include` now uses add files module by loading add_local.xml from [ModPath]/levels/[Level ID]
- 'add` now automatically loads from levels directory like add_local.xml
- Removed editor functions from BeardLib
- Keybind item should now support unbinding
Dependencies
-
Instructions
**Make sure to first have SuperBLT installed. Click the link in the dependency list.**
Optional video tutorial for installing SuperBLT, BeardLib, and mod_overrides mods: https://youtu.be/rin_sjSJIkg
1. After downloading the mod, use a program such as [7zip](https://www.7-zip.org/download.html) or [WinRAR](https://www.rarlab.com/download.htm) to extract the main folder of the mod.
2. Drop that folder into the `mods` folder which is supposed to be in the game's installation folder (don't know where that is? click [here](https://wiki.modworkshop.net/books/payday-2/page/finding-payday-2s-install-folder))
Comments