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.
  • DecryptXEX(location) - Decrypts an XEX (Xbox 360 executable).
  • DecompressXEX(location) - Decompresses an XEX (Xbox 360 executable).
  • 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.¹

1 - works recursively (if no file name is specified and the path exists, it will process the function for every file in the directory).

Examples

NOTE: core is automatically replaced with the detected system (xenon/ps3).

Simple

  • BeginBlock("core\archives\player.arc")
  • Rename("core\sound\HD_SEGA.wmv"|"core\sound\bruh.wav")
  • RenameByExtension("core\sound"|"*.xma"|".xma_back")
  • Delete("core\sound\stg_twn_shop.xma")
  • Copy("core\sound\shadow_theme.xma"|"core\sound\theme_shadow.xma"|true)
  • EndBlock("core\archives\player.arc")

Advanced

  • WriteByte("default.xex"|0xB10DB3|0x29)
  • WriteBase64("core\shader\std\BurnoutBlurFilter.fxo"|"soMEBasE64stRINgtHAtIsTOoLoNGtOfiTINThIsexAMPLe==")
  • WriteNopPPC("default.xex"|0x217710)
  • DecryptXEX("default.xex")
  • DecompressXEX("default.xex")
  • ParameterAdd("core\player\snow_board.lub"|"c_hair"|"{ "SomeHairBone" }")
  • ParameterEdit("core\player\amy.lub"|"c_jump_run"|"9 * (meter / sec)")
  • ParameterRename("core\player\silver.lub"|"c_jump_run"|"c_jump_banana")
  • ParameterErase("core\player\silver.lub"|"c_jump_banana")
  • PackageAdd("core\player\sonic_new.pkg"|"motion"|"some_event"|"player/sonic_new/blah.xnm")
  • PackageEdit("core\player\snow_board.pkg"|"motion"|"against"|"player/sonic_new/so_brd_collision_Root.xnm")
  • StringReplace("core\player\sonic_new.lub"|"other_module_sonic_homing"|"other_module_blaze_homing")
Clone this wiki locally