BaseFile [SOLVED]
-
On 06/10/2014 at 07:04, xxxxxxxx wrote:
I double checked this here and I do get an error, if I don't have write access to the specified folder/file.
Seems pretty strange. Do you have any security software installed, like a sandbox or so? Such could abstract the write access and redirect it to RAM.
I personally used these functions in one of plugins before and i have never had such an issue.
Which version of C4D are you experimenting with? -
On 07/10/2014 at 01:48, xxxxxxxx wrote:
No security software here, just standard Windows firewall etc. I've just done the updates to R14.042, but still shows the same behaviour. Testing on 32bit. Seems a bit strange Explorer won't recognise the files outside of Cinema - maybe it's the laptop/Windows? Unfortunately this is all I've got to work on for the next 2 or so months as I'm away.
WP. -
On 07/10/2014 at 02:00, xxxxxxxx wrote:
I'm sorry the problem persists.
One thought I came across over night... a weak one though. On Win7 there a loads of directories, which are abstracted in one way or the other. Some are called differently for the user as in the filesystem for localization reasons. Some are named differently internally for compatibility reasons. For example on a Win7 64-Bit even some file management tools as Total Commander in the beginning had problems showing some system directories in the correct way. So maybe the explorer is playing tricks on you?Unfortunately I'm not sure, what I can do to help any further.
Perhaps you can send me your project with a note, what you expect to exactly happen. And I'll give it a quick shot here. The project will need to compile flawlessly though, as my time is limited and I won't be able to debug into it anymore than needed to solve this issue. Leave me a PM, if you'd like to accept this offer. -
On 07/10/2014 at 02:46, xxxxxxxx wrote:
At first when i read this i thought it could be a DiskLevel thing - did you ever attempt this using Hyperfile and maybe NodeData::Read() which accepts a disklevel parameter?
To be honest i was surprised that my plugin was able to write hyperfiles to the plugins folder without complaint, as windows asks me for permission if say i try to copy/paste and icon.tif into it. But it saves the hf
s no problem. I
m guessing C4D has permissions, but i`m constantly annoyed with Windows (7 64bit) forcing me to give permission for VisualStudio and C++ etc to open with admin rights..I haven`t tried BaseFile before so no idea if the permissions thing differs between BaseFile and HyperFile. Not even sure what the point of basefile is tbh..
-
On 07/10/2014 at 03:06, xxxxxxxx wrote:
Small side note: Beginning with the R16 SDK you can move your projects around freely. So this cumbersome working in the plugins folder has an end.
-
On 08/10/2014 at 06:59, xxxxxxxx wrote:
Hi folks,
I've had a go with hyperfiles - and the same thing happens. A little frustrated I can't test this on my work machine, then I might be able to rule in/out os/computer specific causes.
Bare with me for a couple of days - I'm going to re-write one of the dialog's layouts. Not directly because of this issue - it needed a make-over anyway. But the newer layout will be nicer to look at and work with than what it is at the moment.
I'll need to strip a few things out to minimise build times Andreas. I'll try drop back in sometime at the end of the week, or over the weekend, if a fix doesn't come to light beforehand. There's no rush on this particular plugin, but the saving of files etc is something I need for others as well, so seeing it work in this one will make me a bit more confident when applying it to the others. Cheers,
WP. -
On 08/10/2014 at 12:00, xxxxxxxx wrote:
I use both BaseFile and HyperFile at different occasions to store data. Both work fine on PC and MAC so the assumption that there is something going wrong with permissions would also be my guess (from the sound of them not being visible..having a lock sign as you mentioned).
Eclectrik: Well a hyperfile can be associated with a basedocument for example and used to only be for read/write operations for plugin data in the past (which changed). That's why it can also write more specific data to the file.
BaseFile however is more of a usual file character where you can set properties like Byte order etc. specifically. It may be more useful for custom data file formats.
-
On 08/10/2014 at 15:00, xxxxxxxx wrote:
Thanks Katachi that`s useful to know..
-
On 16/10/2014 at 07:01, xxxxxxxx wrote:
Don't know if this is a silly question or not... but can we attach files to PMs (or any message for that matter)? It's no troubles if we can't, I just can't seem to find anything that will do that in the message options if we can.
WP. -
On 21/10/2014 at 05:36, xxxxxxxx wrote:
Hi All,
just letting other readers know that the above issue did appear to be permissions-related. With them turned off, I can now see that BaseFiles are written to the plugins folder, and are seen in Explorer like any other normal file.
WP. -
On 21/10/2014 at 05:40, xxxxxxxx wrote:
Glad you got it working on your end.