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!”

 


 

April Fooled

By Shamus Posted Tuesday Apr 1, 2008

Filed under: Movies 28 comments

Right now on the YouTube front page, every single one of the featured videos links to the same Rickroll. The videos themselves have thumbnails that indicate they are really something else, which means this can only be a practical joke on the part of YouTube. (That is, different thumbnails and descriptions, linking to the same video with the same ID. That’s not normally possible.)

As an aside, I’ve always wondered if Rick Astley knew that his 80’s pop song has become the payload for an internet meme / prank, and what his reaction was. Turns out he’s a really good sport about it:

In a March 2008 interview, Astley said that he found the rickrolling of Scientology to be “hilarious”; he also said that he will not try to capitalize on the rickroll phenomenon with a new recording or remix of his own, but that he’d be happy to have other artists remix it. Overall, Astley is fine with the phenomenon, although he finds it a little “bizarre” and only hopes that his daughter receives no embarrassment over it

Elsewhere:

 


 

The Balancing Act

By Shamus Posted Tuesday Apr 1, 2008

Filed under: Personal 26 comments

article_mugs.jpg
That did it, I pushed it too far.

For the past couple of years my life has been a carefully managed collection of projects. Once my day job ends, I have to ration the remaining hours of the day among my many projects and responsibilities. Family time. The comic. My exercise regimen. Writing for this site. Reading time. Weekly D&D game. Videogame time. Taking care of my wordpress plugins and fulfilling my other admin duties here. I do not pretend they are done in that order.

A couple of weeks ago I began a new project, and I managed to bite off more than I can chew. I figured if I cut out videogame time I’d be able to get by. As luck would have it, Shawn suggested a break from the comic just as the project began, so that was two items off my daily itinerary. Still, I have too much on my plate now. I can’t bear to cut anything, which leaves me at something of a loss. There are only so many hours in the day, and no degree of diligence and self-discipline can change that. I tried borrowing a few hours from sleep time, but you can’t ever get ahead doing that and at my age the interest payments are murder.

It’s odd, because having one too many projects doesn’t just mean I fail one of them, I seem to be failing all of them. One problem is that I underestimated the drain that the new project would put on me mentally: After a long day of coding at work my brain is mush. It seemed reasonable that I could drop my two hours of videogame time and replace it with scripting, but I failed to take into account that I needed those couple of hours of mental rest. The exercise program is a similar problem. I figured I could handle an hour of exercise a day. I failed to account for the fact that after the workout ends I’m too exhausted to do anything productive. I’m rushed and distracted during family time, because I’m thinking about all the other stuff I “should” be doing. I’m not getting all the things done for my website that I want (I’d planned on doing an April Fool’s day theme for this site that would make it look like a horrible mid-90’s Geocities page) and it is only by the narrowest of margins that I’ve avoided resorting to YouTube and top-ten list posts.

It’s like I’m juggling: Adding one too many items didn’t just make me drop one, it made the entire act impossible.

Looking back, I know that at 26 years old I could have kept up with this workload, but I lacked the self-discipline. Now at 36 I have the discipline, but my mind and body can’t keep up. I’m not sure what I’ll do next. Chainmail Bikini starts up again soon. I really need to start cutting things.