PAYDAY 2

PAYDAY 2

Not enough ratings
gabsF's Guide Mods: Translations and Editing Texts [EN/PT-BR]
By gabsF
[EN]
This guide will teach you to how edit or translate a string to your language. There may have some issues on this guide, so please tell me about it on the comments

[PT-BR]
Esse guia vai te ensinar a como edita ou traduzir o jogo para o português. Pode ter uns errinhos nesse guia, então me avisa nos comentários.
   
Award
Favorite
Favorited
Unfavorite
Some stuff that you'll need (EN)
Now, to make the editing strings possible (for you), you'll need a mod for this

String ID Revealer
https://modworkshop.net/mod/14801 made by Snh20
This mod reveals all String IDs, self explainatory, isn't? Well, just a press of a button and you'll see this kind of a mess.
Just go to "Mod Keybinds" and just bind to toggle the revealer anytime in-game or in menu



All Strings from PAYDAY 2 in lua or xml
https://modworkshop.net/mod/22055 made by CENSOR_1337
Now, you might got into this mess where strings are cutted of or inside of each other that you can't even read, the solution for that is not exactly a mod but is useful
Also, you might need notepad++[notepad-plus-plus.org] to open and search for a String ID that you're looking for.

Custom Strings Template
https://modworkshop.net/mod/12426 made by TemA
The heart of it, the fun part, at least for me i guess


Ultimate Translation Script
https://modworkshop.net/mod/27744 originally made by PeejsterM and fixed by Kisuke
This thing will make everything easy for you, this script will basically export every single string that the game executes
The "fun" part (EN)
So, you get everything you need, let's grab these string ids and start to translate them

mod.txt
This text file is important so BLT or SuperBLT can read it and use your mod
Something like this
{ "name" : "PAYDAY 2 Translate in Portuguese Brazilian", -- the name "description" : "This mod Translate some stuff on PAYDAY 2 to Portuguese Brazilian", -- the description "author" : "gabsF", -- the author "contact" : "https://steamhost.cn/steamcommunity_com/id/_gab_foxJaketto_/", -- the contact that gonna be used to send message for you "version" : "1", -- the version of your translation "blt_version" : 2, -- this is for BLT 2.0 or SuperBLT "hooks" : [ { "hook_id" : "lib/managers/localizationmanager", -- the hook id for localization "script_path" : "example.lua" -- your file name/path } ] }

The Translation
Ok, let's use Jacket's description, you decided that want to do a joke about Jacket, you press the button to reveal string id, grab it and the code will look something like this

and in-game will look like this
My example are pretty idiotic, but you get it, right? Also, "\n" is useful here, forget about "NL;" these do not work here
The Limitations (EN)
Black Loading Screen
There's some parts that you can't edit, for example this loading screen.


($levels Level Up)
For some "unexplainable" reason, this string can't be translated
This "($levels Level Up)" is really awkward...
Whatever is after the "$levels", won't show up, maybe some day i'll find a way to translate this with a right code or a better way, but who knows

Vanilla Version

Mod Version


String Ids with "???"
Thanks to test1, he helped me to translate this string

---------------------
Coisas que você vai precisar (PT-BR)
Agora para fazer a edição dos textos possível, você vai precisar desses mods, bom, um mod na verdade.

String ID Revealer
https://modworkshop.net/mod/14801 feito pelo Snh20
Esse mod revela todos "String Ids", Pelo nome já diz tudo, né? Bom, só com um apertar de um botão e você verá essa bagunça.
Só ir pra o "Mod Keybinds" e colocar uma tecla para alternar o mod em qualquer momento do jogo



All Strings from PAYDAY 2 in lua or xml
https://modworkshop.net/mod/22055 feito pelo CENSOR_1337
Talvez você se ferre um pouco com essa bagunça e ache as strings cortados ou dentro de outra string que você nem consegue ler, a solução pra isso não é exatamente um mod, mas é útil
Alias, talvez você precise do notepad++[notepad-plus-plus.org] para abrir e buscar pela string id que você procura

Custom Strings Template
https://modworkshop.net/mod/12426 feito pelo TemA
O coração disso, a parte divertida, pelo menos pra mim


Ultimate Translation Script
https://modworkshop.net/mod/27744 feito pelo PeejsterM e consertado pelo Kisuke
Essa coisa vai facilitar muito a sua tradução, esse script vai basicamente exportar cada string que o jogo executar
A parte "divertida" (PT-BR)
Então, já tem tudo e pronto pra traduzir, mas pera lá que falta mais coisinhas

mod.txt
Esse texto é importante pro BLT ou SuperBLT que possa ler e executar o seu mod
Algo assim
{ "name" : "PAYDAY 2 Translate in Portuguese Brazilian", -- o nome "description" : "This mod Translate some stuff on PAYDAY 2 to Portuguese Brazilian", -- a descrição "author" : "gabsF", -- o autor "contact" : "https://steamhost.cn/steamcommunity_com/id/_gab_foxJaketto_/", -- o contato que serve pra mandar mensagem pra você "version" : "1", -- a versão da sua tradução "blt_version" : 2, -- isso é pro SuperBLT "hooks" : [ { "hook_id" : "lib/managers/localizationmanager", -- o gancho pra localização "script_path" : "example.lua" -- o seu arquivo ou caminho da pasta } ] }

A Tradução
Beleza, bora usar a descrição do Jacket de exemplo, você aperta o botão pra revelar as strings, pega e o código vai ficar mais ou menos desse jeito

E em jogo vai aparecer desse jeito
Meu exemplo é meio idiota, mas cê entendeu, né? Alias, esquece o "NL;", use o "\n"
As Limitações (PT-BR)
Tela de Loading Preta
Existem algumas partes que não podem ser traduzidas, por exemplo essa tela preta de loading


($levels Level Up)
Por algum motivo obscuro, essa string é bem estranha
Seja lá o que fica depois do "$levels", simplesmente não aparece

Versão Padrão

Versão com Mod


String com "???"
Graças ao test1, ele me ajudou a consertar isso