FireMage on 18/4/2015 at 22:59
Ho? So this is for that I saw such a warning? I didn't understood it was because of this! ^^
But Dromed have never crashed so I have never make attention on it
Le MAlin 76 on 18/4/2015 at 23:33
Quote Posted by fibanocci
If you set a texture that's already used on a wall or something, the monolog will tell you: Trying to SetData on a Locked Resource!
And if you do that often, DromEd will just crash.
I had this problem in animated texture for brush in FAM/xxx folder, not for objects.
Xorak on 18/4/2015 at 23:49
The "Trying to SetData on a Locked Resource" error appears specifically when you assign a texture like fam\core_1\wood1 to an object, but don't then use that texture anywhere in your mission on the actual brushes. Then through the course of cleaning up you unload the unused textures which unloads the core_1\wood1 texture from the mission (because it's not technically being used anywhere on a brush). So now you're in a position where it's being used on your object but Dromed doesn't know it exists in the mission anymore.
The error will then trigger the next time you reload the core_1 family. Go ahead and try it out for yourself.
Yandros on 19/4/2015 at 01:05
Which all just leads one to ask, why not just copy the texture to \obj\txt16 and not worry about it? :-)
LarryG on 19/4/2015 at 01:44
All I know is that I always had troubles with the use of replacement textures seeming to cause crashes. Then I read in a post somewhere that it was bad to refer to textures in FAM subdirectories for replacement textures. I switched, and haven't had an issue since. I thought that I was the last to find out about this until Ricebug's post!
fibanocci on 19/4/2015 at 08:31
Quote Posted by FireMage
Ho? So this is for that I saw such a warning? I didn't understood it was because of this! ^^
But Dromed have never crashed so I have never make attention on it
'Often' means: more than ~100 times of usage. The DromEd-monolog will display lots of yellow messages then. If one want to find out how often it's been used, the query-function is very helpful.