Skip to content

Instantly share code, notes, and snippets.

View moppius's full-sized avatar
🐵

Paul Greveson moppius

🐵
View GitHub Profile
@moppius
moppius / ExtractTextureReportFromMemreport.ps1
Last active April 16, 2023 16:50 — forked from JonasReich/ExtractTextureReportFromMemreport.ps1
Extract Texture Report csv from UE5 Memreport
# Copyright: Jonas Reich 2021
# Extracts the texture report table from UE5 .memreport files and stores them as separate csv files.
# Uses comma delimiters and opens the extracted file with its default application
[CmdletBinding()]
param(
[Parameter(Mandatory=$true,ValueFromPipeline = $true)]
[String]
$SourceFile
)
@moppius
moppius / AssetStatus.as
Created April 8, 2023 16:18
AssetStatus Angelscript Prototype
/** Settings for the Asset Status */
UCLASS(Config = Editor, DefaultConfig)
class UAssetStatusSettings : UDeveloperSettings
{
UPROPERTY(Config, EditDefaultsOnly, Category = "Asset Status", Meta = (TitleProperty = "Name"))
protected TArray<FAssetStatusColumnSchema> Schemas;
TArray<FAssetStatusColumnSchema> GetSchemas() const
{
@moppius
moppius / PIDController.as
Created April 2, 2022 20:20
PID Controller for Unreal Angelscript
struct FPIDController
{
UPROPERTY(Category = "PID Controller")
const float ProportionalMultiplier = 1.f;
UPROPERTY(Category = "PID Controller")
const float IntegralMultiplier = 0.f;
UPROPERTY(Category = "PID Controller")
const float DerivativeMultiplier = 0.f;
@moppius
moppius / DefaultEditorPerProjectUserSettings.ini
Last active March 29, 2024 11:05
Angelscript UE4 Editor Utility Tool Menu Entry - based on https://kinnaji.com/2020/04/08/toolmenus/
[/Script/UnrealEd.EditorExperimentalSettings]
bEnableEditToolMenusUI=True
[/Script/Blutility.EditorUtilitySubsystem]
+StartupObjects=/Script/Angelscript.TestMenuEntry
@moppius
moppius / BTDecorator_Example.as
Last active April 2, 2022 23:58
UE4 Angelscript BehaviourTree Nodes
/**
* An AI Behavior Tree Decorator written in Angelscript, returns the value of a specified boolean key.
*
* Note that while you can implement TickAI(), in most cases, Decorators rarely need to tick, and
* PerformConditionCheckAI is usually all you need to implement.
*/
class UBTDecorator_ExampleDecorator : UBTDecorator_BlueprintBase
{
default NodeName = "Example Decorator";
@moppius
moppius / AssetFromDataTableUtility.as
Last active February 9, 2020 19:46
Unreal Engine Angelscript - Asset Creation from Data Table Example
/**
* Row structure for our data table.
* The row name must be unique - this is the first column by default, unless otherwise specified on import.
*
* Note that if we're importing a DataTable from CSV, the column header (with spaces removed) must match the
* property name *exactly*, for example:
* - Column header: `Some Data`
* - Property name: `SomeData`
*/
struct FMyDataTableRow
@moppius
moppius / rr_wrap.py
Last active February 14, 2017 21:16 — forked from mclavan/rr_wrap.py
Ryan Roberts - Wrap Deformer
'''
Ryan Roberts - Wrap Deformer
rr_wrap.py
Description:
Ryan Roberts created a simple function to create a wrap deformer.
The wrap deformer needs a little more than the deform command to get working.
Michael Clavan:
I wanted to have the function also return the deformer to the user. So, my contributions are pretty minor.
I converted the wrap deformer into a pynode object type pm.nt.Wrap.