|
Mario Kart 64
|
Go to the source code of this file.
| #define BAD 0 |
| #define BALLOON_STATUS_DEPARTING 2 |
| #define BALLOON_STATUS_GONE 0 |
Balloon status
| #define BALLOON_STATUS_PRESENT 1 |
| #define BATTLE 3 |
| #define BATTLE_CUP 4 |
| #define BLANK_MAIN_MENU 0 |
Options for gMainMenuSelectionDepth
| #define BOO_EFFECT 0x800 |
| #define BOOST_EFFECT 0x200 |
effect of player's for statusEffect
| #define BOWSER 7 |
| #define BOWSER_SIZE 0.75f |
| #define CC_100 1 |
| #define CC_150 2 |
| #define CC_50 0 |
Options for gCCSelection CC stands for cubic-centimetres. It measures engine displacement composed from cylinder volume. Generally, the main determiner of horsepower output.
| #define CC_BATTLE 4 |
| #define CC_EXTRA 3 |
| #define COLOR_BLACK GPACK_RGB888(0, 0, 0) |
| #define COLOR_LAVA GPACK_RGB888(0x34, 0x00, 0x00) |
| #define COLOR_LIGHT GPACK_RGB888(0x1C, 0x00, 0x00) |
| #define CONFIRM_OK_SELECTION 6 |
| #define CONFIRM_OK_SELECTION_FROM_BACK_OUT 7 |
| #define CONTROLLER_PAK_MENU 9 |
| #define CONTROLLER_PAK_MENU_END 2 |
| #define CONTROLLER_PAK_MENU_ERASE 3 |
| #define CONTROLLER_PAK_MENU_ERASE_ERROR_NO_PAK 9 |
| #define CONTROLLER_PAK_MENU_ERASE_ERROR_NOT_ERASED 8 |
| #define CONTROLLER_PAK_MENU_ERASE_ERROR_PAK_CHANGED 10 |
| #define CONTROLLER_PAK_MENU_ERASING 7 |
| #define CONTROLLER_PAK_MENU_GO_TO_ERASING 6 |
| #define CONTROLLER_PAK_MENU_QUIT 4 |
| #define CONTROLLER_PAK_MENU_SELECT_RECORD 1 |
Options for gControllerPakMenuSelection
| #define CONTROLLER_PAK_MENU_TABLE_GAME_DATA 5 |
| #define COURSE_DATA_MENU 7 |
| #define COURSE_SELECT_MENU 13 |
| #define COURSE_SELECT_MENU_FROM_QUIT 3 |
| #define CREDITS_SEQUENCE 9 |
| #define CUP_COURSE_FOUR 3 |
| #define CUP_COURSE_ONE 0 |
| #define CUP_COURSE_THREE 2 |
| #define CUP_COURSE_TWO 1 |
| #define DATA_MENU 6 |
| #define DATA_SELECTION 2 |
| #define DEBUG_GOTO_CREDITS_SEQUENCE_CC_50 2 |
| #define DEBUG_GOTO_CREDITS_SEQUENCE_CC_EXTRA 3 |
| #define DEBUG_GOTO_ENDING_SEQUENCE 1 |
| #define DEBUG_GOTO_RACING 0 |
Options for gDebugGotoScene
| #define DEBUG_MENU 1 |
| #define DEBUG_MENU_COURSE 3 |
| #define DEBUG_MENU_DEBUG_MODE 2 |
| #define DEBUG_MENU_DISABLED 1 |
Options for gDebugMenuSelection
| #define DEBUG_MENU_EXITED 64 |
| #define DEBUG_MENU_GIVE_ALL_GOLD_CUP 7 |
| #define DEBUG_MENU_PLAYER 5 |
| #define DEBUG_MENU_SCREEN_MODE 4 |
| #define DEBUG_MENU_SOUND_MODE 6 |
| #define DEBUG_MODE 0 |
Enable debug mode
Press start to skip through menus
Toggle resource meters by holding R and tapping B. L must not be held.
Reset to start screen by holding A, B, R, and L.
View player direction and currentPathPoint in a single player race during staging tap L while holding A and B. Turn off this UI by tapping R while holding A and B.
Set player 1 to the final lap by tapping D-pad up. Set player 1 and player 2 to the final lap by tapping D-pad right. Set player all players to the final lap by tapping D-pad down.
Immediately start the race if any controller presses Z.
As the ceremony cutscene starts hold a C or D-pad to switch characters. C UP = LUIGI C LEFT = YOSHI C RIGHT = TOAD C DOWN = DK D-pad UP = WARIO D-pad LEFT = PEACH D-pad RIGHT = BOWSER D-pad DOWN = MARIO
| #define DEMO_FIVE 4 |
| #define DEMO_FOUR 3 |
| #define DEMO_MODE_ACTIVE 1 |
Jump to demo mode from the debug menu using L and A
| #define DEMO_MODE_INACTIVE 0 |
| #define DEMO_ONE 0 |
Title screen demo options All demos use 100 CC
| #define DEMO_SIX 5 |
| #define DEMO_THREE 2 |
| #define DEMO_TWO 1 |
| #define DK 4 |
| #define DK_SIZE 0.75f |
| #define ENDING_SEQUENCE 5 |
| #define FLOWER_CUP 1 |
| #define FOUR_PLAYERS_SELECTED 4 |
| #define GAME_MODE_CC_OR_TIME_TRIALS_OPTIONS_SELECTION 5 |
| #define GAME_MODE_SELECTION 4 |
| #define GPACK_RGB888 | ( | r, | |
| g, | |||
| b | |||
| ) | (((r) << 16) | ((g) << 8) | (b)) |
| #define GRAND_PRIX 0 |
Options for gModeSelection
| #define HIT_BY_ITEM_EFFECT 0x1000000 |
| #define HIT_ROTATING_EFFECT 0x4000 |
| #define HOLD_ALL_DPAD_AND_C_BUTTONS (U_JPAD | L_JPAD | R_JPAD | D_JPAD | U_CBUTTONS | L_CBUTTONS | R_CBUTTONS | D_CBUTTONS) |
| #define HOLD_BANANA_EFFECT 0x40000 |
| #define ITEM_BANANA 1 |
| #define ITEM_BANANA_BUNCH 2 |
| #define ITEM_BLUE_SPINY_SHELL 7 |
| #define ITEM_BOO 11 |
| #define ITEM_DOUBLE_MUSHROOM 13 |
| #define ITEM_FAKE_ITEM_BOX 9 |
| #define ITEM_GREEN_SHELL 3 |
| #define ITEM_MUSHROOM 12 |
| #define ITEM_NONE 0 |
Item IDs
| #define ITEM_RED_SHELL 5 |
| #define ITEM_STAR 10 |
| #define ITEM_SUPER_MUSHROOM 15 |
| #define ITEM_THUNDERBOLT 8 |
| #define ITEM_TRIPLE_GREEN_SHELL 4 |
| #define ITEM_TRIPLE_MUSHROOM 14 |
| #define ITEM_TRIPLE_RED_SHELL 6 |
| #define LIGHTNING_EFFECT 0x40000000 |
| #define LOGO_INTRO_MENU 8 |
| #define LUIGI 1 |
| #define LUIGI_SIZE 0.75f |
| #define MAIN_MENU 11 |
| #define MAIN_MENU_FROM_QUIT 1 |
| #define MARIO 0 |
Character IDs Note that these are not the same as the values found in gCharacterGridSelections as those are ordered by table
| #define MARIO_SIZE 0.75f |
| #define MAX_NUM_MAIN_MENU_GAME_TYPES 3 |
| #define MAX_TIME 0x927C0 |
Max representable time, 100 minutes measured in centiseconds
| #define MUSHROOM_CUP 0 |
Options for gCupSelection There is a "cup" for battle mode, probably so that the battle courses could be displayed in the same way race courses are.
| #define NUM_COURSES_PER_CUP 4 |
| #define NUM_CUPS 5 |
| #define NUM_DEMOS 6 |
| #define NUM_SCREEN_MODES 4 |
| #define NUM_SOUND_MODES 4 |
| #define OK 1 |
Options for Controller Pak state
| #define ONE_PLAYERS_SELECTED 1 |
| #define OPTIONS_MENU 5 |
Options for gMenuSelection
| #define OPTIONS_SELECTION 1 |
| #define PEACH 6 |
| #define PEACH_SIZE 0.75f |
| #define PLAYER_CINEMATIC_MODE (1 << 11) |
| #define PLAYER_CPU (1 << 12) |
| #define PLAYER_EXISTS (1 << 15) |
| #define PLAYER_FOUR 3 |
| #define PLAYER_HUMAN (1 << 14) |
| #define PLAYER_HUMAN_AND_CPU PLAYER_EXISTS | PLAYER_HUMAN | PLAYER_CPU | PLAYER_START_SEQUENCE |
| #define PLAYER_INACTIVE 0 |
Racing terms: Staging means aligning a racecar to the starting line. Start sequence means waiting for the light to turn green. Used in the Player struct's 'type' member: player->type
| #define PLAYER_INVISIBLE_OR_BOMB (1 << 8) |
| #define PLAYER_NUM_SELECTION 3 |
| #define PLAYER_ONE 0 |
| #define PLAYER_SELECT_MENU 12 |
| #define PLAYER_SELECT_MENU_FROM_QUIT 2 |
| #define PLAYER_STAGING (1 << 9) |
| #define PLAYER_START_SEQUENCE (1 << 13) |
| #define PLAYER_THREE 2 |
| #define PLAYER_TWO 1 |
| #define PLAYER_UNKNOWN (1 << 10) |
| #define PLAYER_UNKNOWN_0x40 (1 << 6) |
| #define RACING 4 |
| #define RACING_DUPLICATE 14 |
| #define REVERSE_EFFECT 0x400000 |
| #define SCREEN_MODE_1P 0 |
Options for gScreenModeSelection and gActiveScreenMode
| #define SCREEN_MODE_2P_SPLITSCREEN_HORIZONTAL 1 |
| #define SCREEN_MODE_2P_SPLITSCREEN_VERTICAL 2 |
| #define SCREEN_MODE_3P_4P_SPLITSCREEN 3 |
| #define SELECTED_PLAYER_DEFINES_TOTAL 5 |
| #define SOUND_HEADPHONES 1 |
| #define SOUND_MONO 3 |
| #define SOUND_STEREO 0 |
Sound mode options Option 2 appears to be unused, as such its probably not a valid option
| #define SOUND_UNUSED 2 |
| #define SPAWN_FIRST_SHELL 0 |
shell state
| #define SPAWN_SECOND_SHELL 1 |
| #define SPAWN_THIRD_SHELL 2 |
| #define SPECIAL_CUP 3 |
| #define STAR_CUP 2 |
| #define STAR_EFFECT 0x2000 |
| #define START_MENU 10 |
| #define START_MENU_FROM_QUIT 0 |
Options for gGameState gMenuSelectionFromQuit and gMenuSelectionFromEndingSequence
| #define TEXT_BLUE 0 |
Text color options The 2 cycling options cycle through Blue -> Green -> Red Cycle 2 appears to be one step ahead of Cycle 1 Other values like 6 and 7 sort of work, they cause rapid flashing between 2 colors, but also cause individual characters to be cutoff on their right side
| #define TEXT_BLUE_GREEN_RED_CYCLE_1 4 |
| #define TEXT_BLUE_GREEN_RED_CYCLE_2 5 |
| #define TEXT_GREEN 1 |
| #define TEXT_RED 2 |
| #define TEXT_YELLOW 3 |
| #define THREE_PLAYERS_SELECTED 3 |
| #define TIME_TRIAL_1LAP_RECORD 5 |
| #define TIME_TRIAL_3LAP_RECORD_1 0 |
Indexes for accessing Time Trial records
| #define TIME_TRIAL_3LAP_RECORD_2 1 |
| #define TIME_TRIAL_3LAP_RECORD_3 2 |
| #define TIME_TRIAL_3LAP_RECORD_4 3 |
| #define TIME_TRIAL_3LAP_RECORD_5 4 |
| #define TIME_TRIALS 1 |
| #define TIME_TRIALS_DATA_SELECTION_FROM_BACK_OUT 8 |
| #define TOAD 3 |
| #define TOAD_SIZE 0.75f |
| #define TWO_PLAYERS_SELECTED 2 |
| #define VERSUS 2 |
| #define WARIO 5 |
| #define WARIO_SIZE 0.75f |
| #define YOSHI 2 |
| #define YOSHI_SIZE 0.75f |
| #define ZERO_PLAYERS_SELECTED 0 |