Forum

[Tutorial PSP/PC] - Custom Map and Episode Menu Names

Post tutorials on how to do certain tasks within game or engine code here.

Moderator: InsideQC Admins

[Tutorial PSP/PC] - Custom Map and Episode Menu Names

Postby Team Xlink » Thu Jul 30, 2009 1:36 pm

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: Select all
/* 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: Select all
{"start", "Entrance"},

2. To change the Name it displays you would change the Entrance

Like this

Code: Select all
{"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: 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[] =
{


3. Right below that is a list of the Episodes in this structure:

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}


4. To change the episode Names it displays you could do this:

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.
Last edited by Team Xlink on Sun Jul 11, 2010 6:54 pm, edited 1 time in total.
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby deenky » Tue Feb 16, 2010 9:04 am

Will putting a small pyramid in my bedroom help me in any way? I have read that pyramid shaped objects have special powers. Does anyone know about this?
______________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
Last edited by deenky on Fri Feb 19, 2010 10:54 am, edited 1 time in total.
deenky
 
Posts: 1
Joined: Wed Feb 10, 2010 6:18 am

Postby LonePossum. » Tue Feb 16, 2010 9:33 am

Spam Bot?
LonePossum.
 
Posts: 38
Joined: Mon Nov 02, 2009 11:07 am

Postby mh » Tue Feb 16, 2010 5:55 pm

It can shove the small pyramid up a certain part of it's anatomy if so. :twisted:
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am


Return to Programming Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest