This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RRWMC, July 4 2019 | |
import pathlib | |
import ndspy.fnt | |
import ndspy.rom | |
# Path to input rom | |
INPUT_ROM = 'path/to/input.nds' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GTF file renderer thing | |
# RRWMC, May 27 2019 | |
# GPL v3 licensed because Qt is | |
import struct | |
import sys | |
from PyQt5 import QtCore, QtGui | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nsmb-checksums.py | |
""" | |
MIT License | |
Copyright (c) 2017 RoadrunnerWMC | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bglib.py: some functions for working with NCG, NCL and NSC files | |
# Copyright (C) 2017 RoadrunnerWMC | |
# | |
# 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 3 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# 8/12/17 | |
# XBIN script for Hiccup | |
# Put this in the same directory as fdgh_converter.py before running it. | |
import sys | |
import fdgh_converter | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 10/29/16 | |
# NLOC haxxor script | |
# ~~~~~~~~~~ | |
# NLOC: Next level LOCalization? Localizable text strings. | |
# Probably does, since if you get a hash ID wrong, it defaults to | |
# "missing loc string". Which certainly looks like "localized" in | |
# that context. | |
# 00-03 "NLOC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1/1/17 (woo) | |
# By RoadrunnerWMC | |
# Early hacky version, but works well enough. You'll need to modify | |
# hardcoded file paths to use it; sorry. | |
# | |
# "But in all honesty I doubt someone will ever bother making such a tool." | |
# Sounds like a challenge. | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fun fact: | |
# this is internally referred to as 'SimpleEncryption' | |
# it is pretty damn simple, really | |
import sys | |
KEY = 0x5D | |
INITIAL_SPAN = 0x200 | |
SPAN = 0x100 | |
input_name = sys.argv[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 6/26/16 | |
# A little script I ported from C that will recalculate hashes of Super Mario | |
# Galaxy save files (GameData.bin). Thanks to MasterF0x and Mathew_Wi (Matt) | |
# for the original C script. Thanks to Marionumber1 for putting the checksum | |
# algorithm on the wiibrew wiki, where they found it | |
# (http://wiibrew.org/wiki/Super_Mario_Galaxy_savefile). Thanks to Treeki/Ninji | |
# for reverse-engineering the algorithm in the first place. | |
# Running with no arguments will cause it to scan for all .bin files in the | |
# same folder as itself (non-recursively) and fix all of their hashes. | |
# Running with one or more arguments will cause it to fix the hash of the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 6/16/16 | |
# A little script I wrote that converts Super Mario Maker .tnl course | |
# thumbnails to and from JPEG. (Spoiler: TNL is an incredibly thin JPEG wrapper | |
# format.) | |
# Licensed under the MIT License: | |
# Copyright (c) 2016 RoadrunnerWMC | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |