sketchucation logo sketchucation
    • Login
    βŒ› Sale Ending | 30% Off Profile Builder 4 ends 30th September

    SU8 and scrambled plugins

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    7 Posts 3 Posters 453 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sdmitchS Offline
      sdmitch
      last edited by

      Is there a problem with SU8 and scrambled plugins? I have downloaded the ruby script scrambler and have attempted to scramble and load several plugins I have created but none of them would load. Typically the errors or simuliar to these

      load 'c:/users/public/sketchup/plugins/face2face.rbs'
      Error: #<SyntaxError: (eval):0:in load': c:/users/public/sketchup/plugins/face2face.rbs:1: no .<digit> floating literal anymore; put 0 before dot RBS1.0... ^ c:/users/public/sketchup/plugins/face2face.rbs:1: syntax error, unexpected tINTEGER RBS1.0... ^ c:/users/public/sketchup/plugins/face2face.rbs:1: Invalid char \020' in expression>
      (eval)
      (eval):0

      Nothing is worthless, it can always be used as a bad example.

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Without seeing your actual code...

        Do you have un-parenthesized arguments like-
        do_this 1, 2, 3
        Or if they are parenthesized, perhaps a gap like this-
        do_this (1, 2, 3)
        The currently correct method is-
        do_this(1, 2, 3)

        Also it says you have something like a decimal-number formatted as '.1' when '0.1' is required ?
        πŸ˜•

        TIG

        1 Reply Last reply Reply Quote 0
        • sdmitchS Offline
          sdmitch
          last edited by

          Tig, As far as I have been able to determine, the .0 results from the RBS1.0 at the beginning of the file. When I edit the file and add a space between the RBS and 1.0, that error goes away. I have even attempted to scramble a script with nothing more than a puts statement and I get the same errors.

          Nothing is worthless, it can always be used as a bad example.

          http://sdmitch.blogspot.com/

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Are you using the latest version of the SDK scrambler ?

            TIG

            1 Reply Last reply Reply Quote 0
            • sdmitchS Offline
              sdmitch
              last edited by

              I think so. I downloaded it from http://code.google.com/apis/sketchup/docs/tutorial_distributing.html again just yesterday.

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • sdmitchS Offline
                sdmitch
                last edited by

                Thanks Jim. I have always just used the load command in the Ruby Console or AS_loader both of which caused load errors. Sketchup.load was the answer.

                Nothing is worthless, it can always be used as a bad example.

                http://sdmitch.blogspot.com/

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  You need to use Sketchup.load to load .rbs files.

                  http://code.google.com/apis/sketchup/docs/ourdoc/sketchup.html#load

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement