Warhammer 40,000: Dawn of War II - Anniversary Edition

Warhammer 40,000: Dawn of War II - Anniversary Edition

Not enough ratings
[EN|RU] Ultimate Exterminatus - Skill Reset
By Slavyan
Добавляем кнопку "Перераспределить очки" в мод Ultimate Exterminatus.
How to add the "Reassign Points" button to the Ultimate Exterminatus mod.
   
Award
Favorite
Favorited
Unfavorite
English version
1. Download and install the Ultimate Exterminatus mod from ModDB or Nexus Mods[www.nexusmods.com].

2. Set the following game launch options (Right-click on the game in your Library - Properties - General - Launch Options):
-dev -modname DOW2_Ext

3. Download this archive[drive.google.com] and extract it to your game's installation folder. If done correctly, you should find the file tuning.lua in the DOW2_Ext\Data\campaign folder.

4. Launch the game and enjoy the respec button:



P.S. I'm not sure if the method above will work correctly after a mod update (I'm using the version from August 28th), so below is a slightly more complex method that should work with any version of the mod:

1. Set the launch options as in Method 1 (Step 2): "-dev -modname DOW2_Ext".

2. Download the Dawn of War 2 mod tools. You only need the DoW2ToolBox from that archive. Extract it and run the CopeModToolDoW2.exe.

3. In the CopeModToolDoW2 open (Start - Open SGA) the archive DOW2_Ext/Archives/DOW2_Ext_D.sga (the DOW2_Ext folder was placed in your game directory when you installed Ultimate Exterminatus). In the file tree, find the DATA/campaign/tuning.lua file, right-click on it, and select Extract. The filename should turn red:



4. Go to the DOW2_Ext/Archives/DOW2_Ext_D folder and move the DATA folder from there to the main DOW2_Ext folder.

