Skip to content

Instantly share code, notes, and snippets.

View DrMcCoy's full-sized avatar
😸
Working on this and that, but also RLing

Sven Hesse DrMcCoy

😸
Working on this and that, but also RLing
View GitHub Profile

NWN2 TRN.ASWM packet structure

Thibaut CHARLES - CromFr@gmail.com

This document is a mix of information:

  • I found by reverse engineering: basic structure, vertices, edged, triangles
  • Extracted from Skywing NWN2DataLib source code: everything else

My implementation can be found here, and supports parsing, serialization, mesh importation, path table & island

@DrMcCoy
DrMcCoy / keybase.md
Created January 10, 2017 21:24
keybase.md

Keybase proof

I hereby claim:

  • I am DrMcCoy on github.
  • I am drmccoy (https://keybase.io/drmccoy) on keybase.
  • I have a public key whose fingerprint is 3144 4054 36A0 7383 352E 4A1E 749D AFFE 6619 0441

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Leak in X11
leak:XSetLocaleModifiers
# FontConfig
leak:FcConfigInit
#!/bin/bash
set -euxo pipefail
GCC_VERSION="8.3.0"
CCACHE="ccache"
export CC="$CCACHE gcc-$GCC_VERSION"
export CXX="$CCACHE g++-$GCC_VERSION"
#!/bin/bash
set -euxo pipefail
export UBSAN_OPTIONS="print_stacktrace=1"
export ASAN_OPTIONS="fast_unwind_on_malloc=0:detect_stack_use_after_return=0"
"$@"
#!/bin/bash
set -euxo pipefail
export UBSAN_OPTIONS="print_stacktrace=1"
export ASAN_OPTIONS="fast_unwind_on_malloc=0:detect_stack_use_after_return=1"
"$@"
@DrMcCoy
DrMcCoy / nwn2_playerinfo_format.rst
Created February 10, 2019 23:16 — forked from Arbos/nwn2_playerinfo_format.rst
NWN2 playerinfo.bin format

NWN2 playerinfo.bin format

This file is located at each save game directory and contains the data shown in the info pane of the load and save screens.

========= =========== Type Description ========= =========== uint32 First name length

@DrMcCoy
DrMcCoy / bug report.md
Created May 19, 2020 18:45
glm bug report glm::axisAngle()

There seems to be a problem with glm::axisAngle(), a regression brought in with commit 26b3e3ed788f5f6adcde11c5ec6a41aa100d29cd (Fixed axisAngle NaN #638).

Take this example code:

#include <cstdio>

#include "glm/vec3.hpp"
#include "glm/mat4x4.hpp"
@DrMcCoy
DrMcCoy / twitter-alt-to-title.user.js
Created December 24, 2020 20:50 — forked from porglezomp/twitter-alt-to-title.user.js
Copy the alt text in tweets into the title text, so that you can see it on hover.
// ==UserScript==
// @name Twitter Alt-Text to Title-Text
// @description Copy the alt attribute of twitter images into the title attribute, so that I can see the alt text on hover.
// @version 1
// @grant none
// @include https://twitter.com/*
// ==/UserScript==
const SELECTORS = `.tweet .AdaptiveMedia-photoContainer img
, .Gallery-media img