PDA

View Full Version : Problem with names



MichaelRobben
10-07-2010, 16:35
instead of showings it's name, my weapon ingame shows only something like desc\weapon...ecc. Please explain how to put name ingame

Dilust
10-07-2010, 16:59
Into the localization folder of your mod, you have to create a new language file, called desc.lng (make sure that the extension is .lng and not .lng.txt)

Inside this new file type this code:


{tags
{"weapon"
{"weapon file name" "weapon description"}
}
}

You can also copy the original desc.lng file and simply add the necessary line of code. When the engine load the desc.lng file from the mod folder, it will read the lines of code.

So if you have a new desc.lng file as I wrote above, the engine will load only the new line and search for older code inside the localization.pak/desc.lng file
If you have a re-worked desc.lng file, inside the mod folder, the engine will read the entire file.

Boths ways work great, mine save only few kilobytes too and allow a more polite desk.