5. Open the file DOW2_Ext\Data\campaign\tuning.lua with any text editor. Find "function tuning.OnTraitUnlock()" (around line 1262) and insert "Campaign_SetUIVisibility( UIV_InventoryRespecButtonPing, true )" after it. The final code should look like this:
function tuning.OnTraitUnlock() Campaign_SetUIVisibility( UIV_InventoryRespecButtonPing, true ) if Campaign_GetCampaignID() ~= "xp1" then -- add ammo type wargear to Tarkus when he gets close to the Sternguard unlock local t_ammo = {} -- table of ammo type wargear t_ammo = {
That's it. Launch the game and check the respec button. If you update the mod, it is recommended to repeat steps 3-5 to avoid issues (the tuning.lua in the mod might have been updated).
Русская версия
Установка Ultimate Exterminatus
В целом установка подробно расписана на страницах мода в ModDB и NexusMods[www.nexusmods.com]. Но, если кому-то нужна инструкция на русском, то вот она:

1. Качаем сам мод отсюда (кнопка "Download Now") или отсюда[www.nexusmods.com] (кнопка "Start download").

2. Из архива нам нужны папки DOW2_Ext, GameAssets и файл DOW2_Ext.module. Их нужно поместить в папку игры (ПКМ по игре в библиотеке - Управление - Посмотреть локальные файлы).

3. В свойства (ПКМ по игре в библиотеке - Свойства - Общие - Параметры запуска) запуска игры в Steam пишем:
-modname DOW2_Ext
P.S. Если по какой-то причине нужна оригинальная игра, удалять ничего не нужно - достаточно очистить параметры запуска.

На этом установка завершена. При запуске с модом в главном меню будет стоять космодесантник в джунглях Тифона:

Добавление возможности сброса навыков
1. В свойства запуска игры в Steam добавляем флаг "-dev", таким образом итоговые параметры будут следующими:
-dev -modname DOW2_Ext

2. Качаем готовый архив[drive.google.com] и распаковываем его в папку с игрой. Если всё сделано правильно, в папке с игрой по пути DOW2_Ext\Data\campaign должен лежать файлик tuning.lua.

3. Заходим в игру и любуемся на заветную кнопку:



P.S. Я не уверен, что метод выше будет корректно работать после обновления мода (у меня версия от 28 августа), поэтому ниже предоставлю чуть более сложный способ, но который должен сработать на любой версии мода:

1. Аналогично инструкции выше, выставляем флаг "-dev".

2. Качаем Dawn of War 2 mod tools. Из архива нужен только DoW2ToolBox, распаковываем и запускаем CopeModToolDoW2.exe.

3. В CopeModToolDoW2 открываем (Start - Open SGA) архив DOW2_Ext/Archives/DOW2_Ext_D.sga (папку DOW2_Ext мы помещали в папку с игрой при установке Ultimate Exterminatus). Далее в дереве нужно найти файл DATA/campaign/tuning.lua, нажать по нему ПКМ и выбрать Extract. Название файла должно стать красным:



4. Перейти в папку DOW2_Ext/Archives/DOW2_Ext_D, и переместить расположенную там папку DATA в папку DOW2_Ext.

5. Открываем файл DOW2_Ext\Data\campaign\tuning.lua любым текстовым редактором. Далее нужно найти "function tuning.OnTraitUnlock()" (1262 строка) и после неё вставить "Campaign_SetUIVisibility( UIV_InventoryRespecButtonPing, true )". В итоге должен получиться вот такой код:
function tuning.OnTraitUnlock() Campaign_SetUIVisibility( UIV_InventoryRespecButtonPing, true ) if Campaign_GetCampaignID() ~= "xp1" then -- add ammo type wargear to Tarkus when he gets close to the Sternguard unlock local t_ammo = {} -- table of ammo type wargear t_ammo = {
На этом всё. Заходим в игру, проверяем. При обновлении мода рекомендую повторить п. 3-5 во избежание проблем (tuning.lua в моде мог обновиться).
10 Comments
Soy Mutant 16 Oct @ 12:54pm 
Йоу, не знал, что по моему моду есть такой гайд)

От себя добавлю:

1. Есть лучший способ экстрактить файлы через Cope's Tools: использовать Start -> Open Mod вместо Open Sga - выбираешь DoW2_Ext.module и через меню слева также экстрактишь - тогда файл сразу будет в нужной папке.
Soy Mutant 16 Oct @ 12:54pm 
2. Лучше экстрактить другой файл:
- data/campaign/space_marines/goals/hidden_end_day для оригинала.
- data/campaign/xp1/goals/hidden_end_day для Хаос Райзинга.

Там в начало функции hidden_end_day.IsValid() (сразу после скобок) можно добавлять строки разблокирования кнопки респека (в файле хаос райзинга она уже есть - достаточно раскомментить удалив "--" в начале строки).
Psxhum 21 Sep @ 2:04am 
I am also seeking reliable solution for skill reset for xp2 Retribution.

I post some findings here

https://gtm.steamproxy.vip/app/56400/discussions/0/1693788384147121595/

xp2 was a rushing product, so did not find neutral solution for supporting skill reset without affecting the achievements yet.

Basically the dev team forgot to add skill reset feature or item in xp2, my guess.
Psxhum 21 Sep @ 1:59am 
For CR, there is a code in certain mission that turn off the button after Johna join the team.

Just enable the button after 1-2 mission after that and it will remains be there.

For Classic, I remember this button will always be there once enabled. (I tested this before the Anniversary Edition so it might changed somehow)

Changing lua files could even enable some classic mission into CR, like the classic warboss or Avater mission. Just for fun. It might ended put the game in unstable throught.

Good to see some dev posts even after the dow2 official forum is long gone.
Slavyan  [author] 20 Sep @ 6:08pm 
Psxhum, I tried disabling the -dev flag, in which case the button will disappear after completing the next mission.

Virus warnings are common for modding tools. On the other hand, ModDB moderators would ban them if there was a real threat. Anyway, I've posted a link to the modified tuning.lua in the guide, so you don't need to download these tools at all.
Psxhum 20 Sep @ 4:39pm 
After the Reset Skill point button is enabled, it will always be there. User could then turn off -dev mode.

It will not affect the achievements. It is for users to just get the button.

Also there is a virus warning in the tool box zip file, I would only use the 1.992 tool for now.
Slavyan  [author] 19 Sep @ 1:52am 
Psxhum, are you sure that it is safe to use vanilla tuning.lua instead of modded?
I also don't understand how your way is easier - the steps are essentially identical except for choosing the source archive of tuning.lua.
Psxhum 18 Sep @ 5:18pm 
A much easier way to enable the Skill Reset button:

1 Get the ToolBox mention above DoW2_ToolBox_1.992

2 Use the tool to open the DOW2 Sga file
\steamapps\common\Dawn of War 2\GameAssets\Archives\200_Data.sga

3 Inside the tool tree view, Right click the following lua file and Extract
\200_data\DATA\campaign\tuning.lua

4 Copy the extracted lua file to
\steamapps\common\Dawn of War 2\GameAssets\Data\campaign

5 Edit tuning.lua in notepad
function tuning.OnTraitUnlock()
Campaign_SetUIVisibility( UIV_InventoryRespecButtonPing, true )

6 Run the game with -dev parameter
Slavyan  [author] 15 Sep @ 10:10am 
Вообще не предполагается использование .bat, запуск только через Steam.
пикми 15 Sep @ 9:42am 
Нужно все время запускать через бат?