Team Xlink
Joined: 25 Jun 2009 Posts: 320
|
Posted: Thu Jul 30, 2009 1:36 pm Post subject: [Tutorial PSP/PC] - Custom Map and Episode Menu Names |
|
|
Hello,
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: |
/* GAME OPTIONS MENU */
typedef struct
{
char *name;
char *description;
} level_t;
level_t levels[] =
{ |
Right below that are a list of fields that are structured like this:
Code: | {"start", "Entrance"},
|
2. To change the Name it displays you would change the Entrance
Like this
Code: | {"start", "Pyramid Of Evil"}, |
3. To change the name it has to be in the "Pak" file you would change the call to the map like this:
Code: | {"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: | typedef struct
{
char *description;
int firstLevel;
int levels;
} episode_t;
episode_t episodes[] =
{ |
3. Right below that is a list of the Episodes in this structure:
Code: |
{"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}
|
4. To change the episode Names it displays you could do this:
Code: |
{"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: | 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. _________________
Anonymous wrote: | if it works, it works. if it doesn't, HAHAHA! |
Last edited by Team Xlink on Sun Jul 11, 2010 6:54 pm; edited 1 time in total |
|