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

Theoretically auto-balancing Democracy 3

The problem with games like Democracy 3, or indeed Gratuitous Space Battles, is that they are VERY hard to balance. Balancing a game is exceedingly hard, even if you agree, like me, that ‘some’ inbalance is actually what can make a game fun. (If all choices are equally effective, why pretend there is strategy to the game?). DFor big AAA studios with huge testing teams, pre-release balance is easier. For one or two man indie studios, its almost impossible to do in house.

The common solution is early-access / pre-orders with beat access, which get a lot of people to play the game. However this assumes that

a) Those players are representative in terms of skill, time, and play style to the wider public

b) You get decent feedback from all those players, not just the hardcore and

c) The feedback from the players is impartial and can be relied upon.

With a game like Democracy 3, c) is a real issue. A lot of people complain that capitalists are hard to please, but how do we know if that’s true, or if its feedback from socialist players? Anyway, as a geek, and a coder, and someone who embraces complexity, an alternative strategy of letting the game balance itself obviously appeals. So clearly, getting the game to play itself constantly and discover, then report, and maybe even auto-tweak and adjust its own rules, is the ultimate goal.

This would be an ideal ‘summer vacation’ project for me.

Actually, the bit most people are probably wary of (coding the bit where the game comes up with a strategy, plays the game and developers improvements to its play style based on the results), isn’t the bit I’m worried about coding. That bit wont be too bad (i’m not aiming for alphago levels of skill here), the bit that makes me roll my eyes and go ‘Can I be arsed?’ is the mechanics of introducing a wrapper to the game that lets it play itself. The problem here is just doing a nice, clean job of introducing such a system without breaking the game or introducing anomalies.

This is where Alphago is AMAZING, because it simply uses visual input. Frankly that ain’t gonna happen, so I’d have to embed code in there…or would I? an ideal system would be hands off, a new ‘GeneticD3.exe’ that launches D3, non invasively, makes player decisions, then handles everything without touching any D3 code directly… Surely that cannot be done?

Mwahahahaha. It possibly can…almost, because D3 is already set up to autosave each turn. And because its turn based, all the ‘decisions’ happen at once. So all I really need to do is to write code that parses the D3 save game (handily already xml), makes decisions as to what to do, runs those decisions through the D3 engine (that bit gets tricky), and then dumps out the next turns save game, repeat ad finitum. To do some rough maths, lets say saving and loading D3 takes about 2 seconds (I rule at optimizing), and we give a generous 2 seconds to make a turns decisions, thats 4 seconds a turn, 64 seconds per term in office, or a 4 term complete game in 256 seconds, so roughly 14 games per hour, or 300 games a day. Thats actually remarkable slow. If AlphaGo needed 100,000 games to learn, I’d need the best part of a year. Still, assume some cunning multithreading and optimizing (I don’t ever need to touch the disk really, all save/loads could be trapped in a RAM buffer), I could probably quadruple the speed, so 1,200 games a day?

I am seriously thinking about it. It would definitely be fun.

Democracy 3 and its situation mechanics. Broken in implementation?

In playing a lot of Democracy 3  lately (also playing a lot of democracy 3:Africa), I have started to wonder if the way a lot of the situations are set up is a little too ‘steep’ and could be balanced better, especially regarding some of the negative situations.

Take for example, technological backwater…
This kicks in at level 0.6, and ends at level 0.4 for its inputs. So if your hidden backwater value reaches 60% it starts, but you have to go below 40% to get rid of it. I think that mechanic is fine but…

The impact on GDP (for example) is
-0.02-(0.12*x).
Which means that when this kicks in, you will get
-0.02-(0.12*0.6) which equates to -0.092, or a 9.2% drop in GDP. (actually not that simple, because its a 9.2% cut in 0-1 terms, which if GDP is, for example 0.5, that would be a 18.4% overnight drop in GDP).

Looking at it backwards, when you beat the tech backwater, assuming a GDP value of 0.5, that
impact on GDP just before it drops is
-0.02-(0.12*0.4) which would be -0.068, or 13.6% of current GDP.
Thats a sudden jump up and down of GDP in double digits, which seems huge, given that its a fairly arbitrary measure.

