Hi Green Gandalf
You received this error message because you probably used a too big image (exceeding the recommended maximum of 16x16 pixels)
I used the original "banner_royal_lion.bmp" uploaded by coolgames;
it has a size of 16x16 pixels.
Nevertheless, on my OS (win 7 64bit - PhysX Hardware - screen resolution = 1600x1000) I can use bigger images (40x40 pixels).
The image used by coolgames wasn't a good choice because the generated cloth has too many cuts.
It is better to create a B/W pictures with a majority of white pixels.
Example : (pixel=1=white color ; pixel=0=black color)
1111111111111111 = rows 1,2,15,16
1111011111101111 = rows 3 to 14
This bitmap will produce a squared cloth with 2 verticals cuts inside its shape.
(of course, you can try with a completely white bitmap)
If 16x16pixels is too big for your system, then I suggest you to try the snippet with a smaller bitmap.
By the way, after I posted the modified snippet, I optimized the draping of the cloth thanks to some adjustments in the placements of two boxes and of the pins and I reset the Mass and Elasticity values to 1. (the simulation ran with a cloth generated with a 20x20 pixels Bitmap)
=========================================================
position object Peg1, -2.5, 2, -2
position object Peg2, -2.5, 2, 2
...
fix cloth point to object Cloth,2, Peg1, 0, 0, -1.8
fix cloth point to object Cloth,5, Peg1, 0, 0, -2
fix cloth point to object Cloth, 37, Peg2, 0, 0, 1.8
fix cloth point to object Cloth, 40, Peg2, 0, 0, 2
...
set cloth mass Cloth, 1
set cloth elasticity Cloth, 1
=========================================================
Anyway, I may assure you that my previously posted snipped works perfectly on my computer (assuming that it is running with a 16x16 pixels bitmap).
I hope it can help you.