Will there be Modding support for Tournaments and Front end?

 

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.

1,931 views 5 replies
Reply #1 Top

WOW you caught a nice fish there!;)

Yes, as it seems it limits tournament mode to only some mods, which i assume are UI only mods.

But what if we trick demigod into thining that a non-UI only mod is actually an UI only mod, do u think this is possible?

Reply #2 Top

i dont think that you can trick there anyhow. there is a whole folder of ui related luas and they propably made only that folder hookable for ui mods.

what do you want to change about the ui for tournament mode? what are you trying to do?

Reply #3 Top

what do you want to change about the ui for tournament mode? what are you trying to do?
End of quote

LOL i am not trying to do anything. Ptarth is. it would be good for people that play much Single player to be able to use mods in Tournament.

Reply #4 Top

@Morpheas, I tried to flag your mod as UI only and play a tournament and the game did not hook your favor items files, so it must have some extra logic to only hook UI related files when that is on.   The mana/text UI mod and hover health/mana mod work fine in a tourny (they are UI only mods).

 

@derog

I personally like tournaments to get some easy variety, but want to be able to get gameplay mods in (like morpheas's favor balance mod and the TB fire on the move fix).

If thats not possible then i would like to mod the lobby to add some extra buttons to make prepping a skirmish game faster:  auto fill at a hard or nightmare, or a random mix off levels. 

Without mod support in tournaments I'd probably try to add a button to randomize the game type/win condition.

 

 

Reply #5 Top

@Morpheas, I tried to flag your mod as UI only and play a tournament and the game did not hook your favor items files, so it must have some extra logic to only hook UI related files when that is on. The mana/text UI mod and hover health/mana mod work fine in a tourny (they are UI only mods).
End of quote

Well at least it was worth trying he he:grin: