-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Startup fails on pure first-time install #332
Comments
I think it might be a compatibility issue, leading to values being incorrectly returned by the LLK_IniRead() function:
Could you confirm this by adding these lines somewhere between lines 10 to 20?: |
the lines both outputted having lines
outputted !0! so I assume the default value setting of LLK_IniRead does not work as expected p.s. also no xyz.ini was created in the ini folder next to other created ini files like config.ini if it is supposed to be created at this point following ini files are created before encountering the original omnikey2 issue with hotkey.ini: |
Looking at
maybe EDIT: Doing that causes errors elsewhere in some betrayal module so probably not a straightforward fix |
these were just placeholder strings to intentionally fail the ini-load Yes, the default parameter would need to be modified, now that I know there are instances where the native AHK-command can behave irregularly, albeit under very exact circumstances only. |
v1.51.2 contains a fix for this rare issue: Whenever ini-reads return a single space, the script will assume it was a failed read and return blank instead. A single space will never be a valid configuration in this tool, so this workaround is the most straight-forward solution. I vaguely remember there being a reason for specifically distinguishing 0 and "", but I can't remember now. |
Reproduction instructions:
"* " is not a valid key name
on line https://github.com/Lailloken/Lailloken-UI/blob/main/modules/hotkeys.ahk#L32I worked around the issue by changing line https://github.com/Lailloken/Lailloken-UI/blob/main/modules/hotkeys.ahk#L15
from:
settings.hotkeys.omnikey2 := LLK_IniRead("ini\hotkeys.ini", "Hotkeys", "omni-hotkey2")
to:
settings.hotkeys.omnikey2 := 0
with this change
settings.hotkeys.rebound_c
is correctly set to falsy value and logic at https://github.com/Lailloken/Lailloken-UI/blob/main/modules/hotkeys.ahk#L25 enters the correct conditional branch that does not try to setomni-hotkey2
.Environment if it matters:
Linux Steam Proton Experimental with AHK installed in the PoE wine context, other (simpler) AHK scripts work just fine
Latest AHK 1.x
Default Settings in Path of Exile (C key is Character menu)
The text was updated successfully, but these errors were encountered: