mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +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>
147 lines
5.4 KiB
C
147 lines
5.4 KiB
C
#include "pc/rom_assets.h"
|
|
// Stomp Smoke
|
|
|
|
// 0x040220C8
|
|
ROM_ASSET_LOAD_VTX(stomp_smoke_seg4_vertex_040220C8, 0x00114750, 78432, 0x000220c8, 64);
|
|
|
|
// 0x04022108
|
|
ROM_ASSET_LOAD_VTX(stomp_smoke_seg4_vertex_04022108, 0x00114750, 78432, 0x00022108, 64);
|
|
|
|
// 0x04022148
|
|
ROM_ASSET_LOAD_TEXTURE(stomp_smoke_seg4_texture_04022148, "actors/stomp_smoke/stomp_smoke_0.ia16.inc.c", 0x00114750, 78432, 0x00022148, 2048);
|
|
|
|
// 0x04022948
|
|
ROM_ASSET_LOAD_TEXTURE(stomp_smoke_seg4_texture_04022948, "actors/stomp_smoke/stomp_smoke_1.ia16.inc.c", 0x00114750, 78432, 0x00022948, 2048);
|
|
|
|
// 0x04023148
|
|
ROM_ASSET_LOAD_TEXTURE(stomp_smoke_seg4_texture_04023148, "actors/stomp_smoke/stomp_smoke_2.ia16.inc.c", 0x00114750, 78432, 0x00023148, 2048);
|
|
|
|
// 0x04023948
|
|
ROM_ASSET_LOAD_TEXTURE(stomp_smoke_seg4_texture_04023948, "actors/stomp_smoke/stomp_smoke_3.ia16.inc.c", 0x00114750, 78432, 0x00023948, 2048);
|
|
|
|
// 0x04024148
|
|
ROM_ASSET_LOAD_TEXTURE(stomp_smoke_seg4_texture_04024148, "actors/stomp_smoke/stomp_smoke_4.ia16.inc.c", 0x00114750, 78432, 0x00024148, 2048);
|
|
|
|
// 0x04024948
|
|
ROM_ASSET_LOAD_TEXTURE(stomp_smoke_seg4_texture_04024948, "actors/stomp_smoke/stomp_smoke_5.ia16.inc.c", 0x00114750, 78432, 0x00024948, 2048);
|
|
|
|
// 0x04025148 - 0x04025190
|
|
const Gfx stomp_smoke_seg4_dl_04025148[] = {
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
|
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
|
|
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),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x04025190 - 0x040251C8
|
|
const Gfx stomp_smoke_seg4_dl_04025190[] = {
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsDPPipeSync(),
|
|
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x040251C8 - 0x040251E0
|
|
const Gfx stomp_smoke_seg4_dl_040251C8[] = {
|
|
gsSPDisplayList(stomp_smoke_seg4_dl_04025148),
|
|
gsSPVertex(stomp_smoke_seg4_vertex_040220C8, 4, 0),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_04025190),
|
|
};
|
|
|
|
// 0x040251E0 - 0x040251F8
|
|
const Gfx stomp_smoke_seg4_dl_040251E0[] = {
|
|
gsSPDisplayList(stomp_smoke_seg4_dl_04025148),
|
|
gsSPVertex(stomp_smoke_seg4_vertex_04022108, 4, 0),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_04025190),
|
|
};
|
|
|
|
// 0x040251F8 - 0x04025210
|
|
const Gfx stomp_smoke_seg4_dl_040251F8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04022148),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251C8),
|
|
};
|
|
|
|
// 0x04025210 - 0x04025228
|
|
const Gfx stomp_smoke_seg4_dl_04025210[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04022948),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251C8),
|
|
};
|
|
|
|
// 0x04025228 - 0x04025240
|
|
const Gfx stomp_smoke_seg4_dl_04025228[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04023148),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251C8),
|
|
};
|
|
|
|
// 0x04025240 - 0x04025258
|
|
const Gfx stomp_smoke_seg4_dl_04025240[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04023948),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251C8),
|
|
};
|
|
|
|
// 0x04025258 - 0x04025270
|
|
const Gfx stomp_smoke_seg4_dl_04025258[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04024148),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251C8),
|
|
};
|
|
|
|
// 0x04025270 - 0x04025288
|
|
const Gfx stomp_smoke_seg4_dl_04025270[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04024948),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251C8),
|
|
};
|
|
|
|
// 0x04025288 - 0x040252A0
|
|
const Gfx stomp_smoke_seg4_dl_04025288[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04022148),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251E0),
|
|
};
|
|
|
|
// 0x040252A0 - 0x040252B8
|
|
const Gfx stomp_smoke_seg4_dl_040252A0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04022948),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251E0),
|
|
};
|
|
|
|
// 0x040252B8 - 0x040252D0
|
|
const Gfx stomp_smoke_seg4_dl_040252B8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04023148),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251E0),
|
|
};
|
|
|
|
// 0x040252D0 - 0x040252E8
|
|
const Gfx stomp_smoke_seg4_dl_040252D0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04023948),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251E0),
|
|
};
|
|
|
|
// 0x040252E8 - 0x04025300
|
|
const Gfx stomp_smoke_seg4_dl_040252E8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04024148),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251E0),
|
|
};
|
|
|
|
// 0x04025300 - 0x04025318
|
|
const Gfx stomp_smoke_seg4_dl_04025300[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, stomp_smoke_seg4_texture_04024948),
|
|
gsSPBranchList(stomp_smoke_seg4_dl_040251E0),
|
|
};
|