Skip to content

Instantly share code, notes, and snippets.

View uyjulian's full-sized avatar

Julian Uy uyjulian

View GitHub Profile
# SPDX-License-Identifier: MIT
# Falcom YamaNeko engine on PSP ISO format extraction.
# Uses the information contained in PSP_GAME/USRDIR/data.lst
# Also recursively unpacks cclm archive/group files
# See also: https://github.com/Trails-Research-Group
import struct
import io
# SPDX-License-Identifier: MIT
# fbxex_bin2json
# usage: /path/to/python3 /path/to/fbxex_bin2json.py /path/to/bg.fbx.bin
# Use with fbxex2gltf to convert to gltf
import sys
import json
import struct

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.

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)
# 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",
arch/arm/mach-dove/mv_hal_support/mvRules.mk
-T kernel
-A arm
-O linux
-C none
-a 0x00008000
-e 0x00008000
-n YOUR-Linux
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
using System;
using System.IO;
using System.IO.Compression;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Text;
namespace PureCSharpPngWriter
{

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"