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 › MyGUI Library Problem - .VLW file inside Class
Page Index Toggle Pages: 1
MyGUI Library Problem - .VLW file inside Class (Read 2656 times)
MyGUI Library Problem - .VLW file inside Class
Dec 29th, 2005, 2:36pm
 
Hey there, anyone who can help please respond.

I've identified why MyGUI was not working with newer versions of Processing. MyGUI uses ArialNarrow-48.vlw file as the default font for drawing text and labels. In previous version (compatable with Processing 0091) the .vlw file was stored inside the .JAR file for the library (MyGUI.jar).

Now however, processing doesn't seem to load the .vlw file. I presume a null pointer gets passed through loadFont("ArialNarrow-48.vlw"); which causes my library not to work.

The solution to fix it is to include a copy of ArialNarrow-48.vlw in each processing sketch folder where you want to use MyGUI. This is undesirable, and inconvinient for the end user.

How do I fix this problem?

The latest release can be found here (with a readme file explanation of the bug).
http://mkv25.net/MyGUI/MyGUI_0008.zip

- Markavian
Re: MyGUI Library Problem - .VLW file inside Class
Reply #1 - Dec 29th, 2005, 3:20pm
 
try placing the .vlw file in a subfolder called 'data' inside the jar. the loading was changed slightly to limit the number of places it was looking (partly to prevent the number of 404s caused by p5 applets looking for their data files).
Re: MyGUI Library Problem - .VLW file inside Class
Reply #2 - Dec 29th, 2005, 7:57pm
 
Thanks fry, thats fixed it.
Always the simple solutions.

I've posted a fixed/updated version here:
http://www.mkv25.net/MyGUI/MyGUI_0009.zip

All is working well.

Regards,
- Markavian
Page Index Toggle Pages: 1