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.load
to load .rbs files.http://code.google.com/apis/sketchup/docs/ourdoc/sketchup.html#load
Advertisement