Skip to content

Instantly share code, notes, and snippets.

View dpogue's full-sized avatar
👨‍💻
I may be slow to respond.

Darryl Pogue dpogue

👨‍💻
I may be slow to respond.
View GitHub Profile

pnAsyncCore

  • plStatusLog for pnAcLog
    • Kill pnAcLog, used by some pnNetCli and plNetGameLib stuff

pnInputCore

  • plLocalization stuff for translated keyboard key names
    • Move to plInputCore or replace

plFogEnvironment Transitions

Currently, there is a single default fog environment used for all rendering in all Ages, and its values are reset when loading an Age via console commands in the .fni files. There is also a Python API that can be used to change the values.

Support exists (but is not exposed or ever used) for per-object fog environments via plFogEnvironment objects and references in the DrawableSpans.

However, there is currently no way to animate fog changes or transitions between fog values without resorting to Python hacks.

@dpogue
dpogue / SoundDecompress.cpp
Last active August 20, 2020 15:01
A (hopefully) VS 2010 & CWE-ou compatible version of SoundDecompress.cpp
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
plDrawableSpans::Obj (The actual waveset mesh)
hsGMaterial::ObjMaterial (object's existing material)
plLayer::Obj_FixLayerPS_0
plRenderTarget::Obj_CompRT (256×256) [Renders Obj_BumpDraw, see below]
plVShader::Obj_FixedVS (vs_WaveFixedFin7)
plPShader::Obj_FixedPS (ps_WaveFixed)
plLayer::Obj_FixLayerPS_1
plRenderTarget::Obj_CompRT (256×256) [Renders Obj_BumpDraw, see below]
plVShader::Obj_FixedVS (vs_WaveFixedFin7)

How much do you need to know about machine learning?

VanJS 20200213 - Dina Berry

Works in the content org at Microsoft.

How many people consider themselves just JS devs? Not many. How many JS and at least other language? A lot more, mostly on the backend.

--- plasmamax.prc 2020-02-10 23:08:06.852981140 -0800
+++ korman.prc 2020-02-10 23:07:38.930444788 -0800
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<plDrawableSpans>
- <plKey Name="AvatarCloset_PersonalAgeCloset_00000000_0Spans" Type="plDrawableSpans" Location="17;1" LocFlag="0x0000" ObjID="1" />
+ <plKey Name="kortest_District_Page01_00000000_0Spans" Type="plDrawableSpans" Location="100;1" LocFlag="0x0000" ObjID="1" />
<Properties Flags="0x00000000" Criteria="0x00000000" RenderLevel="0x00000000" />
<Materials>
@dpogue
dpogue / __init__.py
Last active January 2, 2020 16:02
Put these in a "avimport" folder in your Blender addons folder
bl_info = {
'name': 'Avatar Importer',
'author': 'dpogue & Lontahv & Jrius',
'version': (0, 0, 1),
'blender': (2, 7, 9),
'location': 'File > Import > Avatar Import',
'description': 'Avatar and ATC Anim Importer',
'category': 'Import-Export'
}
diff --git a/Python/PyPlasma.h b/Python/PyPlasma.h
index 59d8c1b4..1b5e8480 100644
--- a/Python/PyPlasma.h
+++ b/Python/PyPlasma.h
@@ -588,12 +588,22 @@ template <> inline size_t pyPlasma_get(PyObject* value) { return (size_t)(unsign
#define _TP_FINALIZE_INIT
#endif
+#if (PY_MAJOR_VERSION >= 4) || ((PY_MAJOR_VERSION == 3) && (PY_MINOR_VERSION >= 8))
+ #define _TP_PRINT 0,
//
// ViewController.swift
// WKScrollTest
//
// Created by Darryl Pogue on 2017-01-24.
// Copyright © 2017 Darryl Pogue. All rights reserved.
//
import UIKit
import WebKit