In the Skyrim config files, how are duplicate keys treated? For example if the file contains:
bFloatPointRenderTarget=1
bTreesReceiveShadows=1
## Notice two occurrences of the next value
bShadowsOnGrass=0
bShadowsOnGrass=1
What is the value of bShadowsOnGrass
? I think there are three options:
- The first value is set, then all others ignored.
- The last value is kept, overwriting all earlier values.
- No value (or some default) gets set because of the conflict.
Which is right?
Best Answer
It ignores the second value.
Tested by using the following cases:
Case 1
Case 2
In Case 1, game went straight to main menu. In Case 2 it showed the Bethesda logo before going to menu.
While I couldn't say for sure if this is the case for every setting (.ini file behaviour with duplicate names isn't unambigously defined), I would guess that this is the case and that the second value always gets discarded.