mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-03 01:07:27 +00:00
663e4549d8
* Proof of concept for loading rom assets at runtime * Added skybox textures * Adjusted format * Load all texture assets from rom * Adjusted rom asset loading * Load all Vtx lists from rom * clean up toad, wario and his cap conflicts * Load sound samples from rom * fix toad sounds * Loaded sequences from rom * Load collisions from rom * Object animations are now loaded from the rom * Load player animations from rom * Load goddard anims from rom * whoops * fix some compile errors * drag and drop rom checker, everything works now. * fix errors due to merge conflicts * fix compile errors on windows, switch to md5 * fix vertex colors during load Co-Authored-By: Agent X <44549182+agent-11@users.noreply.github.com> * Load dialogs from rom * Loaded course/act names from rom * Loaded ingame text from rom * rerun autogen & blacklist smlua_text_utils_init * fix ttc_seg7_vertex_0700B238 colors --------- Co-authored-by: MysterD <myster@d> Co-authored-by: Agent X <44549182+agent-11@users.noreply.github.com>
183 lines
6.7 KiB
C
183 lines
6.7 KiB
C
#include "pc/rom_assets.h"
|
|
// Flame
|
|
|
|
// 0x030172E0
|
|
ROM_ASSET_LOAD_VTX(flame_seg3_vertex_030172E0, 0x00201410, 96653, 0x000172e0, 64);
|
|
|
|
// 0x03017320
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_03017320, "actors/flame/flame_0.ia16.inc.c", 0x00201410, 96653, 0x00017320, 2048);
|
|
|
|
// 0x03017B20
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_03017B20, "actors/flame/flame_1.ia16.inc.c", 0x00201410, 96653, 0x00017b20, 2048);
|
|
|
|
// 0x03018320
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_03018320, "actors/flame/flame_2.ia16.inc.c", 0x00201410, 96653, 0x00018320, 2048);
|
|
|
|
// 0x03018B20
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_03018B20, "actors/flame/flame_3.ia16.inc.c", 0x00201410, 96653, 0x00018b20, 2048);
|
|
|
|
// 0x03019320
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_03019320, "actors/flame/flame_4.ia16.inc.c", 0x00201410, 96653, 0x00019320, 2048);
|
|
|
|
// 0x03019B20
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_03019B20, "actors/flame/flame_5.ia16.inc.c", 0x00201410, 96653, 0x00019b20, 2048);
|
|
|
|
// 0x0301A320
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_0301A320, "actors/flame/flame_6.ia16.inc.c", 0x00201410, 96653, 0x0001a320, 2048);
|
|
|
|
// 0x0301AB20
|
|
ROM_ASSET_LOAD_TEXTURE(flame_seg3_texture_0301AB20, "actors/flame/flame_7.ia16.inc.c", 0x00201410, 96653, 0x0001ab20, 2048);
|
|
|
|
// 0x0301B320 - 0x0301B3B0
|
|
const Gfx flame_seg3_dl_0301B320[] = {
|
|
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
|
|
gsDPSetEnvColor(255, 50, 0, 200),
|
|
gsDPSetCombineMode(G_CC_FADEA, G_CC_FADEA),
|
|
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsSPVertex(flame_seg3_vertex_030172E0, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
|
|
gsDPSetEnvColor(255, 255, 255, 255),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0301B3B0 - 0x0301B3C8
|
|
const Gfx flame_seg3_dl_0301B3B0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03017320),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B3C8 - 0x0301B3E0
|
|
const Gfx flame_seg3_dl_0301B3C8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03017B20),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B3E0 - 0x0301B3F8
|
|
const Gfx flame_seg3_dl_0301B3E0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03018320),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B3F8 - 0x0301B410
|
|
const Gfx flame_seg3_dl_0301B3F8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03018B20),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B410 - 0x0301B428
|
|
const Gfx flame_seg3_dl_0301B410[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03019320),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B428 - 0x0301B440
|
|
const Gfx flame_seg3_dl_0301B428[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03019B20),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B440 - 0x0301B458
|
|
const Gfx flame_seg3_dl_0301B440[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_0301A320),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B458 - 0x0301B470
|
|
const Gfx flame_seg3_dl_0301B458[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_0301AB20),
|
|
gsSPBranchList(flame_seg3_dl_0301B320),
|
|
};
|
|
|
|
// 0x0301B470 - 0x0301B500
|
|
const Gfx flame_seg3_dl_0301B470[] = {
|
|
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
|
|
gsDPSetEnvColor(100, 100, 255, 255),
|
|
gsDPSetCombineMode(G_CC_FADEA, G_CC_FADEA),
|
|
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsSPVertex(flame_seg3_vertex_030172E0, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
|
|
gsDPSetEnvColor(255, 255, 255, 255),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0301B500 - 0x0301B518
|
|
const Gfx flame_seg3_dl_0301B500[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03017320),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B518 - 0x0301B530
|
|
const Gfx flame_seg3_dl_0301B518[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03017B20),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B530 - 0x0301B548
|
|
const Gfx flame_seg3_dl_0301B530[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03018320),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B548 - 0x0301B560
|
|
const Gfx flame_seg3_dl_0301B548[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03018B20),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B560 - 0x0301B578
|
|
const Gfx flame_seg3_dl_0301B560[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03019320),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B578 - 0x0301B590
|
|
const Gfx flame_seg3_dl_0301B578[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_03019B20),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B590 - 0x0301B5A8
|
|
const Gfx flame_seg3_dl_0301B590[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_0301A320),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|
|
|
|
// 0x0301B5A8 - 0x0301B5C0
|
|
const Gfx flame_seg3_dl_0301B5A8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flame_seg3_texture_0301AB20),
|
|
gsSPBranchList(flame_seg3_dl_0301B470),
|
|
};
|