You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pellinor0 opened this issue
Jan 27, 2016
· 1 comment
Labels
bugWeird outcome is probably not what the mod programmer expected.duplicateWill close because another PR or issue is the same. (please link to it when using this label)
This is a known issue with all locks. Due to how locks are compiled differently from variables, there is a small amount of run time information needed to properly handle the default values. Please see the following two issues for more information: #691 and #1253.
Currently, the only work around is to not use locks from within a compiled script. If you are building libraries, I would recommend that you split the lock-dependent code into a separate file from anything that might not need a lock.
It's on our road map to fix, but it's more complicated than my description makes it sound and we have not yet found a good way to implement the fix.
I'm going to close this as a duplicate, but please keep watching the other two issues referenced above to see when we have a solution enacted.
hvacengi
added
bug
Weird outcome is probably not what the mod programmer expected.
duplicate
Will close because another PR or issue is the same. (please link to it when using this label)
labels
Jan 28, 2016
bugWeird outcome is probably not what the mod programmer expected.duplicateWill close because another PR or issue is the same. (please link to it when using this label)
A minimal example with two files, using KOS v0.18.2:
tmp.ks:
libtmp.ks:
function test { lock Steering to Up. }
Now I type in the terminal
It looks like mentioning 'Steering' in the function definition causes bad things, but only if the function is pre-compiled.
The text was updated successfully, but these errors were encountered: