Skip to content

Instantly share code, notes, and snippets.

@noemica
noemica / chaos_cogmind.py
Last active April 30, 2026 06:25
Cogmind chaos script written in Python that messes around with game assets. Current supported version is Cogmind 16.1. Can do things like switch sprites randomly, flip/rotate sprites, and switch sounds randomly. Requires pillow (pip install Pillow). Use like "python chaos_cogmind.py --help" for help, and "chaos_cogmind.py path_to_cogmind_install…
from argparse import ArgumentParser
from collections import namedtuple
import copy
import hashlib
import logging
import os
from os import path
from PIL import Image
import random
import shutil