Snarkpit Articles


Hi,

No idea where to put this. It covers most of the tutorial subjects. Lets put it in mod specifc since its for the counterstrike:source MOD.

It's is a work in progress so layout, text, etc etc it in notebook format.

Please let me know if you think this is usefull so i know i won't be wasting my (and your smiley time completing it.

It's at the 40% stage

The fy_mini_dust2 map can be found in the maps section. Some screenshots of the intermidate stages can be found via my site (the flickr link)

N4ppy

------------------ tutotial starts here --------------------

Building fy_mini_dust2



In this article i describe the building process of fy_mini_dust2. Here and there you'll find some TIPS. Nothing serious, more a note to myself if i have a similar project in the future smiley

The proces started with a request from a [MVC] member if i could remake an old 1.6 favorite mini_dust2 for source. I had made some other maps and said ok i'll have a go.

Converting the map

First step was to convert the old 1.6 bsp file to something i could load in hammer. With BSPTwoMap i got a map file that i could open in Hammer.

TIP: Don't try to use what you get after the conversion! It's crap. Use it for reference only

I tried to clean up the file but the problem is that the BSP file only contains the visible bits, so all you get are pieces. A box is made up of the individual sides and if you want to resize it you need to resize all individual parts.
There were lotst of small errors in the allignment of brushes and loads of other little problems. And even if you fix all errors you still have a collection of loose brushes.
So after a while i decided to rebuild the whole map.

Changes to the original map
I have no idea who build the original mini_dust2. All credits for the great layout go there.

