Trouble With Ruby
-
Not me. I have a friend and SketchUp newbie with whom I've been e-mailing. He's having trouble getting his first downloaded plugin to work. He wants Bezier.rb. He initially downloaded it from Didier's site but when asked for the file type to save, saved it as MHTML. Of course that didn't work and he contacted me. I had in rename it to .rb with no luck. I had him delete the file from the Plugins menu and download it again making sure to save it with the .rb extension. No joy. I sent it to him as a TXT file and had him save that and rename it. No luck. Even after changing the name he says it is showing now as a TXT file.
So any ideas? Does he need to throw his computer away and start over? All I know at this point is he's using a PC.
Thanks in advance.
-
instead of saving the showing ruby code page he should right click on the link from the source page and choose "save target as".
The extension should be visible when saving the file. If needed change the extension to rb.
If the extension is not visible he should change the 'show extensions' in the Windows folders options. -
Yeah, we went through all that. He still can't get it to go. Oh, and he has all the boxes under extensions checked.
-
If you can compress it in a .zip file for him, it may actually be easier. Every web browser knows to save a .zip file to hard disk. And every one knows how to unzip it, right? (I hope.)
-
What I guess he is saving it from the File > save (something) menu. In this case some browsers (like IE for instance) adds a unch of html codes as well since it thinks they're needed. Try to open it in a text editor and see if this is the case.
He should click on the ruby link, see all the codes there, Ctrl+A (select all) Ctrl+C (copy) and paste it into a simple text editor. then save with the exact file name that he can see in the browser (or at the end of the code)
BTW why doesn't he download Fredo's bezier kit? That's a zipped file anyway and rocks
-
Thank Gai, I ended up sending it to him as a TXT file. I told him to open it in WordPad and save it with rb as the extension. It worked but now, when he opens SU he gets the following error message.
"Error Loading File BEZIER.rb
C:/Program Files/Google/Google SketchUp 6/Plugins/BEZIER.rb:1: Invalid char\377' in expression C:/Program Files/Google/Google SketchUp 6/Plugins/BEZIER.rb:1: Invalid char
\376' in expression"I'm not quite sure where to look for the problem. He says he downloaded the file again from Didier's site and gets the same message.
I know he should have Fredo's kit but at this point I think we'll be happy to get this simple script loaded with no errors. Then he can move up.
Cheers,
Dave
-
Try resaving the TXT file in Notepad. Wordpad is not a plain text editor. It has text formating.
-
Thank you. That worked.
Cheers,
Dave
Advertisement