GameSpector

Community site

GameSpector Home and Downloads

GameSpector 7.0 coming soon (with major change)

General questions and conversations

GameSpector 7.0 coming soon (with major change)

Postby bbadmin » Wed Apr 02, 2014 4:57 pm

GameSpector 7.0 is coming (it is currently being beta-tested).

Major change:

XML patches no more! XML patch format has proven to be confusing and difficult to manage. GameSpector 7.0 uses a brand new patching engine and GSL (GameSpector Language) interpreter that lets you write simple and readable patches. You can even edit/write patches in GameSpector!

GSL patches look like this:

Typical patch:
Code: Select all
Patch {
  title          : "Sample patch"
  author         : "patch writer"
  revision       : 2
  target_package : "com.sample.package.name"
  target_version : 123
  Apply {
    FileReplaceHex("00123456:AA:BB")
  }
  Remove {
    RestoreFiles()
  }
}


More comprehensive example
Code: Select all
Patch {

  title          : "This patch does nothing useful"
  author         : "patch writer"
  revision       : 2
  target_package : "com.sample.package.name"
  target_version : 123

  Apply {

    sample_message : "GSL supports both global and local variables"

    Message("Title", sample_message)
 
    OpenZip("asasd.zip")
    SelectFile("files/sample.bin")
    FileCheckSize(12345)
    FileReplaceStr(0x12345, "Old String", "new string")
    CloseZip(0)

    SetProgress("Display this progress messaage")

    SetCpu("x86") // actions below will only be executed for selected CPU
    SelectFile("") // when no file is selected, package DEX cache is used
    FileReplaceAllStr("Old String", "new string")

    SetCpu("all") // actions below will be executed for any CPU

    SetFailOnError(0)

    SelectFile("files/sample2.bin")
    FileReplaceHex("00123456:AA:BB, 0054321:00??11??33:44??22??99")
    FileReplaceAllHex("AABBCCDD", "BBCCDDAA")

    SelectFile("files/sample3.txt")
    FileSedScript("s/rank=1/rank=99/g")
 
    ShellExec("cat /proc/cpuinfo")
 
    SelectFile("databases/dbsample.sqlite")
    FileQuery("update preferences set money=99999")

  }

  Remove {
   RestoreFiles()
  }

}



You will need to unpatch everything and remove GameSpector 6.0 before installing 7.0
bbadmin
Site Admin
 
Posts: 55
Joined: Tue Aug 07, 2012 8:20 pm

Return to General



Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron