Thanks Adam, glad to see you "get" it in regards to the difficulty curve. It's quite telling that one of the earliest user mods for Civ 6 is called "Smoother Difficulty" (to quote the creator - I didn't like that the AI got insane bonuses at the start, which meant the #1 way to lose a game was to just get DoW'd in ancient or classical and get killed by more units than you could possibly handle. This mod smooths the difficulty curve of the AI, so now they have about the same start you do, but get better constant bonuses so they can keep up with tech and production throughout the entire game.) So the lop-sided cheating is clearly an issue across the 4x genre.
The ideal end result is an AI that feels like the same kind of challenge as a competent player would. I wonder if it would be possible to create some kind of save game analysis tool, that measures the amount of infrastructure, colonies, and military that a player has at each point of the game - and use that information to structure the AI cheats. So a top level AI would be getting handouts to put it on a par with a top level player, etc etc.
Although handouts work well for shoring up strategic AI, I can't see an elegant approach to boosting the tactical battle AI in such a straightforward way. That's one area where you might need to consider *slight* but brazen AI cheating in terms of to-hit bonuses, etc. Because although it can be frustrating to face "superhuman" opponents, it's probably preferable to having situations where an outgunned human can effortlessly carve through waves of AI ships.
Hot posts in thread: AI coding overview
Page 1 of 3
-
-
There is another way to handle this.
Granted the work, focus and resources available in creating the AI is key but you can create a great game even if your AI is only competent at best.
Events.
If used correctly, events (randomized but with predetermined triggers) could easily assist the AI in creating a satisfying game experience for the player. The trick is balance as in all things. No event should cause rage quit but should present the occasional un-planed for challenge that will throw some good obstacles at the player.
Barring a full 4x campaign, a number of events (from minor to major) can allow the developers to create a sandbox 4x that cannot be easily beaten as the player will have to react at times to threats that were not anticipated.
The idea is to level the playing field as needed, not make it impossible to win. -
It's not so difficult to do IF you divide the code like in MVC pattern and you can leverage all the goodness about C# (great IDE, powerful strictly typed language which won't blow up on syntax errors during runtime). Unfortunately Unity3D likes to tempt developers to put game logic on the display objects and discourages the usage of namespaces which may challenge disciplined code architecture.Last edited: Oct 28, 2016- Agree x 1
-
Other genres, for what ever reason, seem to make a lot more effort to keep up to date with research and treat the AI as something important. In the RTS genre, there has been definite improvements to pathing, due to developers actually bothering to read up on research work. And not just utilising improved pathing algorithms, but even exploring more experimental approaches such as gestalt behaviour and flocking.
It seems to me that the 4X developer community, on the other hand, are happy to stay in the dark ages with regards AI.
Please note again, that this criticism applies to so-called triple A developers, who have the resources to at least make an effort. -
- Agree x 1
-
I don't envy 4X developers when it comes to creating a balanced AI. This is a task even the best in the business still struggle with in the eyes of the players. It seems likely nearly every other genre gets off a bit easier in this regard. Hopefully we can all play a part in making suggestions and in letting our voice be heard during the pre-release period to assist with plugging the holes we find in the AI.
-
-
Last edited: Oct 27, 2016
-
-
However, it's still a helpful thought on how one could disperse bonuses throughout the game, giving little spikes of advantage, instead of giving a constant +X% to Research since turn 1. -
One way you could stagger the bonuses to different times in the game, is having the AI have access to certain technologies not available to the player. These could be scattered across the tech tree. Different species can have different special technologies, increasing the diversity of the challenge. This probably fits in more cleanly with NPC species, since human player will be peeved if he/she doesn't get same technologies when picking that species. -
I agree with a lot of what you said. I also think the big problem we have with the AI sometimes is not so much with the AI cheating per se (although it would be nice if didn't had to), but when we see it do obvious things that are either: very weird, obviously hardwired (e.g. gang up on the human) or simply absurd (e.g. when the AI asks you to stop doing something, that you obviously aren't doing).
So, it should feel like it's competing, I agree. And, if the AIs cheat, there should be only slight bonuses given to them (or through other more sophisticated means), and not simply insane bonuses that will distort the experience at the higher difficulty levels. That's why I never found playing Deity in Civ games an interesting challenge, given the ridiculous amounts of bonuses the AI gets.
Your idea for giving boosts to the AIs not in the early game, but only at mid game is also interesting. -
Subtle cheats just won't cut it. Without some major improvements in the quality of the AI (compared with every other 4X I've ever played), the AI needs massive cheats to provide a challenge.
There is a point at which the magnitude of the cheats you need to give the AI to compete becomes so great, that you may be better off designing separate mechanics for the AI, which can then be balanced to provide a interesting challenge to the player.
Improving the AI is, of course, the better solution. And, as I have posted in this thread, there are techniques that could be applied, even by non-experts without huge resources, to work towards this aim. However, if the AI cannot be improved beyond what is seen in the typical 4X, then another approach is needed to provide a long term challenge. The AI playing by different mechanics is just a suggestion. I fully accept it may not work out in practice.
I don't know about other posters here, but for me, the typical 4X experience is enjoyable whilst I am learning the systems, then becomes boring beating up the AI once I understand them. Thus, with the exception of a period where I played MOO2 multiplayer, every 4X gets abandoned. Beating up on an AI that can't challenge me is simply not fun. -
Higher difficulty MOO2 did in fact give the AI aliens bonuses to growth, production, etc. The amusing thing was that these bonuses were tied to their populations, so when playing at high level, you could enslave a bunch of AI-enhanced Silicoid workers, and end up with a more productive worker base than you could ever have on standard difficulty. Which took the sting out of the 'cheating AI' feeling.
My two cents is that the AI should 'feel' like a competing player - with as many subtle cheats as it takes to get it to that point. When people complain about AI cheating, it is usually triggered by things that make it OBVIOUS that it is playing by different rules. For example, many 4X games decide that higher difficulty should mean the AI automatically hates the player more, which makes a diplomatic playstyle impossible. Or they give the AI dramatic production bonuses, which in theory would be fine, but they don't scale well with the early game, which means it is physically impossible for the player not to get outproduced at the start.
If you're clever about AI cheating, using it to boost the AI to player level rather than giving it a different ruleset entirely, and giving it mid-game boosts rather than early-game ones, it should work fine.- Agree x 1
-
I am all for having some aggressive factions (although not all factions as that would spoil the immersion for me). Too many 4X games are way too easy because you can just fast expand early and the AI just lets you get away with it. -
Yes, I have heard of these developments and it is quite exciting. I am no expert on AI but it seems that this is akin to what hot air balloons were to early flight. In other words a beginning that is still quite a long way from being adequate for the subject at hand. In either case I have faith that a great game can be made with todays technology as long as the work is put in, Another option that would help the game overall is to program AI factions in an aggressive manner so that the player would be forced to respond to the AI to a greater degree. This would need to be carefully balanced however so that the player still feels like he/she is playing the game rather than the other way around. -
As I alluded to before, this is something where simpler AI techniques could be applied without the need for huge processing power or expertise. Bayesian based approaches are easy to implement and have many advantages over bunches of it-then-elses :-
- All information is combined under a probabilistic framework.
- It won't become unwieldy as the number of features you are basing you decisions on increases.
- New decision features can be added easily.
- Prior information can be added to bias decisions easily.
-
-
Besides that, I really would like to know, how the AI was designed for the older MoO Series and, to a greater extend, other X4 Games.
Pathfinding is not a problem
But, what makes the differenc ebetween lets say MoO and Space Empires?
SEV needs soo long to calculate, MoO is done in no time. -
Calm down boys!
Rxnnxs, Neil knows what he is talking about but doesn't articulate it in a most layman friendly way. Thing is faster processing doesn't help much because small changes in problem size result in steep jump in how much stuff needs to be processed. For example let's say you have checkers playing AI and it takes 1 millisecond to decide a move on normal 8x8 board. If you increase the board size the processing time doesn't increase by 12.5% but by factor of 10. This means that 11x11 board takes whole second to process while 15x15 takes half a day. Using twice as fast processor and making AI multithreaded to use all available cores might reduce 15x15 board to less then an hour but 16x16 will still be unplayable. So it's more practical to use processing power smarter. In your post you assume that plugging neural network is trivial while in fact it's the crux of the problem. As Neil said there are multiple ANN (artificial neural network) implementations around, in my experience for every popular programming language there is at least one free ANN library.- Agree x 1
Page 1 of 3