Page 1 of 1

Iceui Crash

Posted: 22 Dec 2010, 21:45
by kalda341
Iceui crashes with a

Code: Select all

Error in Update(): [string "LuaUI/Widgets/gui_iceui.lua"]:748: attempt to index local 'name' (a nil value)
error everytime I go into the options menu. Any ideas of how to fix?

Re: Iceui Crash

Posted: 23 Dec 2010, 00:15
by Niobium
The code in question

Code: Select all

for _,v in ipairs(VFS.DirList(PROFILES_DIRNAME, "*.lua", VFS.RAW_FIRST)) do
    local _,_,name = string.find(v, ".*\\(.*).lua")
    if name ~= 'current' and name:sub(1,1):upper() == name:sub(1,1) then
        ...
My guess would be that it is failing because the path has no backslashes, replace the "\\" with "[\\\/]" and it should work.

Re: Iceui Crash

Posted: 23 Dec 2010, 22:52
by kalda341
Thanks, that fixed it.