Blitz Virtual Machine rocks!

Miscellaneous Forums/Content Creation Tools/Blitz Virtual Machine rocks!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have purchased BVM yesterday, and it's totally awesome
Cool :) Are you close to a demo? I can't wait to see some kick ass production using BVM.

On the main loop of the main script, I call the function csFrame(), which wraps UpdateWorld, RenderWorld, Flip, and updates the entities
It would probably be better to keep the main loop in your host application, and to call in this loop a function in your "main script" that updates the entities. But that's only an advice.

To update the entities, i search on all the modules loaded for a function with the name of the entity. If that function is found, then i set that function as the entry point and call it. The problem is that BVM_Run() gives a "Memory Access Violation". Would you please Koriolis show me an example on how to do this? It's basically execute one script, which calls a function from another script and then continues executing.

If I understand correctly, you're trying to load & execute a script from within another script. If so, you should either:
1) put your updating function rather in the host program, and use the scripts only for your entity functions. There shouldn't be any problem.
2) if you really want to load & execute them from within another script, then you should indeed put your "main" script in another context.
I think I can make it so what you do right now works as is (I'll give you a firm answer on that issue later), but in the current version this is not doable that way.


BTW, the OO feature together with another one (I won't say too much right now, forgive me, as some things are still likely to change) that I'm adding will allow to do thies kind of things in much neater and simpler way :)
Shouldn't be that hard to convert your system later (when I release the new version), if you're ready to take the plunge into OO.


[EDIT]For questions, you may as well post on my new forum. Having a central place for this is better for BVM users[/EDIT]