Click here to go to the main page
Levels


How to make your own levels for BrickWarrior

There are three main topics covered here:
Working with LVL and INF files
Editing levels in your episode
Creating your own episode


Working with LVL and INF files

There are two main file types you will have to deal with when making your own levels. These are: LVL files and INF files. Here is the explanation of each:

INF files
Text format (ie you can look at them in notepad)
One level to each INF file
Editable in LVLEDIT

LVL files
Binary format (takes up less space than INF files)
One LVL file contains a whole episode (neater)
Not editable in LVLEDIT

You work on INF files to create your levels, but when you want to give your episode out, I recommend that you put them into a LVL file so they take less space. Since each INF file contains a single level, there are a whole bunch of them to an episode. You will have files like: "mine1.inf" "mine2.inf" "mine3.inf" etc... for your episode, and can compress them into a single "mine.lvl" file whenever you feel like it (I'll explain how you do that a bit further down). BrickWarrior can open both INF and LVL, but will first try to open the INF before going for the LVL file, so that it is easier when you are editing levels in your episode.

Now to convert a LVL file into a single bunch of INF files, open your "BrickWarrior\Levels" folder in explorer, and there will be some LVL files (one for each episode). Drag a LVL file onto the "lvlmaker.exe" icon, and watch what happens. You now have a bunch of INF files! (see the screenshot below) Say you dragged phil.lvl onto lvlmaker, you now have phil1.inf, phil2.inf, etc... up to phil30.inf. Once you have these INF files, you can fiddle with them in the level editor (described in the next topic)

Drag phil.lvl onto lvlmaker and this is what you get!

Also, say you want to put all ow to put all your INF files into a single LVL, open your "BrickWarrior\Levels" folder again, and drag any of the INF files from your episode onto "lvlmaker.exe". Levelmaker will figure out the names of all the INF files for that episode, and will put them all into the one LVL file for you.


Editing levels in your episode

This describes how you can edit levels and create new ones.

To create a new level, go to your "BrickWarrior\Levels" folder and double-click on "lvledit.exe". It will ask you to enter a level name, so type it in (eg type "mine1" to make a "mine1.inf" file) and press enter.

To open an existing INF file, just drag it over "lvledit.exe" in explorer, and it will be opened in LevelEdit. Whatever what of opening or creating a level you've used, this is what you'll see in the level editor:

Screenshot of LevelEdit

As a general rule of thumb, press F1 once you are in the level editor to read its instructions, and all about advanced features. Press F1 again to get rid of the help display.

To create a brick, drag the right-mouse button over an area, and when you let go, it will create a brick. To move the new brick, drag it with the left-mouse button to wherever you want. To fiddle with the brick's details (such as strength), press enter while you have it selected.

To change the colour of a brick, select it (click on it) and press shift + up arrow. This will set the sliders at the top of the screen to the colour of the selected brick. You can move the sliders (they control the red, green, and blue components of the colour) and when you have a colour you like, press shift + down arrow to set that colour to all bricks that are selected.

There are many other features in the level editor, but all you need to know is in the online help when you press F1.


Creating your own episode

Assuming you have BrickWarrior installed correctly, go to your "BrickWarrior\Levels" folder in explorer and there will be an "episodes.inf" file. Double-click on this to open it in notepad, and a window similar to this should appear:

This is what should appear

Each of those lines that begin with '{' and end with '}' describe an episode. Remember how when you play BrickWarrior, and select to play a new game, it gives you a list of episodes to choose from? It gets the list from this file.

In the line {Chris's,30,chris,back.bmp} there are four things to notice:
First is the bit "Chris's" - this is what appears in BrickWarrior when you choose to play a new game.
Second is the "30" - this means that in this episode, there are 30 levels.
Third is the "chris" - this is the filename for the actual levels. This line tells BrickWarrior to look in your "BrickWarrior\Levels" folder and read the "chris.lvl" or "chrisX.inf" files for the level data, and when you create your own levels, you will be working on the "chris.lvl" or "chrisX.inf" files.
Fourth, there is the "back.bmp" - this is the filename for the background to be displayed for this episode. Notice how when you play the MacBrickout episode the background has an apple in the top-left, and is different to the other episodes? Check the line for the MacBrickout episode, and it specifies "macback.bmp" instead of the normal "back.bmp". To create your own background, it must be 640x480 pixels, preferably 256 colours (for speed) and you must save it to the BrickWarrior folder, alongside the "back.bmp" and "macback.bmp".

To make your own episode, simply add another line to the episodes.inf, best to add it to the bottom. Say you wanted to make your episode, called FatBurger, with 5 levels, data from "fat.lvl", and the default background, you would modify your episodes.inf to look like this:

Check out the bottom line!

That's all there is to making your own levels! Give me any episodes that you make, and you may find that the next release of BrickWarrior has your episode in there!


[Home]
[What is BrickWarrior?]-[How do you play?]
[Behind the scenes]-[Credits]
[Levels]-[Powerups]
[Downloads]-[MacBrickout]
Site design Chris Hulbert 1998