Brad Wardell's Blog


The lazy AI developer

Published on Wednesday, September 23, 2009 By Brad Wardell In Elemental Dev Journals

The AI in Galactic Civilizations I and II has tended to get a lot of praise over the years.  But it could have been better. Much better. 

A big reason that kept it from being better was sheer laziness on my part.  A lot of the best strategies involve algorithms that just are tedious to write.

For example, I submitted feedback to GPG for Demigod’s AI based on algorithms I knew would be effective but that I didn’t actually use in GalCiv because they were a pain to write.

My favorite example is a pretty straight forward algorithm: What is the strength of an enemy in a given area compared to mine? You provide the unit in question and a radius and it returns a value based on the relative damage potential of other things in the area and from that you can decide whether to move forward or not. 

It’s a great way to mobilize units together as a cohesive mass. In Demigod, it would tend to make the AI less likely to go into harm’s way.  This is one tiny example and each tiny example on its own is easy to write but taken together, they mean a lot of work that I wasn’t able to get to (or didn’t want to get to) in Galactic Civilizations.

In Elemental things are different.  Oh, I’m still lazy. Dangerously lazy.  But now I have Charles to work with who helps split the work on this stuff.  On our previous games, I wrote the AI myself – The Politial Machine, GalCiv, Entrepreneur, etc.  This time, I have a small team to help me with it.

Part of that is because the AI in Elemental is a very big deal. People are excited about the features of Elemental but to me, those features are meaningless unless there are computer players that make good use of those features. Or more to the point, intelligent use of them.  While Elemental will have multiplayer (up to 32 people for starters), the focus of the game is single player. That’s the part of the game I want to make sure we absolutely nail and for that, it absolutely must have intelligent computer players.

Over the past 15 years I’ve built up an increasing library of algorithms I’ve doodled together for how computer players could play more like expert humans. Elemental will be my first real chance to see them come to life. I’m very excited.

Demigod v1.19 Stat update!

Published on Tuesday, September 22, 2009 By Brad Wardell In Demigod

Greetings!

Just a head's up:

We're doing a partial stat reset for v1.19.  We're migrating your existing wins, losses, and favor points over to the new stats but your experience will be reset to 1000 so that everyone is on an equal footing in terms of experience now that custom games are counted as long as there are humans on both teams.

The reset is occurring today so some of you may need to relogon to have access to your favor points.

Frogboy 3 on 3 games!

Published on Monday, September 21, 2009 By Brad Wardell In Demigod

Greetings everyone!

I just want to let you know I will be hosting Frogboy 3 on 3 games all this week.  Feel free to join up.  Games tend to fill quickly but we usually have a pretty good time win or lose. See you online!

In defense of quackery

Published on Monday, September 21, 2009 By Brad Wardell In Medicine

image

So as I mentioned earlier, I’ve started getting into dietary supplements. Now, I do have two prescriptions now. One is a statin drug for cholesterol and the other is Celexa. Now technically, all those different pills could likely be combined into 1 or 2 pills ala a multi-vitamin is now (when you take your multi-vitamin you’re basically taking what used to be dozens of pills).

I’ve done my best to research the various supplements and I have scheduled myself to get occasional blood tests to make sure that these supplements aren’t having a negative effect on my liver function or whatever. The doses are fairly low since I’m easing in to try this sort of thing out.  So far, the results have been very positive in ways I wouldn’t have predicted.  I’ve been in a better mood, I’ve had more energy and most surprising, I just plain feel better (i.e. I didn’t think I was in any “pain” before but comparatively, I just feel a lot better).

It may turn out that half these supplements are worthless creating expensive urine.  We shall see.  I fee pretty confident that a few of these are pretty important though and will continue on them until research suggests otherwise.

Demigod: September Q & A

Published on Saturday, September 19, 2009 By Brad Wardell In Demigod Journals

Greetings!

It’s that time of the month again so here are some answers to user questions from the forums.

Q: Will there be new maps being added to Demigod?

A: We think so.  Stardock plans to work with Gas Powered Games to either create new maps there or have Stardock create them.  In addition, we are hoping the modding SDK (which is part of the v1.2 update series) will make it possible for users to create maps.  However, making maps is not easy. Unless you have a very good understanding of 3D Studio you will want to leave it to others.

