Skyrim

File information

Last updated

Original upload

Created by

DavidJCobb

Uploaded by

DavidJCobb

Virus scan

Some manually verified files

Mod articles

  • MotionType/Move Patch

    In my mod description, I mention a C++ patch that is applied to fix a Bethesda-side bug. The technical details of this patch probably aren't important to most users, but I'd like to document them for those who really want to know exactly what they're putting into their game.

    While working on this mod, I discovered a nasty bug: if you SetMotionType(4) on certain references, they become impossible to move stably; their coordinates will change, but their 3D models will remain in exactly the same spot. (Whiterun and Riften interior doors are both examples of objects that break in this manner.) Even worse: there is no way to detect that this has happened.

    Further investigation turned up a few factors of interest. While I don't know all of the factors th...

  • Selection Algorithm

    Cobb Positioner uses a custom SKSE plug-in to let players select objects more accurately than in any other Skyrim mod. In this article, I'll be going over the technical details of how exactly that works.

    Typically, Skyrim mods are only able to find the nearest object to a given position... using a blind origin check that doesn't take objects' sizes and offsets into account. However, when one has access to the game's code and to all loaded data for a given form, one can implement something a little more precise. See, most objects in Skyrim have OBND data; this is a precomputed oriented bounding box, and it allows us to construct a rather interesting heuristic. (An oriented bounding box, or OBB, is just the smallest box that can fully contain a shape.)