Space specific is recalled by the tag extension="'ego_dlc_pirate'", or whatever dlc. This allows the dlc to select only its sectors. Problem is I added more sectors and in general, when patching a dlc, this tag creates a pletora of problem if not removed.
If basic space is called by space="player.galaxy", dlc's is called with a <find_sector name="DLCNameSectors"...and the above extension="'ego_dlc_xxx'"
If you keep this link to dlc's space, patching will not link to any space and the missions get bugged.
So I added a simple string to redirect the space to a specified list of sectors. Example:
Code: Select all
<!--new string-->
<set_value name="$PirateSectors" exact="[macro.cluster_500_sector001_macro, macro.cluster_500_sector002_macro, macro.cluster_500_sector003_macro, macro.cluster_501_sector001_macro, macro.cluster_501_sector002_macro, macro.cluster_502_sector001_macro, macro.cluster_502_sector002_macro, macro.cluster_503_sector001_macro, macro.cluster_503_sector002_macro, macro.cluster_504_sector001_macro]"/>
<!--end-->
This works, but not always. Works with Terran and Split dlc, I have no errors, but somehow is not accepted by TOA and KE for some parts.
The log tells that some cue can not find the space. So I tried to repeat the <set_value name="$PirateSectors" etc. at the beginnin of each action, still the space is not recognized. I also added the space="player.galaxy" that is not there when calling the space from a dlc, but they still resist.
There is no error in the patching, no duplicate or missin directory. The errors is at the level of the final document the engine creates after patching. Here an example of the log
Code: Select all
[=ERROR=] 1.03 Error in MD cue md.Setup_DLC_Pirate.SetupAuroraCasino: Invalid space
* Expression: $PirateSectors
* Action: <find_station>, line 540
In Setup_DLC_Pirate I've patched with this line:
Code: Select all
<replace sel="/mdscript/cues/cue[@name='X4ep1_Prelude_Setup']/cues/cue[@name='SetupAuroraCasino']/actions/find_sector[@name='$Windfall4Sector']">
<find_sector name="$Windfall4Sector" macro="macro.cluster_503_sector001_macro" space="player.galaxy" comment="Windfall IV"/>
</replace>
Code: Select all
<find_sector name="$Windfall4Sector" macro="macro.cluster_503_sector001_macro" extension="'ego_dlc_pirate'" comment="Windfall IV"/>
Even if I patch the entire actions, it still gives errors.
This the full ORIGINAL <actions></actions>:
Code: Select all
<actions>
<find_sector name="$Windfall4Sector" macro="macro.cluster_503_sector001_macro" extension="'ego_dlc_pirate'" comment="Windfall IV"/>
<find_station name="$AuroraCasino" space="$PirateSectors" godstationentry="'pirate_landmark_02'" required="true"/>
<set_value name="md.NPC_Instantiation.Instantiation.$DockareaAlliedFactionOverrides.{$AuroraCasino}" exact="[
faction.scaleplate, faction.loanshark, faction.argon,
faction.antigone, faction.hatikvah, faction.teladi]"/>
<signal_objects object="player.galaxy" param="'init station'" param2="$AuroraCasino" param3="false"/>
<!-- Add persistent Casino room -->
<get_room_definition macro="$CasinoCorridorMacro" doors="$ResultDoors" race="$AuroraCasino.owner.primaryrace" tags="tag.corridor"/>
<create_dynamic_interior interiorname="$CasinoInterior" corridorname="$CasinoCorridor" roomname="$CasinoRoom" object="$AuroraCasino" room="macro.room_gen_casino_01_macro" corridor="$CasinoCorridorMacro" name="'{20007,1341}'" persistent="true"/>
<run_actions ref="md.NPC_Instantiation.Add_Casino_Workers">
<param name="ActorCue" value="this"/>
<param name="Room" value="$CasinoRoom"/>
</run_actions>
</actions>