Here's the code in Lua so you can execute it from within Cheat Engine.
Just change the game path to match your game.
Then manually rename the original and decrypted files.
local input = io.open("E:/Games/Good Company/manifest/gamedata.json")
local output = io.open("E:/Games/Good Company/manifest/gamedata.decrypted.json", "w")
input:read(2) -- skip first two bytes
while true do
local chars = input:read(2048)
if chars == nil then
break
end
for i = 1, #chars do
local byte = chars:byte(i)
byte = bXor(byte, 5)
local char = string.char(byte)
output:write(char)
end
end
input:close()
output:close()
print("done")
How to use this cheat table?
Install Cheat Engine
Double-click the .CT file in order to open it.
Click the PC icon in Cheat Engine in order to select the game process.
Keep the list.
Activate the trainer options by checking boxes or setting values from 0 to 1
Just pretend that there's a "byte[]" at the start of the pseudocode, making "asciiBytes" literally an array of bytes.
Can't provide you with javacode though, can't be arsed to look up all the wrapper classes to read a byte or two from a file.
But as I wrote before, you have to open the file in binary mode, not ascii-mode, and read the file byte for byte.