I’ve tried to illustrate the current setup with this crude graph. Bright red is the bit where the backwater kicks in and is in force. Dark red is the bit where its still in force once its triggered. The green lines show the sudden ‘jumps’ in impact on GDP when its triggered (rightmost) and when its fixed (leftmost).

graph

What I’m trying to avoid is the situation where you GDP just flat-lines or is 100% all the time, rather than being more interestingly poised between the two and shifting more realistically. Which countries GDP ever jumped 13.6% in one quarter? I’d say few:
http://data.worldbank.org/indicator/NY.GDP.MKTP.KD.ZG

So…if you are still reading..well done :D. What I’m suggesting is that maybe the situations such as these need to be tweaked a bit so that the ‘entry’ and ‘exit’ top the situation is less drastic, and that, for example ‘reducing’ a situation like tech backwater becomes more relevant than the current situation where its a bit binary and a bit of a ‘its active or not’ mechanic. For one thing that -0.02 starting point could go and be replaced with an adjustment to the top end (so 0-(0.14*x)) or maybe it needs more of a curve and a different starting trigger. Or is it fine as it is?
Thoughts welcome!

Political awareness vs income and education (Democracy 3)

Lets say I wanted to introduce the concept of spin, and media campaigning into a political strategy game (hypothetically).

I put to you the following conjectures:

  1. There is an extent to which everybody is influenced in making their political decisions by their perceptions of the candidate as produced by ‘spun’ media stunts and the extent to which they are exposed to political campaign literature and advertising.
  2. The extent to which that influence takes hold of an individual is higher if that individual is of low education than if they are of high education
  3. There is a correlation between income and education, with regards to the individual.

Now I am talking about the greater STATISTICAL model here. I am not saying that all rich people are well educated, that ll poor people are badly educated, or that all well-educated people are like spock and can see through the spin, whereas all poorly educated people are gullible fools who swallow party-propaganda without question. There are MANY MANY exceptions, of course. What I am asking you is this… is there a correlation (maybe a weak one, affecting maybe 10% of the vote) in these values?

This would seem to suggest that its not nonsense to correlate the level of socio-economic status of an individual with their political awareness…

spso_0006_0167_1

So is it not fair to suggest therefore a link between an individuals income and their level of political awareness? And as income affects education, should overall education not be a factor?

To put things in more crude terms, here are some yes/no questions:

A) If we spent a lot more on education in any given country, would that increase the extent to which people made informed decisions on political policies rather than voted for trivial/superficial reasons?

B) Is it easier to get votes from poor people using political ads and spin than it is to get votes from rich people using the same methods?

Be VERY careful. Almost everyone thinks ads don’t affect them, and they are all wrong, but I suggest that if the ONLY information you have about the policies of (for example) Clinton or Trump is from political ads, then you are more swayed by such techniques, whereas if you read 3 different serious newspapers, watch different TV news stations and are well-educated on the topics of politics and economics, are you not better placed to overcome the effects of those ads with your own internal thoughts?

Basically if I add a correlation between the susceptibility of voters to electioneering and their income, and skew all of this by the countries state of education, is that a fair link to make? or is it elitist bollocks? :D  I need your opinions. Supporting studies and charts are vastly interesting too!

 

 

Starting to wind down towards normality

Yikes. the last few weeks and months have been INSANE. I have been doing too much stuff, to the extend that I put back one project (a big one) to next YEAR, and put the thing I was coding on hold, just to take care of Shadowhand, Democracy 3:Africa and the Big Pharma:Marketing & Malpractice DLC. Plus I have another TOP SECRET thing that I’m publishing in the works (announcing that soon actually…).

But now things are not QUITE so totally insane. Democracy 3:Africa has shipped!. Its selling quite well, technically slightly better than I had projected. It has not broken even yet, but you shouldn’t really expect that within a month, or even 3 months really. If this was a new car or a wind farm, I’d expect to break even in a matter of years, not weeks, so I’m not going to worry about that for now.

