Skip to content

Scripting Language

Gabriel edited this page Jan 30, 2020 · 19 revisions

Simple

  • BeginBlock(archive) - Unpacks an archive to a temporary location. This should be used before modifying files inside archives.
  • Rename(old|new) - Renames a file.
  • RenameByExtension(location|old|new) - Renames all files with the specified extension to the new extension (must specify a directory, rather than a file).
  • Delete(location) - Deletes a file.
  • Copy(location|new|overwrite) - Copies a file to a new location, with an overwrite function.
  • EndBlock(archive) - Repacks an archive from the temporary location created by BeginBlock().

Advanced

  • WriteByte(file|offset|byte) - Writes a byte to the specified offset in the file.
  • WriteBase64(file|data) - Writes Base64 data to a binary file.
  • WriteNopPPC(file|offset) - Writes a NOP value to the specified offset at the file path.
  • ParameterAdd(file|parameter|value) - Adds a Lua parameter.
  • ParameterEdit(file|parameter|value) - Edits a Lua parameter.
  • ParameterRename(file|old|new) - Renames a Lua parameter.
  • ParameterErase(file|parameter) - Removes all instances of a parameter from a Lua file.
  • PackageAdd(file|key|event|reference) - Adds a PKG event.
  • PackageEdit(file|key|event|reference) - Edits a PKG event.
  • StringReplace(file|old|new) - Replaces a string.

Clone this wiki locally