Re: [GD-General] I just don't get it (Was: Scripting Systems)
Brought to you by:
vexxed72
From: Jorrit T. <Jor...@uz...> - 2004-02-02 12:09:08
|
Garett Bass wrote: >Design folks, > > Ok, sorry to distract you all, but I just don't get it. After reading >about Brian's problems with his scripts (and additionally having considered >the problem at length without actually implementing any scripting system >myself [except for my pitiful attempt at *writing* a scripting system for >Deer Hunter 3, which we won't go into here for fear of grave embarrassment >to myself]) it seems to me that "scripting" is being used to solve problems >that could just as easily be solved by real code. > > Please enlighten my heathen mind: Why not simply compile your "scripts" >into C/C++ .DLLs? These are the arguments I can vaguely recall for >scripting, but I just don't think they hold up: > > One other reason for not doing this is portability. The projects that I'm involved with are multi-platform. These games have to work on Windows and Linux and possibly also MacOS/X. Having to distribute two or three versions of your dll's is a hurdle. If you can keep the main portion of your game in C++ and then the game logic itself in a portable scripting language then you have some maintenance advantages. Still another reason is for sending over scripts dynamically over the internet. This may be relevant for some types of games. Doing this with C++ compiled code is very hard to do and sending C++ code requires the client to have a C++ compiler which is also a big burden. Greetings, |