Easy / Hard Slider

Other talk that doesn't fit elsewhere.
This is for General Discussion, not General chat.
Post Reply
eZAK
Rookie
Rookie
Posts: 30
Joined: 15 Jan 2011, 21:43
Location: Illinois

Easy / Hard Slider

Post by eZAK » 14 Mar 2011, 19:02

In challenges and skirmishes, What exactly does the Hard / Easy sliders do for your opponents?

In SK-Rush I tied playing default (norm/center) for enemy.
I was over welmed in short order.
Tried moving the sliders right to make it harder for them. NOT! Made it even worse for me!
I then tried half way between norm and easy, That made it a some what level field.

Does this sound backwards to anyone?

Also, In the challenge 'hide behind me' where should I put my allies slider to make them tougher?
"The world is full of Kings and Queens, who blind your eyes and steal your dreams......"

User avatar
effigy
Regular
Regular
Posts: 1217
Joined: 22 Jan 2010, 03:21
Contact:

Re: Easy / Hard Slider

Post by effigy » 14 Mar 2011, 20:15

You've pretty much answered your own question. Move the slider to the right, and the AI/bot/comp get's harder. Move it to the left and they get easier.

If you're playing in Challenge mod you can't set the sliders, or any other game option. If you want to set up a similar match in Skirmish mode, move the slider to the right.
This is why some features aren't implemented: http://forums.wz2100.net/viewtopic.php?f=30&t=7490&view=unread#p87241

User avatar
Iluvalar
Regular
Regular
Posts: 1819
Joined: 02 Oct 2010, 18:44

Re: Easy / Hard Slider

Post by Iluvalar » 14 Mar 2011, 22:00

The slider actually control a cheat for AI on research speed that goes to 1x (normal) to 5x(harder AI). You'll see that harder AI always get lancers before it's actually possible for you. Without that the AI is stupid and not much of a challenge.
Heretic 2.3 improver and proud of it.

3drts
Trained
Trained
Posts: 379
Joined: 01 Aug 2007, 03:50

Re: Easy / Hard Slider

Post by 3drts » 15 Mar 2011, 08:56

It also power cheats like crazy so it can tank spam on low oil maps.

Of course its attacks and defense are so poorly executed that they are just throwing power away most of the time.

If it was a low oil map, and they didn't power cheat, it would be ridiculously easy (ie, set the slider just high enough that they aren't turned off, see how poorly they do)

eZAK
Rookie
Rookie
Posts: 30
Joined: 15 Jan 2011, 21:43
Location: Illinois

Re: Easy / Hard Slider

Post by eZAK » 15 Mar 2011, 13:29

Thanks everyone for your replies!
"The world is full of Kings and Queens, who blind your eyes and steal your dreams......"

T-C
Greenhorn
Posts: 12
Joined: 28 Feb 2011, 03:34

Re: Easy / Hard Slider

Post by T-C » 17 Mar 2011, 06:53

I have also been curious about the slider and the AI cheats. Are these documented anywhere? If not, would anyone be kind enough to post some clarification?

Having read what Iluvalar posted earlier in this thread, I understand that the AI gets a bonus on research speed that ranges from 1x to 5x. Does this bonus change linearly with the slider? (i.e. is the bonus 3x when the slider is at the default middle position?)

I've heard that the AI gets a power generation bonus also. Is that true? If so, what is the bonus? Is it 1x to 5x like the research bonus? And if the AI doesn't get a power generation bonus in general, does it at least get a discount on power costs for its accelerated research?

I spent some time looking at the AI scripting commands, and I noticed that many commands allow the AI to do things human players can't do. However, I looked rather closely at the Semperfi AI, and I didn't see any instances where it used those commands to cheat. (Actually, I did notice that Semperfi will create repair units before it has researched the repair turret, but I think that was an oversight, not an attempt to gain advantage.) Do other AIs play fair, like Semperfi, or is it more common for them to gain an edge by intentionally breaking the rules? What about Nexus in particular?

-TC

User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Easy / Hard Slider

Post by NoQ » 17 Mar 2011, 09:53

I've heard that the AI gets a power generation bonus also. Is that true? If so, what is the bonus? Is it 1x to 5x like the research bonus? And if the AI doesn't get a power generation bonus in general, does it at least get a discount on power costs for its accelerated research?
They just get some fixed bonus power every X seconds; you can use cheats to observe how much power they have in the player list (numpad enter).

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3777
Joined: 03 Aug 2006, 19:39

Re: Easy / Hard Slider

Post by Per » 17 Mar 2011, 09:59

The cheating is linear. For the exact algorithm, see the source code. I do not have it at hand now. (Note that in master, setting the difficulty to "Insane" will also make the AI start with full bases, even if no or partial bases is specified for the game.)

It is true that some of the scripting functions that the AIs use can be used to cheat, but except for the obvious one (skDifficulty, which gives bonus power and research speed depending on difficulty slider), they are not meant to exploit that, and if they do, it is a bug. (BTW, Semperfi does not use the skDifficulty cheat. It is meant to be an entirely non-cheating AI, except on 'Insane' difficulty, where it should get some starting bonuses.) There are some issues that I'm aware of, like the Lassat firing based on a fixed timer instead of respecting the recharge time, but those are just hacks due to programmer laziness that should be fixed.

Note that the AI knowing about the position and existence of all starting buildings and features is not considered cheating, since this is something human players also know. Usually.

User avatar
Iluvalar
Regular
Regular
Posts: 1819
Joined: 02 Oct 2010, 18:44

Re: Easy / Hard Slider

Post by Iluvalar » 17 Mar 2011, 18:27

Per wrote:The cheating is linear.
To be exact, the AI get a reduction from 0% to 80% of their research duration. This is the value that is linear. An AI in mid path will get 40% research duration off. Which is not the same as saying that the speed bonus (1x to 5x) is linear.
Heretic 2.3 improver and proud of it.

Post Reply