One script to run them all…
-
I’m starting to break up our mod into separate scripts, one for each file modded, or one for each feature modded.
Either way, I occasionally run into a problem where one script won’t run because the item it’s looking for hasn’t yet been modded by another script.
Is there a way to have script.xml run the other scripts in a particular order? The method=run isn’t recognized by FLMM.
R
-
They run in alpha-numerical order.
-
could it be that easy…?
-
All right, I rediscovered Aargh’s toolkit. I forgot about it.
That’s helped a bunch but I’m having some confusion here.
I’d like to add this line to the following sections using the sectionappend command. It only adds the line to the last section (bw_freighter)
<data file=“data\Ships\shiparch.ini” method=“sectionappend”>nickname = li_freighter
<source>
fuse = drop_cargo_fuse, 0.000000, 1nickname = br_freighter
<source>
fuse = drop_cargo_fuse, 0.000000, 1nickname = ku_freighter
<source>
fuse = drop_cargo_fuse, 0.000000, 1nickname = rh_freighter
<source>
fuse = drop_cargo_fuse, 0.000000, 1nickname = pi_freighter
<source>
fuse = drop_cargo_fuse, 0.000000, 1nickname = bw_freighter
<source>
fuse = drop_cargo_fuse, 0.000000, 1</data>Can you NOT do multiple sectionreplaces in one batch?
Also, the following does not work at all. I’m guessing that it’s just not workable with FLMM
;Fix ‘space herpes’ bug where invisible loot can be tractored in when Player Loot mod is activated
<data file=“data\Ships\loadouts.ini” method=“sectionreplace”>[Loadout]
nickname = fc_ou_bw_elite_loadout02<dest>equip = fc_ou_gun01_mark03, HpWeapon05
cargo = fc_ou_gun01_mark03_ammo, 8</dest>
<source>
equip = fc_ou_gun01_mark03, HpWeapon05[Loadout]
nickname = MSN08_Ozu_Reinforcement<dest>equip = fc_bd_gun01_mark02, HpWeapon06
cargo = fc_bd_gun01_mark02_ammo, 20</dest>
<source>
equip = fc_bd_gun01_mark02, HpWeapon06[Loadout]
nickname = MSN09_Ozu<dest>equip = fc_bd_gun01_mark02, HpWeapon06
cargo = fc_bd_gun01_mark02_ammo, 20</dest>
<source>
equip = fc_bd_gun01_mark02, HpWeapon06</data>Is my syntax incorrect, or is this just not the way to do this?
-
… afaik you need identical ‘targets’ to work on multiple entries.
That’s a small script, i used 2 implement clan reputations
<data file=“data\initialworld.ini” method=“sectionappend” <strong=“”>numTimes=“-1”>
[Group]
;–-wtsclan<source>
rep = -0.91, clan_005;–Clan-Rep -</data>If you go for
[Ship]
with your 1st script, it might work.
And I doubt, you ll get the 2nd one 2 work.
-
Well, I’m not sure Aargh is correct about the numerical order thing…
I have two scripts. One is named 0210_shiparch_1 and the second is named 0210_shiparch_2. The second one modifies stuff that’s modified in the first. It fails though because apparently the first script isn’t run yet.
Is my naming convention OK?
follow up edit:
Yeah, I’m going to have to say that so far numerical order does nothing when it comes to the order in which the scripts are run.For example, 0210_market_ships.xml does NOT seem to run before 0220_market_ships.xml and 0210_shiparch_1.xml does NOT run before 0210_shiparch_2.xml.
Changing the names to something like 0210_A_shiparch.xml and 0210_B_shiparch.xml also does not work.
Can anyone steer me straight?Thanks in advance.
R