Page 1 of 1

[Rseding91] game.difficulty_settings.recipe_difficulty always returns 1

Posted: Tue May 23, 2017 8:02 pm
by Mylon
game.difficulty_settings.recipe_difficulty is always "1".
game.difficulty_settings.technology_difficulty is always "1".

Expected: Sometimes returns 2.

To recreate, start a new game under normal settings and do

/c game.print(serpent.line(game.difficulty_settings.recipe_difficulty))
console prints "1" (expected)
/c game.print(serpent.line(game.difficulty_settings.technology_difficulty ))
console prints "1" (expected)

Now quite game to menu and restart a new game under marathon and repeat this command:

/c game.print(serpent.line(game.difficulty_settings.recipe_difficulty))
console prints "1" (expected "2")
/c game.print(serpent.line(game.difficulty_settings.technology_difficulty ))
console prints "1" (expected "2")

Re: [Rseding91] game.difficulty_settings.recipe_difficulty always returns 1

Posted: Tue May 23, 2017 8:35 pm
by Rseding91
The two values are 0 and 1. Which I get as expected.

0 being "normal" and 1 being "expensive".

http://i.imgur.com/KJWptpW.jpg

Re: [Rseding91] game.difficulty_settings.recipe_difficulty always returns 1

Posted: Tue May 23, 2017 10:21 pm
by Mylon
I thought that might be the case, but I never got it to return 0.

Edit:

So I started a normal game and ran the command:

/c game.print(serpent.line(game.difficulty_settings.technology_difficulty ))

Console prints: 0

I started a marathon game and ran the same command and got: 1

I exited out and started a normal game (again) and ran the command and got: 1

So I wasn't imagining things.

Edit: Seems the bug is in selection

Re: [Rseding91] game.difficulty_settings.recipe_difficulty always returns 1

Posted: Tue May 23, 2017 10:27 pm
by Rseding91
Mylon wrote:... I exited out and started a normal game (again) and ran the command and got: 1

So I wasn't imagining things.
No you didn't, the map gen settings persist between new-games unless you explicitly change them or select another preset. So it was still on the last settings.