Schematica

Schematica

8M Downloads

Save to File not working

mistresskahlan opened this issue ยท 2 comments

commented

I've tried this in vanilla and a couple of modpacks but every time I click save to file nothing happens. I had a look to see if it saves a file somewhere in the folder, but still can't find it.

commented

Could you also post the log file? Would help is figure out why the saving fails.

And I agree, copying the entire thing directly to the clipboard might be the best thing to do.

commented

I didn't know about that feature, but looking at it it's part of the material list GUI. The relevant code is this:

final File dumps = Schematica.proxy.getDirectory("dumps");
try {
try (FileOutputStream outputStream = new FileOutputStream(new File(dumps, Reference.MODID + "-materials.txt"))) {
IOUtils.write(stringBuilder.toString(), outputStream, Charset.forName("utf-8"));
}
} catch (final Exception e) {
Reference.logger.error("Could not dump the material list!", e);
}

which seems to me to be saving it in .minecraft/dumps/schematica-materials.txt, or else logging an error (but nothing in chat/on the GUI) if it fails.

Thinking about it, that feature would probably be more useful as a clipboard-copy thing instead (GuiScreen.setClipboardString).