Today I am going to show you how to add custom map names in the menu and Episode Names.
This should work on any source code it is very easy to do.
Custom Map Names
1. Open up Menu.c
Find where it says this:
Code: Select all
/* GAME OPTIONS MENU */
typedef struct
{
char *name;
char *description;
} level_t;
level_t levels[] =
{
Code: Select all
{"start", "Entrance"},
Like this
Code: Select all
{"start", "Pyramid Of Evil"},
Code: Select all
{"Evil1", "Pyramid Of Evil"},
That will make it display "Pyramid Of Evil" on the Menu and it will load the map with the file name of "Evil1".
Custom Episode Names
1. Open up "Menu.c"
2. Find where it says this:
Code: Select all
typedef struct
{
char *description;
int firstLevel;
int levels;
} episode_t;
episode_t episodes[] =
{
Code: Select all
{"Welcome to Quake", 0, 1},
{"Doomed Dimension", 1, 8},
{"Realm of Black Magic", 9, 7},
{"Netherworld", 16, 7},
{"The Elder World", 23, 8},
{"Final Level", 31, 1},
{"Deathmatch Arena", 32, 6}
Code: Select all
{"Pyramids of Evil", 0, 1},
{"Desert of Doom", 1, 8},
{"Frozen Wasteland", 9, 7},
{"Cold Tundra", 16, 7},
{"Evil at the door", 23, 8},
{"Kill em all", 31, 1},
{"Multi Frag Fest", 32, 6}
That code causes the Episode Names to be this:
Code: Select all
Pyramids of Evil
Desert of Doom
Frozen Wasteland
Cold Tundra
Evil at the door
Kill em all
Multi Frag Fest
Thank you for reading this.
If you have any questions or comments post below.
EDIT:
I just realized that this tutorial is in the wrong section.