Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/22/2022 in File Comments

  1. Oh ok, that makes a lot more sense! Nevertheless useful.
    2 points
  2. I wish I would have used this - it would have saved ages! Here's my solution: function armtohex(fullarm) progressalert("Converting edit value",false) fullhex = "" --Thanks to Enyby for the original arm hex converter I used code from: -- https://gameguardian.net/forum/files/file/2004-arm-converter/ for arm in string.gmatch(fullarm,'[^\r\n]+') do progressalert("Converting edit value",false) local addr = gg.getRangesList('libc.so') for i, v in ipairs(addr) do if v.type:sub(2,2) == 'w' then addr = {{address = v.start, flags = gg.TYPE_DWORD}} end end if not addr[1].address then print("Error occured converting arm code to hex: Failed to get address ", addr) gg.setVisible(true) os.exit() end if is64bit then --Armv8 (64bit) local old = gg.getValues(addr) addr[1].value = '~A8 '..arm local ok, err = pcall(gg.setValues, addr) local out if not ok then err = err:gsub("^.* '1': ", ''):gsub('\nlevel = 1.*$', '') print("Error occured converting arm code to hex: " .. err) gg.setVisible(true) os.exit() else out = gg.getValues(addr) out = out[1].value & 0xFFFFFFFF gg.setValues(old) if not hex then out = string.unpack('>I4', string.pack('<I4', out)) end out = string.format('%08X', out) fullhex = fullhex .. out end else --Armv7 (32bit) local old = gg.getValues(addr) addr[1].value = '~A '..arm local ok, err = pcall(gg.setValues, addr) local out if not ok then err = err:gsub("^.* '1': ", ''):gsub('\nlevel = 1.*$', '') print("Error occured converting arm code to hex: " .. err) gg.setVisible(true) os.exit() else out = gg.getValues(addr) out = out[1].value & 0xFFFFFFFF gg.setValues(old) if not hex then out = string.unpack('>I4', string.pack('<I4', out)) end out = string.format('%08X', out) fullhex = fullhex .. out end end end return(fullhex) end function hextodecimal(hex) progressalert("Converting edit value",false) --Remove spaces, then reverse bytes (ex: A1 B1 -> B1A1) oldhex = string.gsub(tostring(hex)," ","") hex = "" thisbyte = "" for letterindex = 1, #oldhex do thisbyte = thisbyte .. oldhex:sub(letterindex,letterindex) if #thisbyte == 2 then hex = thisbyte .. hex thisbyte = "" end end if not(string.sub(hex,1,2) == "0x") then hex = "0x" .. hex end return(tonumber(hex)) --[[ --thanks to ItsSC for this function (found at https://gameguardian.net/forum/topic/31634-converting-decimal-to-hex/) hex = tonumber(hex) gg.alert(tostring(tonumber(hex >= 0 and string.format("%X", tonumber(hex)) or string.format("%X", (hex~ 0xffffffffffffffff <<((math.floor(math.log(math.abs(hex))/math.log(10)) + 1) *4))),16))) return(tonumber(hex >= 0 and string.format("%X", tonumber(hex)) or string.format("%X", (hex~ 0xffffffffffffffff <<((math.floor(math.log(math.abs(hex))/math.log(10)) + 1) *4))),16)) --]] end
    1 point
  3. Script works, would be great for it to convert hex to signed 2s compliment.
    1 point
  4. Hey Mario ! i tried the slow version , the loading % is there but when i restart the game to see the changed currencies , it gets me an error ! can you PLEASE give me the encrypted values of the currencies ? i wanna do it manually , i know rr3 v8 , the values were "259200;3D;50D" , what are the new ones ?
    1 point
  5. i tried this but no luck it shows an error (same as user Whatisthis16) bluestacks , rooted , su , rr3 v9.0.1 , latest version of game guardian ! help as soon as possible pls ! and Merry Christmas ! *NOTE! why in the video the real racing 3 icon in GG doesn't have the new Valkyrie ? is it even the 9.0.1 version ?
    1 point
×
×
  • 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.