Mod for build storage transfer?
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Mod for build storage transfer?
Anyone aware of a mod that will auto transfer wares from a station to the build storage of that station (or even another you may own)? I was using variants of the Mule mod but kept running into issues. Any pointers would be greatly appreciated and I thank you in advance for your reply.
Re: Mod for build storage transfer?
Not sure there is a mod for that but if you want to give it a go coding it yourself then this sniplet
should be all you need to order your traders to deliver the wares required.
Cheers Euclid
Code: Select all
<find_object name="$MyStations" space="player.galaxy" multiple="true" class="class.buildstorage" owner="faction.player" />
<do_if value="@$MyStations">
<do_all exact="$MyStations.count" counter="$i">
<set_value name="$BuildModule" exact="$MyStations.{$i}.buildmodule"/>
<set_value name="$BuildWares" exact="$BuildModule.buildprocessor.neededsequenceresources.list"/>
<do_all exact="$BuildWares.count" counter="$k">
<add_cargo object="$MyStations.{$i}" ware="$BuildWares.{$k}" exact="$BuildModule.buildprocessor.neededsequenceresources.{$BuildWares.{$k}}.count"/>
</do_all>
</do_all>
</do_if>
Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
Re: Mod for build storage transfer?
Well no time to learn like the present, thank you sir! Much appreciated!euclid wrote: ↑Wed, 17. Aug 22, 01:05Not sure there is a mod for that but if you want to give it a go coding it yourself then this snipletshould be all you need to order your traders to deliver the wares required.Code: Select all
<find_object name="$MyStations" space="player.galaxy" multiple="true" class="class.buildstorage" owner="faction.player" /> <do_if value="@$MyStations"> <do_all exact="$MyStations.count" counter="$i"> <set_value name="$BuildModule" exact="$MyStations.{$i}.buildmodule"/> <set_value name="$BuildWares" exact="$BuildModule.buildprocessor.neededsequenceresources.list"/> <do_all exact="$BuildWares.count" counter="$k"> <add_cargo object="$MyStations.{$i}" ware="$BuildWares.{$k}" exact="$BuildModule.buildprocessor.neededsequenceresources.{$BuildWares.{$k}}.count"/> </do_all> </do_all> </do_if>
Cheers Euclid