Author Topic: Virtual Machine VS Procedural Interpreter  (Read 17360 times)

Etinarg

  • Rogueliker
  • ***
  • Posts: 424
  • Karma: +1/-1
  • Idea archivist and game tinkerer.
    • View Profile
    • Gedankenweber Blog (German)
Re: Virtual Machine VS Procedural Interpreter
« Reply #15 on: June 24, 2010, 08:18:50 AM »
I see  two benefits:

- Scripts usually do not need to be compiled. Sometimes scripts can be re-loaded into a running game and changes can be tested from within this running game.

- If you want the core of your game closed source, but allow modification or expansions, scripts will allow users to do that without need to have access to the core sources.

The latter point may even be useful for open source projects as a hint for mod-makers, like "This is the part that is meant to be modified" and "This is the games core, do not touch unless you know what you do".

But that is definitely more geared towards commercial/professional games than roguelikes which are traditionally open source.


A further point might be that often the scripting interface is quite high level and game specific, so that scripts are an easier way to control or expand the game. But this much depends on how the interface is made, and how high level the core is - that might be equally high level and then scripts do not have such a benefit.


ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: Virtual Machine VS Procedural Interpreter
« Reply #16 on: June 24, 2010, 10:31:37 AM »
A further point might be that often the scripting interface is quite high level and game specific, so that scripts are an easier way to control or expand the game. But this much depends on how the interface is made, and how high level the core is - that might be equally high level and then scripts do not have such a benefit.

Yep.  If you are making a game in c scripting makes a lot more sense, as you can program the game-logic much more easily in something like python than in c.