As far as I can tell tournaments only activate the UI_only mods.
lua\SinglePlayerLaunch.lua seems to handle the tournament launch?
The file description is:
# logic and defaults for launching non-skirmish sessions
It has some hard codes for tournament win conditions, which would be nice to change.
It calls this function and passes in a value:
function GetCampaignMods(scenario)
local r
if scenario.type == 'campaign' then
r = GetGameMods { ['6AAFE20A-E851-11DB-B8BE-ECC755D89593']=true } <--- what is this? ID/code is never used anywhere else in LUA. Believe it must be reducing the active mods to UI only?
else
r = GetGameMods()
end
return r
end
Called:
228 sessionInfo.scenarioMods = import('/lua/mods.lua').GetCampaignMods(sessionInfo.scenarioInfo)
310 sessionInfo.scenarioMods = import('/lua/mods.lua').GetCampaignMods(scenario)
I'd also like to be able to add buttons to the front end, but right now mods are only 'hooked' on a game launch.