[Help] new patch_macro, any info?

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

UnknownMod
Posts: 6
Joined: Sat, 13. Dec 14, 01:13

[Help] new patch_macro, any info?

Post by UnknownMod »

hello,

does anyone have any info on how the new patch_macro command in beta 3 works?

many thanks
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13489
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

Hi UnknownMod,

I'm not sure about beta 3 since we are at RC3 atm but this is what you can find in the description:

Code: Select all

<xs:element name="patch_macro">
        <xs:annotation>
          <xs:documentation>
            Patch an object based on its macro, to add components that may be missing when loading a savegame. This action is only required by extensions and should normally only be used when loading a savegame
            in which the extension was not active yet. The script is responsible for finding the objects, usually ships or stations, that need patching.
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attributeGroup ref="action" />
          <xs:attribute name="object" type="object" use="required" />
        </xs:complexType>
      </xs:element>
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
UnknownMod
Posts: 6
Joined: Sat, 13. Dec 14, 01:13

Post by UnknownMod »

yea I just updated mine,

that's the same info I have, grabbed from common

it doesn't seem to matter what I try, I cant seem to get this to work - ill keep playing with it see what results I get, its a shame really because I have a feeling this command could come in very handy, not only for its intended purpose of patching an existing savefile.

cheers
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

i currently abuse it for my techdemo for dynamic ship loadouts (this command also re-inits the weaponcycle which is messed up enough for the game to crash when changing the loadout) and for this purpose it works splendid :)

can you give us a code snippet of how you want to use it? thats easier to debug than guessing.
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Return to “X Rebirth - Scripts and Modding”