Good Company [Steam]

Upload your cheat tables here (No requests)
Zanzer
RCE Fanatics
RCE Fanatics
Posts: 1131
Joined: Fri Mar 03, 2017 10:48 pm
Reputation: 3803

Re: Good Company [Steam]

Post by Zanzer »

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.

Code: Select all

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?
  1. Install Cheat Engine
  2. Double-click the .CT file in order to open it.
  3. Click the PC icon in Cheat Engine in order to select the game process.
  4. Keep the list.
  5. Activate the trainer options by checking boxes or setting values from 0 to 1

malinchoo2
Expert Cheater
Expert Cheater
Posts: 55
Joined: Sat Sep 30, 2017 6:00 pm
Reputation: 4

Re: Good Company [Steam]

Post by malinchoo2 »

can someone add instant crafting please?

fakerlol
Novice Cheater
Novice Cheater
Posts: 17
Joined: Sat Mar 17, 2018 4:01 am
Reputation: 14

Re: Good Company [Steam]

Post by fakerlol »

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.

dotafnaf
Noobzor
Noobzor
Posts: 7
Joined: Thu Mar 19, 2020 3:24 pm
Reputation: 3

Re: Good Company [Steam]

Post by dotafnaf »

Thanks guys.

Here's what I've done in Java. Now time to modify the data :D

import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;

public class Main{
public static void main(String args[]) {
File file = new File("C:\\Users\\Admin\\Desktop\\test.txt"); // path of gamedata.txt file

byte[] a = read(file);
StringBuilder sb = new StringBuilder();
for(int i = 2; i < a.length; ++i) {
char c = (char)(a ^ 5);
sb.append(c);
}
write(sb.toString());
System.out.println("completed");
}

private static byte[] read(File file) {
byte[] a = new byte[(int)file.length()];

FileInputStream stream = null;
try {
stream = new FileInputStream(file);
stream.read(a);
stream.close();

} catch (IOException e) {
e.printStackTrace();
}
return a;
}

private static void write(String txt) {
try {
File file = new File("C:\\Users\\Admin\\Desktop\\output.txt"); // path of output file

if(!file.exists()) {
file.createNewFile();
}
FileWriter writer = new FileWriter(file);
writer.write(txt);
writer.close();

} catch (IOException e) {
e.printStackTrace();
}
}
}

Post Reply

Who is online

Users browsing this forum: admantx, bingbangb00m, Google [Bot], Google Adsense [Bot], mcneil_1, Tom andy