SU8 and scrambled plugins
-
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:inload': 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 -
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, 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.
-
Are you using the latest version of the SDK scrambler ?
-
I think so. I downloaded it from http://code.google.com/apis/sketchup/docs/tutorial_distributing.html again just yesterday.
-
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.
-
You need to use
Sketchup.loadto load .rbs files.http://code.google.com/apis/sketchup/docs/ourdoc/sketchup.html#load
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 LoginAdvertisement