Skip to content

Instantly share code, notes, and snippets.

View nexustheru's full-sized avatar

Apples nexustheru

  • wonderland!
View GitHub Profile
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Misc/FileHelper.h"
#include "HAL/PlatformFilemanager.h"
#include "HAL/FileManager.h"
#include "IPlatformFilePak.h"
// Fill out your copyright notice in the Description page of Project Settings.
#include "pakfileloader.h"
#include <Engine/StreamableManager.h>
void Upakfileloader::PakfileloaderInit(FString path)
{
FPakPlatformFile* PakPlatformFile = new FPakPlatformFile();
@nexustheru
nexustheru / methods.h
Created February 9, 2024 07:36
some hook proc,pattern scann inject stuff,find all functions
WORD GetProcessIdByName(const std::wstring& processName)
{
// Take a snapshot of all processes in the system
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (hSnapshot == INVALID_HANDLE_VALUE) {
std::cerr << "Failed to create process snapshot. Error code: " << GetLastError() << std::endl;
return 0;
}
// Iterate through the processes to find the one with the given name
@nexustheru
nexustheru / DialogueGraphEditor.cs
Created June 17, 2022 08:37 — forked from AnsisMalins/DialogueGraphEditor.cs
How to do a custom node graph editor in Unity 2018.4 or 2019.2
// The commented out parts are for Unity 2018.4
//using System.Reflection;
//using UnityEditor.Experimental.UIElements.GraphView;
//using UnityEngine.Experimental.UIElements;
//using UnityEngine.Experimental.UIElements.StyleEnums;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.Experimental.GraphView;
using UnityEngine;
@nexustheru
nexustheru / .cs
Created November 12, 2021 12:44
fbx hdrp/lit mesh importer Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ModelImporter;
using System.IO;
using UnityEngine.Networking;
using System;
public class Meshimport : MonoBehaviour
//
// Mono.CSharp CSharpCodeCompiler Class implementation
//
// Authors:
// Sean Kasun (seank@users.sf.net)
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// Copyright (c) Novell, Inc. (http://www.novell.com)
//
@nexustheru
nexustheru / .vb
Created September 24, 2021 21:21
gr test
Imports System.IO
Imports System.Windows.Forms
Public Class Granny
Dim root As LSLib.Granny.Model.Root
Public Sub SaveGr2(ByVal root As LSLib.Granny.Model.Root, ByVal filename As String)
Dim gr12 = New LSLib.Granny.GR2.GR2Writer()
Dim fo As FileStream = File.Open(filename, FileMode.Create, System.IO.FileAccess.Write, FileShare.Write)
Dim body = gr12.Write(root)
fo.Write(body, 0, body.Length)
@nexustheru
nexustheru / .vb
Created September 24, 2021 21:11
max 2022 events
Imports System.Windows.Forms
Imports Autodesk.Max
Public Class Assemblyfunctions
Public Shared Sub AssemblyLoad()
End Sub
Public Shared Sub AssemblyMain()
Try
Dim g = Autodesk.Max.GlobalInterface.Instance
Dim i = g.COREInterface13
@nexustheru
nexustheru / .vb
Created September 24, 2021 21:10
maxnet 2022
Imports Autodesk
Imports UiViewModels
Imports System
Imports Autodesk.Max
Imports Autodesk.Max.Plugins
Imports System.Windows.Forms
Public Class Twistspline
Inherits Plugins.SplineShape
Public Overrides Property SelLevel As UInteger
Get
@nexustheru
nexustheru / .cpp
Created August 28, 2021 17:06
granny
#include "grannyfile.h"
#include <vector>
#include <iostream>
#include <cinttypes>
#include <inttypes.h>
using namespace std;
struct myvertex {
float px, py, pz;//pos