Page 1 of 1

Mid-game scripting & dynamic object model

Posted: Thu Mar 01, 2007 12:33 pm
by Portalguy
Could somebody please help me with the following two questions:
1- Am I correct in my understanding that the scripting provided allows on-the-fly mid-game scripting?
2- Does the engine support dynamic class creation (i.e. dynamic object model)?

Dynamic object model: “stores the object model for itself in a way that can be modified dynamically. This means it will have classes like "Class", "Attribute", and "Association".”
http://st-www.cs.uiuc.edu/users/johnson/DOM.html

Thanks

Posted: Sat Mar 03, 2007 8:21 pm
by Juutis
Welcome to the forums! :D

Sorry, I don't get what you mean at all. :idea:
I could probably answer question number 1 - if I understood it. Could you lighten things up a bit, please?
And Q number two... well, even if I knew what 'dynamic class creation' is, I wouldn't probably be able to answer it. Maybe the programmer-types can do that.


... yet another post with no actual content by me... :)

Posted: Sun Mar 04, 2007 2:43 pm
by Jay
you could look here: http://www.realityfactory.info/forum/vi ... ced+simkin and look at this tutorial mentioned there.

Maybe it could answer you questions.

On the fly-mid-game-scripting? I ehm, sorry i don't understand what you mean, so i am trying to guess:

The scripting in RF is interpreted at runtime, if you mean that.

Posted: Thu Mar 08, 2007 10:25 am
by Portalguy
Thanks for the help and sorry if the post was not clear. Mid-game scripting allows compiling and interpreting scripts at run-time e.g. Python.

Jay: thanks for the url.

Posted: Fri Mar 09, 2007 5:46 pm
by Juutis
I'm not really sure if this is what you are after, but you can modify scripts while running the game. However, they don't have an instant effect, but the next time you start a new game or load a game the changes are done.

Posted: Mon Mar 12, 2007 12:05 pm
by Portalguy
Juutis: thank you very much that is exactly what I was after with regards to mid-game scripting.