Q: What is happening with regards to Demigod online stat tracking and generally improving the multiplayer experience?

A: The version v1.2 series is aimed at that. Most of these improvements will be the responsibility of Stardock (as opposed to developer Gas Powered Games).

Specifically:

Starting next week, users will be able to go to a user’s pantheon page:

http://pantheon.demigodthegame.com/player/10397

And write notes on a particular user.  We are still debating whether the public should be able to see all notes or only that user. If we let the public do it, then we will end up having to moderate them for abuse. We’d like to hear from you.

Secondly, these notes will be able to be seen in the Demigod lobby from the connection dialog.

Thirdly, the connection dialog will display the # of games that person has played as well as their win % as well as what % of the previous 25 games that person has had one or more of the same teammates as they do in the lobby.

We intend for these features to show up in the next week or so.

We are also eliminating multiplayer skirmish in order to focus on the online experience on custom games and pantheon. The pantheon tournaments will only go 24 hours between the start of new tournaments.

The stat system has already been updated so that custom games now get counted as part of your overall stats (previously only pantheon and skirmish did which was not intuitive to many players who believed the stats were hosed).

Q: What was the coolest demigod ability that was removed for balance reasons?

A: I seem to remember that the Queen of Thorns used to be able to burrow in the ground and come up somewhere else but that could be my imagination.

Q: Beyond v1.2, what kinds of new features do you envision there being in Demigod?

A: The game’s continued sales success has opened the door to a lot of future options.

However, what specifically that means depends on who you talk to. A surprising number of people play Demigod single player and that is something I personally would like to see further developed but it is very expensive.

Others would like to see more multiplayer options which are also very expensive. 

I do know, however, there’s a lot of interest in adding new favor items, improving the existing items, and just generally improving the overall game. 

What I would (personally) like to see will be the creation of improvements by the community itself in the modding area: http://forums.demigodthegame.com/forum/622

Q: What are Stardock/GPG’s plans to promote Demigod more in the future as new features get added?

A: There’s two particular ways we plan to significantly enhance the online player base. 

First, once we’re happy with v1.19 (the early of the v1.2 update series) we’re going to be contacting the Demigod user base which we haven’t really been doing for awhile.

Second, we are going to be focusing the Ready to Play beta for Demigod users as our focus.  This will start next Tuesday to make it easier for people to get games going with friends.

Q: What are the plans for making it easier for clans and teams to get together?

A: That is part of Demigod: Clan Wars.  Originally that was going to be developed this Summer but it became clear that people wanted Replays and Modding more (based on feedback) so Clan Wars got pushed back until those two features were ready.

Increasingly, the  plan is shaping up that more and more of the enhanced multiplayer features like this will be handled by the Impulse overlay since Elemental is going to be sharing the same code.

Q: What is the biggest issue you see Demigod  having to overcome that hasn’t been discussed as much as you think it should?

A: Two words: Mystery lag. That is, the case where the sim time seems fine and the ping time looks good but there’s still lag.  This is something that we think is a big deal. It doesn’t happen often for most people (based on talking to regulars) or for me but I have seen it and I think it’s a big deal and needs to be looked at more.

Q: Will Stardock or GPG give their blessing to community made mods and distribute them?

A: I can’t speak for GPG but I know we favor it.

Q: What improvements to the minion user interface do you imagine?

A: Well, there’s a few things that I’d like to see. I want to know how many of my minions are left from the UI. I’d like to be able to more easily control types of minions from the UI (or at least hot keys).  There are no specific plans at this moment to do anything about it (which merely means we haven’t submitted this request to GPG yet formally).

Q: Is Cataract going to be tweaked so that you can’t take the dark side’s gold flag from outside tower range?

A: Shhhh! Seriously though, yes, it’s something on our list.

Q: When is Epoch 3 going to come and what stats are going to be changed?

A: Epoch 3 will likely come with v1.2.  Favor points will stay but the actual win/loss and other stats will be reset (still accessible as Epoch 2 though).

Q: What is the future of the Queen of Thorns?

