Skip to content

Instantly share code, notes, and snippets.

View terrapass's full-sized avatar

Taras Denysenko terrapass

View GitHub Profile
@terrapass
terrapass / ck3-reduced.dockerignore
Last active June 2, 2024 13:57
Dockerfile for Crusader Kings III (Linux version) with .dockerignore to keep only files sufficient to run CK3 in -nographics mode
# Place this file next to ck3.Dockerfile into Crusader Kings III directory
# and rename it to .dockerignore so that files not necessary for -nographics mode of CK3
# are excluded when you run docker build, thus dramatically reducing the resulting image size.
launcher/
game/dlc/*/gfx
game/dlc/*/music
game/dlc/*/sound
@terrapass
terrapass / compress_map_tgas.bat
Last active June 23, 2024 18:36
Mass TGA compression Python script and pre-commit hook example
@echo OFF
python tools/compress_tga.py "mod/gfx/map/terrain/*.tga"
@terrapass
terrapass / GH_pdxgui_loading.shader
Created April 8, 2024 12:06
CK3 Basic Loading Screen Slideshow
Includes = {
"cw/pdxgui.fxh"
"cw/pdxgui_sprite_textures.fxh"
}
VertexShader =
{
MainCode VertexShader
{
Input = "VS_INPUT_PDX_GUI"
#!/usr/bin/env python
import argparse
import traceback
from pathlib import Path
from os import path
import yaml
from jinja2 import Environment, FileSystemLoader
#