SP3x Apr3 version.
-
Hmm. Wonder what I broke. Can you do this. Load sketchup. Skip the error. Open the Ruby console under the windows menu. And then type this into the bottom part.
load 'sketchyphysics.rb'
and post the error it prints.
Thanks
Chris -
Ah, I think I found the problem. I updated it. Let me know if it still errors.
-
sorry, I am out of time to write up the script commands tonight. But here is a sample that demos a few of them.
-
...So, once again, no mac yet?
-
Im not 2 great at scripting, so could you tell me how 2 control the sound, e.g. play a gunshot.wav when joybutton('RB') is pressed? I tried different variations of things like this joybutton('rb'); playsound('gunshot.wav') but can't get it 2 work -- Edit --
DW i resloved it in the end -
@unknownuser said:
...So, once again, no mac yet?
You always have to wait for everything on mac. My dad has one and it really annoyed me cos my pc at home wouldn't run sketchy physics and there was no sketchy physics on mac. At least i have my laptop now. not the best processor but more than enough RAM to make up for it. -
Are we allowed to post this version?
-
Oh, yes and please could you post a zip file of this? Thanks.
-
@unknownuser said:
...So, once again, no mac yet?
Sorry, I had trouble with the PC version and ran out of time. I will post it tonight.
-
@unknownuser said:
Are we allowed to post this version?
It should be ok. Just be aware some things could change.
I will outline some of the hazards in my script post. I will finish that tonight. Its too nice a day here to spend indoors.
-
Can you use your own sound files?
-
@unknownuser said:
Can you use your own sound files?
Nope! That was the problem I discovered soon after I got sound working. I cant possibly include a decent library of sounds, for one thing they are just too big.
What I am going to do instead is make it possible to embed .WAV files into the Sketchup model. That way you can put whatever sounds (or music) you want in. AND the copyright issue isn't my problem anymore.
-
How should i achieve this?
-
You can't right now. If you want someone else to get the sound file, post it on the forum or somewheres else, and tell them to go get it
-
@unknownuser said:
You can't right now. If you want someone else to get the sound file, post it on the forum or somewheres else, and tell them to go get it
Thats right. But I'll get the embedded sound working asap.
-
@frediivx said:
Im not 2 great at scripting, so could you tell me how 2 control the sound, e.g. play a gunshot.wav when joybutton('RB') is pressed? I tried different variations of things like this joybutton('rb'); playsound('gunshot.wav') but can't get it 2 work -- Edit --
DW i resloved it in the endhow, i can't get it to work
-
its: playsound("gunshot.wav");100
the;100 represents the value of the emitter's strength. -
would playsound('gunshot.wav');-(a)*500 work?
-
I updated the first post with a link to the Mac version:
http://sketchyphysics2.googlecode.com/files/SP3x-Apr5-MacAndWin.zipThere are no real changes between this and the last version.
Looks like the first thing I am going to focus on is fixing the playsound problems. I have the code that will embed and extract wav files from the model. But I need to do a little UI work. I need embed sound/clear sounds menus.
As soon as I got the playsound command working I was disappointed by it. At least on windows it is very very limited. You can only play one sound at a time and not very fast.
Can someone with both Mac and Windows tell me if it behaves the same on both?
-
On mac, I can play as many sounds as I want simultaneously, and can have sounds start for every frame. Don't know about windows though. Once I tried making a motor with sound, and even less than every frame it would start another loop.
Advertisement