Mid-game scripting & dynamic object model

Topics regarding Scripting with Reality Factory
Post Reply
Portalguy
Posts: 3
Joined: Thu Mar 01, 2007 12:31 pm

Mid-game scripting & dynamic object model

Post 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
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post 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... :)
Pain is only psychological.
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post 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.
Everyone can see the difficult, but only the wise can see the simple.
-----
Portalguy
Posts: 3
Joined: Thu Mar 01, 2007 12:31 pm

Post 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.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post 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.
Pain is only psychological.
Portalguy
Posts: 3
Joined: Thu Mar 01, 2007 12:31 pm

Post by Portalguy »

Juutis: thank you very much that is exactly what I was after with regards to mid-game scripting.
Post Reply