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

Repair Drones

It’s amazing how much extra effort had to go into this over the last 48 hours…

Repair drones have always looked a bit cool, but not been much help to the player. The problem is, their only tie to the core simulation was their quantity. Every repair module gave you a ‘swarm’ of repair drones, and once your ship took some damage, you would see them hovering around and looking like they were welding the ship back together. The problem was, they didn’t actually achieve anything froma  visual point of view.

Thios was worse than a visual bug, because it means that when you play against an enemy fleet that has lots of ships which make strong use of repair drones, you cannot tell if that enemy cruiser is on it’s last legs, or just cosmetically burned, yet at 100% hull integrity. Surely this had to be fixxored.

So now (behold the youtube vid below), those drones (as well as having nicer welding effects) do actually weld those damaged bits of your ship back together. To make it REALLY obvious in the vid, I built a ship with three repair modules, so until the repair supplies run out, it’s pretty nippy at welding stuff back together.

Let me know what you think. I reckon it not only looks better, but will make playing against repair-spammed ships much easier and more enjoyable. (in terms of learning from the battles. The simulation is unchanged)

Another patch, some web stuff…

Today I released version 1.12 of GSB. That fixes a ton of AI stuff, and a lot of minor UI niggles. It is pretty handy that beta testers compile lists of little UI things they notice (that as developer, you tend to become blind to).

Fixing bugs is relatively stress free, it just takes time and effort, and concentration. Improving Ui stuff, new features and new graphics are all quite stress free too. The really scary stuff seems to be balance changes. Everyone who plays the game uses different tactics, and no matter what you test, the nanosecond you release the new patch, people find some cunning way to design ships that takes advantage of a loophole you hadn’t even thought of.

That sort of stuff is inevitable with a game that involves competition, but it does make it pretty scary and time consuming to ever change anything. I concluded that missiles were not good enough, and that fighters flew too fast, but there are a dozen ways to fix both those issues, and every change has its side effects. Still, the game is much better balanced and playable that it was on first release, and despite minor niggles, I do think that on the whole it gets better with each patch. (If not, I’m wasting my life!)

In other news I added a flash widget to the GSB website that scrolls through images. It cost me actual real money! I’m no flash expert, so buying a pre-made component was worth it for me. I normally don’t like flash on websites, because it seems a bit gratuitous but…

Fixing the AI orders (again)

Some cunning GSB players noticed that the orders were not working correctly in terms of attacking certain classes of ship. If you deleted the ‘attack fighters’ order, the desired behaviour was that the ship ignored fighters until there were only fighters left.

This bit of code was broken and basically needed re-doing. Now you might think it’s an easy algorithm that goes like this:

Go through each intact enemy ship
Pick the optimum one out of the classes we should shoot at
If you still have no target...
Go through each intact enemy ship
Pick the optimum one ignoring class.

Leaving aside the inefficiency of parsing the 300 enemy ships twice each time, this isn’t as simple as it looks, because a lot of the time a ship will fail to find a target within range. Thats because all of the ships its ordered to fight are across the map. Ideally the ship trundles over and shoots them. So the criteria for actually picking a target differs from the criteria for establishing whether or not there are any valid targets. Plus, the idea that once all the frigates and cruisers are dead, that EVERY TIME I look for a target I have to do a dummy run through with invalid orders is just untidy and slooow slooow…

So I ended up coding a convoluted complex system which (as convoluted complex systems often are) is way faster than that. Basically Fleets keep track of if they have any ships of each class. Whenever new ships show up (survival mode) or a ship dies, the fleet recalculates that data. if the data has changed, it tells each intact ship in the fleet. Those ships then compare this against their orders, and deduce whether or not the orders still stand. If they don’t, they tell all their turret AI’s to ignore class-based orders from now on. This involves practically no overhead during a  typical target-acquisition call (which are very frequent)

That took a lot longer to code, debug and test than it did to type here :D

In other news, I fixed some dodgy server-side code that prevented challenges being deleted. I’m amazed more people did not whine at me that the ‘delete’ button on a challenge basically did sod all. It now works :D

