Angrier World Quests

Angrier World Quests

181k Downloads

11.0.2-20240910-2 Options not saving

Shauren opened this issue ยท 5 comments

commented

First four options cannot be unchecked - they reset themselves after closing options panel

obraz

commented

Interresting, I take a look at it ๐Ÿ™‚
Does none of the other settings save for you?

commented

I have released 11.0.2-20240911-1 with the fix for this ๐Ÿ™‚

commented

I found the issue and have a fix ready - will release it later today.

The issue is that "false" and "nil" are the same in Lua ... so now we have to store settings as strings instead.

commented

Sorry but nil and false are not the same ๐Ÿ˜‰. The problem is that false and nil are not trueish so

local f = false
local n = nil

-- these two are both false
if n then end
if f then end

-- n is false but f is true
if n == false then end
if f == false then end

-- n is true but f is false
if n == nil then end
if f == nil then end

You need to check directly for false or nil in such situation.

commented

I see, good to know ๐Ÿ™‚
I'm not going to change it back though, since it works with saving them as strings.