mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 14:50:15 +00:00
* wip: New assets system tm Builds gc-eu-mq-dbg OK from clean after 1) make setup 2) python3 -m tools.assets.extract -j 3) replace 0x80A8E610 with sShadowTex in extracted/gc-eu-mq-dbg/assets/overlays/ovl_En_Jsjutan/sShadowMaterialDL.inc.c 4) make various symbols in extracted data like sTex static * use variables from config.yml for gMtxClear and sShadowTex addresses * Write source with static for overlays using `HACK_IS_STATIC_ON` hack * gc-eu-mq-dbg OK from clean with `make setup && make` * implement more skeleton-related types, cleanups, fixups * fix extracted data to no longer produce compilation warnings * implement more of RoomShapeImage types * yeet XmlPath from ExternalFile usage * Implement PlayerAnimationDataResource (link_animetion data) * fix csdis CS_TIME extra arg * dmadata file names no longer hardcoded for gc-eu-mq-dbg * ntsc-1.0 OK * xml fixes * slightly improve standard output * rm extract_assets.py * generate and use Limb enums (TODO: check Skin skels and implement for Curve skels) * handle dependencies between xmls * introduce RawPointers xml attribute to ignore specific pointers and keep them raw * add tools/extract_assets.sh * fixups * only extract if xmls changed or if -f (force) is used * fixups, gc-eu OK * all versions OK * check attributes of xml resources elements * Implement legacy skelanime resources * fix ASSET_FILES_BIN_EXTRACTED/COMMITTED: look for .u8.bin specifically instead of just .bin * implement JFIFResource * fix png/jpg wildcards: look specifically for .u64.png .u32.png .u64.jpg * Makefile: Add rules to build .png, .bin and .jpg in assets/ too * start writing actual docs * extract sTransCircleDL and sTransWipeDL * misc cleanup/fixes, pygfxd 1.0.3 * refactor CDataExt.set_write callback args to use a dataclass * Move {} to in-source * misc * more progress on spec * fix missing braces in n64dd_error_textures.c * finish xml spec doc * assets xmls fixes * some cleanup, use `gNameTex_WIDTH/HEIGHT` macros in dlists * handle hackmode_syotes_room, fix compile * C build_from_png * rm tools/assets/bin2c * rm ZAPD * format * remove rule to generate dmadata_table.py * CC0 license (and some import cleanup) * dont try to build zapd (rmd) * simplify palettes with single user (ci images with a non-shared palette) * add docs on how images are handled * bss * allow -j N * fix n64texconv python bindings memory management * move -j at the end of calling extraction script * with -j, update last_extracts.json as each job completes rather than only if all complete * make interrupting less jank by making child processes ignore sigint * use enum names in `SCENE_CMD_SKYBOX_SETTINGS` * `multiprocessing.get_context("fork")` * import rich, except ImportError s * fix optional rich usage * .bss * .bss * .bss * assets extraction: -j -> -j$(N_THREADS) * .bss * change LIMB_NONE/MAX defaults to be FILE_OFFSET instead of SKELNAME * 0XHEX -> 0xHEX * fix bss * Proper includes for assets mostly proper, some includes like dlists resources always causing a sys_matrix.h include (when not every dlist references gIdentityMtx) could be done better * rm z64.h * rm z64.h take two * bss * Make .u64 suffix for pngs optional * fixup: rm .u64 suffix from n64dd image paths * Remove elemtype suffixes from .bin and .jpg files * Update images.md * some build_from_png cleanup, more error handling, comments * Handle skybox textures Introduce "sub-format" suffix for pngs, with sub-formats split_lo and split_hi being used for skybox textures * fixup for older python * improve collision output some * fully use SURFACETYPE[01] macros in writing extracted surface types * use WATERBOX_PROPERTIES in extracted waterboxes * some SceneCommandsResource cleanup * format EnvLightSettingsList output
235 lines
6 KiB
Python
235 lines
6 KiB
Python
# This file was made manually
|
|
|
|
SCENE_CAM_TYPES = {
|
|
0: "SCENE_CAM_TYPE_DEFAULT",
|
|
0x10: "SCENE_CAM_TYPE_FIXED_SHOP_VIEWPOINT",
|
|
0x20: "SCENE_CAM_TYPE_FIXED_TOGGLE_VIEWPOINT",
|
|
0x30: "SCENE_CAM_TYPE_FIXED",
|
|
0x40: "SCENE_CAM_TYPE_FIXED_MARKET",
|
|
0x50: "SCENE_CAM_TYPE_SHOOTING_GALLERY",
|
|
}
|
|
|
|
ROOM_BEHAVIOR_TYPE1_NAMES = {
|
|
0: "ROOM_TYPE_NORMAL",
|
|
1: "ROOM_TYPE_DUNGEON",
|
|
2: "ROOM_TYPE_INDOORS",
|
|
3: "ROOM_TYPE_3",
|
|
4: "ROOM_TYPE_4",
|
|
5: "ROOM_TYPE_BOSS",
|
|
}
|
|
|
|
ROOM_BEHAVIOR_TYPE2_NAMES = {
|
|
0: "ROOM_ENV_DEFAULT",
|
|
1: "ROOM_ENV_COLD",
|
|
2: "ROOM_ENV_WARM",
|
|
3: "ROOM_ENV_HOT",
|
|
4: "ROOM_ENV_UNK_STRETCH_1",
|
|
5: "ROOM_ENV_UNK_STRETCH_2",
|
|
6: "ROOM_ENV_UNK_STRETCH_3",
|
|
}
|
|
|
|
LENS_MODES = {
|
|
0: "LENS_MODE_SHOW_ACTORS",
|
|
1: "LENS_MODE_HIDE_ACTORS",
|
|
}
|
|
|
|
CAMERA_SETTING_TYPES = {
|
|
0x00: "CAM_SET_NONE",
|
|
0x01: "CAM_SET_NORMAL0",
|
|
0x02: "CAM_SET_NORMAL1",
|
|
0x03: "CAM_SET_DUNGEON0",
|
|
0x04: "CAM_SET_DUNGEON1",
|
|
0x05: "CAM_SET_NORMAL3",
|
|
0x06: "CAM_SET_HORSE",
|
|
0x07: "CAM_SET_BOSS_GOHMA",
|
|
0x08: "CAM_SET_BOSS_DODONGO",
|
|
0x09: "CAM_SET_BOSS_BARINADE",
|
|
0x0A: "CAM_SET_BOSS_PHANTOM_GANON",
|
|
0x0B: "CAM_SET_BOSS_VOLVAGIA",
|
|
0x0C: "CAM_SET_BOSS_BONGO",
|
|
0x0D: "CAM_SET_BOSS_MORPHA",
|
|
0x0E: "CAM_SET_BOSS_TWINROVA_PLATFORM",
|
|
0x0F: "CAM_SET_BOSS_TWINROVA_FLOOR",
|
|
0x10: "CAM_SET_BOSS_GANONDORF",
|
|
0x11: "CAM_SET_BOSS_GANON",
|
|
0x12: "CAM_SET_TOWER_CLIMB",
|
|
0x13: "CAM_SET_TOWER_UNUSED",
|
|
0x14: "CAM_SET_MARKET_BALCONY",
|
|
0x15: "CAM_SET_CHU_BOWLING",
|
|
0x16: "CAM_SET_PIVOT_CRAWLSPACE",
|
|
0x17: "CAM_SET_PIVOT_SHOP_BROWSING",
|
|
0x18: "CAM_SET_PIVOT_IN_FRONT",
|
|
0x19: "CAM_SET_PREREND_FIXED",
|
|
0x1A: "CAM_SET_PREREND_PIVOT",
|
|
0x1B: "CAM_SET_PREREND_SIDE_SCROLL",
|
|
0x1C: "CAM_SET_DOOR0",
|
|
0x1D: "CAM_SET_DOORC",
|
|
0x1E: "CAM_SET_CRAWLSPACE",
|
|
0x1F: "CAM_SET_START0",
|
|
0x20: "CAM_SET_START1",
|
|
0x21: "CAM_SET_FREE0",
|
|
0x22: "CAM_SET_FREE2",
|
|
0x23: "CAM_SET_PIVOT_CORNER",
|
|
0x24: "CAM_SET_PIVOT_WATER_SURFACE",
|
|
0x25: "CAM_SET_CS_0",
|
|
0x26: "CAM_SET_CS_TWISTED_HALLWAY",
|
|
0x27: "CAM_SET_FOREST_BIRDS_EYE",
|
|
0x28: "CAM_SET_SLOW_CHEST_CS",
|
|
0x29: "CAM_SET_ITEM_UNUSED",
|
|
0x2A: "CAM_SET_CS_3",
|
|
0x2B: "CAM_SET_CS_ATTENTION",
|
|
0x2C: "CAM_SET_BEAN_GENERIC",
|
|
0x2D: "CAM_SET_BEAN_LOST_WOODS",
|
|
0x2E: "CAM_SET_SCENE_UNUSED",
|
|
0x2F: "CAM_SET_SCENE_TRANSITION",
|
|
0x30: "CAM_SET_ELEVATOR_PLATFORM",
|
|
0x31: "CAM_SET_FIRE_STAIRCASE",
|
|
0x32: "CAM_SET_FOREST_UNUSED",
|
|
0x33: "CAM_SET_FOREST_DEFEAT_POE",
|
|
0x34: "CAM_SET_BIG_OCTO",
|
|
0x35: "CAM_SET_MEADOW_BIRDS_EYE",
|
|
0x36: "CAM_SET_MEADOW_UNUSED",
|
|
0x37: "CAM_SET_FIRE_BIRDS_EYE",
|
|
0x38: "CAM_SET_TURN_AROUND",
|
|
0x39: "CAM_SET_PIVOT_VERTICAL",
|
|
0x3A: "CAM_SET_NORMAL2",
|
|
0x3B: "CAM_SET_FISHING",
|
|
0x3C: "CAM_SET_CS_C",
|
|
0x3D: "CAM_SET_JABU_TENTACLE",
|
|
0x3E: "CAM_SET_DUNGEON2",
|
|
0x3F: "CAM_SET_DIRECTED_YAW",
|
|
0x40: "CAM_SET_PIVOT_FROM_SIDE",
|
|
0x41: "CAM_SET_NORMAL4",
|
|
}
|
|
|
|
SKIN_LIMB_TYPES = {
|
|
4: "SKIN_LIMB_TYPE_ANIMATED",
|
|
11: "SKIN_LIMB_TYPE_NORMAL",
|
|
}
|
|
|
|
ROOM_SHAPE_TYPE = {
|
|
0: "ROOM_SHAPE_TYPE_NORMAL",
|
|
1: "ROOM_SHAPE_TYPE_IMAGE",
|
|
2: "ROOM_SHAPE_TYPE_CULLABLE",
|
|
}
|
|
|
|
ROOM_SHAPE_IMAGE_AMOUNT_TYPE = {
|
|
1: "ROOM_SHAPE_IMAGE_AMOUNT_SINGLE",
|
|
2: "ROOM_SHAPE_IMAGE_AMOUNT_MULTI",
|
|
}
|
|
|
|
SKYBOX_IDS = {
|
|
0x00: "SKYBOX_NONE",
|
|
0x01: "SKYBOX_NORMAL_SKY",
|
|
0x02: "SKYBOX_BAZAAR",
|
|
0x03: "SKYBOX_OVERCAST_SUNSET",
|
|
0x04: "SKYBOX_MARKET_ADULT",
|
|
0x05: "SKYBOX_CUTSCENE_MAP",
|
|
0x07: "SKYBOX_HOUSE_LINK",
|
|
0x09: "SKYBOX_MARKET_CHILD_DAY",
|
|
0x0A: "SKYBOX_MARKET_CHILD_NIGHT",
|
|
0x0B: "SKYBOX_HAPPY_MASK_SHOP",
|
|
0x0C: "SKYBOX_HOUSE_KNOW_IT_ALL_BROTHERS",
|
|
0x0E: "SKYBOX_HOUSE_OF_TWINS",
|
|
0x0F: "SKYBOX_STABLES",
|
|
0x10: "SKYBOX_HOUSE_KAKARIKO",
|
|
0x11: "SKYBOX_KOKIRI_SHOP",
|
|
0x13: "SKYBOX_GORON_SHOP",
|
|
0x14: "SKYBOX_ZORA_SHOP",
|
|
0x16: "SKYBOX_POTION_SHOP_KAKARIKO",
|
|
0x17: "SKYBOX_POTION_SHOP_MARKET",
|
|
0x18: "SKYBOX_BOMBCHU_SHOP",
|
|
0x1A: "SKYBOX_HOUSE_RICHARD",
|
|
0x1B: "SKYBOX_HOUSE_IMPA",
|
|
0x1C: "SKYBOX_TENT",
|
|
0x1D: "SKYBOX_UNSET_1D",
|
|
0x20: "SKYBOX_HOUSE_MIDO",
|
|
0x21: "SKYBOX_HOUSE_SARIA",
|
|
0x22: "SKYBOX_HOUSE_ALLEY",
|
|
0x27: "SKYBOX_UNSET_27",
|
|
}
|
|
|
|
LIGHT_MODES = {
|
|
0: "LIGHT_MODE_TIME",
|
|
1: "LIGHT_MODE_SETTINGS",
|
|
}
|
|
|
|
NAVI_QUEST_HINT_FILE_IDS = {
|
|
0: "NAVI_QUEST_HINTS_NONE",
|
|
1: "NAVI_QUEST_HINTS_OVERWORLD",
|
|
2: "NAVI_QUEST_HINTS_DUNGEON",
|
|
}
|
|
|
|
FLOOR_TYPES = {
|
|
0: "FLOOR_TYPE_0",
|
|
1: "FLOOR_TYPE_1",
|
|
2: "FLOOR_TYPE_2",
|
|
3: "FLOOR_TYPE_3",
|
|
4: "FLOOR_TYPE_4",
|
|
5: "FLOOR_TYPE_5",
|
|
6: "FLOOR_TYPE_6",
|
|
7: "FLOOR_TYPE_7",
|
|
8: "FLOOR_TYPE_8",
|
|
9: "FLOOR_TYPE_9",
|
|
10: "FLOOR_TYPE_10",
|
|
11: "FLOOR_TYPE_11",
|
|
12: "FLOOR_TYPE_12",
|
|
}
|
|
|
|
WALL_TYPES = {
|
|
0: "WALL_TYPE_0",
|
|
1: "WALL_TYPE_1",
|
|
2: "WALL_TYPE_2",
|
|
3: "WALL_TYPE_3",
|
|
4: "WALL_TYPE_4",
|
|
5: "WALL_TYPE_5",
|
|
6: "WALL_TYPE_6",
|
|
7: "WALL_TYPE_7",
|
|
8: "WALL_TYPE_8",
|
|
9: "WALL_TYPE_9",
|
|
10: "WALL_TYPE_10",
|
|
11: "WALL_TYPE_11",
|
|
12: "WALL_TYPE_12",
|
|
}
|
|
|
|
FLOOR_PROPERTIES = {
|
|
0: "FLOOR_PROPERTY_0",
|
|
5: "FLOOR_PROPERTY_5",
|
|
6: "FLOOR_PROPERTY_6",
|
|
7: "FLOOR_PROPERTY_7",
|
|
8: "FLOOR_PROPERTY_8",
|
|
9: "FLOOR_PROPERTY_9",
|
|
11: "FLOOR_PROPERTY_11",
|
|
12: "FLOOR_PROPERTY_12",
|
|
}
|
|
|
|
SURFACE_MATERIALS = {
|
|
0: "SURFACE_MATERIAL_DIRT",
|
|
1: "SURFACE_MATERIAL_SAND",
|
|
2: "SURFACE_MATERIAL_STONE",
|
|
3: "SURFACE_MATERIAL_JABU",
|
|
4: "SURFACE_MATERIAL_WATER_SHALLOW",
|
|
5: "SURFACE_MATERIAL_WATER_DEEP",
|
|
6: "SURFACE_MATERIAL_TALL_GRASS",
|
|
7: "SURFACE_MATERIAL_LAVA",
|
|
8: "SURFACE_MATERIAL_GRASS",
|
|
9: "SURFACE_MATERIAL_BRIDGE",
|
|
10: "SURFACE_MATERIAL_WOOD",
|
|
11: "SURFACE_MATERIAL_DIRT_SOFT",
|
|
12: "SURFACE_MATERIAL_ICE",
|
|
13: "SURFACE_MATERIAL_CARPET",
|
|
14: "SURFACE_MATERIAL_MAX",
|
|
}
|
|
|
|
FLOOR_EFFECTS = {
|
|
0: "FLOOR_EFFECT_0",
|
|
1: "FLOOR_EFFECT_1",
|
|
2: "FLOOR_EFFECT_2",
|
|
}
|
|
|
|
CONVEYOR_SPEEDS = {
|
|
0: "CONVEYOR_SPEED_DISABLED",
|
|
1: "CONVEYOR_SPEED_SLOW",
|
|
2: "CONVEYOR_SPEED_MEDIUM",
|
|
3: "CONVEYOR_SPEED_FAST",
|
|
}
|