erich666 / Mineways

Exports models from Minecraft for 3D printing or rendering
http://mineways.com
Other
408 stars 60 forks source link

Problem Exporting (PNG error: failed to open file for writing) #66

Closed Ginoskie closed 3 years ago

Ginoskie commented 4 years ago

image image

It does not export the textures of the map (or the png files). The only files I get after exporting are the .mtl and .obj files

erich666 commented 4 years ago

Hmmm, that's odd, I haven't seen it before, and I don't have any great ideas. Were you using a special terrain set, or just had it doing default terrain? Are you out of disk space (unlikely, I know)? Try maybe saving to c:\temp (make the directory first, of course) to check that it's not a file path name problem. Anything you find is appreciated - I'd like to fix this, or at least understand the cause better and warn users.

mrxbox98 commented 4 years ago

I also had this problem using a custom world I had, I will try it with a generated world and see if the error still happens.

mrxbox98 commented 4 years ago

I also had this problem using a custom world I had, I will try it with a generated world and see if the error still happens.

I just checked and it also happens for a normal world.

erich666 commented 4 years ago

Good to know @mrxbox98 . Unfortunately, I cannot reproduce this problem here, which means I cannot fix it. Could you please experiment a bit and see if there's anything that makes the problem happen, or not happen? For example:

With five minutes of testing (if that), you might find what the problem is. I can then possibly fix it, if I know what the problem is.

erich666 commented 3 years ago

@mrxbox98 do you have any additional information on this one? Did you give it a test with the ideas I give above? If I can't get more information, I can't reproduce the bug and so will have to close this issue.

The possibly-good news is that I did update the lodepng library I use, which had a number of code fixes in it. These might help solve your problem, though I'm a bit doubtful - it sounds more like a path problem than PNG writing per se. Still, you might give version 8.02, the latest Mineways, a try and see. Anyway, if I don't hear back in a month I'll have to close this one as unreproducible.

Ginoskie commented 3 years ago

I got it fixed with your solution. I just saved it in a different path folder and it worked. Thanks! On Saturday, January 30, 2021, 11:13:08 PM GMT+8, Eric Haines notifications@github.com wrote:

@mrxbox98 do you have any additional information on this one? Did you give it a test with the ideas I give above? If I can't get more information, I can't reproduce the bug and so will have to close this issue.

The possibly-good news is that I did update the lodepng library I use, which had a number of code fixes in it. These might help solve your problem, though I'm a bit doubtful - it sounds more like a path problem than PNG writing per se. Still, you might give version 8.02, the latest Mineways, a try and see. Anyway, if I don't hear back in a month I'll have to close this one as unreproducible.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

erich666 commented 3 years ago

Perfect, thanks for letting me know, and I've updated the downloads page to note this problem.