Skip to content

Instantly share code, notes, and snippets.

private const int HeaderLength = 16 * 2;
public List<LoadingScreenEntry> Items { get; } = new List<LoadingScreenEntry>();
public void Read(string path)
{
if (!File.Exists(path))
{
throw new FileNotFoundException(path);
}
@synctam
synctam / Terraria_Death_Text_Pen.spritefont
Last active June 10, 2018 17:17
This software is released under the MIT License.
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="ReLogic.Content.Pipeline">
<Asset Type="Graphics:DynamicFontDescription">
<!--
Modify this string to change the default font that will be imported.
-->
<FontName>TerrariaJpFontPen</FontName>
<!--
<font>
<info face="Liberation Sans" size="-40" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="1" aa="1" padding="0,0,0,0" spacing="1,1" outline="0"/>
<common lineHeight="45" base="36" scaleW="512" scaleH="512" pages="1" packed="0" alphaChnl="0" redChnl="4" greenChnl="4" blueChnl="4"/>
<pages>
<page id="0" file="HugeText_0.png" />
</pages>
<chars count="333">
<char id="32" x="54" y="74" width="1" height="1" xoffset="0" yoffset="36" xadvance="11" page="0" chnl="15" />
<char id="33" x="375" y="285" width="4" height="28" xoffset="4" yoffset="8" xadvance="11" page="0" chnl="15" />
<char id="34" x="75" y="406" width="11" height="9" xoffset="2" yoffset="8" xadvance="14" page="0" chnl="15" />
@synctam
synctam / フォントの座標情報(Unity)
Last active September 26, 2018 10:29
韓国語版のフォントの座標情報を調査した時の資料です。
offset size description
--------- ---- ---------------------------------
0000:0000 (04) 00000000(0) GameObject.FileID
0000:0004 (08) 00000000(0) GameObject.PathID
0000:0008 (--) 00000000
0000:000C (04) 01000000(1) GameObject.Enabled
0000:0010 (04) 01000000( 1) Script.FileID
0000:0014 (08) 7D070000(1917) Script.PathID
0000:0018 (--) 00000000
@synctam
synctam / フォントの座標情報(futura_0.tex)
Last active June 3, 2018 05:59
Fallout Shelter のフォント座標情報
■フォントの座標情報
futura_0.tex
resources_00002.-20(14260 bytes)
offset value description
--------- ------------------ -----------------------------------
0000( 4):0x00000000 PPtr(game object) FileID
0004( 8):0x350C0000(3125) PPtr(game object) PathID
0008(--):
000C( 1):0x01(1) Enabled
@synctam
synctam / PotionOfMinorHealingEX.gamedatabundle
Last active June 30, 2018 11:23
Pillars of Eternity 2 用サンプルMOD。BaseValue を 40 から 80 に変更。これでポーションの効果が倍なります。
{
"GameDataObjects": [{
"$type": "Game.GameData.StatusEffectGameData, Assembly-CSharp",
"DebugName": "Potion_of_minor_healing_SE_Heal",
"ID": "cd28d424-c999-45e3-885c-b2c1ba34fd30",
"Components": [{
"$type": "Game.GameData.StatusEffectComponent, Assembly-CSharp",
"StatusEffectType": "Health",
"OverrideDescriptionString": -1,
"UseStatusEffectValueAs": "None",
@synctam
synctam / Program(Packer).cs
Last active October 9, 2018 22:01
The Tiny Bang Story pfp file packer/unpacker.
/// <summary>
/// The Tiny Bang Story pfp file packer.
/// This software is released under the GPL.
///
/// Copyright(c) お~るげーむず(仮)
/// 「How to 日本語化(Hard mode) – お~るげーむず(仮)」
/// http://ryo.game.coocan.jp/blog/game/overseasgame/jp-localize/how-to-ogj-06
/// Ported from AutoIT to C# by synctam.
/// </summary>
namespace TtbsPacker
@synctam
synctam / Tesseratc4.config
Last active March 27, 2020 13:36
Tesseract 4 ホワイトリスト指定例。
tessedit_char_whitelist 1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,?!#$%&()=-{}[]+*;:"
@synctam
synctam / GcaTextDetector.cs
Last active August 13, 2020 12:56
OpenCVで輪郭検出を行いテキスト領域を抽出するサンプル。 This program is released under the MIT license.
namespace LibTextDetector.TextDetector
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emgu.CV;
@synctam
synctam / PsStitcher.cs
Last active August 14, 2020 15:32
EmguCVを使った背景除去とパノラマ合成のサンプル。 This program is licensed under the GNU General Public License.
namespace LibCoreStitcher
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using Emgu.CV;
using Emgu.CV.Stitching;
using Emgu.CV.Structure;
using Emgu.CV.Util;