Skip to content

Instantly share code, notes, and snippets.

View newincpp's full-sized avatar

_Nyu newincpp

  • team MadScientist
View GitHub Profile
@newincpp
newincpp / BP_Log.cpp
Last active January 27, 2024 05:18
C++ UE_LOG with (most of) its greatness but in blueprint
#include "Logging/LogVerbosity.h"
#include "UObject/Object.h"
#include "BlueprintLog.h"
void UBlueprintLog::BPLogCategory(FString text, FName CategoryName, DisplayLevel dlvl) {
ELogVerbosity::Type dl = (ELogVerbosity::Type)dlvl; // DisplayLevel need to map perfectly to ELogVerbosity::Type or it won't work
FMsg::Logf_Internal(nullptr, 0, CategoryName, dl, TEXT("%s"), *text);
}
newin@vega twitter % unzip -q cawbird-1.0.3.zip
newin@vega twitter % cd cawbird-1.0.3
newin@vega cawbird-1.0.3 % meson build
The Meson build system
Version: 0.51.2
Source dir: /home/newin/project/twitter/cawbird-1.0.3
Build dir: /home/newin/project/twitter/cawbird-1.0.3/build
Build type: native build
Project name: Cawbird
Project version: 1.0.3
@newincpp
newincpp / InstallUE4Minimal.sh
Last active November 3, 2019 12:22
install script for UE4Minimal from Sythenz (CodeKitten) on posix systems
#!/bin/sh
KEEP_PSD=""
ENABLE_BACKUP=""
while getopts "kb" option; do
case ${option} in
k ) #For option c
echo "keeping PSD for future modifications"
KEEP_PSD=true
@newincpp
newincpp / imgui_impl_vulkan.cpp.patch
Created February 24, 2019 13:33
imgui_impl_vulkan possible patch
201,204c201
< // Render function
< // (this used to be set in io.RenderDrawListsFn and called by ImGui::Render(), but you can now call this directly from your main loop)
< void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer)
< {
---
> void ImGui_ImplVulkan_regenBuffers(ImDrawData* draw_data) {
205a203,205
> g_FrameIndex = (g_FrameIndex + 1) % IMGUI_VK_QUEUED_FRAMES;
> FrameDataForRender* fd = &g_FramesDataBuffers[g_FrameIndex];
execve("/usr/local/bin/renderdoc", ["renderdoc"], [/* 32 vars */]) = 0
brk(NULL) = 0x3926000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f83b0a7a000
readlink("/proc/self/exe", "/usr/share/renderdoc_0.91/bin/qr"..., 4096) = 40
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/share/renderdoc_0.91/bin/tls/x86_64/libutil.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/share/renderdoc_0.91/bin/tls/x86_64", 0x7ffd26098e10) = -1 ENOENT (No such file or directory)
open("/usr/share/renderdoc_0.91/bin/tls/libutil.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/share/renderdoc_0.91/bin/tls", 0x7ffd26098e10) = -1 ENOENT (No such file or directory)
open("/usr/share/renderdoc_0.91/bin/x86_64/libutil.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[2016.09.04-17.54.54:885][ 0]LogRHI: GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: 16
[2016.09.04-17.54.54:885][ 0]LogRHI: OpenGL MajorVersion = 3, MinorVersion = 2, ShaderPlatform = GLSL_150, FeatureLevel = SM4
[2016.09.04-17.54.54:921][ 0]LogShaderCompilers: Guid format shader working directory is 16 characters bigger than the processId version (../../../Engine/Intermediate/Shaders/WorkingDirectory/341/).
[2016.09.04-17.54.54:921][ 0]LogShaderCompilers: Cleaned the shader compiler working directory '../../../Engine/Intermediate/Shaders/tmp/00037F213609130400360399B4F593E0/'.
[2016.09.04-17.54.54:921][ 0]LogShaderCompilers:Display: Using Local Shader Compiler.
[2016.09.04-17.54.56:173][ 0]LogHAL: FLinuxPlatformProcess::CreateProc: '/usr/bin/mono "/home/newin/project/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe" -validateplatform -allplatforms'
[2016.09.04-17.54.56:178][ 0]LogHAL: FLinuxPlatformProcess::CreateProc: spawned child 363
[2016.09.04-17.54.56:936][ 0]LogHAL: Child 363 is no longer running
[2016.09.02-14.09.26:504][ 0]LogLinux:Warning: dlopen failed: /home/newin/project/UnrealEngine/Engine/Binaries/Linux/libShaderCompileWorker-ShaderFormatOpenGL.so: undefined symbol: _ZTISd
[2016.09.02-14.09.26:504][ 0]LogModuleManager:Warning: ModuleManager: Unable to load module '/home/newin/project/UnrealEngine/Engine/Binaries/Linux/libShaderCompileWorker-ShaderFormatOpenGL.so' because the file couldn't be loaded by the OS.
[2016.09.02-14.09.26:511][ 0]LogTextLocalizationManager: No specific translations for ('en-GB') exist, so ('en') translations will be used.
[2016.09.02-14.09.26:513][ 0]LogTextLocalizationManager: No specific translations for ('en-GB') exist, so ('en') translations will be used.
[2016.09.02-14.09.26:514][ 0]LogTextLocalizationManager: No specific
# 1. Get an account on http://www.justin.tv/
# 2. Copy streaming key from: http://www.justin.tv/broadcast/adv_other
# 2. Install VLC: http://www.videolan.org/vlc/
# 3. Get Win/Mac/Lin Stream Client: \
# http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API
# 4. Adjust the vlc parameters to your liking and run VLC like this
#!/bin/bash
cvlc screen:// \
--screen-width 1576 \