We also shipped the Big Pharma:Marketing & Malpractice DLC, which is just totally AWESOME and you should give it a try. Thats also selling well, very well in fact, so that’s good news. As a result of shipping those two games, I am back to a normal, rather than insane, level of intense overwork.

So right now my focus is on a patch for Democracy 3:Africa (balance tweaks mostly), and the website for Shadowhand, which is nearly there. I hate over-complex CSS so I’m doing it myself to keep it simple, its nearly done and the code is really clean and simple, which means easy to edit. We aren’t making a song and dance about the website yet, but we will be promoting Shadowhand a lot more closer to its release in a few months time. Starting Monday, I’ll be returning to the thing I was working on before all this madness, which involves me coding again (yay!) and designing again (yay!) and I’ll be announcing what that is in a few weeks. I’m determined to really take my time with that project…

shadow

So in this slight lull in the insanity I have found time to do a few much needed things. I bought a new PC. I am on windows 10 now which I hate, but I bought stardocks app to return sanity to the start menu. Apparently Object Dock no longer works with Windows 10, so I’m hilariously using an app that runs the windows vista sidebar widgets on windows 10. How can Microsoft suck so much? In other news, I bought a cool gaming headset with built in mic, which will make skype & video blog recording easier, although so far the mic seems kinda noisy. I also bought Ashes of the Singularity, which is a fairly conventional RTS, but holy crap it looks nice, and I’m already a bit addicted. I bought a clamp/bracket for my exercise bike so I can play mindless casual games on my ipad whilst getting fit… and I bought ‘The Blu‘ for my Vive, which has the most STUNNING visuals you can imagine. If you have £2,500 spare (yeah I know…) BUY a new PC with a 980TI (nothing less), BUY a VIVE, and get it. It will blow your mind.

blu

Right, I have gardens to strim and website CSS to wrestle with.

Big pharma just got BIGGER and more PHARMIER

Today is THE DAY that we add some slimey business practices AND some really cool extra production-line whizz-bang cleverness to Big Pharma, in the shape of this breathtakingly exciting expansion pack:

large_capsule copy

Big Pharma: Marketing and Malpractice adds a whole bunch of cool stuff. There was a lot of beard-stroking between me and Tim deciding what to put in an expansion (mostly by me, Tim is too young to grow stubble). Some of the ideas in there are cool business-geek stuff like setting individual prices for your drugs (you no longer have to just accept the market price, you can build up stock, or sell at a loss, undercut competitors, sell better drugs at a premium etc…) and some of them are things that just generally expand upon the whole production-line geekery. For example you can now link separate rooms of the factory together. Oh yeah… Plus we have ‘stock gates’…

mm1

which sound boring, but in fact I reckon are going to be awesomely popular. Essentially these are systems that let you say ‘halt production if we already have 100 boxes of this’, but the key thing is they can go ANYWHERE, which means a single ingredient can come in, and be delivered to different production lines by a branching conveyor, depending on stock level of certain drugs, effectively letting you automate the process of switching from one drug to another as circumstances and prices change.

Other stuff includes advertising, corporate gifts, sales executives, and cool company-wide ‘perks’ you can unlock such as these…

mmmm2_8

Big Pharma was as popular as an anti-aging cream that also cures obesity when we released it, so we are naturally concerned that this DLC will bring steams infrastructure to a crawl, so sorry about that. All the more reason to jump in and grab the expansion pronto. You can buy it using the cool humble widget direct from us

Or from GoG.

or the humble store.

Or this new other we are experimenting with (we think it might get popular) called Steam.

We really welcome those all-important steam reviews from happy pharma-tycoons. We also welcome people who spontaneously tweet and facebook share news of the expansion. Obviously if you really cared, you would get home-made T shirts done, and walk up and down your local mall imploring people to buy the game, but those forum posts and social media spreadings are also a good way to show you are a ‘good’ person, so don’t be ashamed if that’s all you do.