Skip to content

Instantly share code, notes, and snippets.

@JMV38
Last active December 19, 2015 20:48
Show Gist options
  • Select an option

  • Save JMV38/6015514 to your computer and use it in GitHub Desktop.

Select an option

Save JMV38/6015514 to your computer and use it in GitHub Desktop.
Back screen bug solution
-- fix the black screen problem by dave1707
function setup()
    project = "forum bone simeon" --YOUR PROJECT NAME HERE
    projectTabs = listProjectTabs(project)
    for t = 1, #projectTabs do
        fix(project..":"..projectTabs[t])
    end
    print("finished")
end
function fix(name)
    count=0
    str=""
    a=readProjectTab(name)
    for z=1,string.len(a) do
        s=string.sub(a,z,z)
        if string.byte(s)>142 then
            str=str.." "
            count = count + 1
        else
            str=str..s
        end
    end
    saveProjectTab(name,str)
    print(name,"fixed",count)
end 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment