If Wesnoth has different AI difficulty to choose...
Moderator: Forum Moderators
- AxalaraFlame
- Posts: 690
- Joined: December 4th, 2011, 1:07 pm
- Location: Pasadina, Caltech
If Wesnoth has different AI difficulty to choose...
Say, we can choose to fight Easy, Normal, Hard, Brutal AI, just as StarCraft and RA3, and the hardest AI can readily defeat most players in general, would that be funnier and more chanllenging?
Though AI fights in a really peculiar and unwitting way, make it a harder opponent doen't necessarily mean we have to design a great artificial intelligence. Instead, we have a very obselete but feasible way--make the AI "cheat" on different difficulties, which is a quite effective in strengthening its power.
Actually we only need to modify the gold and income, here is my suggestion:
EASY AI: -20% additional gold for the enemy; +1 additional income per village for the players
NORMAL AI: as usual
HARD AI: +20% additional gold, +1 additional income per village for the enemy
BRUTAL AI: +20% additional gold, +1 additional income for the enemy; -20% additional gold, -1 additional income per village for the players
Though AI fights in a really peculiar and unwitting way, make it a harder opponent doen't necessarily mean we have to design a great artificial intelligence. Instead, we have a very obselete but feasible way--make the AI "cheat" on different difficulties, which is a quite effective in strengthening its power.
Actually we only need to modify the gold and income, here is my suggestion:
EASY AI: -20% additional gold for the enemy; +1 additional income per village for the players
NORMAL AI: as usual
HARD AI: +20% additional gold, +1 additional income per village for the enemy
BRUTAL AI: +20% additional gold, +1 additional income for the enemy; -20% additional gold, -1 additional income per village for the players
Re: If Wesnoth has different AI difficulty to choose...
You can already set starting gold and income for each player individually.
- AxalaraFlame
- Posts: 690
- Joined: December 4th, 2011, 1:07 pm
- Location: Pasadina, Caltech
Re: If Wesnoth has different AI difficulty to choose...
But set them one after one each time would be inconvenient, let alone different income per villa is not adjustable only if we write a map.cfg file to restrict it. If we can build a default setting of "easy, normal, hard, brutal" level to harmonize the AI difficulty, it will be very handylipk wrote:You can already set starting gold and income for each player individually.
- alexanderthegre
- Posts: 193
- Joined: December 8th, 2011, 3:23 am
- Location: nowhere
Re: If Wesnoth has different AI difficulty to choose...
You might want to check out mattsc's grunt rush AI (it's in AI modification demos on the add-ons server), it's much better than the normal AI.
Re: If Wesnoth has different AI difficulty to choose...
I'm not sure that it would be that much of an improvement. Most of what you want can already be done, and I doubt that many people play against the AI on multiplayer maps anyways. Certainly, it wouldn't be harmful to have the option, I don't think, however, that anybody would find it important enough to actually implement it.But set them one after one each time would be inconvenient, let alone different income per villa is not adjustable only if we write a map.cfg file to restrict it. If we can build a default setting of "easy, normal, hard, brutal" level to harmonize the AI difficulty, it will be very handy
- AxalaraFlame
- Posts: 690
- Joined: December 4th, 2011, 1:07 pm
- Location: Pasadina, Caltech
Re: If Wesnoth has different AI difficulty to choose...
I will check it. Is it a better designed AI which has greater intelligence? I am only suggesting a very old and cheap way to brutalize AIalexanderthegre wrote:You might want to check out mattsc's grunt rush AI (it's in AI modification demos on the add-ons server), it's much better than the normal AI.
Re: If Wesnoth has different AI difficulty to choose...
'Intelligence' is not the word I'd use... Also, if you check it out, be aware that it is still very much work in progress with lots of flaws at this time.AxalaraFlame wrote:I will check it. Is it a better designed AI which has greater intelligence? I am only suggesting a very old and cheap way to brutalize AI
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
- AxalaraFlame
- Posts: 690
- Joined: December 4th, 2011, 1:07 pm
- Location: Pasadina, Caltech
Re: If Wesnoth has different AI difficulty to choose...
@mattsc
Facinating!
In tried your AI Demo campaign, which describes(and obviously, largely improved) many kinds of AI behaviors.
YOU ARE AWESOME!
Especially when I was trying the AI Defence scenerio. The default wesnoth AI is too foolish to hold any strongholds, so I have never worried about defeating them. But this AI is awesome!!! It holds the valley bravely and correctly, and the AI rotate its troops back to the healers, standing on the proper position, which is so smart that I've never seen before.
I lost 17 orcs to kill them all, but they have successfully held the valley for 47 turns.
I hope you can apply these advanced AI behaviors into default wesnoth AI soon It is really promising
Facinating!
In tried your AI Demo campaign, which describes(and obviously, largely improved) many kinds of AI behaviors.
YOU ARE AWESOME!
Especially when I was trying the AI Defence scenerio. The default wesnoth AI is too foolish to hold any strongholds, so I have never worried about defeating them. But this AI is awesome!!! It holds the valley bravely and correctly, and the AI rotate its troops back to the healers, standing on the proper position, which is so smart that I've never seen before.
I lost 17 orcs to kill them all, but they have successfully held the valley for 47 turns.
I hope you can apply these advanced AI behaviors into default wesnoth AI soon It is really promising
Re: If Wesnoth has different AI difficulty to choose...
Thanks, AF. Let me also point out what I have said in other places though: All of those AI's are specialized one way or another, and would lose badly against the default AI in an average setting (averaged over all maps, factions, etc.). Or they would simply not work at all. For example, the Pass Defense AI even has hard-coded hex locations in it how to place units on that specific map - and while those would be relatively easy to generalize, it would still only work in the particular situation of a narrow bottle-neck with no other way around.
I'm continuing to work on (somewhat) more general behaviors, but it's become slow going by now. Thanks for testing and the comments.
I'm continuing to work on (somewhat) more general behaviors, but it's become slow going by now. Thanks for testing and the comments.
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
- AxalaraFlame
- Posts: 690
- Joined: December 4th, 2011, 1:07 pm
- Location: Pasadina, Caltech
Re: If Wesnoth has different AI difficulty to choose...
I understand. "General" things are the most complicated ones.
So you don't call them as "Intelligence" is because that their behavihors are only settled in certain hexes, right? Hmmm...I would still say they have potential. Even if campaign makers need to apply different behavihors one after one into campaigns, making the AI stonger and tougher day after day, which is a heck long march to go, as a player who loves challenge, I would still be glad to fight against smarter computers.
And thanks for noticing me before... The last year may be the worst period of time in my life.
So you don't call them as "Intelligence" is because that their behavihors are only settled in certain hexes, right? Hmmm...I would still say they have potential. Even if campaign makers need to apply different behavihors one after one into campaigns, making the AI stonger and tougher day after day, which is a heck long march to go, as a player who loves challenge, I would still be glad to fight against smarter computers.
And thanks for noticing me before... The last year may be the worst period of time in my life.
Re: If Wesnoth has different AI difficulty to choose...
See the latter part of this post for where I want to go with this. I think that's along those lines. It'll just take some time...AxalaraFlame wrote:Hmmm...I would still say they have potential. Even if campaign makers need to apply different behavihors one after one into campaigns, making the AI stonger and tougher day after day
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
Re: If Wesnoth has different AI difficulty to choose...
You could try to combine them into one state machine, I mean if the situation is like this then use the routines of this AI and if the situation is like that use that AI. Like the AI would be changing their whole tactic depending on the situation.mattsc wrote:Thanks, AF. Let me also point out what I have said in other places though: All of those AI's are specialized one way or another, and would lose badly against the default AI in an average setting (averaged over all maps, factions, etc.). Or they would simply not work at all. For example, the Pass Defense AI even has hard-coded hex locations in it how to place units on that specific map - and while those would be relatively easy to generalize, it would still only work in the particular situation of a narrow bottle-neck with no other way around.
I'm continuing to work on (somewhat) more general behaviors, but it's become slow going by now. Thanks for testing and the comments.
Re: If Wesnoth has different AI difficulty to choose...
Yes, that would be a long-term goal of this, but that really is a long way off at this time. Also, sometimes it's hard for the AI to make that kind of decision, so I also want to give the scenario designer the option of choosing one or the other, together with "map-specific" hints. So, in the end (if I ever get there) it will probably be a mix of the two.Spell wrote:mattsc wrote:You could try to combine them into one state machine, I mean if the situation is like this then use the routines of this AI and if the situation is like that use that AI. Like the AI would be changing their whole tactic depending on the situation.
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
- AxalaraFlame
- Posts: 690
- Joined: December 4th, 2011, 1:07 pm
- Location: Pasadina, Caltech
Re: If Wesnoth has different AI difficulty to choose...
Will that take years to accomplish? AFAIK there are veryvery few essential technical revolutions took place in wesnoth these years.
I suppose artificial intelligence is one most cardinal thing in a MP game, so the developers should pay more attention. Do you cooperate with a developers team?
I suppose artificial intelligence is one most cardinal thing in a MP game, so the developers should pay more attention. Do you cooperate with a developers team?
Re: If Wesnoth has different AI difficulty to choose...
It's hard to say. I hope that it won't be years, but it could easily be one year or more.AxalaraFlame wrote:Will that take years to accomplish?
The developers are very busy with lots of other things, we shouldn't tell them what they should do. But besides that, yes, I am in contact with them and am getting a lot of help - to the point where they change the source code when needed (there's even an entire Google Summer of Code project on that). And just as importantly, lots of other people have gotten interested in this recently too and are helping in lots of different ways. So this really isn't a one-person effort any more.AxalaraFlame wrote:I suppose artificial intelligence is one most cardinal thing in a MP game, so the developers should pay more attention. Do you cooperate with a developers team?
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on