Help! Lost all my Lua Scripts of Panel

Home Forums General Panels, Components, Macros Help! Lost all my Lua Scripts of Panel

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #118225
    lecleto
    Participant
      • Topics: 10
      • Replies: 34
      • Total: 44

      Hello Ctrls!

      After delete some modulators that I thinked that are not in used by my panel and after close and re-open the panel all off my Lua Scripts just disapeared!!

      Is possible restore something?

      Does anybody can help? Where these scripts are stored?

      Thank a lot!!

      #118234
      dnaldoog
      Participant
        • Topics: 4
        • Replies: 480
        • Total: 484
        • ★★

        Are you on Windows?

        If so, go to C:\Users\%USERNAME%\AppData\Roaming\Ctrlr\Ctrlr.settings:

        Edit the file in a text editor. Find a function in the text:

        eg myChangeReverb=function()

        add some text to it myChangeReverb xx =function()

        Save and close.

        When Ctrlr opens, it will throw an error when it sees the xx and allow you to re-edit the panel.

        This is useful if you can’t reopen the panel, but from what you write, you seem to be able to open the panel; except all the lua has gone. Very strange!

        #118251
        lecleto
        Participant
          • Topics: 10
          • Replies: 34
          • Total: 44

          Hello Dnaldoog! Thank you for answer!
          Yesterday I restored from backup tha last save of work that was 2 day before since not was possible restore the file.
          I worked for today but, to my surprise, one more time all Lua Scripts desapear and I lost one day more of work!
          What is the best practice to backup files? Save the .panel or .bpanelz

          Thank you!

          • This reply was modified 3 years, 11 months ago by lecleto.
          #118253
          dnaldoog
          Participant
            • Topics: 4
            • Replies: 480
            • Total: 484
            • ★★

            What I do is first create a .bpanel file and keep saving to that.

            If I want to make major changes, save as a new file .bpanel

            You can also ‘save versioned’ to make a second copy

            Never close a panel from Ctrlr before saving. All changes will be lost.

            You can close Ctrlr and your changes are remembered even though you didn’t save anything.

            I also have three windows batch files on my desktop with which I can backup all of Ctrlr settings and image folders in \AppData\Roaming\Ctrlr and also can restore or delete.

            It’s very frustrating to lose one’s work and every so often I lose all my recent work!

            In a text editor create the following files with extension

            backup.bat

            
            set ROAMINGPATH=C:\Users\%USERNAME%\AppData\Roaming\
            set DIRECTORYNAME=Ctrlr
            set FOLDERTARGETLOCATION=C:\Users\%USERNAME%\OneDrive\Desktop\
            set DIRECTORYNAME_FULLPATH=%ROAMINGPATH%\%DIRECTORYNAME%
            set DEST_FOLDER=%FOLDERTARGETLOCATION%\%DIRECTORYNAME%
            xcopy /Y /S "%DIRECTORYNAME_FULLPATH%"\*.*   "%DEST_FOLDER%"\
            

            restore.bat

            
            @RD /S /Q "C:\Users\%USERNAME%\AppData\Roaming\Ctrlr"
            echo copying file over now
            ROBOCOPY "C:\Users\%USERNAME%\OneDrive\Desktop\Ctrlr" "C:\Users\%USERNAME%\AppData\Roaming\Ctrlr" /mir
            

            delete.bat

            
            @RD /S /Q "C:\Users\%USERNAME%\AppData\Roaming\Ctrlr"
            echo deleting
            
            • This reply was modified 3 years, 11 months ago by dnaldoog.
          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Panels, Components, Macros’ is closed to new topics and replies.
          There is currently 0 users and 115 guests online
          No users are currently active
          Forum Statistics
          Threads: 2,495, Posts: 17,374, Members: 77,605
          Most users ever online was 12 on January 22, 2019 3:47 pm
          Ctrlr