Update Using FScript

Brett
2025-05-14 01:14:10 -04:00
parent 6fb18178bf
commit 332cc981a8

@@ -22,32 +22,32 @@ command context {
### Commands ### Commands
`FSCRIPT [version]` `FSCRIPT [version]`
Defines the version of FScript. This is for future backwards compatibility. Defines the version of FScript. This is for future backwards compatibility.
`FILE [context:relative-path]` `FILE [context:relative-path]`
Opens a file under the relative-path. In the case of Firestar, this is under the temporary deployment path. Opens a file under the relative-path. In the case of Firestar, this is under the temporary deployment path.
 `DELETE` `DELETE`
 Deletes the file. Deletes the file.
&emsp;`[XSTR|STR] [append|delete|replace] [find] <replace> <offset> <limit>` `[XSTR|STR] [append|delete|replace] [find] <replace> <offset> <limit>`
&emsp;Finds, appends to, or replaces text in a file. `offset` determines the found index to start with, and `limit` determines the maximum to find. STR is case-sensitive while XSTR is not. Finds, appends to, or replaces text in a file. `offset` determines the found index to start with, and `limit` determines the maximum to find. STR is case-sensitive while XSTR is not.
&emsp;`BINEDIT [offset] [byte]` `BINEDIT [offset] [byte]`
&emsp;Edits the file binary. `offset` is the integer offset to start editing at. `byte` is the hexadecimal representation of your data. Edits the file binary. `offset` is the integer offset to start editing at. `byte` is the hexadecimal representation of your data.
&emsp;`XML [create|delete] [context:selector]` `XML [create|delete] [context:selector]`
&emsp;Creates or deletes an XML element in the file. See [XML Selector](#user-content-xml-selector) for selector help. Creates or deletes an XML element in the file. See [XML Selector](#user-content-xml-selector) for selector help.
&emsp;`XML [modify] [context:selector] SET [value|attribute] [text1] <text2>` `XML [modify] [context:selector] SET [value|attribute] [text1] <text2>`
&emsp;Modifies an attribute or inner text of an element. See [XML Selector](#user-content-xml-selector) for selector help. Modifies an attribute or inner text of an element. See [XML Selector](#user-content-xml-selector) for selector help.
&emsp;`XML [merge] [file]` `XML [merge] [file]`
&emsp;Merges the data from another XML into the file. Merges the data from another XML into the file.
&emsp;`PATCH [file]` `PATCH [file]`
&emsp;Runs a unified patch on the file. Runs a unified patch on the file.
### XML Selector ### XML Selector
The XML selector is a simple string separated by periods. The following document will be used as an example. The XML selector is a simple string separated by periods. The following document will be used as an example.