|
发表于 2008-3-9 16:41:43
|
显示全部楼层
残留在wc3c上的情报。。
but I have successfully ADDED any number of races into war3!
And it is a perfect solution, it's not same with the way of adding in my mod DemonCraft 1&2. (they have 8 races, but u need pick 1 race from 2 again when game starting)
now I am working in DemonCraft 3, and it will include 9 races as you see:)
some tips:
hide the real race menu
edit the handicap menu for race menu
crack the code of handling handicap, it's 100 times easy than cracking the limit of race.
the other things will be done by editing blizzard.j
but it's still hard to say clearly. i will show it in my MOD: Demon Craft 3, every one will know how to do from it. also, if any project need more than 4 races, i can join and help you finish it~
now more tips:
firstly, editing "UI\\FrameDef\\Glue\\PlayerSlot.fdf", change the part of handicap menu like this: Frame "GLUEPOPUPMENU" "HandicapMenu" INHERITS WITHCHILDREN "PlayerSlotPopupMenu" {
Width 0.11,
UseActiveContext,
SetPoint LEFT, "NameMenu", RIGHT, 0.0, 0.0,
PopupMenuFrame "HandicapPopupMenuMenu",
Frame "MENU" "HandicapPopupMenuMenu" INHERITS WITHCHILDREN "StandardPopupMenuMenuTemplate" {
UseActiveContext,
MenuItem "RANDOM", -2,
MenuItem "HUMAN", -2,
MenuItem "ORC", -2,
MenuItem "UNDEAD", -2,
MenuItem "NIGHT_ELF", -2,
MenuItem "High Elf", -2,
MenuItem "Chaos Orc", -2,
MenuItem "Burning Legion", -2,
MenuItem "Naga", -2,
MenuItem "Jungle Dweller", -2,
}
}
it will make the handicap menu override the race menu. so the race menu will not be seen(also need modifying the size of ui elements a little)
secondly, modify the game.dll. this is the difference of the modified game.dll and the old game.dll:fc/b game.dll game.dll.old
00209FF5: 00 5A
0020A003: 90 B8
0020A004: 90 01
0020A005: 90 00
0020A006: 90 00
0020A007: 90 00
0020A4C1: 10 05
0020A4C6: 8B FF
0020A4C7: F0 24
0020A4C8: 90 85
0020A4C9: 90 4C
0020A4CA: 90 A5
0020A4CB: 90 20
0020A4CC: 90 6F
0020A4CD: 90 BE
0020A4CE: 90 5A
0020A4CF: 90 00
0020A4D0: 90 00
0020A4D1: 90 00
00256DA2: 00 32 it causes when user select the first item of handicap menu(now it's "race menu"), the handicap of the player will be set to 0%, the second item to 1%, and so on.(now support not only 6 items(100%-50%))
thirdly, editing the blizzard.j, it will be effect any melee games. some key functions:] |
|