A: We have a request in to buff her. 

Q: What is the status of the 2 new Demigods?

A: The scripts are written, the artwork is getting there. My understanding that the artwork is taking longer than anticipated.

Q: How do you (Frogboy) see Demigod “competing” in a world with other “Dota” like games coming out?

A: Well first off, one thing people often don’t realize is that various rivalries that gamers often have with their favorite game don’t typically exist between game developers.  For instance, Stardock people play League of Legends. We like Riot Games and want their game to succeed.

Demigod is designed as a game that people can sit down and play without a lot of training. The real skill in Demigod comes from knowing when to engage or retreat, knowing when to buy what items and knowing what parts of the map you need to control and when. From there, the next level is how to interact with a team.

As Chris Taylor and myself have said on countless occasions, the market has been saturated with RTS’s for the hard core that require the player to memorize a bunch of units and spend many hours getting up to speed. Demigod is designed to be much more approachable. And we think it succeeds pretty spectacularly. It’s certainly not a “casual” game but it’s also not “hard core”.  It is, in my opinion, just right in terms of the right balance.

Another thing people not familiar with Stardock don’t realize is that we support games long-term whether we develop them ourselves (Galactic Civilizations) or publish them (Sins of a Solar Empire).  We work with our development partners to keep these games going. 

So yes, Demigod will still be being actively improved a year from now and probably beyond that and because of that, it will maintain a decent online community that is still welcoming to new players because of its nature.

Demigod v1.19 coming on Tuesday September 22nd

Published on Friday, September 18, 2009 By Brad Wardell In Demigod Journals

image A new build of Demigod will be released on Tuesday.  It is the next of the series of updates (aka v1.2) to Demigod to continue to enhance balance, add new features, and fix reported problems.

Here’s a list of what will be in that build:

Demigod v1.19 (1.19.130 on Impulse)
--------------------------------

Added replay support. Replays can be :

  • Chosen from Front end
  • Deleted from Front end
  • Created at end of multiplayer or single player skirmish game
  • Slider added to adjust game speed during replays
  • Skills, inventory, HUD, and citadel upgrades visible while in replay
  • Added version matching for replays, will only display valid replays
  • Added observer as a replay choice to remove shroud

 

Artifact Shop changes:

  • [Enhanced Health Potion] 1000->800g
  • [Enhanced Mana Potion] 1000->600g
  • [Revitalization Elixir] 1000->900g
  • [Supreme Health Potion] 1500->1200g
  • [Supreme Mana Potion] 1500->900g
  • [Supreme Revitalization Elixir] 1500->1350g
  • [Wand of Speed] 1250g->1750g
  • [Warlord's Punisher] 1.5->1s cast time
  • [Twig of Life] 33%->50% heal, 100->150 minion life
  • [Gauntlets of Despair] 100->200 mana drain

 

Additional updates:

  • Multiplayer Skirmish button removed to focus on Custom and Pantheon (single player Skirmish still present)
  • Decreased turn speed on minions
  • Tweaked flight variables for angels to increase hit frequency, also dropped damage to compensate.
  • Significant pathing improvements for minions and angels especially, but reinforcements in general.
  • Adjusted long distance repulsion
  • Minions ignore 50% of the repulsion from buildings and land units.
  • Blueprint loading enabled only when corresponding mod has been enabled.
  • Fixed unable to join dialog/tooltip.
  • Fix for active cooldowns adjusting when a cooldown buff/debuff fades.
  • Fixes for potential threading crashes.
  • Fixed the Valor Flag buff/debuff bug.
  • Fixed the underlying system supporting Ring of Might, Hex Scroll, Horn of Battle. Those items reactivated.
  • Login screen now sets password field to blank after logging in.
  • Prepend timestamp on error logging
  • Fix for active cooldowns adjusting when a cooldown fades.
  • Mod-triggered desynch handling

We expect to release another v1.19 update the following Tuesday which will add player stats in the lobby connection dialog where players can view player data and view any notes they may have made on that player along with possibly more balance updates.

Other previously discussed features and additions (2 more Demigods, modding, additional balance updates, etc. are still in internal beta).