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
by default flag exec_lua = 1
after type "@lua("test.lua",0}"
test.lua script will automatic execute for 3 times.
problem is if we use command sc.sc{} and sc.lsetform{} in our lua script
script run well but after that if we exit with :q or :q! command, will will get segmentation fault error
also if in lua script we call sc.lquery{} coomand, we must tap enter three times. (this is becasue lua script automatic execute 3 times on first load when exec_lua=1)
for avoid this problem we must first set exec_lua=0 before type "@lua("test.lua",0)" to any cel.
this will avoid lua script being execute three times on first load.
after that we can set exec_lua=1 for enable lua script.
for make lua script run, we can use @
with this trick sc.lquery{} not longer need to tap 3 times
and sc.sc{} and sc.lsetform{} not longer cause segmentation fault error
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
by default flag exec_lua = 1
after type "@lua("test.lua",0}"
test.lua script will automatic execute for 3 times.
problem is if we use command sc.sc{} and sc.lsetform{} in our lua script
script run well but after that if we exit with :q or :q! command, will will get segmentation fault error
also if in lua script we call sc.lquery{} coomand, we must tap enter three times. (this is becasue lua script automatic execute 3 times on first load when exec_lua=1)
for avoid this problem we must first set exec_lua=0 before type "@lua("test.lua",0)" to any cel.
this will avoid lua script being execute three times on first load.
after that we can set exec_lua=1 for enable lua script.
for make lua script run, we can use @
with this trick sc.lquery{} not longer need to tap 3 times
and sc.sc{} and sc.lsetform{} not longer cause segmentation fault error
Beta Was this translation helpful? Give feedback.
All reactions