• Autorefresh on Linux
    3 replies, posted
Hi everybody, I'm running Fedora 19 and it seems that Lua Autorefresh doesn't work with STEAMCMD... Anybody have an idea ? Does the bootil lib have a problem or it's my fault ? Thanks a lot. NightlyDev.
Garry never implemented it for Mac and Linux.
Well... Thanks for the answer ... Any alternatives ?
Here's a hacky script that I use so I have auto refresh on linux. It's probably very disk heavy though when used with enough files, since it's not event based and just queries the disk all the time. Adapt it for your own needs. [lua] local files = {} function autoReload(fileName) files[fileName] = 0 end function checkAutoReload() for k, v in pairs(files) do local t = file.Time(k, "LUA") if t then if files[k] != t then files[k] = t include(k) end else print("invalid file: ", k) files[k] = nil end end end timer.Create("checkAutoReload", 0.1, 0, checkAutoReload) autoReload("simploo/simploo.lua") [/lua]
Sorry, you need to Log In to post a reply to this thread.