Jump to content
  • Advertisement
Sign in to follow this  

Recompile script at runtime

This topic is 2339 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


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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!