Skip to content

mario_cheats.c causes compilation errors #154

@samfromcadott

Description

@samfromcadott

I get a lot of errors about models not being found in mario_cheats.c. I have the model pack extracted into ./build/us_pc/dynos/packs but the error persists.

src/game/mario_cheats.c:839:37: error: 'motos_geo' undeclared here (not in a function); did you mean 'mips_geo'?
  839 |     { bhvMotos,                     motos_geo,              "MOTOS",                        0,   40, 300, 0x00000000, 1, 0 }, // SPAMBA_MOTOS,
      |                                     ^~~~~~~~~
      |                                     mips_geo
src/game/mario_cheats.c:840:37: error: 'friendly_blargg_geo' undeclared here (not in a function); did you mean 'bhv_friendly_blargg_init'?
  840 |     { bhvFriendlyBlargg,            friendly_blargg_geo,    "BLARGG",                       0,   40, 300, 0x00000000, 1, 0 }, // SPAMBA_BLARGG,
      |                                     ^~~~~~~~~~~~~~~~~~~
      |                                     bhv_friendly_blargg_init
src/game/mario_cheats.c: In function 'cheats_spamba_spawn_object':
src/game/mario_cheats.c:1004:83: error: 'luigis_wing_cap_geo' undeclared (first use in this function); did you mean 'marios_wing_cap_geo'?
 1004 |             if (isLuigi()) obj->header.gfx.sharedChild = dynos_geo_get_graph_node(luigis_wing_cap_geo, true);
      |                                                                                   ^~~~~~~~~~~~~~~~~~~
      |                                                                                   marios_wing_cap_geo
src/game/mario_cheats.c:1004:83: note: each undeclared identifier is reported only once for each function it appears in
src/game/mario_cheats.c:1005:83: error: 'warios_wing_cap_geo' undeclared (first use in this function); did you mean 'marios_wing_cap_geo'?
 1005 |             if (isWario()) obj->header.gfx.sharedChild = dynos_geo_get_graph_node(warios_wing_cap_geo, true);
      |                                                                                   ^~~~~~~~~~~~~~~~~~~
      |                                                                                   marios_wing_cap_geo
src/game/mario_cheats.c:1010:83: error: 'luigis_cap_geo' undeclared (first use in this function)
 1010 |             if (isLuigi()) obj->header.gfx.sharedChild = dynos_geo_get_graph_node(luigis_cap_geo, true);
      |                                                                                   ^~~~~~~~~~~~~~
src/game/mario_cheats.c:1011:83: error: 'warios_cap_geo' undeclared (first use in this function); did you mean 'marios_cap_geo'?
 1011 |             if (isWario()) obj->header.gfx.sharedChild = dynos_geo_get_graph_node(warios_cap_geo, true);
      |                                                                                   ^~~~~~~~~~~~~~
      |                                                                                   marios_cap_geo
src/game/mario_cheats.c:1015:83: error: 'luigis_metal_cap_geo' undeclared (first use in this function); did you mean 'marios_metal_cap_geo'?
 1015 |             if (isLuigi()) obj->header.gfx.sharedChild = dynos_geo_get_graph_node(luigis_metal_cap_geo, true);
      |                                                                                   ^~~~~~~~~~~~~~~~~~~~
      |                                                                                   marios_metal_cap_geo
src/game/mario_cheats.c:1016:83: error: 'warios_metal_cap_geo' undeclared (first use in this function); did you mean 'marios_metal_cap_geo'?
 1016 |             if (isWario()) obj->header.gfx.sharedChild = dynos_geo_get_graph_node(warios_metal_cap_geo, true);
      |                                                                                   ^~~~~~~~~~~~~~~~~~~~
      |                                                                                   marios_metal_cap_geo
make: *** [Makefile:818: build/us_pc/src/game/mario_cheats.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions