Game Design, Programming and running a one-man games business…

How to work out why a PC game keeps crashing

Here is some tips and advice from someone who a) develops PC games b) used to be a PC systems engineer and c) handles tech support for a games company.

So your PC game is crashing. You probably want to contact tech support from the developer or publisher, or seek help from other players on their forums. This is the information you need.

  • The EXACT version number of the game. A lot of games stick this on the main menu screen, or in the ‘readme’ text file in the games folder.
  • The EXACT model of your video card. Go to control panel, then click system, then device manager and look for your video card. You should see the details there. It’s probably some variety of ATI or NVidia.
  • The version of windows you have. Is it 64 bit? 32 bit Windows 7/XP/Vista?
  • if you are doing *anything* unusual, such as running a windows emulator on a mac, or running a beta version of windows, or using beta video card drivers etc.
  • EXACTLY where the game crashes, and the content of any error message that is displayed. You need every detail. ‘It crashed and said something about X’ isn’t specific enough. Especially note any error numbers.
  • if it happens in fullscreen or windowed mode, and your screen resolution.
  • If the game crashed once, or many times, and if the crash can be repeated on demand.
  • If you run other games, and if they work ok. If everything crashes randomly, the game is not at fault.
  • If you have managed to reproduce the exact same issue on a different PC.

Those factors collectively will really help a tech support person. Here is stuff you can try whilst waiting for them to reply.

  1. Reboot your PC and try again. A lot of bad applications can crash and leave your PC, specifically it’s video card driver in a ‘corrupt’ state. Rebooting fixes all stuff like this.
  2. Check there isn’t already a patch for the game. if there is, then install it, because it may well fix your crash. Not every patch notes file contains *all* the fixes.
  3. Install the very latest video card drivers for your PC. You can find a slightly old, but still relevant guide to that here. You probably need to go to nvidia or ati
  4. Go to windows control panel (view by large icons), then administrative tools, then event viewer. windows logs, application log. Look for anything with a red icon, with the name of the game that is crashing. If you find one, click it and you will see in the pane below all kinds of stuff that might help. This is worth sending to the developer in some cases. If the ‘faulting process’ is ATI or nvidia something… then you may have a driver issue, rather than a game code bug.
  5. Check your PC for malware. I recommend antimalwares malwarebytes (free) and microsoft security essentials. Do a deep scan of your whole PC. This could take all day. It is worth doing. A lot of malware generates random-crashing style symptoms, and obviously it’s stuff you want rid of anyway. I have both these programs installed and they are fine, and not at all intrusive.
  6. Check your PC doesn’t badly need defragging. Right click the C drive under windows explorer, select tools, then defrag. If it’s higher than 4% then I’d say do it. If nothing else it speeds up your PC.  While you are there, also check your disk for errors, just in case.
  7. Now we are getting more obscure. is this bug a totally random crash? If you are at your wits end, turn off and unplug your PC. Open the case, and take out the video card and then put it back in. This is called re-seating , and sometimes corrects tiny problems with the socket. Do the same for all of the RAM. In my day, we had a tiny toothbrush to clean the gold connectors with :D. if you aren’t confident opening the case, get your local geek to do it.#
  8. Check your hard drive isn’t full (almost certainly not). In windows explorer right click the C drive and select properties. Do you have at least 1 gig free?
  9. Still no joy? Try running the game as administrator. Right click it’s icon and you will see it as an option. Failing that, experiment with the compatibility mode options in the same place.

If you actually have found a bug in the game, then be aware that this is pretty RARE. You wouldn’t think so, given by online gaming forums, but take a game that sells 50,000 copies (low for retail, high for indie). If there really is a bug, even an obscure one, it’s definitely affected at least 500 people. Maybe 1 in 5 of them emailed the developer. The chances are, the bug was found and patched after the 20th email, let alone the 100th. This is why you should always check your game version number before anything else. It’s still worth emailing the developer with all this information. It will likely help them rule out certain things, the more examples they have.

If you are one of those lucky people to be reporting a bug before it’s fixed, what the developer wants is something called ‘steps to reproduce’. You can be 99.9% sure that the developer has never experienced the crash. If they did, it would be fixed, which means that there is something about how / when / where  you play the game that is different to the way the game was tested. Good steps to reproduce look like this:

  • Start Game in fullscreen mode at 1920×1200 resolution on windows 7 64 bit with nvidia video card, latest drivers
  • Click ‘new game button’
  • Click ‘mission 3’
  • Select Arch wizard chipmunk character, and set all attributes to 7
  • Play mission until you encounter the 5th hobgoblin.
  • Click the ‘use death ray’ icon
  • Game crashes immediately you click the button…

Ideally, what you would do is identify only the steps that cause the game to crash. So if you try to reproduce it, but this time click the ‘use freeze ray’ icon and it still crashes, then you know its not specific to that one button. What the developer really needs is the minimum steps to reproduce the crash, and also to know what is a red herring (in this case, the choice of weapon). In tech support, we called this ‘drawing a box around the problem’. You need to be identify what causes the game to crash, and what is just filler and side-show.

Lastly, remember the game developer isn’t your enemy, they want it fixed more than you do. You aren’t the only person with the bug, and they would rather be coding new stuff than debugging, so they want it done as fast as they can.

If you have any other tips, or suggestions that you know have helped fix awkard and obscure PC game crashes, post them below.

 

School behaviour and your future job prospects

I’ve blogged this sort of thing before in some ways:

https://positech.co.uk/cliffsblog/?p=1118

But I was interested to read this:

http://www.bbc.co.uk/news/education-13508807

“Pupils in the UK were better behaved than the international average.

But Asian countries and regions dominated the top places in this good-behaviour league.”

