sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🚨 Skimp | 25% Off until March 30 Buy Now

    SU8 and scrambled plugins

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    7 Posts 3 Posters 535 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

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better πŸ’—

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement