Skip to content

Instantly share code, notes, and snippets.

View csauve's full-sized avatar
⌨️
doot doot

Connor Sauve csauve

⌨️
doot doot
View GitHub Profile
@csauve
csauve / gen-yaml.js
Created May 11, 2020 06:14
BREAK GLASS IF NEW C20 YAML FILES NEEDED
function buildYamlFiles(invaderStructDefs, basicTags) {
const describeStruct = (invaderStructName, name) => {
const struct = invaderStructDefs[invaderStructName];
if (!struct) {
return {
...(name && {name}),
md: "...",
};
} else if (struct.type == "enum") {
return {
@csauve
csauve / thing_convert.py
Created July 22, 2022 16:47
The Thing (2002) msh to obj converter
import struct
import sys
verts_start = 0xA4
vert_count = 0x2B
vert_format = "<I 3f 3f 2f"
vert_size = struct.calcsize(vert_format)
indices_start = 0x6B8
indices_count = 0x84