Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Node patching

  • Last UpdatedDec 06, 2023
  • 1 minute read

The node patching feature makes modifications by using a file called patch.xml to override the parameter settings of one or more nodes.

This is a basic method. It does not support more advanced changes, such as the following:

  • Does not allow to modify logic.

  • A route cannot be undone.

  • A command script cannot be modified or changed.

  • A scheduler can't be updated.

Use Node patching feature

  • Create the patch.xml file and place it in the main folder.

Create the patch.xml file

Create the file by hand or use the Debug tool.

  • Use Debug nodes to add entries to the patch file.

  • Use Debug nodes to overview and edit values and to save the file.

How it works

The patch file settings are applied at the end of the loading process, so they override what's inside the packed game data.

This solution is good to change the text displayed by an item, to move, or resize a 2D interface, or to change a font resolution and things like this.

Code example

This is an example of the syntax for patch.xml.

<?xml version="1.0" encoding="utf-8"?>

<dictionary>

<item key="T_10060B.displayValue" value="'[?@XV_10200_state.value@==1,Ready,]'" />

<item key="start_XV_10200.displayValue" value="'[?@XV_10200_state.value@==1,Ready,]'" />

<item key="XV_10200_state.displayValue" value="'[?@XV_10200_state.value@==1,Ready,]'" />

<item key="stop_XV_10200.displayValue" value="'[?@XV_10200_state.value@==1,Ready,]'" />

</dictionary>

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in