Skip to content

Instantly share code, notes, and snippets.

View executionunit's full-sized avatar
🏠
Working from home

metaldazza executionunit

🏠
Working from home
View GitHub Profile
@executionunit
executionunit / showdefines.bat
Last active September 24, 2022 13:14
Print the list of baked in defines from the current Visual Studio compiler.
@REM Script to output all the default VS compiler defines
@REM run from within a MSVC Native Tools Command Prompt
echo int main(){} > test.cpp
cl.exe /PD /Zc:preprocessor test.cpp
del test.cpp
@executionunit
executionunit / tkbuilder.py
Created June 17, 2021 20:34
Using Python and tkinter to build a simple output viewer for game dev build tools. See blog here: https://www.executionunit.com/blog/2012/10/26/using-python-and-tkinter-to-capture-script-output/
"""main script that builds the interface and calls main.py"""
import subprocess
import sys
from tkinter import Tk, Text, BOTH, W, N, E, S, END, INSERT, HORIZONTAL, VERTICAL, NONE, StringVar
from tkinter.ttk import Frame, Button, Style, Scrollbar, Checkbutton
from os.path import join, dirname
from datetime import datetime
@executionunit
executionunit / pak2csv.py
Last active October 1, 2020 17:01
Windows Python 3+ script to dump the contents of an Unreal PAK file to CSV. Uses latest UnrealPak.exe installed or you can pass the path to UnrealPak.exe as a command line options.
#script to parse the output on UnrealPak to create a CSV file so the contents of a pak
#file can be checked.
#
# example: py -3 pak2csv.py -f D:\TheGame\Saved\StagedBuilds\IOS\cookeddata\TheGame\content\paks\pakchunk0-ios.pak
#
from optparse import OptionParser
from pathlib import PurePath
from os.path import exists
import re