Replacing standard tools - code fix
Posted: Sat Mar 07, 2009 1:11 pm
I am impressed with Fazek's tools and am replacing most of the standard tools with them. However, I am getting some lua console errors.
I have replaced lm_select_points.
Click the oval or rectangle tool and (other) tools - no problem.
Use the shortcut key - L, E, ... and I get an error.
"...scripts\tool\lm_oval.lua:207: attempt to index global 'LM_SelectPoints' (a nil value)"
I suspect I just need to change a code value somewhere but... where?
I poked about - as I was making sure that my report here was accurate :))
and found,
Line 207 of lm_oval.lua has:
I have fixed the problem but, having done the typing, I thought it might be worth putting this up for anyone else who makes this switch.
I rest my (upper)case - arfa
I have replaced lm_select_points.
Click the oval or rectangle tool and (other) tools - no problem.
Use the shortcut key - L, E, ... and I get an error.
"...scripts\tool\lm_oval.lua:207: attempt to index global 'LM_SelectPoints' (a nil value)"
I suspect I just need to change a code value somewhere but... where?
I poked about - as I was making sure that my report here was accurate :))
and found,
Line 207 of lm_oval.lua has:
so I changed 'LM' to 'FA' (after having first tried 'fa')function LM_Oval:OnKeyDown(moho, keyEvent)
LM_SelectPoints:OnKeyDown(moho, keyEvent)
I have fixed the problem but, having done the typing, I thought it might be worth putting this up for anyone else who makes this switch.
I rest my (upper)case - arfa