Minimum Reqs. We just pull it from out of somewhere

Have you ever bought a game based upon the minimum reqs, and found out it doesn’t run? or it’s a slideshow? have you ever pheared the min reqs, but bought it anyway, and be surprised how well it runs?

Here is the inside track:

WE  (the devs) HAVE NO IDEA. WE MAKE IT UP.

Now obviously as an indie dev, I have less ability than Actiblizzard to tell you if the game will run on a 1 Gig RAM, 64 MB video card rig, because quite frankly, I don’t own one. I currently own 3 working PC’s, 1 Sony vaio laptop, 1 ultracheap dell netbook, and my main Mesh uber-dev PC.  That’s it.

Now when I release a game, I check it on all 3, then on my mates PC, my brothers PC, and a few other peoples PC’s. (other indie devs mainly). Then I take a rough guess, and we call it the min req. You might be thinking that this means it’s just me making it up, and that big publishers have 100 different PC’s and they can be scientific about it. I call bullshit.

Lets laughably assume there are only 10 different video cards on earth, and that there are only 5 different drivers for each of them. lets assume there are 5 different sizes of RAM, and 10 different hard disks, 10 different processors and 5 different flavours of windows. That gives us:
5 X 10 X 10 X 5 = 2,500 combinations. Now lets assume 10 types of soundcard and 10 different configurations of other software running (p2p clients, messenger clients, CD burning stuff, antivirus, firewalls, rootkits, viruses and other malware). Thats 250,000 setups even with these stupidly conservative estimates.

When people ask me if GSB will run on their PC (A very understandable question right now, as there is no demo), I give as honest an answer as I can, and here it is:

“My dev PC is a core 2 Duo 6600 2.40ghz with 2 gig of RAM running Vista on an 8800 GTS video card. The game runs silky smooth at 1920×1200 res with all options at Max. If you have a PC that in any way gets close to my spec, it’s a no brainer. The game also ‘runs’ on my sony vaio which has an intel onboard chip, but I have to disable the shaders for it to look right. It also runs well on lots of people’s PC’s with a lower spec, but if you have on-board video and a maximum screen res height of under 768 I really would wait for a demo”.

I’ve heard some surprisingly good things about GSB performance on MACs running emulators, even under WINE, and on very low-spec PCs, but I honestly have no real idea of min spec. So here, as a service to people on the fence considering the pre-order, if you have bought and played GSB, feel free to post your specs, and the games performance in the comments. (Note that its frame-locked to 60FPS so you won’t see it go faster. It uses any spare ‘headroom’ to do a few fancier effects if it has time)

The metagame

Gratuitous Space Battles right now is probably best thought of as a very complex, expanded and pretty versions of the space battle segments of a 4X game.

In other words, these are just battles, fought out between similar fleets with similar objectives, in the same way. It’s kind of like chess. In chess, the map never changes, the pieces are set in stone.

It takes a loooong time to perfectly design and balance the ‘sandbox’ that allows games like this to remain fun over a long period, nd its definitely my aim to get to that point. Howver, I’d also like to introduce a lot more variety and options to keep things interesting. I can always describe more ideas than I have time to implement but here are a few:

1) More unlocks, and modules in general. Although I sympathise with those people who dislike the whole unlock concept, I think there is some good middle ground. People who are very good at the game have lots of spare honor, and as long as there is nothing too game-brekaing, I think some extra, expensive modules might be a good idea

2) Scenario variety. Right now the ‘terrain’ options are quite limited. They aren’t really major in terms of changing tactics (25% range reduction isn’t really earth-shattering), and there are many more possibilities. Maybe a nebula where plasma weapons just do not work? or one where radiation levels mean that no fighters can survive?

3) Modding. There has been little in the way of formal mod support so far. I have some very primitive tools, instructions and general information on how to do stuff like add ship hulls. I should write this up and make it available.

That’s what I’m currently thinking of, and hope to add to the game. So if you think the missions are a bit samey and the ship design options too limited, this will change. If people have similar suggestions, please throw them out there. I love hearing peoples ideas.