Skip to content

Instantly share code, notes, and snippets.

@RainThunder
RainThunder / castle_join.py
Created January 27, 2017 13:39
castle_join.py - A legacy tool for extracting castle_join.bin file in Fire Emblem Fates to text file and vice versa.
#!/usr/bin/env python2
"""Parse castle_join.bin file into a tab-delimited text file, or reassembled
a text file into a functional castle_join.bin. Manual (de)compress are
required.
"""
import os
import sys
from struct import unpack, pack
@RainThunder
RainThunder / fst_generator.py
Last active March 24, 2016 18:53
Generate fst.bin file for Fire Emblem If / Fates DLC.
#!/usr/bin/env python2
# Generate fst.bin file for Fire Emblem If / Fates DLC.
# It is basically a file list.
import os
import sys
from struct import pack, unpack
if not os.path.isdir(unicode(sys.argv[1])):
print sys.argv[1] + ': No such directory.'
@RainThunder
RainThunder / version_fixer.py
Last active October 15, 2017 15:41
Fix the version number in a CIA file.
#!/usr/bin/env python2
# An utility which is able to fix the version number of any CIA file
import os
import sys
import urllib2
import argparse
from struct import unpack
# Taken from ctrtool's source code
@RainThunder
RainThunder / CTRAutoDecryptor.c
Last active December 4, 2015 13:32
Automatically decrypt 3DS ROMs using xorpads.
/*
* Copyright (C) 2015 RainThunder
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@RainThunder
RainThunder / Program.cs
Last active September 2, 2015 05:55
Tag Remover for Fire Emblem: If text dump.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace FETagRemover
{
class Program
{