Skip to content

Getting Started

Dawid8 edited this page Oct 23, 2024 · 2 revisions

This tutorial assumes that you've already downloaded and extracted your copy of DW2SMT from here and that wkDLang is also in the game directory.

When you first open the tool, you should see a window like this one:

image

This is the Launcher. It provides a list of your recently edited language files for faster access in the future. To create your first language, please press the Create project button.


image

This is the actual language editor. It consists of several parts from top to bottom:

  • The menu bar at the top, which has:
    • The file submenu with: New, Open, Save, Save As, Return to Launcher and Exit options
    • Search, which will open the search window (can also be brought up by pressing Ctrl+F)
    • Tools, which at the moment has only one option, "Overwrite Custom with Vanilla". We will get back to that in a second
    • About, which shows the version of the tool
  • String List, which contains all of the vanilla changeable text that the tool supports, as well as your own custom replacements for them. This is where you select the string you want to edit
  • Vanilla string display, which shows the vanilla (original) value of the currently selected string
  • Custom string display, which shows and allows you to change your custom value of the currently selected string

Whew. Now that we know what everything is, let's finally get started.

Currently, if we try to save the language using File > Save, and then try to load it using wkDLang, it would cause most of the in-game text to disappear. This is because, as you may have noticed, the custom replacements for all strings are empty. Lets change that. Remember the "Overwrite Custom with Vanilla" option? Pressing that will replace all of the custom strings with the English vanilla ones. This is one of the first things you'll probably want to do when you start working on a language file, unless you plan to translate the entire game in one go without testing.

Next step will be to select the string that you want to edit. I will take the Bazooka text as an example. Simply find it in the list (or use the Search feature) and then select it. You should see that the Vanilla and Custom string displays have changed. Now simply change the text in the Custom string display to the desired one, like so:

image

That's basically it. You can go on and modify any amount of strings that you like, and the process is exactly the same. Find the target text, select it, change it. It might be a good idea to save the language file often, to make sure you don't lose any changes by pressing File > Save.

Last but not least, let's check out the Language settings tab.

image

In here, you can change the name of your language, but more importantly, the encoding. If your language uses special characters, you'll have to select the appropriate encoding for your language. It's also important to note that your copy of Worms 2 will need to have to have a modified Gfx.dir file in GameDir\Data\Gfx, that contains the fonts that have the special characters. Otherwise, they will not display correctly in-game.

Once you're done with making your changes and have saved the language, simply copy the language file to the game directory (if you haven't saved it there already) and then modify the wkDLang.ini file. Assuming you've saved the language with name "MyLang" in the game directory, your config file should look like this:

[Settings]
Enabled=1
Language=MyLang.dw2lang

The moment you get in-game you should see your brand new language!

image

Clone this wiki locally