The only change to the layout is the credits room. The reason i added the room was that i wanted the double doors (they are in dust2 smiley in the map but there was no place where i could place it without changing the map layout, so it ended up at ctspawn.
And then i had to block the door with stuff (and a player clip) so nobody could get in there. It was however a nice place to put the credits. I wish i had not, but more on the decal troubles it caused me in the pakrat section.


Visgroups are your friend!

One handly tool are the visgroups. I gave all surfaces in the converted file a texture and used the nodraw texture for all the new bits.
Step 1 was rebuilding all walls. By switching the old and new visgroups its easy to see all holes in the nodraw walls and find out what i missed.
After that it was the same for ceilings, "sand", floors etc etc.

TIP: be clear in the naming of your visgroups! At a later stage you can move stuff over to other groups but in the begining it makes for easier testing.

With the sand i started with loose pieces but ended up making one big displacement. The ?roads? you see are overlays.

Props
One of the major changes to the original layout is the use of props. In the 1.6 maps all crates etc were made up with brushes whilst in source you have the props.
The big advantage with props is that they are very easy to place and move and rotate and no hassle with textures etc. It also makes the map have a more consistant look and in this case come closer to dust2.

Disadvantage is the size. It's fixed so i had to sink some of the carates a bit into the sand so it's easy to jump on them. Fun part is the sunken crates add to the dust theme.

Compiling
I tend to do loads of compiling just to see how the map looks in the game. Lots off errors don't show in Hammer but show up in the game. One problem area only visible in game is light leaking past brush edges and lighting problems in general.

Testing at first is done without vis and vrad for layout, but after a while you need the light. I find that using the fast compile option shows most problems and gives a good feel for the light in the map. But after a while you need the normal full compile.

One thing to take into account is the number of NAMED lightsources. They all add to the compile time even if you don't do any thing with the named light. The lights inside can be switched on and off (see lighting) so the compiler has to do a pass for light on and a pass for light off. So be carefull or pe patient!


Adding depth to the map

Environment
So here i was with a working map layout but how to put some life into the map. "Whats behind those walls??" Here i copied some stuff from one of the dust2 remakes i found.
The houses behind the T and CT spawn points are copies from the T side of dust2. The "castle" like structure near the T spawn is also from dust2 (directly above the CT spwan)
I added some dust domes here and there and added the big dome at the T spawn end. Some grafity and a few bulletholes in the big wall.
I did not want to add the original windows there as well but needed some more "texture" there.


3D skybox
To make that erea more interesting i created a 3d skybox. The basics can be found here. I placed some trees near the wall and used a displacement surface to create the dunes in the background.
To add some more texture to the skybox i made copies of the houses in the map, shrinking them to 1/16th size and placing them on one of the "hills" (again just like dust2 smiley
I also copied one of the towers and placed them on top of the hills. It took just a few minutes but it looks great smiley


More props

I added dynamic props inside. They are placed near the wall but somtimes with a granade it can create a lot of tripping troubles. smiley

In front of the T Spawn there was some space so i added some dust2 stones and a car wreck (can't not have a car wreck in a dust themed map). Also added a little easter egg.

Lighting
One the map was done i found an other area where i ran into the DON'T USE THE OLD STUFF rule. The light_environment i used from the old map.
The problem was that the settings in the light_env was offline with the skybox texture. What you get is that the shadows are offline to the sun in the skybox.
I found the official info and used the vales there to correct the light. One change to the original is that i made it a bit less bright to get a good dark basement (a nice place to hide smiley
One other Ah! was that the trees in the skybox where casting shadows that were TOO BIGGGGGG smiley The outdoors area near the T spawn had shadows i could not explain.
I disabled shadows on the props and that fied it!

One area where the lighting is different to the original map is the fact that the lights break. It makes for nice camping in the dark.

TIP: you can break both lights with one nade


Nav
Creating and editing the navigation grid to add the zone names you see in the messages. In the game type these command:
Adding these names will make the bots tell you where they are. You are limmited to the names Valve have place in the game but with a bit of fantasy you can name most area's
BUT!! Only do this after the layout of the map is fixed. It's a lot of work and if you change the layout and have to rebuild the nav file you lose all that work!!

Short how-to:
-sv_cheats 1
-nav_generate
-nav_edit 1
-nav_toggle_place_mode
-nav_use_place
-nav_toggle_place_painting (every area you point at will get )
-nav_edit 1
-nav_save

Usefull:
-nav_split will split an area (in the direction you are looking)
-sv_cheats 1 nav_analyse (will build the final nav file, also usefull after a mapsave to update the nav to the new build without losing place names)

ps pakrat has an option to "fix" the nav version if you embed the nav in the bsp file (see pakrat section)


Sound
I added two kinds of sound. The radios you hear at the spawn points (the antennas are there for a reason smiley and soundscapes.
To get the radios working all the time i had to add some logic or you will only hear the first round on a server.
The soundscapes are basicaly the background noise you hear plus some extras valve added. There are 3 soundscapes one indoor and one outdoor, both original dust2 and a special one in a special corner of the map smiley
To get the soundcapes working you need soundscape switches at every place where you want the soundscape to change.


Cubemaps
place env_cubemaps in the map (64 units above ground in all areas and especially where there is somthing shiny)
compile map
start map and run buildcubemaps in console
restart (this saves the cubemaps in the bsp!!)
Why we need cubemaps? In short the maps uses it to know how it should look. The long story can be found here and in the Wiki


Textfile
Here you tell people what to do smiley


Pakrat
stuffs everything in the bsp file
nav (with fix) txt,
troubles with decals/textures??


Post ReplyView Topic
Discussion
[author]
Posted by nappy on Tue Jun 27th 2006 at 9:26pm

Thanks!

One thing thats also missing are the links to all the sources i used.

I will add pictures and will add the links and the subtitle
0 starsPosted by [Jako] on Mon Jun 26th 2006 at 10:04pm

I read your tutorial to "Changes to the original map" and then I scrolled down to see The_6th_monkey's comment. I agreed. But this kind of tutorial has many little thing which don't show up in traditional tutorials so I like it. I read it to the end when I have more time.
0 starsPosted by Forceflow on Thu Jun 22nd 2006 at 10:07pm

This thing needs pictures and a bit of formatting. Titles, colors, bold, italic ...
[author]
Posted by nappy on Thu Jun 22nd 2006 at 7:48pm

smiley Thanks for the comments.

I was not sure were to go with this and thought i'd check before putting in a lot of time to make something of it (or not).

reaper it actualy is a blog added together smiley i added notes and bits while converting the map on my site/blog and copy pasted it together and did some cleanup. The notes were initialy for my own benefit to not forget what i learned while building.

It's probably best to leave this as a HOW-NOT-TO write a tutoial.

Part of what i want to tell is how much work it is to make a map and i skipped the most dificult part finding a good layout (again credits go to the unknown mapper who made the 1.6 version)

G.ball what bb code did you mean (to add pictures / fontsize stuff? thats on the todo list smiley

mmmm i'll think about where to go from here but "hit delete" comes to mind
0 starsPosted by G.Ballblue on Tue Jun 20th 2006 at 9:55pm

A lot more than just pics could be added to sproof this up :P

check out the tutorial bbcode!
0 starsPosted by reaper47 on Tue Jun 20th 2006 at 9:53pm

This might have some interesting points for CS mappers, but the tips are so random and unorganized I can't see this piece of text ever becoming a proper tutorial. The point is _why_ should someone read a tutorial entitled "Remaking mini_dust2". It could be interesting in a blog or something but here at least try to find a better title like "Checklist for map remakes" or whatever this text is about.
0 starsPosted by The_6th_monkey on Tue Jun 20th 2006 at 12:04pm

Very few people will read through a massive page of plain text
Add some pictures to liven it up a bit
Post ReplyView Topic