Comments/Ratings for a Single Item
This is fishy, as these extraneous images are defined with the extension .gif, and betzaNew.js is programmed to keep the existing extension, or use that of the regular pieces if no extension was specified. And this was working when I made the Diagram. SOmething is going wrong here, but I don't see immediately what. The code to create the image URL looks OK:
var im = imag[n]; if(im.indexOf('%') < 0) return graphDir + prefix + im; // from standard set var p = im.replace('%', prefix); // custom graphics; replace % by color prefix p = p.split('.'); if(p.length == 1) p[1] = graphSuffix; p = p[0] + (p[1] == '' ? '' : '.' + p[1]); if(p[0] == '*') p = graphDir + p.substring(1); return p;
After the split p[1] should have been 'gif', and p.length 2.
I noticed some 404 errors coming from this page. The Interactive Diagram has been set up to use PNG Alfaerie pieces with one exception, the wfortress and bfortress pieces, because these are available only as GIFs. This is what's causing the 404 errors, as it is looking for (w|b)fortress files without a file extension. So, for this diagram, would someone please make SVG and PNG versions of the fortress piece?
3 comments displayed
Permalink to the exact comments currently displayed.
The editor H. G. Muller has revised this page.