Dear modders,
I see a lot of you extensively editing the db tables ( a lot of work!) to stop units from upgrading. It is a lot of work and ofcourse every update will destroy your mod or require you go to work again. Furthermore you will have compatibility issues with other unit changing mods.
So if you just don't want units to upgrade but also not be aible to recruit the older units, while still keeping them in your forces, the easist way is to change this:
-------------------------------
-- upgrade_unit
-------------------------------
upgrade_unit = ui_override:new(
"upgrade_unit",
function()
scripting.game_interface:override_ui("disable_upgrade_unit", true);
end,
function()
scripting.game_interface:override_ui("disable_upgrade_unit", false);
end
),
Last entrene to "true".
campaigns//script/lib/lib_campaign_ui.lua
If you do it this way it will be compatible with every mod and you never have to change anything again (brr all those db entries...) or bother about future updates.
Kind regards