Remove commander upgrade limit.

Everything about mods can be found here.

Moderator: Morax

Remove commander upgrade limit.

Postby Mirrowel » 04 Nov 2017, 20:33

I remeber when i played the game about 2-3 years ago , i had a mod that removed commander upgrade limit per part. You had the ability to build any upgrade you want - making the fully upgraded ACU a possibility. Combined with global commanders mod this was fun.
Now because i could not find any info on how to remove that limit i am asking here.
Mirrowel
 
Posts: 1
Joined: 04 Nov 2017, 20:27
Has liked: 0 time
Been liked: 0 time

Re: Remove commander upgrade limit.

Postby Uveso » 06 Nov 2017, 02:59

Mirrowel wrote:Now because i could not find any info on how to remove that limit i am asking here.


Well, to change/modify the commander upgrade you have to change the commander itself and some gamefunctions:

File: lua/sim/Unit.lua
Modify the function "OnWorkBegin" and remove the "Prerequisite" code at line ~2861
Also remove the failcheck for already used slots in line ~2866

File: lua/ui/game/construction.lua
Modify the function "OrderEnhancement" to prevent removing of already installed enhancements in line ~1228
Modify the function "OnClickHandler". Search for "item.type == 'enhancement'". Then patch the icon management. Line 1482-1523

This will remove the buildlimitation.

greetings, Uveso.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest