Skip to content

Instantly share code, notes, and snippets.

View Dragorn421's full-sized avatar

Dragorn421 Dragorn421

  • France
  • 04:27 (UTC +02:00)
View GitHub Profile
@Dragorn421
Dragorn421 / LicensingPlea.md
Last active June 8, 2026 09:07
Dragorn's Licensing Plea

Dragorn's Licensing Plea - text licensed under CC0 - please copypaste

TLDR: Please attach the CC0 license to your decompilation and disassembly projects. If you don't, it unnecessarily restricts what others can do with them.

Plea maintained at https://gist.github.com/Dragorn421/937dce411e81b326854c8c2cf1ae69e6

I am not a lawyer and this is not legal advice, but I do have a deep understanding of what I'm writing about here.

First, a quick ELI5 on licensing

@Dragorn421
Dragorn421 / Makefile
Last active February 20, 2025 13:39
includes_analyzer: a jank tool to find function definitions where the header with their declaration is not included
# SPDX-FileCopyrightText: 2024 Dragorn421
# SPDX-License-Identifier: CC0-1.0
includes_analyzer: includes_analyzer.c
$(CC) -O3 -L/usr/lib/llvm-18/lib/ -I/usr/lib/llvm-18/include/ $^ -lclang -o $@
@Dragorn421
Dragorn421 / 1 README.md
Created August 11, 2024 15:32
oot build all versions scripts

here are my two attempts

  • buildall.sh first attempt, at least it's simple
  • buildallround.py second attempt is "resumable", it'll remember OK versions even if you ctrl+C and rerun it. there's also limited options for what it'll do at the top:
# whether to ask for confirmation before running make commands
CONFIRM_MAKE = False
# whether to make assetclean and make clean before building
CLEAN = False
# whether to try run fix_bss after make fails
AUTO_TRY_FIX_BSS = True
@Dragorn421
Dragorn421 / zcolchk_atacoc_names.md
Created January 11, 2023 17:08
oot64 collider names: at/ac/oc stuff
@Dragorn421
Dragorn421 / 1file.md
Created January 9, 2023 17:01
comparison between xml, yaml, toml for oot decomp assets description assuming one file per config file

1File xml

<File Name="object_am" Segment="6">
    <Skeleton Name="gArmosSkel" Type="Normal" LimbType="Standard" Offset="0x5948"/>
    <Animation Name="gArmosRicochetAnim" Offset="0x33C"/>
    <Animation Name="gArmosHopAnim" Offset="0x238"/>
    <Animation Name="gArmosDamagedAnim" Offset="0x5B3C"/>
    <Collision Name="gArmosCol" Offset="0x118"/>
</File>
@Dragorn421
Dragorn421 / oot_scene_names.csv
Last active November 26, 2022 20:18
Comparison of OoT scene names from different sources
id original cloudmodding zzrtl z64rom petrie's unreleased rom tool PR
0 ydan_scene Inside the Deku Tree Dungeon - Inside the Deku Tree Inside_the_Deku_Tree Deku_Tree deku_tree
1 ddan_scene Dodongo's Cavern Dungeon - Dodongo's Cavern Dodongos_Cavern Dodongo's_Cavern dodongos_cavern
2 bdan_scene Inside Jabu-Jabu's Belly Dungeon - Inside Jabu-Jabu's Belly Inside_Jabu_Jabus_Belly Inside_Jabu_Jabu's_Belly jabu_jabu
3 Bmori1_scene Forest Temple Dungeon - Forest Temple Forest_Temple Forest_Temple forest_temple
4 HIDAN_scene Fire Temple Dungeon - Fire Temple Fire_Temple Fire_Temple fire_temple
5 MIZUsin_scene Water Temple Dungeon - Water Temple Water_Temple Water_Temple water_temple
6 jyasinzou_scene Spirit Temple Dungeon - Spirit Temple Spirit_Temple Spirit_Temple spirit_temple
7 HAKAdan_scene Shadow Temple Dungeon - Shadow Temple Shadow_Temple Shadow_Temple shadow_temple
8 HAKAdanCH_scene Bottom of the Well Dungeon - Bottom of the Well Bottom_of_the_Well Bottom_of_the_Well bottom_of_the_well

Memory

The N64 has 4 MB of RAM, which can be extended to 8 MB by putting an expansion pack into the controller.

Many OoT versions only require 4 MB of RAM, but the OoT MQ Debug version does require 8 MB.

Permanently loaded code

The boot and code files contain code and data that is permanently loaded, until a reset or a shutdown.

@Dragorn421
Dragorn421 / cs_actor_action_doc_v2.py
Last active July 14, 2022 14:23
OoT64 decomp: (wip) tie cutscene cmd ids for npc actions to appropriate actors
import os
import re
def failimpl(*args):
print("! fail() vvvvv")
print(*args)
print("! fail() ^^^^^")
@Dragorn421
Dragorn421 / a_README.md
Created May 31, 2022 09:35
cflow on zeldaret/oot
@Dragorn421
Dragorn421 / blend4web_normal_editor_standalone.py
Last active April 14, 2022 13:10
Normal editor from Blend4Web, working standalone https://www.blend4web.com
# Copyright (C) 2014-2017 Triumph LLC
#
# 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
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the