[Help] Remove write_to_logbook from aiscript

The place to discuss scripting and game modifications for X4: Foundations.

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

Gen.d.Pz.Tr.Seb
Posts: 39
Joined: Sun, 9. Jan 05, 18:53
x4

[Help] Remove write_to_logbook from aiscript

Post by Gen.d.Pz.Tr.Seb » Tue, 27. Jun 23, 15:37

I would like to get rid of the
<write_to_logbook category="general" title="$title" faction="$inspector.owner" text="$text + '\n' + {1001, 9322} + {1001, 120} + ' ' + $responsename"/>
line in aiscripts/lib.respond.inspected.xml.

How do I do that with a diff?

I assume it has to look something like this

<?xml version='1.0' encoding='utf-8'?>
<diff>
<replace sel="/aiscript/attention[@min='unknown']/actions/ ????? ">
</replace>
</diff>

but I don't quite understand how I specify the command and with what I replace it with. Just leave it empty and it is gone?
Iucundi acti labores

User avatar
Dj_FRedy
Posts: 237
Joined: Mon, 27. Jun 11, 05:58
x4

Re: [Help] Remove write_to_logbook from aiscript

Post by Dj_FRedy » Tue, 27. Jun 23, 16:43

Use the 'code display' BBCode format to insert your code, this way it will be more readable by anyone reading your post.
There is a guide on how to patch in the Tutorials and Resource section: viewtopic.php?f=181&t=402382#:~:text=%5 ... 20theqmann
If you want to remove, I would use 'remove'. This removes the content:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
    <remove sel="//write_to_logbook"/>
</diff>
In this case '//' can be used since it is the first match as well as the only one.
"All my contributions to the Technical Support and Public Beta Feedback sections will be concise and to the point, no diatribes, that's what the other sections are for".
Thank you for your efforts.

Gen.d.Pz.Tr.Seb
Posts: 39
Joined: Sun, 9. Jan 05, 18:53
x4

Re: [Help] Remove write_to_logbook from aiscript

Post by Gen.d.Pz.Tr.Seb » Tue, 27. Jun 23, 17:09

Thanks, didn't format as it was only a few lines and all except for one were boilerplate. Will use it in the future.
Iucundi acti labores

Return to “X4: Foundations - Scripts and Modding”