About Store Forum Documentation Contact
Donations:
225$/mo



Post Reply 
Callback functions before save and load
Author Message
Harton Offline
Member

Post: #1
Callback functions before save and load
Hello,

I would like to ask You to add callback function before saving and loading all resources (mesh, animation, physic, material and world). This is very important for us. Probably this will be simple for You but now we started using advanced control system for resources but we have no control over the resources directly in the editor.
It often happens that people override resources and destroy our work.

Is this request is possible to realize?
Regards
Arek
12-18-2012 10:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
RE: Callback functions before save and load
Wouldn't it be better to be able to set files to "read-only" then?
12-18-2012 11:01 AM
Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #3
RE: Callback functions before save and load
Of course. We can set state "read-only" in control system. But we can only set this in other application... If someone forgot to set this, others people can override files.
The solution is to set "read-only" when someone loads resource.
We have developed a system for the editor, but we need callback functions.
12-18-2012 09:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Callback functions before save and load
Hello,

I'd need more information.
How would that work?
What's exactly the purpose of this? What are you trying to achieve with this?
Why is it callback for loading? Don't you mean saving/overwriting?
12-22-2012 03:21 PM
Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #5
RE: Callback functions before save and load
We use Perforce control system. We want to mark resources when someone is working on them. Now I don't know when someone opens a resource (the world, mesh, material, etc.), so we have to check frame by frame, which is opened.
I would like to ask you about the callback that will be called when someone will save or load resources in the editor.

For example:
Code:
static void OnLoadMaterial(Ptr user)
{
     Material* mtrl = (Material*)user;
     // code for Perforce
}
or
Code:
static void OnAddWaypoint(Ptr user)
{
     Str* waypointName = (Str*)user;
     // code for Perforce
}

These are just examples, but we are concerned to know that someone has made or wants to make some changes in the game files in an editor.

Is it possible to add to the editor?
(This post was last modified: 12-23-2012 12:37 AM by Harton.)
12-23-2012 12:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #6
RE: Callback functions before save and load
I would like to repeat the question about these callback functions. As I mentioned, it would really help us also in other game systems. Is it possible to add in the near future and we need to deal differently?
01-07-2013 12:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #7
RE: Callback functions before save and load
Hello,

I'd asked for a reply message about my questions. This issue is more important for us. Without answers we do not know how to design tools.

Regards
Arek
03-11-2013 02:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Callback functions before save and load
Hi, sorry for late reply. At the moment I'm too busy with other things (roadmap), therefore I won't be able to add such functionality to the Editor.
03-11-2013 02:24 PM
Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #9
RE: Callback functions before save and load
Ok. smile I understand but it is possible to add in the future or far future?
03-11-2013 02:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: Callback functions before save and load
I'd like to help, but I'm literally swamped with dozens of requests, and many high priority tasks already.
Thank you for your understanding smile
03-11-2013 02:36 PM
Find all posts by this user Quote this message in a reply
Post Reply