| 09-19-2002, 04:39 PM | #1 |
I was told that I can change the hot keys of the abilitiesl by editing certain .txt file. Can the game still be played on internet after I changed this? Or does the other players also need the patch file to play together? Also, can someone describe in more detail how to change the abilities hot keys, or redirect me to where I can find the solution? Thanks! |
| 09-19-2002, 08:45 PM | #2 |
yep... works on bnet. just inject the edited .txt files in your map using mpq2k. You can do much more than just change hotkeys too, you can change the spell's name, tooltip, interface icon, and even animations. |
| 09-19-2002, 11:46 PM | #3 |
Eh, you can change the hotkeys in the unit editor :) Don't bother with the txt files unless you need to change 'em for abilities. |
| 09-20-2002, 01:16 AM | #4 | |
Quote:
Really?! How can I do this? Which field should I change? |
| 09-20-2002, 04:30 AM | #5 |
Guest | Just open World Editor, press F6 to open the unit editor, select the unit whose hotkey you want to change, and scroll down to the bottom of the data list. The "Hotkey" line should be right there. Just remember that when you change a hotkey, you'll also want to change the tooltip so the correct letter is highlighted in yellow when players go to build that unit from a building and drag the mouse over the selection box. (Otherwise, they won't ever figure out what your custom hotkey is!) |
| 09-20-2002, 04:52 AM | #6 | |
Quote:
|
| 09-20-2002, 05:08 AM | #7 | |
Quote:
Thanks! I'll try it out! |
| 09-20-2002, 11:26 AM | #8 |
dataangel & all_your_base: when I looked at the unit editor I immediately realize that you indeed misunderstood my question......Just like what ZZzz said, I want to change the heroes' abilities hotkey, not the hotkeys for training a hero...... e.g. my paladin has holy lighT and mass Teleport, both use "T" as the hotkey. So when I press T, it only uses holy light but not teleport. Therefore, I want to change the hotkey of holy light to "L" and use "T" for teleport. So again, how can I do this with those .txt files? Can my game be played on internet after I changed it? |
| 09-20-2002, 01:51 PM | #9 |
Yes, your game can be played on the internet. Here's what you do: Get winmpq (its the eastiest program for ppl who are new at this to use). Then, click on Open and select war3.mpq... Limit the search to .txt files only (the dropdown menu at the top.) Find the files <anyrace>AbilityStrings.txt and <anyrace>AbilityFuncs.txt of the races the spells you need to edit are in. Edit the spells as needed (icons and animations and spell positions are in Func, tooltips and hotkeys and spell names are in Strings) then save the .txt files. Open your map in winmpq, and add the .txt files in your map. To make sure they preload correctly, use the default loading screen for your map when playing it. If it doesnt work, then it's because winmpq sucks :) So get mpq2k and try reinjecting them :) If you use the mpq2k gui... put everything in the same directory (your map, the txt files, the win2k and the gui). Open the gui, then in the first line put the name of your map.w3m, in the second line put the name of the file you want to inject ie a .txt file. In the third line put the name AND path of where the file originally went in war3.mpq.... This should be Units\<race>AbilityFunc.txt and Units\<race>AbilityStrings.txt. Then click on Run MPQ2K and check if you get a "Done" message. If not then either the name of your map or filepath is wrong, or your map is opened in the World Editor or in WC3 (yep you gotta close it.) Now... if you have multiple files to inject, it is simpler to use a batch file, since you need to inject them every time you save your map in WE or the files disappear. Here's how you make a batch file: Open notepad, write the following lines: O <mapname>.w3m a <file to inject> <path where it goes in mpq> a <file to inject> <path where it goes in mpq> a <file to inject> <path where it goes in mpq> etc... C replace everything in <> by what you need :P Then save, go in MPQ2K Gui. On the bottom right click on "Run batch script", and enter the path to the batch file you just made, then click on Run MPQ2k. MPQ2K will run through every line of your batch file and execute every command. O opens your map, a adds the files, C closes your map. Whew... that was long, well hope you will get to do what you want now :) |
