diff --git a/.gitignore b/.gitignore index 4cfcb3e5..27e9a659 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ ctx.c.m2c *.n64 *.z64 *.bin +*.otr src/assets/* !src/assets/ast_radio.c include/assets/* @@ -19,6 +20,7 @@ include/assets/* /build tools/mio0 tools/ido-recomp +debug/ .venv/ m2cfiles/ TempComp.bin.mio0 \ No newline at end of file diff --git a/Makefile b/Makefile index 2497768f..b79d9bc2 100644 --- a/Makefile +++ b/Makefile @@ -441,6 +441,7 @@ clean: @git clean -fdx asm/ @git clean -fdx bin/ @git clean -fdx build/ + @git clean -fdx src/assets/ @git clean -fdx linker_scripts/*.ld format: diff --git a/assets/yaml/us/ast_blue_marine.yaml b/assets/yaml/us/ast_blue_marine.yaml new file mode 100644 index 00000000..03942cf8 --- /dev/null +++ b/assets/yaml/us/ast_blue_marine.yaml @@ -0,0 +1,91 @@ +:config: + segments: + seg3: 0x8E1F80 + header: + code: + - '#include "assets/ast_blue_marine.h"' + header: + - '#include "gfx.h"' + - '#include "sf64object.h"' + - '#include "structs.h"' + +D_3000000: + { type: TEXTURE, ctype: u8, format: CI4, width: 16, height: 16, offset: 0x3000000, symbol: D_3000000, tlut: 0x3000080 } + +D_3000080: + { type: TEXTURE, ctype: u8, format: TLUT, colors: 8, offset: 0x3000080, symbol: D_3000080 } + +D_3000090: + { type: TEXTURE, ctype: u8, format: CI4, width: 32, height: 9, offset: 0x3000090, symbol: D_3000090, tlut: 0x3000120 } + +D_3000120: + { type: TEXTURE, ctype: u8, format: TLUT, colors: 8, offset: 0x3000120, symbol: D_3000120 } + +D_3000130: + { type: GFX, offset: 0x3000130, symbol: D_3000130 } + +ast_blue_marine_seg3_vtx_00000418: + { type: VTX, count: 5, offset: 0x3000418, symbol: D_3000418, pad: 2 } + +D_3000470: + { type: GFX, offset: 0x3000470, symbol: D_3000470 } + +D_30005E8: + { type: BLOB, size: 24, offset: 0x30005E8, symbol: D_30005E8 } + +D_3000600: + { type: TEXTURE, ctype: u8, format: CI4, width: 16, height: 8, offset: 0x3000600, symbol: D_3000600, tlut: 0x3000640 } + +D_3000640: + { type: TEXTURE, ctype: u8, format: TLUT, colors: 16, offset: 0x3000640, symbol: D_3000640 } + +D_3000660: + { type: GFX, offset: 0x3000660, symbol: D_3000660 } + +D_30006E8: + { type: TEXTURE, ctype: u8, format: IA8, width: 32, height: 32, offset: 0x30006E8, symbol: D_30006E8, pad: 2 } + +D_3000AF0: + { type: GFX, offset: 0x3000AF0, symbol: D_3000AF0 } + +D_3000C70: + { type: GFX, offset: 0x3000C70, symbol: D_3000C70 } + +D_3001900: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 8, height: 8, offset: 0x3001900, symbol: D_3001900 } + +D_3001980: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x3001980, symbol: D_3001980 } + +D_3002180: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x3002180, symbol: D_3002180 } + +D_3002980: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x3002980, symbol: D_3002980 } + +D_3003180: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x3003180, symbol: D_3003180 } + +D_3003980: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x3003980, symbol: D_3003980 } + +D_3004180: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x3004180, symbol: D_3004180 } + +D_3004980: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 64, height: 32, offset: 0x3004980, symbol: D_3004980 } + +D_3005980: + { type: GFX, offset: 0x3005980, symbol: D_3005980 } + +D_30062E8: + { type: TEXTURE, ctype: u8, format: RGBA16, width: 32, height: 32, offset: 0x30062E8, symbol: D_30062E8, pad: 4 } + +D_3006AF0: + { type: GFX, offset: 0x3006AF0, symbol: D_3006AF0 } + +D_3006C70: + { type: GFX, offset: 0x3006C70, symbol: D_3006C70 } + +D_3006DE0: + { type: GFX, offset: 0x3006DE0, symbol: D_3006DE0 } diff --git a/include/assets/ast_blue_marine.h b/include/assets/ast_blue_marine.h deleted file mode 100644 index 138afcff..00000000 --- a/include/assets/ast_blue_marine.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef AST_BLUE_MARINE_H -#define AST_BLUE_MARINE_H - -#include "gfx.h" -#include "sf64object.h" -#include "structs.h" - -#endif diff --git a/linker_scripts/us/undefined_syms.ld b/linker_scripts/us/undefined_syms.ld index 4eeac208..ac5e982a 100644 --- a/linker_scripts/us/undefined_syms.ld +++ b/linker_scripts/us/undefined_syms.ld @@ -711,7 +711,7 @@ D_101B5F0 = 0x0101B5F0; D_101B480 = 0x0101B480; D_101B310 = 0x0101B310; D_101B1A0 = 0x0101B1A0; -D_3000000 = 0x03000000; +D_03000000 = 0x03000000; D_3000080 = 0x03000080; D_5000D50 = 0x05000D50; D_5006CB0 = 0x05006CB0; @@ -1276,6 +1276,8 @@ D_A001EC0 = 0x0A001EC0; D_A001BE0 = 0x0A001BE0; D_7004270 = 0x07004270; +D_3002E80 = 0x3002E80; +D_3005AB0 = 0x3005AB0; D_1000000 = 0x1000000; D_1000280 = 0x1000280; D_1000640 = 0x1000640; diff --git a/tools/Torch b/tools/Torch index 56ade56c..3845d02c 160000 --- a/tools/Torch +++ b/tools/Torch @@ -1 +1 @@ -Subproject commit 56ade56c1236adcefddf1e97fffee0b1555c0877 +Subproject commit 3845d02cf603dbba49b44a160b4e1958c86c738e diff --git a/yamls/us/assets.yaml b/yamls/us/assets.yaml index 63396cd2..4a2a670d 100644 --- a/yamls/us/assets.yaml +++ b/yamls/us/assets.yaml @@ -37,8 +37,12 @@ - name: ast_blue_marine exclusive_ram_id: segment_03 - type: bin + type: code + dir: assets start: 0x8E1F80 + vram: 0x03000000 + subsegments: + - [0x8E1F80, .data, ast_blue_marine/ast_blue_marine] - name: ast_vs_player exclusive_ram_id: segment_03