It's 2025 now, we have better ways. We don't need to redefine the whole function.
Please, I am begging you. I am screaming and crying and throwing up. I am tearing my hair out. I am weeping and wailing and sobbing and pi
ABOUT
This is a functional template mod that you can use to make whichever localization changes you want. You don't need to credit me if you upload a mod made using this, but you can if you want.
By default, this mod changes difficulty names, but it will work for any localized string.
(It's very low effort in terms of the replacement difficulty names I chose, because it's just an example.)
This is a very simple template that doesn't include features like auto-updates or language selection. You may wish to use BeardLib for that, or examine how other mods allow for language selection, like Meth Helper Updated.
INSTRUCTIONS
Utility mod: "[BLT] string_id Revealer" by Snh20: https://modworkshop.net/mod/14801 (Yes it's 10 years old, yes it still works, no it's not outdated)
PAYDAY 2 Hashlist: https://github.com/Luffyyy/PAYDAY-2-Hashlist/
Developer documentation on localization using SuperBLT: if you want to learn more: https://superblt.znix.xyz/doc/common_functions/localization/
Decompiled Source for PAYDAY 2, courtesy of test1: https://github.com/steam-test1/Payday-2-LuaJIT-Complete/
How to make a localization mod:
- Find the string id you want to change.
Method A) The easiest way (requiring the least technical knowledge) to do this is to use the string_id revealer mod (linked above) and find the string in-game, eg. if you're looking for the string for the character Hoxton, install that string_id revealer mod, go to your character selection where you might see Hoxton, and see what the string displayed is.
Method B) If you can't find it, or if you found it using method A) but the string id goes off the screen or is not fully displayed, search for it in the hashlist, using the partial string as a search term if you have one.
Method C) If you're more technically adept, you can look for references to the string id in question in the game's community decompiled source code. - Install this mod (see the Dependencies & Instructions section of this mod page for installation instructions, including a video.)
- Use the template mod to add your strings instead: remove the placeholders from the template mod, and add your own.
FAQ
It's practically impossible, or at least very unlikely, for this mod to conflict with other mods (aside from other localization mods that replace the same string) or become outdated by PAYDAY 2 updates. If something is not working, it is very probably an issue on your end.
Q: You haven't updated this mod in many days/months/years! Is this mod outdated?
A: Probably not. Localization is fundamentally the same as it was at PAYDAY 2's launch and in PAYDAY: The Heist, and therefore this mod will probably never be outdated.
Q: It doesn't work for me :(
A: Works on my machine! Make sure you're installing it correctly, make sure there are no syntax errors in your mod. Check the BLT log for errors if it isn't working for you (look in mods/logs/
.)
AFTER READING THE REST OF THIS MOD DESCRIPTION, if you need help, please feel free to ask here.
