Jump to content

circleous

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by circleous

  1.  

    Just now, Enyby said:

    Hat can be red. but it doesn't say anything useful about people below it. Same with file. extension of file and file internal structure AKA format not connected. You can rename .txt to .exe but this not make text file executable.

    I know about this file format thingy, while I'm reversing a crackme, need to dump some memory region and analyze it, you can't see file name but only structure, yep. Well, I've dealt with a silly C library enforcing the full path name and file format to follow the docs style. Thats where my faithful to example in docs begin, lol.

  2. Just now, ankit007 said:

    data = gg.prompt({[1]='Enter Your Score'}, {[1]''})

    prompt(table, [table, [table]])

    Default value for input table is nil, you don't need to add [1]''

  3. 3 hours ago, Enyby said:

    Do not make sense. Format of file can be any.

    :/ I just started learning LUA this morning. Community Documentation said File format was .lua. dont bully plox. Thanks for info tho.

    But the table.load and table.save isn't usable right? Tried it many times, but seems like its just an empty function (nil)

  4. Spoiler
    
    --[[
      MIT License
    
      Copyright (c) 2017 Kyra Sierra
    
      Permission is hereby granted, free of charge, to any person obtaining a copy
      of this software and associated documentation files (the "Software"), to deal
      in the Software without restriction, including without limitation the rights
      to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      copies of the Software, and to permit persons to whom the Software is
      furnished to do so, subject to the following conditions:
    
      The above copyright notice and this permission notice shall be included in all
      copies or substantial portions of the Software.
    
      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      SOFTWARE.
    ]]--
    
    gg.alert('Grand Prix Story 2 stats changer hack by [circleous]')
    
    local origData = gg.prompt(
      {'ID', 'Strength', 'Agility', 'Tech', 'IQ', 'Anlys', 'Appl'},
      {[1]='PUT UNIQUE ID'},
      {[1]='text'}
    )
    
    if origData[1] ~= nil then
      local file = io.open(gg.EXT_FILES_DIR..'/GPS2_stats_backup.lua', 'w')
      io.output(file)
      for i,data in pairs(origData) do
        io.write(data..'\n')
      end
      io.close(file)
      gg.alert('Backup stats data saved to '..gg.EXT_FILES_DIR..'/GPS2_stats_backup.lua')
    end
    
    local replaceData = gg.prompt({ 'Replace All' })
    
    gg.toast('Finding eggs...')
    
    gg.setRanges(gg.REGION_ANONYMOUS)
    
    if replaceData[1] then -- REPLACE ALL -- TODO: Replace by data ID
    	gg.toast('Crushing the eggs...')
    	gg.editAll(''..replaceData[1]..'', gg.TYPE_DWORD)
    else
    	gg.toast('ERROR: No value given in Replace All')
    end
    
    gg.alert('Woot! SUCCESS.')

     

    
    $ cat /sdcard/Android/data/com.wxgrgyjnzvqbddnjcqwf/files/GPS2_stats_backup.lua
    ANNE
    875
    872
    869
    867
    867
    869
    Spoiler

    zb61K.jpg

    OAgDC.jpg

    i6Jkf.jpg

    An example for File I/O operation still primitive, but you could use your own wrapper for that. since GG will add lua import in future so that table.save and table.load can be used thus the complex File I/O wrapper somewhat not needed.

  5. Finally. Now this make GG more powerful. Any documentation to GG script library yet?

    EDIT: I guess the first post is enough.

  6. Okay, this is correction for my reply at that forum. Many games store Game scene code at encypted lua files and Player control at sharedlib. This isnt applied to all games. And if the symbols are stripped from sharedlib, you need gdb/gdbserver to find correct offset. :happy:

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.