PDA

View Full Version : Using applescript and Cocoa to control iTunes - Testing needed




Vlade
Mar 12, 2007, 06:55 PM
After using the instructions here - http://www.cocoadev.com/index.pl?HowToCalliTunes , I made my game GL Golf control iTunes. Its pretty basic and simple, you just turn it on in the menu and then use command-return, command-[, and command-] .

Does anyone here have 10.3.9 or 10.2.8 they could test it for me with, or 10.4.x with iTunes 6.x or below? If you can let me know if everything works or what doesn't, as well as your computer type, os x version, and itunes version, I'll give you a free serial number to the full version. I'm mostly looking for 10.3.9, but 10.2.8 is great too and I'm curious to see what the lowest version of iTunes is.

Here is the URL for the new demo with iTunes - http://nuclearnova.com/temp/glgolfitunes.zip .

If anyone has any questions about what I did or if anyone wants to see my exact code for skipping tracks/playing/pausing or seeing if iTunes is open/playing, I can try to answer them here too.



Vlade
Mar 13, 2007, 09:59 PM
39 reads and nobody has anything before 10.4/iTunes 7? Anybody? Even someone with a PPC mac would be helpful so I don't have one of those updates followed by 10 emails and negative reviews because of incompatibility, I'll still give you a serial number too :)

Mechcozmo
Mar 14, 2007, 12:27 AM
In a couple days I might have something for you. I need to see if I have a Jaguar install disc.

Vlade
Mar 14, 2007, 12:48 PM
In a couple days I might have something for you. I need to see if I have a Jaguar install disc.

Thanks for the offer, but you don't need to reinstall an OS just to do a quick test for me!

I just updated it now and said you have to have 10.4/iTunes 7 for iTunes support

Mechcozmo
Mar 15, 2007, 11:55 PM
Thanks for the offer, but you don't need to reinstall an OS just to do a quick test for me!

I just updated it now and said you have to have 10.4/iTunes 7 for iTunes support

Hrm... can't find the Jaguar CD. It probably came pre-installed or something. I'm shipping my PowerBook back to Apple in a day or so... if they wipe the drive, I'll test it for you. Or even if they don't, I might install Panther so I can test it for you. I'll send you a PM if that happens.

SteveO32
Jun 12, 2007, 02:04 PM
I work for 2 school districts one of which uses nothing but macs. I can test the game out on one of our machines that runs 10.3 as well as any version newer and older. I will let you know if it worked properly. Really enjoy the game by the way.

Vlade
Jun 12, 2007, 04:47 PM
I work for 2 school districts one of which uses nothing but macs. I can test the game out on one of our machines that runs 10.3 as well as any version newer and older. I will let you know if it worked properly. Really enjoy the game by the way.

Thanks! I think everything is fixed now, except on some computers (maybe old PPC ones?) iTunes starts up when GL Golf is launched. I'm glad your enjoying GL Golf!

elfin buddy
Jun 12, 2007, 05:40 PM
I don't mind testing it for you, but my 12" PowerBook has both 10.4 and iTunes 7. Is that useful?

Vlade
Jun 12, 2007, 06:23 PM
I don't mind testing it for you, but my 12" PowerBook has both 10.4 and iTunes 7. Is that useful?

If you would like too, but if its inconvenient don't worry because I'm more concerned with 10.3.9 and 10.2.8.

Thanks!

elfin buddy
Jun 12, 2007, 07:50 PM
Yesir, seems to work fine on my machine. Well done with the game! If you're willing to divulge, what sort of calculations do you use for the game physics and how much detail do you use? (i.e., aerodynamic drag on golf ball? restitution on ball bouncing? is the ball actually a 3d object or just a pic mapped to a point?)

Vlade
Jun 14, 2007, 06:12 AM
Yesir, seems to work fine on my machine. Well done with the game! If you're willing to divulge, what sort of calculations do you use for the game physics and how much detail do you use? (i.e., aerodynamic drag on golf ball? restitution on ball bouncing? is the ball actually a 3d object or just a pic mapped to a point?)

Thanks for testing! I'm real busy moving this week but I'll post back this weekend with answers to your questions.

Vlade
Jun 16, 2007, 10:01 AM
Yesir, seems to work fine on my machine. Well done with the game! If you're willing to divulge, what sort of calculations do you use for the game physics and how much detail do you use? (i.e., aerodynamic drag on golf ball? restitution on ball bouncing? is the ball actually a 3d object or just a pic mapped to a point?)

The physics are nothing special compared to other new games out there, but they get the job done. There is gravity and wind resistance on the ball, and then friction from rolling, as well as energy lost when hitting the grass initially. With a little bit of vector math (dot product, cross product), its not impossible to learn (I taught myself when I was 15). I found all of the constants by tweaking until the physics looked right, but if I re-programmed the game now I would do it to scale (actually measuring the size of things, using 9.8 m/s^2 as acceleration ect).

The ball is actually a 3D object, as with most everything except the text in the game. OpenGL is great for easy 3D graphics that are very powerful.