Creating Your First Level

From BiaSDK
Jump to: navigation, search

Create a shortcut to the BiA version of UnrealEd by opening Windows Explorer and browsing into the BiA 'System' folder.

For Road to Hill 30, the default System folder will be:

C:\Program Files\Ubisoft\Gearbox Software\BrothersInArms\System

...for Earned in Blood, the default System folder will be:

C:\Program Files\Ubisoft\Gearbox Software\BrothersInArmsEiB\System

Look for "UnrealEd" or "UnrealEd.exe" and right click on it and drag it to your Desktop (while still holding down the right mouse button). Release the right mouse button and select "Create Shortcuts Here".

Double click on the shortcut you just created to start UnrealEd. You'll see a screen that looks something like this...

42 UnrealEd 1.jpg

Now you'll want to set up the viewport configuration to how you like it. From the main menu, select "View->Viewports->Configure..." and you'll get this...

43 UnrealEd 2.jpg

Select one of the four screen configurations (where the dark blue screen represents the 3D view window), and click on "OK". This will change the way UnrealEd displays your 2D views and 3D view of the level you are editing.

You may want to minimize the Browser window...

44 UnrealEd 3.jpg

...by clicking on the minimize button in it, to get it out of your way. Alternately, you can resize the Browser window and move it somewhere out of the way.

I've resized my Browser window and moved it over to the right side of UnrealEd to get it out of the way...

45 UnrealEd 4.jpg

Now that you have UnrealEd set up the way you want, let's create a very simple empty level. Right click on the light green cube in the toolbar on the left...

46 UnrealEd 5.jpg

...and change the Height, Width and Breadth to 1024, then click on 'Build'...

47 UnrealEd 6.jpg

...then click on 'Close' in the CubeBuilder dialog box.

This will create a cube brush that is 1024x1024x1024 units in size at the center of the world.

Click your mouse in the 3D viewport to select it, then hold down the left mouse button and drag the mouse downward to move your camera position backwards in the world until you can see the cube brush you just created...

48 UnrealEd 7.jpg

Now click on the blue square overlapping the green square in the toolbar on the left to Subtract the cube brush area from the world...

49 UnrealEd 8.jpg

This will subtract out the cube brush area to create space that the player can walk around in.

Your 3D view will now look like this...

50 UnrealEd 9.jpg

The default texture will be applied to all surfaces inside this cube. We won't worry about putting a texture on the walls, floor and ceiling right now.

We want to create a player spawn point so that the game will know where the player is supposed to be when this level is loaded.

In the 3D view, move the camera somewhere inside the cube you just created by holding down the left mouse button and dragging the mouse upwards to move inside the cube. Then hold the right mouse button down and drag the mouse downward to tilt the camera downwards. Hold down BOTH the left and right mouse buttons and drag the mouse down to move the camera down in the world.

You should have a 3D view that looks something like this...

51 UnrealEd 10.jpg

Now un-minimize the Browser window (if you minimized it before), and select the "Actor Classes" tab...

52 UnrealEd 11.jpg

Now scroll down in the list on the right side of the Actor Classes Browser and click on "*gbxPlayerStart" to select it. Alternately, you can expand the "NavigationPoint" section, then the "SmallNavigationPoint" section, then the "PlayerStart" section and select "*gbxPlayerStart" in the list on the left of the Actor Classes Browser, but it's much easier to find things using the alphabetically sorted list on the right...

53 UnrealEd 12.jpg

Now that you've selected the gbxPlayerStart actor, we're going to add one of these to the level. In the 3D view, right click your mouse somewhere on the floor of your cube (right click somewhere roughly in the center of the floor)...

54 UnrealEd 13.jpg

...and click on "Add gbxPlayerStart Here" to place a gbxPlayerStart actor at that location in the world. Your 3D view will now look something like this...

55 UnrealEd 14.jpg

Now we need to add a light inside the cube so that we can see things when the game is running. Hold down the right mouse button and drag the mouse upwards to tilt the camera upwards until you can see the center of the ceiling. Then right click and select "Add Light Here". Your 3D view will look something like this...

56 UnrealEd 14a.jpg

In the 3D view, click on the light to select it (it will turn green), then press the F4 key to edit the properties for this light actor...

57 UnrealEd 14b.jpg

Expand the "LightColor" section by clicking on the plus sign beside it and change the "LightBrightness" from 64.000000 to 100 and hit the Enter key...

58 UnrealEd 14c.jpg

Expand the "Lighting" section by clicking on the plus sign beside it and scroll down to the "LightRadius" property. Change this from 64.000000 to 2048 and hit the Enter key...

59 UnrealEd 14d.jpg

Click the little 'x' button in the upper right of the Light Properties window to close it.

Now, in the 3D view, hold down the right mouse button and drag the mouse downward to rotate the camera back down until you can see the gbxPlayerStart actor again.

Now, let's save what we have done so far. In the main menu, click on "File->Save As..." and in the "File name:" field, put TestMap and click on "Save" to save this level.

Now click on the "Build All" button in the top toolbar (it looks like a little cube with a light bulb beside it)...

60 UnrealEd 15.jpg

This will build the level so that it can be run in the game.

You will get a couple of warnings after the level has been built...

61 UnrealEd 16.jpg

Saying that a "Brush has NULL material reference(s)" which means that we don't have a texture on the brush we used to create the world. And "Could not find useable VolumeEffect." which means that we haven't set a VolumeEffect for the default PhysicsVolume. A VolumeEffect modifies the way that sounds are played to create special effects (like reverb for echo, etc.). You can just ignore both of these warnings.

Click the "Close" button in the "Map Check" dialog to close it.

Notice that building the level has rebuilt the lighting in the game. The corners are darker than the middle of the floor (because the radius of the light was set such that the light wouldn't reach these corners). Your 3D view should look something like this...

62 UnrealEd 17.jpg

Let's save the level again after rebuilding it. In the main menu, click on "File->Save", or just click on the little floppy disk icon in the top toolbar...

63 UnrealEd 18.jpg

Now that you have built your level and saved it, let's try playing it directly from UnrealEd. Click on the "Play Now!" button in the top toolbar...

64 UnrealEd 19.jpg

This will load the level in the game and spawn you as a player at the gbxPlayerStart actor. You should be able to walk around in the level. When you are done, you can quit out of this level (UnrealEd will still be running, but will have minimized itself before starting the game, so you will need to click on it in the Windows task bar to maximize it again).

Congratulations! You have just completed your first level for Brothers In Arms!


Back to Main Page