User-made AI

By Shamus Posted Thursday Apr 10, 2008

Filed under: Game Design 55 comments

In yesterday’s post on Startcraft AI, SolkaTruesilver mentioned here that it would be nice to have a way to make custom AIs for the game and pit them against each other.

This is something I’ve been pondering as well. It’s probably too much to hope that Blizzard will release the Starcraft source someday. That might be a terrible idea anyway, given the fact that the community is still going strong, not to mention the professional-level competition gameplay. Having the source would make certain kinds of cheating possible. You couldn’t get free money or anything like that, but you could make it so that the interface shows you information which should be hidden from you. You’d be able to see (but not attack) fully cloaked units, start with the map explored, see what resources your foe has, and other information along those lines. Basically you couldn’t make a hacked client to let you do anything you couldn’t normally do, but you can make one that would let you know what you shouldn’t.

So, Blizzard releasing the Starcraft source probably isn’t going to happen for us.

Still, the idea of competitive AI programming is really compelling, and moreso if we’re talking about doing it with a game where humans can join in. Sure, you could write your own platform designed to let programs fight it out in some arbitrary manner (and there have been many systems like this in the past) but the whole thing doesn’t really get interesting until it has to face a human being. I think an interesting idea would be for a game designer to devise their own scripting language (probably some C++ flavored thing, but whatever) that allowed anyone to write AI modules and share them with others. Non-programmers could download new AI packs if they want a new challenge. Introduce some sort of global rankings system and we can see which AI packs fare best against the userbase and which ones people enjoy playing against. It would keep the game fresh and new, even for people who stick to the single-player experience. Actually, it would turn vanilla Human vs. AI play into a sort of proxy Human vs. Human. It would be some sort of new form of multiplayer, going against someone else’s AI.

And now, let me construct my fantasy system and how I think it should work: Continue reading ⟩⟩ “User-made AI”

 


 
 

Starcraft: Bot Fight

By Shamus Posted Wednesday Apr 9, 2008

Filed under: Game Reviews 141 comments

I’m not sure who will find this interesting. This is an AI analysis of a ten year old videogame. This entire endeavor will sound absurd to people familiar with the game in question, and hopelessly esoteric to those that aren’t. Still, I’m putting this up in case there is someone else out there who is just as peculiar as I am, in that I find this sort of thing intensely compelling.

About a month ago I wrote a Starcraft scenario which allowed you to observe a game between AI players. I’ve been curious about the quirks in the Starcraft AI and I’ve wanted a chance to see them do their thing in a deterministic environment. I learned some surprising things about this ten-year-old gem. While the races themselves are very nearly balanced in the hands of humans, it turns out the AI is a lot better at using some races compared to others.

This is a very pixelated map of The Hunters.  The map has eight starting locations, marked by the colored squares.  Players are randomly placed on the map, with one random spot left empty.
This is a very pixelated map of The Hunters. The map has eight starting locations, marked by the colored squares. Players are randomly placed on the map, with one random spot left empty.
The setup is this: Seven AI players. Randomized start locations. Using the Broodwar expansion. The last “player” is the human observer, who controls no units but who can see the entire map. The script in question runs on the map “The Hunters”, although it could easily be exported to other maps. There are two Protoss players, two Zerg players, and three Terran Players. The computer players are all set to “insane” level difficulty, informed that all other players are their enemy, and told to go at it. Mayhem ensues.

I’d usually let the game run overnight and check on the results in the morning. (Yes! This was my solution for being too busy to play computer games, I programmed a game to play itself for me!) A game normally takes a couple of hours, although rarely one will end in an hour, and several became endless stalemates.

At first I just set the difficulty to “normal”, but I found that the computer players were far too likely to consume all the resources on the map, go broke, and then just sit there. I’d start a game before going to bed, and when I came back in the morning I’d find the battle was down to three sides who couldn’t make any fighting units. I changed the difficulty to “Insane”, which auto-cheats by giving itself 2,000 minerals and gas anytime it goes broke, meaning the thing is always rolling in resources. This made sure that most battles came to a proper conclusion. Although this made battles larger, more spectacular, and a little more chaotic, it didn’t seem to affect who won. I ran many overnight battles with both AI setups, and while higher difficulty made for inflated scores, over many games the results painted a clear picture. Continue reading ⟩⟩ “Starcraft: Bot Fight”

 


 

Testing New Theme: Lawful Good

By Shamus Posted Tuesday Apr 8, 2008

Filed under: Projects 88 comments

A few weeks ago I was working at tweaking the existing theme for the site and making a few improvements. It turned into an unintentional overhaul, and then I got sidetracked and didn’t get time to complete it. I thought I’d make it available now and get some feedback and see if anyone spots any problems. It works in IE7, Firefox, and Safari. I haven’t tested it in IE6, but I’m sure it will look like a train wreck. The theme relies heavily on masked PNGs, and IE6 doesn’t go in for that sort of business.

To see the theme, just go to the front page and use the dropdown box on the right, select “Lawful Good”.

The goals I had for this theme:

  1. I liked the “glossy surface” thing going in the current theme, and I wanted to expand on that.
  2. The old sidebar is hopelessly over-cluttered, and I wanted to trim it down. The archives have grown and now take up a lot of screen real estate, so I’ve moved them and other lesser used items to the bottom of the page. The new sidebar is a lot lighter and hopefully more useful. (Search is now at the top.)
  3. I wanted to back off from the pure white background. The major problem with the old theme was that it was just too dang bright for some people. At the time I couldn’t just dim the background by a couple of shades, because all of the logos and dice images would have ugly white boxes around them. I’ve fixed this so the the images are now very tolerant of background color changes – pretty much any light color will work.
  4. I wanted to clean up the sprawling, hackish code of the old theme. Not that it matters to visitors, but this theme uses a lot less code to get the job done.
  5. I wanted to replace the current black / white themes with Chaotic Evil / Lawful Good, which would make for a nice meta-theme.
  6. I wanted more dice. I’m still working on this. I really like the handful of dice at the bottom of the page, though.

