Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian Uy uyjulian

View GitHub Profile
View Reasons to port Visual Novels to Unity.md

Let's talk about reasons to port Visual Novels to Unity

(Original post: https://www.reddit.com/r/visualnovels/comments/prztxv/lets_talk_about_reasons_to_port_visual_novels_to/ )

It seems like companies are porting what should be a lightweight game into a heavyweight engine, so I'd like to talk a bit more about that.

Licensing cost for the engine (applicable to something with Siglus for instance).

Unity has a licensing cost too, but I can't make a conclusion on whether it is worse or better because it does not appear that the licensing method related to SiglusEngine is published.

View raddbg.py
import math
def arr_rad_to_deg(a):
for i in range(len(a)):
a[i] = (a[i] / (2 * math.pi)) * 360
def arr_deg_to_rad(a):
for i in range(len(a)):
a[i] = (a[i] / 360) * (2 * math.pi)
View change_pe_string.py
# http://www.csn.ul.ie/~caolan/publink/winresdump/winresdump/doc/pefile.html
# Contains a reasonable description of the format.
import sys
import pefile
newdic = {
"Comments" : "hoge",
"FileDescription" : "hoge",
View hp_thin_client_notes.sh
arch/arm/mach-dove/mv_hal_support/mvRules.mk
-T kernel
-A arm
-O linux
-C none
-a 0x00008000
-e 0x00008000
-n YOUR-Linux
View mono_optimization.sh
for i in /usr/local/Cellar/mono/5.14.0.177/lib/mono/gac/*/*/*.dll; do mono -O=all --aot $i; done
mono -O=all --aot /usr/local/Cellar/mono/5.14.0.177/lib/mono/4.5/mscorlib.dll
View PureCSharpPNGWriterProgram.cs
using System;
using System.IO;
using System.IO.Compression;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Text;
namespace PureCSharpPngWriter
{
View luajit_cross_compile_nohosttool.md

Cross Compiling LuaJIT without needing host GCC

git clone https://github.com/openresty/luajit2.git
cd luajit2
make HOST_CC=i686-w64-mingw32-gcc CROSS=i686-w64-mingw32- TARGET_SYS=Windows MINILUA_T=host/minilua.exe BUILDVM_T=host/buildvm.exe MINILUA_X="wine host/minilua.exe" BUILDVM_X="wine host/buildvm.exe"
View tjs_undefined_reference.txt
undefined reference to `TJS::TJSAddRefMessageMapper()'
undefined reference to `TJS::TJSAddRefObjectHashMap()'
undefined reference to `TJS::TJSAlignedAlloc(unsigned int, unsigned int)'
undefined reference to `TJS::TJSAlignedDealloc(void*)'
undefined reference to `TJS::TJSAllocVariantOctet(TJS::tTJSVariantOctet const*, TJS::tTJSVariantOctet const*)'
undefined reference to `TJS::TJSAllocVariantOctet(unsigned char const**)'
undefined reference to `TJS::TJSAllocVariantOctet(unsigned char const*, unsigned int)'
undefined reference to `TJS::TJSAllocVariantOctet(unsigned char const*, unsigned int, unsigned char const*, unsigned int)'
undefined reference to `TJS::TJSAllocVariantString(char const*)'
undefined reference to `TJS::TJSAllocVariantString(unsigned char const**)'
View tjs_headers_used.txt
tjs.h
tjsArray.h
tjsCommHead.h
tjsConfig.h
tjsDebug.h
tjsDictionary.h
tjsError.h
tjsErrorDefs.h
tjsGlobalStringMap.h
tjsHashSearch.h