SketchyPhysics3.1
-
Hmmmmm. It isnt obvious what the problem is from the log. But I dont think its a 64 bit problem.
It might be a plugin conflict. Would you mind testing that?
Copy your plugins directory so you can restore it after testing.
Then get rid of everything but:
SketchyPhysics.rb
SketchySolids.rb
win32api.so
SketchyPhysics3\ <-directory.Then try again with the ruby console method.
Thanks for helping track this down!
Chris
-
Ok-we are making progress!
When I do as you suggested and start SU, I get the following:
Error Loading File sketchyphysics.rb
undefined method `file_loaded?' for main:ObjectBut, once I clear this and start SU, I can load sketchyphysics through the console and run the model. At this point, the console gives this:
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/hinge.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/slider.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/servo.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/piston.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/motor.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/gyro.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/fixed.png
createSelectionObserver
PhysicsObjectInspector initialized
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins
C:/Program Files (x86)/Google/Google SketchUp 7/Tools
loading scripts version:45
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator
trueI'm guessing this second part is normal because after this I can run the model. I will spend some time this weekend loading plugins one at a time until I hit the error and then report back.
Thanks for your help and this nifty script. I am happy to help as I am mostly an observer here with little opportunity to contribute.
Andy
-
@unknownuser said:
Error Loading File sketchyphysics.rb
undefined method `file_loaded?' for main:ObjectSuggests that 'sketchup.rb' isn't loaded at that point.
At the very start of 'sketchyphysics.rb' add the line
require 'sketchup.rb'
that should fix at least that one error - then hopefully the consequential ones too... -
TIG nailed the first part of the problem with his suggested fix.
After rebuilding my plug-ins folder, I have determined the culprit causing the conflict is a ruby called 'singleton' in a folder called 'ruby'. As near as I can tell, it is used with Jim Foltz's 'autocenterpoint'.
With that one file removed, SketchyPhysics seems to load and run just fine. I hope this helps and look forward to a fix.
Thanks to both of you for your help with this.
Andy
-
I have the same problem running SketchyPhysics3.2 on sketchup 7 and Mac OSX 10.5.8 on Intel Core 2 Duo:
Error Loading File sketchyphysics.rb
dlopen(/Users/dr/Library/Application Support/Google SketchUp 7/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib, 9): no suitable image found. Did find:
/Users/dr/Library/Application Support/Google SketchUp 7/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib: unknown required load command 0x80000022 -
I can't tell you how happy I am to see SP upgraded.
I've avoided SP for some time because I simply could not climb the learning curve (that's ME, not SP!) then got too busy with too many other things to get back. Still too busy, but in a few weeks I WILL load SP 3.1 and get back to it.
Now a cupla questions based on ...... what Andy1347 said (in part)
*After rebuilding my plug-ins folder, I have determined the culprit causing the conflict is a ruby called 'singleton' in a folder called 'ruby'. As near as I can tell, it is used with Jim Foltz's 'autocenterpoint'.
With that one file removed, SketchyPhysics seems to load and run just fine.*
Is there any logic to the ORDER in which SU loads RUBY scripts?
Does it matter (and in the case above, it seems too)?
Is there any practical way to control loading order, if required? -
I get a message: Error Loading File sketchyphysics.rb
undefined methodextend_object' for
Singleton'Am I missing any files? Thanks!
-
That error [
undefined method
extend_object' forSingleton'
] is from a standard RUBY installation [singleton.rb
] - where it might be called by several other standard modules/classes/methods - BUT as far as I know it has nothing to do with the SketchUp version if Ruby OR SketchyPhysics itself. Do you have other 'Ruby files' loading, that aren't standard Plugin scripts ?? -
@mickeyao said:
I get a message: Error Loading File sketchyphysics.rb
undefined methodextend_object' for
Singleton'I get the same error.
-
I suggest you PM CPhillips about it... he's the author
-
hello,
I want a free software that would allow me to record my video made ββafter SketchyPhysics in order to watch them out of sketchup.
Thank you. -
-
Ok but for MacOSX. I'm sorry...
-
Chris, great work on SP. Love it! I hope I am not missing anything prior to writing this. When I click the Win3.2 version, I get the save file dialog with a 3.1 title. After running the installation, my animation tells me, upper left corner, SP 3.2 required. I guess the install isn't taking well, or....? TIA
DOD -
Any developers working on the SketchyPhysics Project should either update it's status, or mark it as Dead.
The current update rate is not a proffesional way to leave such things. -
Does anyone know the current status of SP?
According to Google Code, the source repository no longer exists, so it leaves it nigh on impossible to pick up where Chris left off - if it has indeed been abandoned - Does anyone have a link to an alternative location of the source (preferably a repository) please?
Is there anyone else interested in continuing development of this excellent addition to Sketchup?
-
-
@unknownuser said:
Thanks, but that repository only contains documentation, not code. Was the code ever published?
-
I read that on the page above on the last line
@unknownuser said:
Source code for the plugin is in the install.
-
I see that now, thank you.
I'd rather hoped to see a history of revisions to understand the rationale behind some of the changes and inclusions, but I'll continue to trawl through the scripts making notes given the lack of inline comments.
Thanks for the sanity check.
Advertisement