Skip to content

Instantly share code, notes, and snippets.

# Cheats need to be on for this to work
# Will output whenever an achievement would be earned
# "A Good Listener", "Last Stable Version", "QR Reader", and "Thorough Researcher" will not output due to a game bug
# Make sure the variable LOG_FILE points to your log file
import time
LOG_FILE = "C:\Program Files (x86)\Steam\steamapps\common\The Talos Principle\Log\Talos.log"
with open(LOG_FILE, "w"): pass
log = open(LOG_FILE, "rb")
@apple1417
apple1417 / QRs.asl
Last active September 6, 2018 02:20
https://github.com/apple1417/Autosplitters/blob/master/talos_qrs.asl
import xml.etree.ElementTree as xml
hints = {}
for tetro in xml.parse("TetrominoInstances.xml").getroot().iter("TetrominoInstanceData"):
world = tetro.find("Level").text
puzzle = tetro.find("PuzzleTitle").text
hint = tetro.find("PuzzleHint").text
if not puzzle or not hint:
continue
puzzle = puzzle.split("=")[-1][:-1]
@apple1417
apple1417 / LiveSplit.TheTalosPrinciple.asl
Last active September 6, 2018 02:20 — forked from jbzdarkid/LiveSplit.TheTalosPrinciple.asl
Autosplitter for The Talos Principle
https://github.com/apple1417/Autosplitters/blob/master/talos_principle.asl
https://github.com/apple1417/Autosplitters/blob/master/serious_sam_3_bfe.asl
import sys
import xml.etree.ElementTree as ET
root = ET.parse(sys.argv[1]).getroot()
game = root.find("GameName").text
cat = root.find("CategoryName").text
# Not using AttemptCount because that can be edited
attempts = len(root.find("AttemptHistory").findall("Attempt"))
import os
import re
import shutil
import zipfile
EXTRACT_FILES = False
if EXTRACT_FILES:
if os.path.isdir("tmp"):
shutil.rmtree("tmp")
import re
import os
import shutil
import zipfile
if not os.path.exists("tmp"):
os.makedirs("tmp")
all_gros = [f for f in os.listdir("Talos Workshop Backup") if f.endswith(".gro")]
all_levels = {}
@apple1417
apple1417 / GamemodeStruct.CSX
Created August 25, 2019 08:20
cheat engine struct file for talos gamemode object
<Structures>
<Structure Name="Gamemode Info" AutoFill="0" AutoCreate="1" DefaultHex="0" AutoDestroy="0" DoNotSaveLocal="1" RLECompression="1" AutoCreateStructsize="4096">
<Elements>
<Element Offset="0" Vartype="Pointer" Bytesize="4" Description="File Location" DisplayMethod="Unsigned Integer"/>
<Element Offset="4" Vartype="Pointer" Bytesize="4" Description="Gamemode Name" DisplayMethod="Unsigned Integer"/>
<Element Offset="8" Vartype="4 Bytes" Bytesize="4" Description="Menu Sort Priority" DisplayMethod="Unsigned Integer"/>
<Element Offset="12" Vartype="Pointer" Bytesize="4" Description="Level Type" DisplayMethod="Unsigned Integer"/>
<Element Offset="16" Vartype="Pointer" Bytesize="4" Description="Username" DisplayMethod="Unsigned Integer"/>
<Element Offset="20" Vartype="Pointer" Bytesize="4" Description="Short Username" DisplayMethod="Unsigned Integer"/>
#include "pch.h"
#include <iostream>
#include <windows.h>
#include <psapi.h>
int main()
{
/*HANDLE current_token = 0;
bool found_token = OpenProcessToken(
GetCurrentProcess(),