We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › backward compatibility
Page Index Toggle Pages: 1
backward compatibility (Read 802 times)
backward compatibility
Jul 4th, 2007, 11:45pm
 
Hi,

I'm trying to get some code to work that was orginally written for version 0085.  

Is it possible to have a list of the objects that have been changed from version to version so that I can see how this code works?

one obvious thing is framerate becomes frameRate, but I'm sure there are many more.



one error in particular that I can't figure out is:

java.lang.ArrayIndexOutOfBoundsException: 512
      at Temporary_7820_3588.takecolor(Temporary_7820_3588.java:305)
      at Temporary_7820_3588.setup(Temporary_7820_3588.java:23)
      at processing.core.PApplet.handleDisplay(PApplet.java:1281)
      at processing.core.PGraphics.requestDisplay(PGraphics.java:564)
      at processing.core.PApplet.run(PApplet.java:1450)
      at java.lang.Thread.run(Thread.java:613)

many thanks for your kind help!

Re: backward compatibility
Reply #1 - Jul 5th, 2007, 12:06am
 
void loop() is now void draw(), anything starting B now starts P c.f. PFont, PImage etc and size(....) really must be the first thing in setup, pretty much no matter what.
Re: backward compatibility
Reply #2 - Jul 5th, 2007, 12:20am
 
Hi, thanks so much for responding.

I took a look through the code and didn't find anything starting with B (Pimage was already there).

no void loop() either.

I do have flagged "void setup()" and "void draw()"

P3D is also in red.

does this help?
Would you like to take a look at the code?
Re: backward compatibility
Reply #3 - Jul 5th, 2007, 8:17am
 
i think we have to see some code to figure what's wrong ...
Page Index Toggle Pages: 1