Original Post
Hi, I have been thinking about scripting architectures recently and have been getting very confused. Maybe you can help me! It's not so much the design of the actual scripting language which confuses me. That's OK. I already have coded the best part of a small compiler and virtual machine. Ideally, I would like to write a simple version of the Unreal engine approach. This (if I have understood it correctly) features a VM which gives OO scripts access to engine functionality like rendering etc.. which virtually all the game code is scripted. I'm having problems conceptualising how this can work from an implementation standpoint. The Wiki presents massive class tree (http://wiki.beyondunreal.com/wiki/Class_Tree_Listing_(U2)) but does not mention whether these are UScript classes or engine classes or both. Does the engine contain the same classes (Actor, Pawn etc..) as the scripts? I thought UScript was compiled to bytecode. In that case how does the mapping/binding to the engine (C++) occur. I am most confused! HELP!! PS: Please don't move this topic to the scripting forum! Many Thanks Tony