Given I have more free time now, I got back to the game to check what's new.
Decided to update my mods to the newest beta version of the game.
When working on my Titurel engine mod, I noticed a strange oddity with either replace or patch_macros in the current version of the game.
In the past using:
Code: Select all
<replace sel="/macros/macro[@name='units_size_xl_cargo_hauler_2_macro']/connections/connection[@ref='con_engine_l_01']">
<connection ref="con_engine_xlt_01">
<macro ref="engine_size_xl_cargo_hauler_02_macro" connection="Connection01"/>
</connection>
</replace>
It results with double the engines spawned for each ship.
I also tried to remove to confirm this behavior - what happens then is it correctly removes all engines, but while not being visible the old ones still exist in the save file, and work!
Can be confirmed by opening the save file and checking also there.
Does anyone know if something has changes in the recent updates to the game with how patch_macros work now? I have been successfully using this method in older versions and engines were properly changed without leaving the old ones in save file.
Thanks for any tips!