Can anyone think of a way to get the game to load missions in any order?
To view all mission in one campaign :
In Name.campaign
displayName = “Missions”
– 2 = Extra
contentType = 2
contentName = "Name"
contentOrdered = 0 – 0 = View all mission in one campaign / 1 = View only mission complete by player.
contentChooseText = "Name of Campaign"
contentThumbName = "Name"
contentThumbDesc = "Desc"
contentSort = 0.5 – Default is 1.0, so 0.5 will appear before others.
contentRules = "singleplayer"
ExtFilter = “name_campaign,campaign_name” – etc …
The player fleet needs to remain persistent between missions. I.e. if you build a scout it should appear in your fleet when you load subsequent missions.
When the mission is ended, game saves automatically the fleet, and when the next mission is loading, if you have SobGroup_LoadPersistantData(’‘ShipType’’) in your next mission, game load this persistx.lua file locate in profiles folder. If you don’t have ANY persist file, when players play mission 5 before complete mission 4, you need to make persist file into a campaign folder.
Follow this way :
In Name.campaign :
Use this line into the mission need to have persist file in case of player don’t have play previous mission,
usepersist = “data:leveldata//campaign//Name//Mission_0X//startingplayerfleet.lua”,
usedefaultpersist = 1,
In this startingplayerfleet.lua, you can use the structure of persist file, and add ship you want or you think player needle at the beginning of this mission (include RU’s / Research).
This file has automatically bypassed by the persistx.lua file, generate with previous mission.
Player don’t play mission X, and play mission X + 1 > load of startingplayerfleet.lua ;
Player play mission X, and play mission X + 1 > load of persistx.lua ;
If I was able to help.
And if I understood well.

