Sign in to follow this  
ruphert

Running functions after LoadByteCode

Recommended Posts

Hi I have a problem,
I have a client-server game and the server sends bytecode to clients, so that all run the same scripts.
However I can't really make it work because my engine relies on script function hooks like:

asIScriptFunction *func = mModule->GetFunctionByDecl( "void DoSomething()" );

After loading byte code there are no functions to get :/
How do I solve this?

Share this post


Link to post
Share on other sites
When writing the binary stream, my class didn't increase the buffer pointer while reading and writing. So it was always writing/reading at the same location resulting in something random. So it was wierd there was no error about that.

Share this post


Link to post
Share on other sites

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