LDraw.org Discussion Forums
Advice getting started with parts authoring? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html)
+--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html)
+--- Thread: Advice getting started with parts authoring? (/thread-23729.html)

Pages: 1 2


RE: Advice getting started with parts authoring? - N. W. Perry - 2020-04-21

(2020-04-20, 22:11)Orion Pobursky Wrote: LDDP isn't compiled for MacOS so if you're running on WINE, I have no idea. It does, however, look specifically for whatever is listed in the parentheses on the Paths setting. If that specific file name isn't in the path, it won't work.

OK, that's all sorted—now the problem is <Cannot create file " Z: \ Untitled.lddptmp ". Access denied.> Both on startup, and when invoking LDView from within the program. (But it didn't occur before I successfully set the path search for LDView.)

J.C. Tchang mentions this same error message, so I'm guessing it's a semi-known issue?


RE: Advice getting started with parts authoring? - Orion Pobursky - 2020-04-21

(2020-04-21, 1:38)N. W. Perry Wrote: OK, that's all sorted—now the problem is <Cannot create file " Z: \ Untitled.lddptmp ". Access denied.> Both on startup, and when invoking LDView from within the program. (But it didn't occur before I successfully set the path search for LDView.)

J.C. Tchang mentions this same error message, so I'm guessing it's a semi-known issue?

So this is how LDDP does polling. It creates a temp file: <filename>.lddptmp and updates that whenever the timer fires. LDView (and other progs), detect this change and reload the model. I’m sure there’s a better way but this was the easiest to implement using the knowledge I had at the time. Therefore, if there’s some issue with creating that temp file (e.g. no write permissions), polling will fail. This file should be created in the same folder as the original file so not sure what’s going on that it would try to create in Z:/. Prolly some quirk with WINE.


RE: Advice getting started with parts authoring? - N. W. Perry - 2020-04-21

(2020-04-21, 1:58)Orion Pobursky Wrote: So this is how LDDP does polling. It creates a temp file: <filename>.lddptmp and updates that whenever the timer fires. LDView (and other progs), detect this change and reload the model. I’m sure there’s a better way but this was the easiest to implement using the knowledge I had at the time. Therefore, if there’s some issue with creating that temp file (e.g. no write permissions), polling will fail. This file should be created in the same folder as the original file so not sure what’s going on that it would try to create in Z:/. Prolly some quirk with WINE.

I think so—best I can figure out is that the wine config is owned by a regular user, when it needs to be root. And from all that I've read, running Wine as root is a Very Bad Idea™, so I'm not sure I want to do that.

Z:/ makes sense because that's where all the apps are; it's just what Wine calls my real drive, as opposed to its fake C:/ drive. So that's the correct volume at least, if not the correct directory. So maybe if I put the program into the C:/ drive…?


RE: Advice getting started with parts authoring? - Orion Pobursky - 2020-04-21

(2020-04-21, 2:41)N. W. Perry Wrote: I think so—best I can figure out is that the wine config is owned by a regular user, when it needs to be root. And from all that I've read, running Wine as root is a Very Bad Idea™, so I'm not sure I want to do that.

Z:/ makes sense because that's where all the apps are; it's just what Wine calls my real drive, as opposed to its fake C:/ drive. So that's the correct volume at least, if not the correct directory. So maybe if I put the program into the C:/ drive…?

It shouldn't be the program location that the temp file is created but the location of the file you are editing. It seem that something weird is going on. If I had my MacOS machine up aand running, I'd be able to troubleshoot for you.


RE: Advice getting started with parts authoring? - N. W. Perry - 2020-04-21

(2020-04-21, 2:57)Orion Pobursky Wrote: It shouldn't be the program location that the temp file is created but the location of the file you are editing. It seem that something weird is going on. If I had my MacOS machine up aand running, I'd be able to troubleshoot for you.

Ah, I see. That's OK, since the LDraw files are in that same location. And I was able to solve the error by setting permissions for myself as a user on my main drive. So that's fixed…now it's just a matter of:
   

And something tells me this is having to do with OpenGL support under Wine, so that's the next thing to look into! (That, or make a fake .exe file that actually opens the .app file of the Mac version.)  Wink