Does anybody know of a nightly build with a working exportlegends command, that gives functional XML files for Legends Viewer? I had it working fine a little over a week ago, but all the more recent builds seem to be unable to generate the files correctly. I don't know which build it was that I got it to work on, so I guess I'm just hoping that somebody else still has a build where it works and can give me the number for it.
If you have problems, please report them. Nobody's going to fix problems unless they're reported or accidentally detected by someone who actually goes about fixing the issues.
Having said that, I made a pull request 12 hour ago or so for an updated version that fixes the things I encountered. Due to the way DF is organized, it won't appear in a "nightly build" until it's been approved and then "imported" into the main DFHack repository. However, it should be possible for you to get that version off of Github to see if it works for your problems. The good thing with scripts is that they don't need to be compiled, so you don't need the rest of the infrastructure. The bad thing with scripts is that they're not compiled, so there is no compiler available to flag things that don't compile (any longer).
OK, I don't have much useful to give as a bug report because most of this stuff is beyond my understanding. But here's a screenshot of the error that I get with the current build 200322005:
https://imgur.com/a/Z9cq8p4. Before I downloaded that one, the other nightly build that I had wouldn't give any errors in the DFHack window, but Legends Viewer would always say the file needed repair when it got down to the Events part. Allowing it to attempt a repair never accomplished anything, which was disappointing but not surprising. I have to assume the problem there was still on the DFHack side, because I didn't have that problem before I downloaded a newer build. I should probably stop doing that just because it's new and there are green checks on the nightly build site.