I am so un-surprised by this. People in rich western countries don’t instill any sort of urgency or panic in their kids to make them study hard. The kids see the parents with cushy jobs and think that homework isn’t a big deal. They leave school with very poor skills and are totally outclassed by foreign competitors. Remember, you aren’t competing against your parents generation, but against kids your age is Japan, China and Kazakhstan. The Kazakhstan kids are paying attention whilst British and American kids text each other and kid around. I have a horrible feeling that we have an entire lazy, ill-educated generation who expect a lifetime of ipods, flat screen TVs, new cars and a luxury house and decent pension, but who have no way to finance any of this.

If you are 15 now, do you really not expect to live to 90? or 100? given modern medical science. How much will that require in terms of a pension? And this is the generation that has student debt from the start, and a huge national debt to pay off one day, not to mention massively increased job competition from the developing world, and increased automation and robotics meaning there won’t be so many menial jobs even if you wanted one. There are already thousands of people with relatively poor qualifications working in call-centers that will be replaced by voice-recog/synthesis AI within 20 years. What will they do? Wash cars? (nope, robots do that already).

I don’t have kids, but if I did, I’d be making damned sure they were top of the class, knowing who they are up against. The near-future economy isn’t defined by mining and construction, but bybiotech, nanotech, computer science and maths. I can’t see any reason why the next big technological boom can’t happen in China or Kazakhstan.

Now do your homework. :D

 

REFERENDUM DAY. (Democracy is cheap today)

I’m 41, and I have never voted. Nope, thats nonsense, let me re-phrase it. I have never cast a vote that ever influenced anything, ever. That’s because I’ve always lived in a ‘safe seat’ meaning the local MP had nothing to fear, knowing he (and it was always a he) had a job for life, huge salary and expenses to boot.

Today I will be voting in the UK referendum on changing the voting system. I’ll be voting yes, but regardless of my personal views on that, my vote will actually be counted, because it’s not being done on some patronising non-proportional system like constituency voting. I know that AV isn’t PR, but it’s better than FPTP. I have grown incensed by the total lies put out by the No2AV campaign. I’m strongly pro-AV, and I could make a much better argument for FPTP than they did, but they chose to pretend it would cost more (what price democracy eh?) and that the money would be taken from intensive care wards to pay for it. They literally tried to claim that if you vote YesToAV, children would die.

Pathetic.

I hear that the No camp will be annoyed if yes wins on a low turnout, which is ironic, because the whole problem of first past the post is that there is no actual post. You can win with 1% of the vote, if every other candidate only gets 0.99%. So if there is a 1% turnout and yes wins, it will be a victory on the terms of FPTP. Bwahahahahaha. I got 3 No2AV leaflets through my door, with the postman, meaning it’s not being done by political activists for free, but being paid for, no doubt by some wealthy people with a vested interest in the current system.

So anyway, back to the voting system cost issue, to prove to them that the cost of Democracy should not be an issue, Democracy 2 is 50% off today with a special code. Check it out:

50% off Democracy2.

Happy voting,

Land Air Sea Warfare

So who else has played this? it’s a pretty cool little game. If you enjoyed RTS games before they went 3D, you might like it.

I mention it because someone on the blog commented on it, so I checked it out and today added it to showmethegames here:

http://www.showmethegames.com/strategy.php

It’s one of those ‘build a metric crapload of units’ style RTS games, and surprisingly moreish. The developers site is here:

http://www.isotope244.com

My current news is very technical. A lot of waffling away on vertex buffer batching code to make my engine much, much, much smoother and faster. If I ever write GSB 2, it will run much better on older machines. Not that it’s a slouch now, but it could mean bigger fleets :D

Still a while before I begin hinting at the next game…

 

 

My game university course experience

Ok, so today I went along to Kingston university to be their guest at a games production course. It was pretty interesting, and fantastic that they thought to invite not one, but two indie devs (I was the second one) to go talk to students. I LOVE the idea that students on games courses aren’t automatically told ‘now go get a junior tester job at EA’ at the end. It seems that being an indie developer is considered a pretty reasonable career move now, which is awesome.

The students games were a mixed bag. Some had some really cool ideas. One of them had a really marketable, really clever, really original (I thought anyway…) character as the hero. Some of teams had obviously thought quite hard about business strategy for their game. Some had not…

What I tried to get across to them, and in retrospect I was *really* easy on them, with this point, is that the competition for game development jobs, sales, and success is HUGE.  Assuming that people doing this course see themselves, eventually as being a lead programmer/artist/designer on some big budget cool game in a few years time, they massively need to up their game by a scary amount.

If you are doing a game design or production course right now, you need to not only be top of your class, you need to be sailing past that goalpost so it’s a distant memory. You need to be clearly, unambigously, demonstrably the very very best at what you are doing. Think of it like this:

  • You have no experience.
  • You have no reputation.
  • You have no contacts in the industry.

So you need to absolutely flipping blow people away with your skills and your portfolio. If you are a coder, that means having straight A’s in everything, and knock-out demos that prove you have serious mastery of your language(s). If you are an artist you need a BIG portfolio showing stuff that makes people go *wow*.  If you are a designer, you need a large number of diverse, fully designed, fully described, game designs in different styles. You need to be able to critique a game design idea read out to you, on the spot. Can you do this?

If you don’t have that, the job will go to one of the 99 other applicants who have all of those. If you think I’m kidding, I’m not. I’m a humble one-man studio and I regularly get sent CV’s from people wanting a job. I suspect Bioware and Valve get quite a few more :D

And that is to get a job at an existing studio. Running your own studio has a whole set of extra challenges and demands. This is an awesome job, and a great industry. It is, not surprisingly very difficult to get to do this.