exportMeWithRessources : issue

Home Forums General Using Ctrlr exportMeWithRessources : issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #116762
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      Hi ,
      i have an issue : only one panel, and not others, is not able to export instances with resssources
      in windows10 , Ctrlr 5.3.201 to 6.0.26
      It exports but when i open the instance i get error messages
      I can export any panel with this file excepts this one
      A 2,3 mb valid xml file
      With XmlNotepad i try to see what is fucked but i see anything

      Anyone had this kind of issue ?

      Attachments:
      You must be logged in to view attached files.
      #116781
      goodweather
      Participant
        • Topics: 45
        • Replies: 550
        • Total: 595
        • ★★★

        I would first change the directory name of your images from µQ to MQ.
        Could be that.
        Maybe reload the images in the panel then export
        Check the images and their names in the temp directory of your panel (on PC under Appdata/Roaming/Ctrlr/your_panel_ID
        Good luck!

        #116790
        zeoka
        Participant
          • Topics: 73
          • Replies: 466
          • Total: 539
          • ★★★

          Thank you for the suggestion
          i tried changing panel name , the xml is called MQSounds
          this panel does not use image or sliders with images
          my others panels can export images

          i use the file in callback “Called when the panel is created”

          local RF = resources:getResource("MQSounds")
          
               if RF ~= nil
             then local BD = RF:asXml()
                        MyRom = XmlElement(BD)
                        MyRom:insertChildElement(XmlElement(String("USER")),7)
              end

          and get it in “Called when data is restored”

          for s = 1,420 
                do 
                     if s <= 100 
                   then u = "M"..s
                             
                  elseif s >= 101
                    and s <= 400
                   then u = "S"..s - 100
                     
                       
                 elseif s >= 401
                   then u = "D"..s - 400
                       
                    end
                  if stateData:getChild(2):hasProperty(u) == true 
                then MyRom:getChildElement(7):setAttribute(u,stateData:getChild(2):getProperty(u))
                 end
            end

          all seems ok
          i think i need to go in CTRLR source and see , all seems ok in my panel in ressource directory into XmlNotepad

          Edit: I checked roamming folder already
          I ve seen a callbak called “luaPanelResourcesLoaded” i currently don t know what i could type inside that could help
          I have removed the µ in panel name and directories ,reloaded resourcebut the error is still there

          • This reply was modified 4 years, 3 months ago by zeoka.
        Viewing 3 posts - 1 through 3 (of 3 total)
        • The forum ‘Using Ctrlr’ is closed to new topics and replies.
        There is currently 0 users and 87 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