Skip to content

Instantly share code, notes, and snippets.

View jeferwang's full-sized avatar
😍

jeferwang jeferwang

😍
View GitHub Profile
@jeferwang
jeferwang / Build.version
Created June 9, 2021 06:48
UE4_Editor_Build.version
{
"MajorVersion": 4,
"MinorVersion": 26,
"PatchVersion": 2,
"Changelist": 15973114,
"CompatibleChangelist": 14830424,
"IsLicenseeVersion": 0,
"IsPromotedBuild": 1,
"BranchName": "++UE4+Release-4.26"
}
@jeferwang
jeferwang / DefaultEngine.ini
Last active June 24, 2021 04:09
配置UE4支持创建超过4个LocalPlayer
[/Script/Engine.GameViewportClient]
MaxSplitscreenPlayers=10
@jeferwang
jeferwang / use_custom_dll_path.cpp
Created November 25, 2021 16:32
Unreal Engine 4 Use Custom Dll Path
void FVideoPlayerModule::SetDllPath()
{
//FString AbsPath = FileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*MyLibPath);
const auto PluginBaseDir = IPluginManager::Get().FindPlugin("VideoPlayer")->GetBaseDir();
const auto PluginBaseDirAbs = FPaths::ConvertRelativePathToFull(PluginBaseDir);
XVideoDllPath = FPaths::Combine(PluginBaseDirAbs, TEXT("Source/VideoPlayer/ThirdParty/XVideo/bin/"));
FPlatformProcess::AddDllDirectory(*XVideoDllPath);
FPlatformProcess::PushDllDirectory(*XVideoDllPath);
// not need load and manage dll manually, will be auto load
//const auto Dlls = {
@jeferwang
jeferwang / #ColorTransform颜色调整
Last active May 12, 2022 04:02
HLSL Color Transform: RGB/HSV/HSL, WhiteBalance
Color Transform 颜色转换/调整
HSV/RGB
HSL
WhiteBalance白平衡
@jeferwang
jeferwang / repo-rinse.sh
Last active June 11, 2022 07:08 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
git reset --hard
git submodule sync --recursive
git submodule update --init --force --recursive
@jeferwang
jeferwang / BuildConfiguration.xml
Last active November 2, 2024 05:46
Unreal Engine Source Code BuildConfiguration
<?xml version="1.0" encoding="utf-8" ?>
<!-- For AMD 5950X, 16 core 32 thread -->
<!-- reference: Engine\Saved\UnrealBuildTool\BuildConfiguration.Schema.xsd -->
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<!-- force use 32 thread -->
<BuildConfiguration>
<MaxParallelActions>32</MaxParallelActions>
</BuildConfiguration>
<!-- force use 32 thread and 2 thread one core (for ue5) -->
<TaskExecutor>
:: Show Reserved Ports
netsh interface ipv4 show excludedportrange protocol=tcp
:: Stop Server
net stop winnat
:: Change Port
netsh int ipv4 set dynamic tcp start=49152 num=16384
netsh int ipv6 set dynamic tcp start=49152 num=16384
@jeferwang
jeferwang / 0_TwiceDelay_README.md
Last active November 5, 2022 12:45
使用Latent实现多个执行引脚的蓝图节点(参考https://blog.csdn.net/flowersplug/article/details/80408493

image

@jeferwang
jeferwang / 正态分布随机数.py
Created March 4, 2024 06:40
使用BoxMuller算法生成符合正态分布随机数
# 从这抄的
# https://blog.csdn.net/Yonggie/article/details/97404027
import math
from random import random
import matplotlib.pyplot as plt
# mu:均值/期望
# sigma:标准差
@jeferwang
jeferwang / tracker_list.txt
Created September 5, 2024 14:02
MyTrackers
http://t.acg.rip:6699/announce