This blog contains lessons learned by me through the process of mapping for Single Player games, primarily, Half Life 2, Portal and Left 4 Dead (yes Left 4 Dead can be considered a single player game). This blog's focus is on the player experience. To hell with the nuts and bolts of the level editor, the entities, models and brushes. This blog is about coming up with a final result when it's all put together. How does the player feel about the experience?
Sunday, 1 January 2012
Saturday, 24 December 2011
No Feedback better than bad feedback!
Here's the post in full:
------------------------
After all that praise I was shocked when faced actual game.
You can tell me whatever you want but this is my opinion.
This is a collection of bad gameplay choices! You can clearly say – environment was build around puzzles, not puzzles were made to fit into environment. Result: we are in abstract levels (never had a feeling of real place while playing) doing far-fetched puzzles. If I was their beta-tester I would say them to change A LOT of details. Because for very first playthrough they just too… unobvious at all to say the least.
I don’t know where to start… I was stuck at SECOND puzzle like for 10 minutes. So we have: ladder and gas canister on the rope. The rope is too short. So what we gonna do?.. I even tried throwing garbage cans to cut the rope until ACCIDENTALLY at some dark place… God, I wanted to kick something!
This gap at strider part MUST be removed. The strider alone is enough! Besides it looks absolutely illogical and out of place.
After climbing up at train part I faced the fence. Why is it where? Is that really that necessary? By that moment I already knew the rules (environment build around puzzles) so it took only a couple seconds but anyway.
The ‘getting shotgun’ part. Whaaat? No, it can’t be… All HL experience is asking me not to do it. It tells me I’m gonna die at the bottom of this pit. But I already know the rules (environment build around puzzles), so let’s try this anyway. Oh, look, it worked! Never gonna try it in any other mod though.
Big zombie fight. I see something’s coming here. Hm-m wide areas, wide ladders. Hunters? Oh no, not the fast zombies again!!!
Big fans. Oh, barnacles is not bothered at all. Duh!
I can continue my ranting but this is pointless. As far as R&D feels real this mod feels like a training for mapper. If you’re mapper you don’t have any problems playing through your maps because you know all the tricks. But please, try to watch them from the player side!
---------------------OK. So lets break it down and really focus on the messages here.
This is a collection of bad gameplay choices! You can clearly say – environment was build around puzzles, not puzzles were made to fit into environment. Result: we are in abstract levels (never had a feeling of real place while playing) doing far-fetched puzzles. If I was their beta-tester I would say them to change A LOT of details. Because for very first playthrough they just too… unobvious at all to say the least.
So I take several points from this.
1: I didn't do enough of a good job disguising the fact that the puzzles were part of a "Real" world.
2: I didn't do enough work to sell the environment to them
3: The puzzles were too abstract and unobvious for them
And I honestly believe that every environment build in a professional game is built that way to service the game play, then disguised to look like a reality. I simply have not done as much work as I could have, disguising the game environment (i.e detailing).
I don’t know where to start… I was stuck at SECOND puzzle like for 10 minutes. So we have: ladder and gas canister on the rope. The rope is too short. So what we gonna do?.. I even tried throwing garbage cans to cut the rope until ACCIDENTALLY at some dark place… God, I wanted to kick something!
I had a feeling that, given that this puzzle was a training exercise, the sawblades should have been front and center. So lesson learned for me. Make sure, when doing player training, everything is laid out nicely for them. Once the new gameplay idea has been established you can be a little more sneaky.
This gap at strider part MUST be removed. The strider alone is enough! Besides it looks absolutely illogical and out of place.
With a little more detailing the gap would have looked perfectly reasonable but I do agree that as it stands is looks very basic and doesn't sell itself very well. As to the gameplay element that the gap creates, I think that's really down to personal playing style (I get the feeling he struggled with this section).
After climbing up at train part I faced the fence. Why is it where? Is that really that necessary? By that moment I already knew the rules (environment build around puzzles) so it took only a couple seconds but anyway.
The fence is there to separate peoples houses balconies from the train line facilities. I thought that would be a little more realistic than having peoples houses accessing an industrial area... so much for real...
The ‘getting shotgun’ part. Whaaat? No, it can’t be… All HL experience is asking me not to do it. It tells me I’m gonna die at the bottom of this pit. But I already know the rules (environment build around puzzles), so let’s try this anyway. Oh, look, it worked! Never gonna try it in any other mod though.
Here, once again, he's correct. I changed the rules of the HL world. For the cable cutting gameplay thing, I trained the player early, for this element though I did not. I simply gave the player no where else to go. Most players, once they had made the jump, really enjoyed the sense of achievement and the action hero feel it gave them. Hey ho.. once again, each to their own style of play.
Big zombie fight. I see something’s coming here. Hm-m wide areas, wide ladders. Hunters? Oh no, not the fast zombies again!!!
There are only two areas with Fast Zombies and their both in the same area so I think it's justified. The playing areas are very different also. Clearly he doesn't like fast zombies...
Big fans. Oh, barnacles is not bothered at all. Duh!
Its true, the barnacles in the game are not affected by the trigger_push entity. I wanted them to all be blowing about in the wind but short of re-coding the game, there wasn't much I could do. Still the demand here is for reality and I failed to deliver...
I can continue my ranting but this is pointless. As far as R&D feels real this mod feels like a training for mapper. If you’re mapper you don’t have any problems playing through your maps because you know all the tricks. But please, try to watch them from the player side!
It's interesting that he sites Research And Development. If you haven't played it, go check it out right now. It's the best mod for HL2 ever made in my opinion. The structure is similar to Daylight, in that you face puzzle after puzzle. R&D however is detailed and polished to within an inch of it's life and as a result, sells the world far better than my mod ever could.
The quality of R&D is certainly something I aspire to but it's very interesting that when players like the commentator above say "REAL" what they mean is, DETAIL.
The HL2 world is no more REAL than the Star Wars universe. Sure it shares common elements with our reality but on a whole it's a million light years away from the real world.
All in all he has picked up on some important failings on my part and lost of things to learn here.
Think he could have been a little nicer about it though...
:P
Monday, 19 December 2011
Me got interviewed!
http://www.planetphillip.com/posts/audio-interview-with-jim-partridge/
We had a great chat and talk through the mapping process and how the mod came about.
Hope you like this...
Saturday, 17 December 2011
Daylight - Finally released on PlanetPhillip.com
I've now convinced Philip over at Planetphillip.com to allow me to release my mod "Daylight".
I say allow me to because the man craves perfection and I have to thank him for pushing me to tidy up quite a few areas of the map before release.
There comes a time in every project when you feel you're done with it. You want to move on and try something new. In this case however I felt that I needed a big finale. A fifth map but due to mappers block I just couldn't bring myself to do it. I have no idea why that is.
In the new year I'll begin a new project but next time I won't start building until I know the exact layout and how it will all be integrated. Thus saving myself countless hours of staring at the hammer editor at a half finished map hoping for some inspiration.
Stupid Aazell...
Am looking forward to a new challenge though. Hope you enjoy the full mod. Here's the link:
http://www.planetphillip.com/posts/daylight-half-life-2-ep2/
Wednesday, 19 October 2011
Detailing... Detailing and ....Detailing....
I have to admit I have a love/hate relationship with the detailing phase of my maps.
When I have a clear idea of the area I am creating its fine, its fun too.
When I don't have a clear idea on the area it can be frustrating and so so dull.
Bearing in mind I'm building all my areas with gameplay in mind primarily, I often dont have a clear idea of the type of real world space it may become. Sometimes the two come together seamlessly but more often than not I find I have to work quite hard to get my areas to look believable.
Basically, I think the goal when detailing is to add just enough detail that the player accepts the reality I'm presented to them. Sure I could go way overboard and add every concieveable detail however I'm sure that players would prefer me to create more playable areas of a map than adding a working telephone to an office.
There is no hard and fast rule about how much detail is enough but I want you to try an exercise for me.
Pick a section of the HL2 game or its episodes that you remember really well. Load it up using the console.
(for example "map ep2_outland01a"). Now punch in the "sv_cheats 1" "noclip" and "notarget" commands.
Now you can fly about the level at will and get a really good look at how Valve put the map together.
Look at the detail and lighting especially.
Normally, I find during this process that the elements of the map that I thought were particularly complex are actually fairly basic. By adding some of these basic detailing touches to your map you can give the appearance of detail without spending a huge amount of time on it.
A good example is a small balchony on the side of a building.
When I looked closely at these in HL2:EP1 I realised that actually theyre simply made out of two brushes. One to form the floor covered in a concrete texture, and a second brush that forms the railings. This is just a square brush with a railing texture applied to three sides of it.
Simple to make, but adds a great level of detail to the side of a building.
Lighting can do a great job of masking an under-detailed map. Long shadows especially give off the illusion of a detailed environment when actually detail has been kept to a minimum.
Detailing Prefabs
Some nights I'm not up to mapping or detailing. My brain just can't take it. Its weary... so I tend to spend these evenings creating stand alone detail prefabs.
Little things like flaming torches, working cupboards with items inside, fire escapes, window boxes, non-working doors with locked sound effects. These are things I can drop into any map to flesh out the world.
By building up a huge library of these items, detailing your maps can become far less painful. Feel free to share them online too. These kind of details can bring everyone maps up in quality.
Testing the detail
Players will always tell you a map needs more detail so be careful of this. Don't clutter you're map too much. Also, you must be sure that whatever detail you add, make sure it doesn't affect the gameplay.
The player getting snagged on a light model during a difficult jump puzzle can really spoil a map.
My rule for detail models is: if in doubt, make it non-solid.
The player will accept passing through small models. You might want to consider converting any small detail brushes you have to func_brush and making them non-solid too.
Monday, 17 October 2011
Feedback.... It's like crack...
This post is in response to a question posed by Phillip of the wonderful PlanetPhillip.com.
The question posed was, why do mappers and modders post alpha versions of their work online?
I totally understand his point. Posting mapping work too early can have seriously detrimental effects on your final release.
1: there's no surprises for players when your map is finally released.
2: any great ideas you have will be undermined by the fact that it looks crap in alpha phase
3: it gives the opportunity for someone else to take youre idea, make it better and release it before you.
So given the clearly detrimental effects of releasing alpha versions it begs the question why would we mappers screw ourselves over in this way?
Well ya see its all about the ego...
Mapping is time consuming, its not necessarily hard, it just takes a while to make things look great. The functional side of mapping, getting the gameplay right for example actually takes little time to create in the editor. As I've said earlier in this blog, I can put together a working dev map to test an idea in less than 10 minutes.
So, I've come up with a great idea and got it working in a basic dev map but I can't share it with anyone!
I want someone else to play it and tell me I'm brilliant. I want a pat on the head and a cookie for coming up with such a brilliant game device....
It's addictive when you get good feedback.
In order to share my fantastic ideas with the community, I would have to spend a month or more building a good looking level around my core gameplay idea.
But I want my pat on the head NOWWW!
It's the detailing that kills you as a mapper.
The community want Valve quality maps. Unfortunately, many of us mappers have partners, jobs, pets, family and other obligations which can limit the time we have to spend on our maps.
As a result the community often receive unfinished maps, maps that play well but look crap or vice versa.
I understand the frustration of reviewers like Phillip because I share it too...
All that potential, all those great ideas spread across 1000 unfinished maps. If you could just bring them all together...
...more on this idea soon...
Edit:!
As Brian has helpfully pointed out, I failed to mention that testing of your ideas is important as a mapper, even at the early stage.
The answer to this problem is, of course, to find a few close online friends who are happy to playtest for you and provide honest, detailed feedback.
Tuesday, 6 September 2011
Tutorial HL2: Getting Your NPC's Moving
.....
One of my biggest frustrations when I first started mapping was trying to get my NPCs moving around in a convincing manner. I wanted my NPCs to move into an area and attack the player, or open doors and run away but they just don't do that by default.
So how do we get NPCs to start moving around rather than just attacking the player when they move into their point of view.
Info_nodes
Before Left 4 Dead, valve games relied on the mapper placing nodes on the ground to produce a series of points that the NPCs could follow.
Left 4 Dead and games after that from Valve use the nav mesh method of NPC navigation. So if your mapping for HL2 then you need to add info_nodes to your map. Add nodes to any areas you want NPCs to move through. For ground based NPCs (combine S etc...) use info_node, for flying NPCs use info_node_air and for hybrids who fly and walk (e.g. antlions) you ll need to add both. When you run the map in game for the first time in game the engine connects all the nodes together to create a nav mesh.
NPCs use all these connections to find paths to goals in the game. A goal might be the player or any other entity you choose as a mapper.
All nodes must be less than xxx units apart or a connection wont be made. That goes for info_node_air too!
Scripted_sequence vs AIscripted_schedule
I see many people suggest on forums suggesting that others use scripted_sequence to move their NPCs around but unfortunately its usually the wrong option under the circumstances.
Its a fairly straightforward rule to follow when choosing which of these two direction entities to use.
Basically, if the NPC can be interrupted or attacked, you should use aiecripted_schedule, if they cannot be interrupted or attacked then you can use scripted_sequence.
Scripted_sequence is intended more for getting the NPCs to play animations (best for cutscenes) where as aiscripted_schedule is to issue instruction during gameplay...
The reason for this is that while an NPC is following directions from a scripted_sequence they will be locked into an animation until its complete. So they wont react to being attacked and can often stand there looking dumb while the AI takes a a few seconds to kick back in.
With aiscripted_schedule you can get them to move around the battlefield with their AI fully intact and they can react to any event.
All clear? I hope so.
AIscripted_schedule
AIscriptedschedule is a godsend for making firefights more interactive. It basically encourages or forces NPCs to perform a specific action without switching off the NPC AI.
You can make the NPC run or walk to a specific place in the map or move to a specific target. You can direct them to move to and attack a specfic target, including the player.
To set it up, you just need to place an AIscripted_schedule entity in your map, give it a name, name the NPC who will follow its instructions. Set the instruction (move to goal entity for example) and then set the goal entity.
The goal entity can be any named entity in your map. If the goal entity is the player then just type in !player. If you just want the NPC to move to a specific location then use a named info_target to mark the location and use that as the goal entity.
You can trigger the schedule with any output but normally you'll be using a trigger brush. If you are using a trigger you can make your schedules a little more dynamic by using the !activator value as the goal entity.
By typing in !activator the schedule will set the target to whatever triggered the trigger.
Example:
I add an antlion to my map and set it to start burrowed. I name it antlion1. I set its sleep state to ignorePVS, Wait For Input. I set a trigger_once around it and add an AIacriptedschedule and name it AntSchedule1.
I set AntSchedule1 to direct antlion1 to Set Goal Entity As Enemy. I then set the goal entity to !activator.
I set my trigger_once to wake the antlion onTrigger and then 0.1 seconds later (its good to leave a gap) I set an onTrigger to StartSchedule on AntSchedule1.
I then place a group of friendly rebel NPCs in my map who will form a squad to help the player.
When I run the map, as the player and the team move across the map, whichever entity (the player or a member of the squad) hits the trigger first will wake the antlion and be attacked, like a trapdoor spider.
Interruptibility
The interruptibility option on an AIscriptedSchedule is really important.
If you leave it set to General this then leaves it to the NPC AI to decide if there is anything more important it should be doing (i.e. defending itself) rather than follow the instruction. In my experience, general should only be used to direct friendly NPCs when there are no enemy units in that area.
On Damage is a clever option and very useful for certain gameplay types. Basically an NPC will carry out instructions unless it is damaged while in the process of carrying out that instruction.
What this means is that you can set up nice areas where enemies attempt to reach a certain goal and the player has to stop them by shooting at them... or say you want NPCs to run past the player but not attack them, it would be farely unrealistic if the NPC didn't respond at all to being shot, so the On Damaged option will make them attack the player if shot. Handy!
On Death is the daddy. An NPC will follow direction given by the schedule no matter what happens. This is the one to use if you want to move an NPC into the area of play. From outside of the players viewpoint.
With On Death you can have NPCs moving all over the place and because the AI is still switched on, they will continue to fire on the player whilst moving. So you can make Combine soldiers retreat to a certain point, or make Antlions fly up to a high ledge etc...
The info_nodes
In order for your NPCs to follow instructions from an AIscripted_schedule they need to be able to find a route to their goal through the info_nodes you have placed in your map. If your NPCs are not following direction from your schedule, an incomplete node path is probably the reason why.
You can check your node connections by activating sv_cheats 1 in the command console and then typing in ai_show_connect
Doors
Annoyingly, things like doors can break a node path. The reason for this is because the node graph is built at the point the map is launched in the editor. Its then saved as a data file in the graphs directory of your maps folder.
If all the doors in your map are closed at the time when the map is first loaded then the node graph will not connect nodes on either side of a closed door because the door would stop the NPC from moving between them.
For this reason, its often handy to set all of your doors to the open position when your map spawns then close them using a delayed logic_auto after 1 second. As long as the door is not in the players view when they spawn in the map you should get away with it.
If you want doors to open and close when NPCs approach them then you can add a trigger multiple that is only triggered by NPCs. Expand the trigger so that it reaches out on both sides of the door. Now just add an OnTouching output to the trigger to open the door. You may need to play with the size of your trigger in order to get it working properly.
Note that this will only work of your doors were open when the nodegraph was built.
The NPC Clip Texture
NPCs are sometimes a little dumb and need some extra help to keep them out of areas of your map you don't want them in.
Obviously you wont need info_nodes in areas where you don't want NPCs to go but sometimes they decide.. to hell with it and follow the player there anyway. This is where brushes covered entirely in the NPCclip texture come in very handy. NPC clip brushes act like invisible walls that are non-existent to the player keeping NPCs away from dodgy areas.
The uses for NPC clip brushes can really be quite varied. You can make NPCs seemingly walk on air if you like... or use them to funnel NPCs in the right direction.
Player clip brushes
Equally, sometimes you may want an NPC to ignore the fact that theres a fence model between them and the player and go for the player anyway.
In a recent map of mine I had a situation where a fast zombie runs and jumps at the player across a fan shaft. The player is behind a fence so they cant accidentally fall in. As the zombie jumps at the player, a trigger push whips them away into the fan blades to their doom.
I achieved this by setting the fence to be not solid and then covering it in a thin brush of player clip. As far as the zombie is concerned theres nothing in the way and the node graph is connected so he goes for the kill yet the player finds the fence to be normal.
Getting NPCs to jump.
Go read this tutorial...
Now I will explain whats missing. Some NPCs can jump a really long way... like fast zombies. To encourage them to make those jumps you can add a few info_node_air entities to their jump path to encourage them to make that leap.
Climbing NPCs
Oooh this is where things get a little tricky... well fiddly...
Some NPCs do have climbing animations and can climb up special ladders with their AI in tact all the way.
NPCs that can climb are the following:
NPC_Fast Zombie
NPC_alex
In order to set up these special ladders go read this tutorial... then come back here and I'll tell you a little more...
Go on...
Off you go...
Back? Good.
There are a few things missing from that tutorial that you need to understand when it comes to NPC climbing. Heres da rules.
1. If your NPC ladder is higher than 128 units high you'll need to add info_node_airs at regular intervals up the ladder. Like this...
Add image!
... so that the node graph is still connected all the way up and a path can be found.
2: Your info_node_climb nodes must be lined up exactly in a straight line. Like this...
Add image!
NPCs can only climb straight upwards.
3. The NPC must exit the ladder in the direction they started it in. Like this...
Add Image!
4. NPCs can die and fall off ladders if shot but cannot fight while climbing. They just dont have the animations for that... sorry.
5: NPCs can climb downwards but it aint pretty. Fast zombies for example simply play the upward climbing animation when climbing downwards... always keep them climbing upwards.