Skip to content

Instantly share code, notes, and snippets.

View himika's full-sized avatar

himika himika

View GitHub Profile
@himika
himika / initContainer_Hook.cpp
Last active January 5, 2016 13:06
[TESV.exe] コンテナ初期化にフックをかけるサンプル
#include <SKSE/PluginAPI.h>
#include <SKSE/GameReferences.h>
#include <SKSE/GameObjects.h>
#include <SKSE/SafeWrite.h>
class InventoryChagesEx : public InventoryChanges
{
public:
void InitContainer_Hook()
{
@himika
himika / gist:5e7dc55529cb89e54138
Created December 14, 2015 16:52 — forked from ianpatt/gist:7f3c870cbca04d0adb69
fallout class hierarchy
This file has been truncated, but you can view the full file.
0000000000000000 <lambda_007754d0d8df13a0d5be87c4da608bd4>
0000000000000000 <lambda_0128411b0e3e3d25a5a73c47b6e22b76>
0000000000000000 <lambda_03176bf0238bc1990c01e9a8d7e30740>
0000000000000000 <lambda_054c0f92026acdc3af737f9060c8d16c>
0000000000000000 <lambda_099db76688b3e7d9a1ba0689b7c86b3f>
0000000000000000 <lambda_0fbe6c20cb848d3946f7eb3dad25598a>
0000000000000000 <lambda_10a9a02b0a42abae558918086ec73866>
0000000000000000 <lambda_147c78853d5cc7006fac33c5b18ba02d>
0000000000000000 <lambda_17b34bb506d4c85028a5a3d52c6539fd>
0000000000000000 <lambda_1b292629a6f13ca0f49dea454f1d1fad>
@himika
himika / papyrus.rb
Last active September 11, 2015 09:48
mrubyで書くSKSEプラグインのサンプル
#
# mrubyで書くSKSEプラグインのサンプル
#
p "スクリプトがロードされました: " + $0
p Time.now
# Script SampleQuest extends Quest
class SampleQuest < Quest
This file has been truncated, but you can view the full file.
/*==============================================================================
class TESForm +0000 (_vtbl=0107CBE4)
0000: class TESForm
0000: | class BaseFormComponent
==============================================================================*/
virtual void Unk_000(void) override; // 004522A0
virtual void Unk_001(void) override; // 006C50E0 (void) { return; }
virtual void Unk_002(void) override; // 004506C0
virtual void Unk_003(void) override; // 00451180
virtual void Unk_004(void); // 006C50E0 (void) { return; }
@himika
himika / getswap.sh
Last active August 29, 2015 14:21 — forked from koemu/getswap.sh
各プロセスのスワップ使用量を調べる。sudo不要(シェルスクリプト側で実行)
#!/bin/sh
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
# Updated: 2013-11-13 Yuichiro Saito
# Updated: 2015-05-25 Himika
#
# https://gist.github.com/koemu/8015682
# http://northernmost.org/blog/find-out-what-is-using-your-swap/
#
# For instance, to find the process with most swap used, just run this script like so:
@himika
himika / jp_patch.cpp
Created April 3, 2015 22:35
Skyrim 日本語パッチ
/*------------------------------------------------------------------------
Copyright 2013,2014 himika
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@himika
himika / GetCloseReferences.cpp
Last active August 29, 2015 14:05
近くに配置されているオブジェクトを、配列で一気に取得する関数
#include <skse.h>
#include <skse/GameForms.h>
#include <skse/GameData.h>
#include <skse/GameReferences.h>
#include <skse/GamePapyrusFunctions.h>
#include <list>
/* ==============================================================
scriptname HogeHoge hidden
@himika
himika / CloseMenu.cpp
Last active August 29, 2015 14:05
(SKSE) メニューを閉じる関数
#include <skse.h>
#include <skse/GameMenus.h>
/* ================================================================
ジャーナル・メニューを閉じるなら
CloseMenu(&UIStringHolder::GetSingleton()->journalMenu);
インベントリ・メニューを閉じるなら
CloseMenu(&UIStringHolder::GetSingleton()->inventoryMenu);
@himika
himika / skse_task_interface_test.cpp
Last active August 29, 2015 14:04
SKSETaskInterfaceの使用例
#include <skse.h>
#include <skse/PluginAPI.h>
#include <skse/GameThreads.h>
#include <shlobj.h>
IDebugLog gLog;
PluginHandle g_pluginHandle = kPluginHandle_Invalid;
SKSEScaleformInterface * g_scaleform = NULL;
SKSESerializationInterface * g_serialization = NULL;
@himika
himika / object_transfer_shapes.py
Created July 3, 2012 03:49
(Blender 2.49b用) シェイプキーを別のオブジェクトに移すプラグイン
#!BPY
"""
Name: 'Transfer Shape Keys...'
Blender: 249
Group: 'Object'
Tooltip: 'Copy another selected object's shapes to this one by applying the relative offsets'
"""
__author__ = 'himika'