Update Using FScript

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

@@ -22,32 +22,32 @@ command context {
### Commands
`FSCRIPT [version]`
`FSCRIPT [version]`
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.
 `DELETE`
 Deletes the file.
`DELETE`
Deletes the file.
&emsp;`[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.
`[XSTR|STR] [append|delete|replace] [find] <replace> <offset> <limit>`
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]`
&emsp;Edits the file binary. `offset` is the integer offset to start editing at. `byte` is the hexadecimal representation of your data.
`BINEDIT [offset] [byte]`
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]`
&emsp;Creates or deletes an XML element in the file. See [XML Selector](#user-content-xml-selector) for selector help.
`XML [create|delete] [context:selector]`
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>`
&emsp;Modifies an attribute or inner text of an element. See [XML Selector](#user-content-xml-selector) for selector help.
`XML [modify] [context:selector] SET [value|attribute] [text1] <text2>`
Modifies an attribute or inner text of an element. See [XML Selector](#user-content-xml-selector) for selector help.
&emsp;`XML [merge] [file]`
&emsp;Merges the data from another XML into the file.
`XML [merge] [file]`
Merges the data from another XML into the file.
&emsp;`PATCH [file]`
&emsp;Runs a unified patch on the file.
`PATCH [file]`
Runs a unified patch on the file.
### XML Selector
The XML selector is a simple string separated by periods. The following document will be used as an example.