Posted: Wed Feb 13, 2013 8:04 am Post subject:
Difficulty setting
I know how the difficulty setting works in skirmish, the human player is always forced to play on Normal, and the AI plays with:
Level 0 AI plays on Difficult
Level 1 AI plays on Normal
Level 2 AI plays on Easy
But how does the difficulty selection affect the singleplayer campaigns? Does it only affect the human faction, and/or the enemy faction? What about factions like neutral, special, or any other factions you might have?
Another question, can you override the difficulty settings from rules.ini for maps specifically? E.g. for skirmish I want to have all the special bonuses removed from the AI, I don't want AI units to deal more damage and have more armor than the human units. But for singleplayer campaign I would like to adjust the values. For instance if the player chose easy, he would only pay 50% of any unit costs, and his units would have more armor. But I'm not sure who exactly would be getting these bonuses.
Also noticed Triggers and AI Triggers in maps have the 3 difficulty settings listed. Do these actually work? And how do they work in the singleplayer? If the player chose Easy, would the AI be using only AI Triggers enabled for Easy? Westwood sure made the system confusing. _________________ QUICK_EDIT
I think it never affects the human player. It would be quite stupid to change this one and the AI too.
Yes, you can add the Difficulty sections to a map and then edit them to have local on this map a different setting.
I did that on my test map, to make the AI ignore walls on all 3 difficulty levels (so the walled in AI MCV can't deploy at the start, giving me all the time to test stuff). _________________ SHP Artist of Twisted Insurrection: Nod buildings
Also noticed Triggers and AI Triggers in maps have the 3 difficulty settings listed. Do these actually work? And how do they work in the singleplayer? If the player chose Easy, would the AI be using only AI Triggers enabled for Easy? Westwood sure made the system confusing.
Unfortunatelly, they don't. As far as I'm aware, if you picked Easy and Medium, but left Hard unticked, the trigger would only fire if you played the campaign on Easy or Medium difficulty. _________________ QUICK_EDIT
Zero18 told me about the cost of units being 25% in the singleplayer mission. I've the set [Easy] cost to 25%, so the Hard AI would get advantage in the skirmish. If he was getting the cost bonus in a singleplayer mission, it means the Easy setting was applied to the player faction (he must have selected easy as the difficulty).
How have you guys handled the difficulty settings in your mods? I guess you could make difficulty specific triggers and stuff, but I would like the player to experience the mission the same way, regardless of the difficulty setting. It would be much easier to give the player cost, armor and damage benefits on the easier difficulties, and remove all the bonuses on the hardest level. But again I have no idea which factions get affected by this. Like if they affected the neutral faction or some of the other extra factions, that could change the way the mission plays out. _________________ QUICK_EDIT
I think it never affects the human player. It would be quite stupid to change this one and the AI too.
It doesn't affect the human player in Multiplayer (including Skirmish), but in campaigns it does. AFAIK, pick Easy, and you'll be using [Easy] while the AIs in the campaign map will be using [Difficult]. Pick Normal, and everyone will be using [Normal]. Pick Hard, and you'll be using [Difficult] while the AI will be using [Easy].
I know for certain that the difficulty setting of human players is changed that way, but I haven't tested if the AI's difficulty setting gets also changed. However, I'd imagine it getting changed too, since it gets changed in Multiplayer.
Quote:
Also noticed Triggers and AI Triggers in maps have the 3 difficulty settings listed. Do these actually work? And how do they work in the singleplayer? If the player chose Easy, would the AI be using only AI Triggers enabled for Easy?
IIRC the difficulty check-boxes for Triggers don't do anything at all. For AI triggers, they do work. I know how they work in the AI trigger INI code, but I'm not sure how FinalSun is using and showing those values in the GUI, so I can't give instructions on it (can't test it either on this school computer). FinalSun's Easy could be Easy for either the player, or for the AI (meaning Hard for the player).
Quote:
How have you guys handled the difficulty settings in your mods?
For singleplayer missions the only real option is editing the Difficulty setting sections for the map, since the difficulty check boxes for Triggers don't work.
You can also write difficulty-specific AI triggers if the AI has an active base in the mission, but I haven't bothered with that (I've always enabled the already partially difficulty-specific triggers from AI.ini instead) and simply edited the difficulty sections' code and things like TeamDelays to get good difficulty scaling. _________________ CnCNet Client | CnCNet TS patches | Vinifera | World-Altering Editor (WAE)
I see. A bit strange to affect human and AI as it actually doubles the effect.
I guess that's where the FineDiffControl can help when set to "yes" and work something like the following way
0 (Easy) : Human=[Easy], AI=[Difficult]
0/1 (HalfEasy) : Human=[Normal], AI=[Difficult], due to FineDiffControl intermediate step only one gets affected
1 (Normal) : Human=[Normal], AI=[Normal]
1/2 (HalfDifficult) : Human=[Normal], AI=[Easy], due to FineDiffControl intermediate step only one gets affected
2 (Difficult) : Human=[Difficult], AI=[Easy] _________________ SHP Artist of Twisted Insurrection: Nod buildings
It doesn't affect the human player in Multiplayer (including Skirmish), but in campaigns it does. AFAIK, pick Easy, and you'll be using [Easy] while the AIs in the campaign map will be using [Difficult]. Pick Normal, and everyone will be using [Normal]. Pick Hard, and you'll be using [Difficult] while the AI will be using [Easy].
I know for certain that the difficulty setting of human players is changed that way, but I haven't tested if the AI's difficulty setting gets also changed. However, I'd imagine it getting changed too, since it gets changed in Multiplayer.
A quick test shows this to be true. Choose easy and you'll be using easy settings, while every single other faction will be using difficult. Even neutral, special, and factions that are allied to you. If a unit changes sides to your faction, it will change to using easy settings.
Was hoping that only the human controlled faction was affected, but since everyone are affected it could lead to some strange things happening. Like battles taking place between other factions playing out differently due to the altered stats. It would be a nightmare to test the missions on every single difficulty setting. Not to mention altering the easy settings would give the AI units that bonus if YOU chose hard difficulty.
Quote:
You can also write difficulty-specific AI triggers if the AI has an active base in the mission, but I haven't bothered with that (I've always enabled the already partially difficulty-specific triggers from AI.ini instead) and simply edited the difficulty sections' code and things like TeamDelays to get good difficulty scaling.
Never though of editing the TeamDelays etc keys specifically for maps, but I guess that could work. And you could have slightly altered taskforces for the AI for all the difficulty levels (take out a few titans from an attack force for easy, or give it a few extra titans for hard, etc). But this of course requires that the AI actually has a base and is building units. _________________ QUICK_EDIT
IIRC the difficulty check-boxes for Triggers don't do anything at all.
And another quick test shows this to be true. Damn I hate you Westwood. Guess if you really got annoyed you could simply remove the difficulty selection slider altogether from all the menus. But since I am going for difficult missions that challenge even veterans, I think there needs to be an easier mode for beginners. _________________ QUICK_EDIT
One more thing you could edit for the singleplayer missions are some of the difficulty settings:
Cost= ; Give discount to players on easier difficulties. It wouldn't directly affect gameplay even if on hard mode AI got this bonus.
RepairDelay= ; Could be used to affect AI repairing
BuildDelay= ; Could be used to affact AI base building
BuildSlowdown= ; Same as above
ContentScan= ; Small adjustment on AI IQ
But again for these settings to matter the AI and / or you are required to have a base. Missions without bases would remain same for all difficulties. _________________ QUICK_EDIT
Zero18 discovered a weird bug with the difficulty settings. If you've set Cost=.25 for the difficulty setting you're playing at, it can mess up some things. If you build a refinery (cost=2000) that has a harvester (cost=1400) as a FreeUnit, the harvester does not appear at all. The cost of the structure appears correct (500), but constructing it takes the normal time. And once placed down, you don't get the harvester. Must be some Westwood bug of not reducing the FreeUnit harvester cost properly or something. But yeah, this might make it impossible to even use cost as a way to adjust difficulty levels. Yay.
Strangest thing is the hard AI in my mod has Cost=.25, but it does get harvesters with refineries. Either this bug only affects human players or the AI isn't even getting the cost reduction. The issue isn't limited to singleplayer missions, I already tested and it happens in skirmish too. _________________ QUICK_EDIT
To solve the issue with the Harvester you can simply make a clone of the Harvester and specify that clone as the FreeUnit; that'll fix it regardless of which unit is specified after HarvesterUnit= or what ID it uses.
I have no idea why that fixes it however, considering that simply changing the ID of the normal Harvester doesn't work and changing the HarvesterUnit doesn't affect it either, although raising the cost of the normal Harvester to 2000 does help (but you surely agree that simply making a clone of the Harvester and not raising the cost is more beneficial). _________________ QUICK_EDIT
To solve the issue with the Harvester you can simply make a clone of the Harvester and specify that clone as the FreeUnit; that'll fix it regardless of which unit is specified after HarvesterUnit= or what ID it uses.
I have no idea why that fixes it however, considering that simply changing the ID of the normal Harvester doesn't work and changing the HarvesterUnit doesn't affect it either, although raising the cost of the normal Harvester to 2000 does help (but you surely agree that simply making a clone of the Harvester and not raising the cost is more beneficial).
All my faction-specific harvesters are separate units, and none of them are used for HarvesterUnit=. But I guess you could fix it like that, make extra unbuildable clones of each harvester and set their costs to equal the refinery. This way refinery still costs 2000 and the harvesters should (?) appear. Annoying having to create 3 extra units due to sloppy WW coding though. Same problem might happen for other FreeUnit vehicles. _________________ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum