Hi all, I'm a new user to AngelScript and have been trying to integrate it into my C++ component-based game engine for the past week or so.
I've finally settled on a design where my script manager will add all the scripts to the script builder, build the module and prepare the context all at the start of loading a scene.Once that is done, the script system will execute the context (but only while the game is playing, if it is paused it will suspend the context).
However, I've been getting an error code asCONTEXT_NOT_PREPARED.
So was I wrong to prepare the context too early? and is there a better design I could follow for a component-based engine?
Thanks for your time and apologies if its too vague or too simple.