• 0

    posted a message on [Trigger] Dynamic Tower Sell

    Thanks, this works quite well. I have a problem when trying to sell upgraded towers though :( I upgrade the tower using a morph ability, so the unit changes from Tower Level 1 to Tower Level 2. I set the repair resource to include the upgrades (set to 10 for tower level 1, 20 for tower level 2), but the function that returns the mineral cost returns 0 and no money is refunded... Do you have this problem too?

    Posted in: Tutorials
  • 0

    posted a message on [Data, Trigger] Fix enGB/enUS localization errors

    Normally if you create your map in the enGB editor, all localized strings such as trigger messages, ability names, any names in the data editor, will not be used when your map is played in enUS SC2. This can be fixed by copying the enGB localization files to the enUS localization files and editing a file.

    Copying and editing the map file is easily done using Ladik's MPQ editor, get the latest (beta) version here: http://www.zezula.net/en/mpq/download.html Be sure to back-up your map before making any changes to your map file with the MPQ editor!

    • Back-up your map!
    • I will be assuming that the map was made with the enGB editor, so you want to get the map working for enUS. If you made the map with the enUS editor, you have to replace enGB with enUS and enUS with enGB.
    • Open your map with the MPQ editor, be sure to untick "Open the MPQ in read-only mode" because we need to edit the map.
    • Extract the "ComponentList.SC2Components" file to a directory of your choice. (Select the file and and press Ctr+E)
    • Extract the "enGB.SC2Data" folder to a directory of your choice. (Select the folder and and press Ctr+E)
    • Go to the directory you extracted the files to and open "ComponentList.SC2Components" in a text editor.
    • Find the line that says "<component type="text" locale="enGB">GameText</component>", copy that line and paste it below it. Change enGB to enUS in the line you just pasted.
    • Save the file and close the text editor.
    • Go back to the MPQ editor and delete the "ComponentList.SC2Components" file by selecting it and pressing delete.
    • Press Ctr+A to add files, go to the directory where you just edited the text file, and select "ComponentList.SC2Components". The edited file is now added to the map file.
    • Create a new folder in the root of the file. A new folder is made by right clicking in the file list and selecting "New folder". Call this new folder "enUS.SC2Data".
    • Go inside the folder you just made by double clicking on it. Create a new folder here called "LocalizedData".
    • Go inside the "LocalizedData" folder.
    • Press Ctr+A to add files, go to the directory where you extracted the enGB localization data and select all all the .txt files. The .txt files are now added to the enUS localization.
    • Close the MPQ file by going to the menu File -> Close MPQ archive.

    Your map should now show the correct strings in both the enGB and enUS versions! Sadly you have to do this every time you edit the localization strings..

    Posted in: Tutorials
  • To post a comment, please or register a new account.