Skip to content

Instantly share code, notes, and snippets.

@RoadrunnerWMC
RoadrunnerWMC / Entrance Types in NSMB2
Created September 20, 2014 15:45
A list of entrance types in NSMB2 and where they are used
Entrance type 0 is used in:
1-1 A1
1-1 A2
1-10 A1
1-12 A1
1-12 A3
1-14 A1
1-14 A2
1-16 A1
1-18 A1
# 6/15/16
# A little script I wrote for MasterF0x that will recalculate the CRC32 hashes
# of all files ending in ".cdt" within the same folder as the script itself.
# (For use with Super Mario Maker CDT course files.)
# Licensed under the MIT License:
# Copyright (c) 2016 RoadrunnerWMC
# Permission is hereby granted, free of charge, to any person obtaining a copy
@RoadrunnerWMC
RoadrunnerWMC / tnl_conv.py
Last active April 22, 2017 11:54
A little script I wrote that converts Super Mario Maker .tnl course thumbnails to and from JPEG.
# 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
@RoadrunnerWMC
RoadrunnerWMC / checksum_galaxy.py
Last active June 27, 2016 04:45
A little script I ported from C that will recalculate hashes of Super Mario Galaxy save files (GameData.bin).
# 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
@RoadrunnerWMC
RoadrunnerWMC / unstir.py
Created December 29, 2016 22:45 — forked from Treeki/unstir.py
Super Mario Run .stir file decrypter
# 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]
@RoadrunnerWMC
RoadrunnerWMC / rand-bonus-tile.py
Created January 3, 2017 06:37
An early version of a script to generate random object fills with the NSMBW bonus-room tileset (Pa2_sora)
# 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
@RoadrunnerWMC
RoadrunnerWMC / nloc.py
Created January 7, 2017 03:09
Converts Luigi's Mansion Dark Moon NLOC (translation) files to NLOCT (a custom easy-to-edit format I invented) and back. I should make this easier to use...
# 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"
@RoadrunnerWMC
RoadrunnerWMC / xbin-script.py
Created August 12, 2017 20:41
A quick script to import/export Kirby XBIN files with FDGH Converter.
#!/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
# 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
@RoadrunnerWMC
RoadrunnerWMC / nsmb-checksums.py
Last active July 15, 2024 19:36
nsmb-checksums: Updates all checksums in a New Super Mario Bros. savefile (.sav, .dsv, etc).
# 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