Sign in to follow this  

Recompile script at runtime

This topic is 2060 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

Best part of working with scripts is that modifying them in real time.
I have been doing that by destroying and recreating the whole module.
It started to get slower and slower to compile them as script files increased.
I already know which file got edited, just need to remove it from module and recompile again.

Is there a way to just reload just a single file?
Or some idea how to implement such feature?

i don't need restore engine state at all.
all globals, objects, etc. may get reset. i dont care.

Thank you

Share this post


Link to post
Share on other sites
Currently there is no way to recompile just a partial script. The entire module has to be built as a whole. If possible, try to break the modules in smaller ones that can be compiled separately.

I've been thinking of different ways to allow partial recompilations, but it is not an easy subject and I have yet to find a completely satisfactory solution for this. The one idea that I favor the most at the moment is to have a build flag that would allow the application to include new script sections to an already built module, and when those are built they would overwrite functions and methods that has the same signature.

Share this post


Link to post
Share on other sites

This topic is 2060 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this