Skip to content

Instantly share code, notes, and snippets.

View Dragorn421's full-sized avatar

Dragorn421 Dragorn421

  • France
  • 00:57 (UTC +02:00)
View GitHub Profile
@Dragorn421
Dragorn421 / gbi.diff
Created January 20, 2022 02:21
oot gbi.h changes: "disable" fog and textures, shade everything using normal/vertex color data as vertex colors
diff --git a/include/ultra64/gbi.h b/include/ultra64/gbi.h
index 82b3589ae..60b87bf60 100644
--- a/include/ultra64/gbi.h
+++ b/include/ultra64/gbi.h
@@ -599,11 +599,11 @@
#define G_BL_CLR_IN 0
#define G_BL_CLR_MEM 1
#define G_BL_CLR_BL 2
-#define G_BL_CLR_FOG 3
+#define G_BL_CLR_FOG G_BL_CLR_IN//3
import os
import os.path
import re
replace_ignored = []
flags = dict()
def get_flag(index, mask):
@Dragorn421
Dragorn421 / intro.md
Last active February 16, 2022 11:39
Introduction to OoT64 code
@Dragorn421
Dragorn421 / transform_blender__to_z64.py
Created October 30, 2021 10:57
Display blender object transform loc/rot/scale in another coordinate system (same +x, but +y up)
import bpy
import mathutils
obj = bpy.context.active_object
blender_to_game = mathutils.Matrix(
[
[1, 0,0,0],
[0, 0,1,0],
[0,-1,0,0],
@Dragorn421
Dragorn421 / playas_reusedl_limbtransform_helper.py
Created October 30, 2021 09:49
Meant to help figure out MATRIX() arguments in zzplayas manifests when reusing dlists across limbs
"""
Blender 2.79-2.93 script
Meant to help figure out MATRIX() arguments in zzplayas manifests
when reusing dlists across limbs
(for example, if the hilt of the kokiri sword is shared between
the left hand limb and the sheath limb)
Run this by copypasting into a new text block in the Scripting layout
Instructions:
@Dragorn421
Dragorn421 / explore_zapd_xml_attributes.py
Created October 10, 2021 15:32
List resources and attribute orders used in zapd xmls in oot decomp
import xml.etree.ElementTree
import io
import os
resources_tags = set()
resources_attribs = dict()
et = None
try:
for root, dirs, files in os.walk("assets/xml"):
@Dragorn421
Dragorn421 / README.md
Created August 27, 2021 08:36
Find untranslated strings

This is meant to find all untranslated strings

It is not entirely accurate. It contains entries that are already translated and may be missing some, but it's a start

What it does is find all strings with "foreign" characters without a comment near them

Run at the root of the repo

python3 findUntranslatedScript.py > findUntranslatedOut.md

@Dragorn421
Dragorn421 / z64ovl_to_z64hdr.md
Created August 25, 2021 13:59
map (old) z64ovl function names to new z64hdr (decomp) names
Address z64hdr/decomp name z64ovl name
0x800013FC DmaMgr_ProcessMsg z_file_load
0x80001AA0 DmaMgr_SendRequest1 load_data_from_rom
0x80002F44 sprintf z_sprintf
0x800046C0 osWritebackDCache osWritebackDCache
0x80006150 osInvalICache osInvalICache
0x80003060 osSendMesg osSendMesg
0x80004450 bzero z_bzero
0x800052E0 _Printf _Printf
@Dragorn421
Dragorn421 / stdout.txt
Last active October 30, 2021 11:03
oot decomp progress
53 not decompiled in ./src/overlays/gamestates/ovl_file_choose/z_file_nameset_PAL.c
(file not decompiled)
Card not found or doesn't exist
asm/non_matchings/overlays/gamestates/ovl_file_choose/
func_80803D40.s, func_80803ED8.s, func_80804248.s, func_808043D8.s, func_808044A0.s, func_80804858.s, func_80804924.s, func_80804A50.s, func_80804C74.s, func_80804CD0.s, func_80804ED8.s, func_8080510C.s, func_808051C8.s, func_80805318.s, func_80805434.s, func_80805524.s, func_80805824.s, func_8080595C.s, func_80805B2C.s, func_80805EB8.s, func_80806180.s, func_8080625C.s, func_80806444.s, func_808064F4.s, func_80806710.s, func_808068F0.s, func_808069B4.s, func_80806C20.s, func_80806DB0.s, func_80806F34.s, func_8080723C.s, func_80807DCC.s, func_80808000.s, func_80808F84.s, func_80809038.s, func_8080960C.s, func_8080969C.s, func_808099C8.s, func_8080AF30.s, func_8080AF50.s, func_8080AFD0.s, func_8080B1A8.s, func_8080B22C.s, func_8080B394.s, func_8080B40C.s, func_8080B494.s, func_8080B52C.s, func_8080BE30.s, func_8

Very basic actor that just draws text on screen. For MQ debug (or change that in actor.h)