Can't build anything with boxes and joints!!
-
@henkh said:
Hi, ruby reports the following:
LoadSketchyPhysics2()
Error: #<NoMethodError: (eval):149: undefined method `LoadSketchyPhysics2' for main:Object>
(eval):149Ooops. its:
LoadSketchyPhysics()
I wonder if SP could be conflicting with another plugin. What other plugins do you have installed?
-
Hi, the Ruby console reports now:
LoadSketchyPhysics()
C:/Program Files/Google/Google SketchUp 6/Plugins/SketchyPhysics/controlPanel.rb:69: warning: already initialized constant JointControllerStruct
C:/Program Files/Google/Google SketchUp 6/Plugins/SketchyPhysics/inspector.rb:96: warning: already initialized constant CurrentVersion
C:/Program Files/Google/Google SketchUp 6/Plugins/SketchyPhysics/inspector.rb:97: warning: already initialized constant VersionText
createSelectionObserver
PhysicsObjectInspector initialized
trueAbout other plugins: in Sketchup only the SketchyPhysics 2 plugin. I use no plugins at other tools, only what is normally installed together with the tools.
-
Well it looks like it is loading ok. But it doesnt make any sense. The error is
Error: #<NameError: uninitialized constant Win32_VK_LCONTROL>That means the value Win32_VK_LCONTROL isnt defined. But it is defined at the top of SketchyPhysics\ClearConsole.rb. If that file is loading then I don't see how that can be an error.
Try manualy loading that file and see if there are any errors
load 'SketchyPhysics/clearconsole.rb'
-
Hi, I think the problem is solved. I did what you proposed and the ruby result was:
load 'SketchyPhysics/clearconsole.rb'
trueAgain I compared the virtual WinXP and the Vista setup, but found that they were equal. Then I decided to reinstall SketchUp on another location and here is the new ruby result:
load 'SketchyPhysics/clearconsole.rb'
C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:4: warning: already initialized constant Win32_VK_LSHIFT
C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:5: warning: already initialized constant Win32_VK_LCONTROL
trueAnd indeed the Box and the Joints worked. Probably there is something wrong with the protection of my Vista setup and I will try to find out later.
CPhillips, thanks for all your effort to resolve the problem and thanks also for your fine package.
-
@henkh said:
Hi, I think the problem is solved. I did what you proposed and the ruby result was:
load 'SketchyPhysics/clearconsole.rb'
trueAgain I compared the virtual WinXP and the Vista setup, but found that they were equal. Then I decided to reinstall SketchUp on another location and here is the new ruby result:
load 'SketchyPhysics/clearconsole.rb'
C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:4: warning: already initialized constant Win32_VK_LSHIFT
C:/Google/Google SketchUp 6/Plugins/SketchyPhysics/clearconsole.rb:5: warning: already initialized constant Win32_VK_LCONTROL
trueAnd indeed the Box and the Joints worked. Probably there is something wrong with the protection of my Vista setup and I will try to find out later.
CPhillips, thanks for all your effort to resolve the problem and thanks also for your fine package.
It looks like ClearConsole is not being loaded at startup. The first time you did the load it worked succesfully. The second load just reports that the constants were being redefined in the second load.
It sounds like you might have a bad SketchyPhysics.rb. That is the file that loads clear console. Could you look in your Plugins\SketchyPhysics.rb and see if the line "Load 'SketchyPhysics/ClearConsole.rb' is in it?
-
Hi, to answer your question, yes, the line "Load 'SketchyPhysics/ClearConsole.rb' is in it. Of the rb scripts the following are being loaded during SketchUp startup:
sketchyphysicstool.rb
sketchyphysicsutil.rb
JointTool.rb
SketchyReplay.rb
JointConnectionTool.rb
controlPanel.rb
inspector.rb
PrimsTool.rbThe following scripts are NOT loaded, not even manually:
attributes.rb
clearConsole.rb
BoxPrimTool.rbFor all clarity, this occurs only when SP has been installed in "C:/Program Files/Google/Google SketchUp 6/Plugins/". Installed in "C:/Google/Google SketchUp 6/Plugins/" all scripts are being loaded during startup.
-
ClearConsole is or isn't loaded? If not than that is your problem.
SketchyPhysics.rb should contain this:def LoadSketchyPhysics load "SketchyPhysics\\sketchyphysicstool.rb" load "SketchyPhysics\\sketchyphysicsutil.rb" load "SketchyPhysics\\JointTool.rb" load "SketchyPhysics\\SketchyReplay.rb" load "SketchyPhysics\\attributes.rb" load "SketchyPhysics\\clearConsole.rb" load "SketchyPhysics\\JointConnectionTool.rb" load ("SketchyPhysics/controlPanel.rb") load ("SketchyPhysics/inspector.rb") #load "SketchyPhysics\\SolidCamera.rb" end if( not file_loaded?("SketchyPhysics.rb") ) #result = Sketchup.send_action "showRubyPanel;" LoadSketchyPhysics() end file_loaded("SketchyPhysics.rb")
Attributes.rb may not be used anymore. And BoxPrimTool.rb is loaded by SketchySolids.rb
-
Hi, as I wrote last friday, may 16, 3 scripts are not installed at SketchUp startup: attributes.rb, clearConsole.rb and BoxPrimTool.rb.
I found out that the folder SketchyPhysics is the problem. I placed these scripts directly in the Plugins folder (after removal from SketchyPhysics.rb and SketchySolids.rb) and the sripts were loaded without any problem.
(SketchyPhysics.rb and SketchySolids.rb are installed by the installer together with the rest of SketchPhysics. Any reason why these files should not be up to date? By the way: SketchyPhysics.rb has a statement to load attributes.rb. If no longer needed than this statement could/should be removed, right?)
-
It sounds like your install is messed up beyond belief. I am starting to think you may be hitting the problem they talk about in this thread.
Its seems Vista has a problem with keeping old versions of files around. It might be the fix to another Vista problem reported by mc101.
You should look and see of you have any files in the directory mentioned in the post.
Chris
-
Chris, problem solved! Indeed I found the 3 scripts giving me problems in the VirtualStore (don't understand why only these 3?). After deleting the "Google" folder all problems were gone. Thanks!
Advertisement