sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    SketchyPhysics3.1

    Scheduled Pinned Locked Moved SketchyPhysics
    85 Posts 37 Posters 68.0k Views 37 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      loolytoo
      last edited by

      I downloaded the newest version of sketchy physics and installed it. I have sketchup pro 8. When sketch up starts i get the following message

      Error Loading File sketchyphysics.rb
      undefined method extend_object' for Singleton'

      then when i try to download and use a sketchy physics model from wharehouse, they dont work and i get the following message.

      Error starting the simulation:uninitialized constant. msketchyphysics 3::SP3xSimulationContext::SP Sounds C:/PROGRA~1/google/GOOGLE~3/plugins/sketchyphysics3/controller commands. Rb:777:in 'initialize'

      can anyone help me with how i sort this out?

      Lucy

      1 Reply Last reply Reply Quote 0
      • C Offline
        CPhillips
        last edited by

        I have never seen that error before. Best guess something went wrong with the new Midi sound support. What version of windows are you using? Do you have any thing unusual about your sound setup?

        1 Reply Last reply Reply Quote 0
        • A Offline
          andy1347
          last edited by

          Hi,

          I get the exact same error as Loolytoo above. The only apparent difference is I am using Windows 7 Pro 64 bit and SU7. I have tried reinstalling SketchyPhysics. When I run a sample model, the Ruby console shows this;

          Checking if dueForUpdate
          String doesn't compile: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds#<NameError: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds>
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/ControllerCommands.rb:777:in initialize' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:in new'
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:in initialize' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:in new'
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:in startphysics' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1650:in physicsTogglePlay'
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1738
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1737:in `call'
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946

          Had I made this model myself, I would say it is operator error, but that is not the case.
          Could someone shed some light on how to either solve this or work around it so I could try my hand at using this plug-in?

          Thanks,

          Andy

          1 Reply Last reply Reply Quote 0
          • C Offline
            CPhillips
            last edited by

            64 bit might be the problem. It looks like the scripts are not loading properly so the bug is probably happening before the error you submitted.

            Try this:
            Load Sketchup
            Open the ruby console under the windows menu.
            Then type this:

            load('sketchyphysics.rb')
            

            It will probably print an error. If so send it to me and I can track it down.

            Thanks
            Chris

            1 Reply Last reply Reply Quote 0
            • A Offline
              andy1347
              last edited by

              Hi Chris,

              I did as you suggested (I hope).

              After disabling Sketchyphysics from the plug-in menu, restarting SU and entering the statement, I got this;

              load('sketchyphysics.rb')
              true

              If I then restart sketchyphysics from the plug-in menu, 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
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/ruby
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/JimFoltz
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/Podium
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/rb/
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/ro/
              loading scripts version:45
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:124: warning: already initialized constant FirstInstanceCall
              Error: #<NameError: undefined method extend_object' for Singleton'>
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166:in undef_method' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166 C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17:in require'
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29:in require' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6:in require'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:in load' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:in LoadSketchyPhysics3'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:61:in doLoad' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:43:in setLoadVersion'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93:in `call'

              If I then load a model and try to run it, I get the error reported a couple of posts above "....777.." and 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
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/ruby
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/JimFoltz
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/Podium
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/rb/
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/ro/
              loading scripts version:45
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:124: warning: already initialized constant FirstInstanceCall
              Error: #<NameError: undefined method extend_object' for Singleton'>
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166:in undef_method' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166 C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17:in require'
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17
              C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29:in require' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6:in require'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:in load' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:in LoadSketchyPhysics3'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:61:in doLoad' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:43:in setLoadVersion'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93:in call' Error: #<NoMethodError: undefined method []' for nil:NilClass>
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946:in onOpenModel' Error: #<NoMethodError: undefined method []' for nil:NilClass>
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946:in onOpenModel' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946 open model#<Sketchup::Model:0x106577f0> createSelectionObserver PhysicsObjectInspector initialized Checking if dueForUpdate String doesn't compile: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds#<NameError: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds> C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/ControllerCommands.rb:777:in initialize'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:in new' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:in initialize'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:in new' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:in startphysics'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1650:in physicsTogglePlay' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1738 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1737:in call'
              C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946

              I'm not sure that will be much help, but thank you and let me know what you would like me to try next.

              Andy

              1 Reply Last reply Reply Quote 0
              • C Offline
                CPhillips
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • A Offline
                  andy1347
                  last edited by

                  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:Object

                  But, 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
                  true

                  I'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

                  1 Reply Last reply Reply Quote 0
                  • TIGT Online
                    TIG Moderator
                    last edited by

                    @unknownuser said:

                    Error Loading File sketchyphysics.rb
                    undefined method `file_loaded?' for main:Object

                    Suggests 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

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      andy1347
                      last edited by

                      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

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        daniele_rossi
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • jgbJ Offline
                          jgb
                          last edited by

                          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?


                          jgb

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mickeyao
                            last edited by

                            I get a message: Error Loading File sketchyphysics.rb
                            undefined method extend_object' for Singleton'

                            Am I missing any files? Thanks!

                            1 Reply Last reply Reply Quote 0
                            • TIGT Online
                              TIG Moderator
                              last edited by

                              That error [undefined methodextend_object' for Singleton'] 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 ??

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                munkey
                                last edited by

                                @mickeyao said:

                                I get a message: Error Loading File sketchyphysics.rb
                                undefined method extend_object' for Singleton'

                                I get the same error. 😕

                                1 Reply Last reply Reply Quote 0
                                • TIGT Online
                                  TIG Moderator
                                  last edited by

                                  I suggest you PM CPhillips about it... he's the author 😕

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    ROBIND
                                    last edited by

                                    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.

                                    1 Reply Last reply Reply Quote 0
                                    • pilouP Offline
                                      pilou
                                      last edited by

                                      BBFlashback express ?

                                      Frenchy Pilou
                                      Is beautiful that please without concept!
                                      My Little site :)

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        ROBIND
                                        last edited by

                                        Ok but for MacOSX. I'm sorry...

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          d.o. durant
                                          last edited by

                                          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

                                          1 Reply Last reply Reply Quote 0
                                          • O Offline
                                            ocoromon
                                            last edited by

                                            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.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement