Campaign / Scenario fail to reload machine states scripts

starmindfr shared this bug 5 years ago
Outdated

Hello

Even in new release 189 it seems not possible to publish scenario / campaigns with a complete level script + machine state scripts.

First run will find both level script and machine scripts, run them fine.

BUT when saving game and reloading, game will not find again the machines scripts.


Tried with a basic scenario published from scenario TAB, but also added the wholes scripts to the Mission World as separate mod. still game look after them in /content/ main game folder and not in Mods.


So need a way to have machines states scriptes path fixed OR documentation on what path to set and Where so players could download campaigns / scenarios and play them + save and reload

Replies (3)

photo
2

figured out "how to" but need to be documented somewhere maybe :


You need to have both in sbc the customized blocks:

<MyObjectBuilder_SessionComponent xsi:type="MyObjectBuilder_VisualScriptManagerSessionComponent">

<FirstRun>true</FirstRun>

<LevelScriptFiles>

<FilePath>Scenarios\xxx\Scripts\Mission1\levelscript.vs</FilePath>

</LevelScriptFiles>

<StateMachines>

<FilePath>Scenarios\xxx\Scripts\Mission1\Machine1.vsc</FilePath>

</StateMachines>

<ScriptStateMachineManager>

<ActiveStateMachines />

</ScriptStateMachineManager>


AND this part :


<MyObjectBuilder_SessionComponent xsi:type="MyObjectBuilder_CampaignSessionComponent">

<CampaignName>xxx</CampaignName>

<ActiveState>Mission1</ActiveState>

<IsVanilla>false</IsVanilla>

<Mod />

<LocalModFolder>xxx</LocalModFolder>

</MyObjectBuilder_SessionComponent>

photo
1

first code block is incomplete the full one is then

<MyObjectBuilder_SessionComponent xsi:type="MyObjectBuilder_VisualScriptManagerSessionComponent">

<FirstRun>true</FirstRun>

<LevelScriptFiles>

<FilePath>Scenarios\xxx\Scripts\Mission1\levelscript.vs</FilePath>

</LevelScriptFiles>

<StateMachines>

<FilePath>Scenarios\xxx\Scripts\Mission1\Machine1.vsc</FilePath>

</StateMachines>

<ScriptStateMachineManager>

<ActiveStateMachines />

</ScriptStateMachineManager>

</MyObjectBuilder_SessionComponent>

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file