Yes, I know glossy silver doesn’t exactly match the purported content of this site. A proper RPG site theme would probably be cartography / papyrus / middle ages, and a proper videogame theme would probably just have iconic characters splashed around. But there are already a lot of sites along those lines. And besides – this really does it for me, visually. I guess I’d rather the site theme look sexy than make sense.

It’s not perfect, but it’s an interesting work in progress. If anyone wants to put up a shot of how it looks in IE6 I’d like to see it. Please let me know about any problems / errors you find. Or just let me know what you think of it.

EDIT: One further note is that the new theme assumes a desktop width of at least 1024. Up until now I’ve stuck with 800, but I noticed that people running in 800×600 has vanished to almost nothing over the last couple of years. Less than 1% right now according to my web stats.

ALSO: To get back to the old theme, return to the front page, look in the left sidebar. It’s right under “search”. It’s a list instead of a dropdown list.

The Next Day: I’ve made some minor changes to get rid of the h-scrolling everyone is getting. I haven’t really addressed the major gripes with the theme, but this quick fix should make it a little more useful. A fuller overhaul will have to wait until I have more time.

 


 

Impulse

By Shamus Posted Tuesday Apr 8, 2008

Filed under: Links 33 comments

Brad Wardel, president of Stardock, was nice enough to stop by and leave a comment explaining a bit more about how Impulse is going to work. (Impulse is their upcoming content delivery system, which I mentioned here.) His comment in full:

Hi guys,

A couple things about Impulse that aren’t readily known yet.

1) Impulse does NOT require any DRM or activation. Individual programs may use it but it isn’t required. You don’t have to keep Impulse running or what have you. Even on things that do have activation, it’s only on installation (and you have to be connected obvoiusly to download it in the first place).

2) Impulse will be adding a lot of community features. For instance, Stardock, Gas Powered Games, and Ironclad are teaming up to build a unified multiplayer network for strategy games that will be made freely available to other developers who want robust match making in their games.

3) Impulse will have a lot of major third party content on it shortly. By end of the year, most major game publishers and many major PC software companies will have their content on Impulse.

I love Steam. I use it more often than I should for TF2 and such. But it strikes me as something largely designed for first person shooters when it comes to getting games going (I mean you can launch Company of Heroes but it’s not like their server list includes company of heroes games in it). Impulse will let you browse through multiple strategy games for open games or press a button and find someone for you to play which I think is a pretty big deal — since I like strategy games.

From a “DRM” standpoint, this is exactly what I would expect from Stardock: Treating people like customers and not like an army of amoral data pirates. In a perfect world, this wouldn’t even be praiseworthy behavior. This would be about as remarkable and heroic as not giving your date a suplex at the end of the evening. This advice should be so obvious as to make you feel like an idiot for bothering to utter it. But I have not found a way to inhabit that perfect world, which means I have to give credit to Stardock and their dedication to their suplex-free customer service. Continue reading ⟩⟩ “Impulse”

 


 

Old Memes

By Shamus Posted Thursday Apr 3, 2008

Filed under: Movies 50 comments

No time for anything substantive today. Instead, check out these exceptionally old memes, which may be so old they’re new again. All three five are strangely disturbing and compelling in their own way. A sort of, “how did this come to be?” Perhaps you missed one.

Continue reading ⟩⟩ “Old Memes”

 


 

I Got Some Rest!

By Shamus Posted Thursday Apr 3, 2008

Filed under: Personal 13 comments

For the last few days my body, chief victim of my ambitions, has issued vigorous protest against the things I was asking of it. Indeed, protest was the only thing it was willing to do with any degree of vigor. Its complaints were coldly rebuffed; I’m simply too busy to be bossed around by my body, which I view as nothing more than a support system for the all-important brain, which has a bunch of important stuff going on if you don’t mind, so suck it up.

But the body cannot subsist on willpower alone. Jedi Knights notwithstanding, the mastery of the mind over the body is a tenuous relationship, and one which is easily reversed. For example… Continue reading ⟩⟩ “I Got Some Rest!”

 


 
From The Archives:

TitleWhat’s Inside Skinner’s Box?

What is a skinner box, how does it interact with neurotransmitters, and what does it have to do with shooting people in the face for rare loot?

 

Overused Words in Game Titles

I scoured the Steam database to figure out what words were the most commonly used in game titles.

 

Silver Sable Sucks

This version of Silver Sable is poorly designed, horribly written, and placed in the game for all the wrong reasons.

 

This Game is Too Videogame-y

What's wrong with a game being "too videogameish"?

 

Good Robot Dev Blog

An ongoing series where I work on making a 2D action game from scratch.

 

Bethesda’s Launcher is Everything You Expect

From the company that brought us Fallout 76 comes a storefront / Steam competitor. It's a work of perfect awfulness. This is a monument to un-usability and anti-features.

 

Black Desert Online

This Korean title would be the greatest MMO ever made if not for the horrendous monetization system. And the embarrassing translation. And the terrible progression. And the developer's general apathy towards its western audience.

 

Starcraft: Bot Fight

Let's do some scripting to make the Starcraft AI fight itself, and see how smart it is. Or isn't.

 

Top 64 Videogames

Lists of 'best games ever' are dumb and annoying. But like a self-loathing hipster I made one anyway.

 

Charging More for a Worse Product

No, game prices don't "need" to go up. That's not how supply and demand works. Instead, the publishers need to be smarter about where they spend their money.