rannl wrote:Is it possible to solve this issue by making the random access for mod tags optional? In effect, if no mod tags are used, then .append files are added iteratively to the disk .dat files, instead of being stored in memory (as jdom parsed objects) waiting for mod tag effects which will not occur?
I could make up a new suffix (as opposed to png, xml, append) that gets combined in the old GMM-ish way. It'd load both files' bytes into memory, decode to strings (Trying UTF-8/Windows-1252/etc), do some minor replacements, and write them one-after-another back to disk - without using memory to create jDOM objects.
The tidying that incidentally results from printing the jDOM tree wouldn't happen, but that's only for the benefit of 3rd-party apps that
would try to parse the XML (and likely choke anyway), not the game itself.