Skip to content

Instantly share code, notes, and snippets.

View Stuyk's full-sized avatar
✴️
When you're cut into two, why not cut into three?

Stuyk

✴️
When you're cut into two, why not cut into three?
View GitHub Profile
@Stuyk
Stuyk / working-with-snapping-nodes-aka-bs-connectpoints.md
Created November 18, 2026 16:12
Working with Snapping Nodes aka BSConnectPoints (CPA) (FALLOUT 4)

Comprehensive Technical Reference: Fallout 4 Snapping Nodes (BSConnectPoints / CPA)

1. Architecture of BSConnectPoints in Fallout 4

In Fallout 4 (Creation Engine v1.5+), workshop settlement building, weapon/armor modding, and contraption assembly are governed by BSConnectPoints extra-data blocks stored inside .nif mesh files. When viewed in NifSkope, these blocks are assigned the internal extra-data string name CPA (Connect Point Attachment).

Block Types

  • BSConnectPoint::Parents (CPA): Used almost exclusively for Workshop Settlement Objects and parent receiver slots (such as weapon receivers). In workshop mode, two BSConnectPoint::Parents nodes snap directly to one another when their string names and orientation rules align.
  • BSConnectPoint::Children: Used primarily for Object Mods (OMODs) such as weapon barrels, scopes, magazines, and power armor pieces that attach to a parent receiver slot.

Note: This document is constructed by literally just talking to an AI about a whole bunch of shit and having a one-on-one conversation about my thoughts and opinions on the process. This is the outcome of that.


Executive Timeline Overview

 MONTH  | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
--------+----+----+----+----+----+----+----+----+----+----+----+----+
 CORE   | [Concept]    |                                            |
@Stuyk
Stuyk / ws-style.css
Last active May 13, 2026 20:45
test
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500&display=swap");
html {
font-size: 63.5%;
}
body {
font-size: 31px;
font-weight: 500;
font-family: "Raleway", Helvetica, sans-serif;
line-height: 1.53;
-webkit-font-feature-settings: "lnum" 1;
@Stuyk
Stuyk / valve_220_trenchbroom_map_format.md
Created February 3, 2026 00:27
Valve 220 Trenchbroom Map Spec Doc for Tool Generation

Rock Cluster Generator - Technical Specification

VALVE 220 Trenchbroom Map Format Export

Version: 4.0 Stable
Author: Claude (Anthropic)
Target Format: Quake MAP (Valve 220)
Purpose: Procedural generation of geometrically valid convex brush clusters for level design


import * as alt from 'alt-shared';
// Please understand this took quiet some time and effort.
// This took 3 different expirements to get the right workflow to assign all torsos.
// Some torsos don't take up full clothing, and expect an undershirt.
// This is about 92% accurate for all clothes, and 99% accurate for just clothing, no super hero suits.
// Check out Rebar. https://rebarv.com/
// Created by Stuyk
const MaleTorsos = {
@Stuyk
Stuyk / gtav
Created June 29, 2024 22:21
GTA:V Torsos with Gloves based on DLC, may or may not be fully accurate
{
"mp_m_sum2": {
"0": [
"0_3_4",
"0_3_6",
"0_3_12",
"0_3_1",
"Male_freemode_mpLTS_3_0",
"Male_freemode_mpLTS_3_1",
"Male_freemode_Pilot_3_0",
{
"mp_m_sum2": {
"0": [
"0_3_4",
"0_3_6",
"0_3_12",
"0_3_1"
],
"1": [
"0_3_0"
@Stuyk
Stuyk / data.json
Created June 20, 2024 03:05
6/19/2024 - GTA:V All DLC Clothes Maximums from XML
{
"Female_Apt01": {
"clothes": {
"1": 1,
"4": 13,
"6": 6,
"7": 4,
"8": 4,
"9": 3,
"11": 26
@Stuyk
Stuyk / index.js
Created March 15, 2024 03:33
Ethereum Address & Balance Checker
// This is incredibly stupid and you will never hit an address with a balance.
// Anyway, enjoy.
const bip39 = require("bip39");
const { hdkey } = require("@ethereumjs/wallet");
const { Web3 } = require("web3");
const web3 = new Web3("RPC_ENDPOINT_GOES_HERE");
const generateMnemonic = () => {
@Stuyk
Stuyk / singleton.gd
Last active August 25, 2023 16:21
Global Godot Singleton - Without Auto Loading
extends Node2D
class_name MySingleton
var hello_world: String = "Hello World!";
static var _instance: MySingleton;
static func instance() -> MySingleton:
if (!_instance):
_instance = MySingleton.new();