Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
Go Back to MappingTutorial

1. Creating the Map Directory

Create a series of directories in your "Homeworld2\Data\" folder, called "Data\LevelData\multiplayer\deathmatch\". This is where you should store all custom maps, since this is where HW2 will be looking for them.


2. Creating a “.level” File

Open up WordPad. Save a new file as “<xxx>.level” where <xxx> is whatever you like.
Tip: have Windows always open .level files in WordPad.
Tip: don’t name it "Test.level". HW2 does not like this for some reason.


3. Adding In-Game Level Information

This is stuff that will show up in multiplayer menus in-game. Add in this text:

levelDesc = "xxx";
maxPlayers = y;

Whatever you type instead of xxx will be the level name that is shown in-game.
The value you type in for y will be the number of players required to play the level.
Tip: while still testing the level, you should set the name to “A” so that it will be selected by default when you start a CPU skirmish (provided it’s a 2-player map, at any rate).


4. Adding Player Information

Add in this text:

player = {}

player[0] =
{
id = 0,
name = "Vaygr",
resources = 1500,
raceID = 2,
startPos = 1,
}
player[1] =
{
id = 1,
name = "Hiigaran",
resources = 1500,
raceID = 1,
startPos = 1,
}

If you want to have more than two players, just add extra players, and remember: id should always start at zero and increase by one for each additional player. startPos should always equal 1. raceID should oscillate between 1 and 2 (or more, if there are any additional races) like you see above. The other values should be mostly left alone, as they are handled by in-game selections.
Tip: to add comments in your ".level" file, simply precede a line with two hypens: --

There are 3 comments on this page. [Display comments]

:: ::