good news :: i found alot of errors . hehe
alot of name error E.X "NewtonServer.createCollision" >> "NewtonServer.CreateCollision"
C for c ,loooool
its look like ruby 1.8 wasnt case sensitive.
now thiss the last unfixed errors :
1- "SketchyPhysicsTool.rb" line:1672
UI.messagebox("Error resetting the simulation:"+" : "+$!+" \n"+e.backtrace[0],MB_OK, "Error")
#<TypeError: no implicit conversion of NoMethodError into String> `+'
2- "sound.rb" line:75 (in my code , its maybe different line in urs)
@midi=midiInterface()
#(no method )
3- "sound.rb" line:77
SDL.SDL_Init(0x00000010)
#String doesn't compile: undefined method SDL_Init' for #<MSketchyPhysics3::SPSounds:0xc381498>#<NoMethodError: undefined method
SDL_Init' for #MSketchyPhysics3::SPSounds:0xc381498>
i passed this one by adding next code to the top of "class SPSounds" line:65 >>
also by changing "SDL.SDL_Init(0x00000010)" to "SDL_Init(0x00000010)"
extend DL;;Importer
dlload(Sketchup.find_support_file("SDL.dll","Tools/Sketchyphysics3/sdl/"))
extern "int SDL_Init(int)"
4- the control panel appears when play method is called ( i feel good )
u can see in the pic "bodySetMagnet" error it has been fixed "b" to "B"
but this error ::
Error: #<NoMethodError: undefined method `to_ptr' for #String:0xe07b208>
i found that "to_ptr" is exist in both 1.8 and 1.9 but look at there defined:
inside "dl" - "struct.rb"
in 1.9 >>> define_method(:to_ptr){ @entity } #in an other method
in 1.8 >>> def to_ptr
return @ptr
end
so i think the invoking maybe deffer.
also same type error "to_a" line:1220 "SketchyPhysicsTool.rb"
5- Error: #<NoMethodError: undefined method animation' for #<Sketchup::View:0xc1d6520>> sketchyphysicstool.rb:1569:in
draw'
last plugin files :: https://www.dropbox.com/s/xp1fuzsanrsjomr/sp%20fix.zip