OK, I solved the problem with the extraneus piece images. What wrecked it was the dot in graphics.dir. The code below assumed that everything behind the dot was a filename extension. So it though that "dot/alfaerie/wfortress" already was the extension, and that it did not need to add the ".gif" that was the next part of the name.
Now all Diagrams that use an extraneous image in the graphics.dir folder should work again, whether they use betza.js or betzaNew.js (after browser-cache refresh).
OK, I solved the problem with the extraneus piece images. What wrecked it was the dot in graphics.dir. The code below assumed that everything behind the dot was a filename extension. So it though that "dot/alfaerie/wfortress" already was the extension, and that it did not need to add the ".gif" that was the next part of the name.
Now all Diagrams that use an extraneous image in the graphics.dir folder should work again, whether they use betza.js or betzaNew.js (after browser-cache refresh).