A type of programming, often meant to be easier to learn than more "traditional" programming. Scripting is often used when performance is less important than ease of use. Examples of scripting languages are: Javascript, Lua, Perl, Python, and PHP. Scripting languages are often interpreted instead of ...
40
votes
6answers
6k views
Why do we use scripts in development?
In my current project, Lua scripts are called by the C++ functions on the server side.
After that, the scripts again call the C++ functions still in that solution.
Why should we do such things and not ...
29
votes
14answers
6k views
What scripting language should I choose for my game? [closed]
In what cases are what scripting languages better than others?
All answers are appreciated, please provide a description, and describe in what cases the language excels in.
(Remember, one language ...
16
votes
9answers
6k views
I prefer C/C++ over Unity and other tools: is it such a big downer for a game developer?
We have a big game project using Unity at school. There are 12 of us working on it. My teacher seems to be convinced it's an important tool to teach students, since it makes students look from the ...
16
votes
7answers
2k views
What scripting language would you recommend for a C++ game project?
By scripting here I mean not just putting config data in a script, but scripting parts of the project like some class methods, test specific game loop, etc. This would be not just to accelerate ...
16
votes
4answers
1k views
Game engine: a decent way, architecture-wise, to implement scripting support?
I am developing a simple game engine (in C#, if it matters), and I can't think of a decent enough way to implement scripting in terms of architecture.
It's a simple turn-based strategy with custom, ...
14
votes
3answers
4k views
How do you add a scripting language to a game?
Let's say I have a game written in C++. But I want to add some modding or scripting functionality to it. How would one go about adding a scripting functionality to your game?
12
votes
6answers
953 views
When would I use “scripts” or “scripting” in a game, as opposed to the core language?
The terms scripts and scripting appear to be used interchangeably on the Game Development Stack Exchange, but other than reading questions about a scripting language choice, I don't understand the ...
12
votes
3answers
2k views
Tips for implementing MMO quest mechanics?
What tools, patterns, or best practices would you recommend to implement the quest mechanics given below listed requirements?
I am talking about software architecture (how generic should you be) and ...
11
votes
4answers
3k views
Game engine with good Lua entity creation/management [closed]
I'm looking for an engine that constructs it's entities using Lua or other scripting language. This is in order to find inspiration and do it in my own engine as well.
I know that Cryengine does use ...
11
votes
6answers
623 views
Domain-specific languages for scripting
As most of you know, embedded interpreters for languages like Lua and Python are widely used for scripting game logic, but I haven't seen much information on people going with domain-specific ...
10
votes
5answers
591 views
Why place entity config outside of scripts?
I've seen a lot of games that define the entity components in script files, but when they configure each entity and specify what components it has, they use some other file format (like XML). Why do ...
10
votes
3answers
1k views
Scripting and Cinematics without Threading
I've been struggling with how to implement scripting in my game engine. I only have a few requirements: It should be intuitive, I don't want to write a custom language, parser and interpreter, and I ...
10
votes
3answers
296 views
Should scripts interact with an abstraction of the engine?
I'm using Java and Jython, and after some research I discovered giving scripts direct access to the engine interface could be a mistake, as it would tightly couple the two.
It looks like most ...
9
votes
2answers
3k views
Scripting engine for XNA
Say I'm making this big game in C# with XNA.
What options do I have to include a scripting feature to my code base?
9
votes
3answers
588 views
What do you look for in a scripting language? [closed]
I'm writing a little embedded language for another project. While game development was not its original intent, it's starting to look like a good fit, and I figure I'll develop it in that vein at some ...
8
votes
3answers
2k views
Exporting Blender bones
I wrote an exporter for blender models that works great for meshes. I'm attempting to extend that to bones defined in blender. However I haven't found good information for exporting bone data. How can ...
8
votes
2answers
2k views
What are the pros and cons of Lua vs. Python as a scripting language for XNA/C# platform?
I am thinking about giving a go to one of my ancient ideas for a game. The core point of this game would be the possible level of functional customization of the game environment and objects (such as ...
8
votes
1answer
388 views
Bohemia Interactive's bio2s format
Does anyone have specifications for the bio2s scripting language from Bohemia Interactive? They develop Operation Flashpoint, Armed Assault (ArmA), and Virtual Battlespace.
These scripts are ...
7
votes
3answers
899 views
How smartly implement scripting in game
I'm developing a game engine. It is supposed to be an entity/components based one.
For developing my game itself (using my engine of course) i though to use some scripting language to actually create ...
7
votes
1answer
669 views
How do I communicate with an IronPython component in a C#/XNA game?
My XNA game is component-oriented, and has various components for position, physics representation, rendering, etc, all of which extend a base Component class. The player and enemies also have ...
7
votes
2answers
842 views
Handling scripted and “native” components in a component-based entity system
I'm currently trying to implement a component-based entity system, where an entity is basically just an ID and some helper methods tying a bunch of components together to form a game object. Some ...
7
votes
2answers
424 views
How can I write a trigger to detect when a terran building burns to its death? (Starcraft 2)
I'm working with Starcraft 2 Map Editor, and am having a little bit of a trigger problem.
It's quite easy to detect when a specific unit kills a structure (simply check if triggering unit == ...
7
votes
3answers
3k views
Binding C++ and V8 Javascript from Google
The examples are quite challenging to grasp if you are still getting your head around other things, so the simplest example would be great.
Is there a simpler example?
6
votes
2answers
411 views
How do you handle scripting in multithreaded environment
In my experience, two approaches are preferred when people want to handle scripting in multithreaded environment.
Synchronize every accesses to scripting module with one coarse-grained lock.
No ...
6
votes
2answers
430 views
Tools for non-programmers to add new tasks to games
Since graphic designers/end users are not programmers, what are the technique to allow them to add new tasks or change application logic in a game? what are the end user tools? I want some popular ...
5
votes
6answers
687 views
Is there a typical career path to learn game development “on the job”?
The extended version of the question is: what is the typical career paths that a developer without specific experience in game development should take if he/she wishes to work in the game development ...
5
votes
6answers
909 views
Is it possible to use Java as a scripting language?
Is it possible to use Java as a scripting language for a C++ engine/game?
I understand that you need to make a binding to the interpreter, but I haven't seen any around.
4
votes
2answers
169 views
generating animations in runtime
i am creating my 3d game engine using Opengl.
this question might sound stupid to you but i am still in the process of learning, i have a 3d animated girl that slaps guys of different talls on the ...
4
votes
3answers
437 views
Use of classes for lua extensions
I'm asking about a very small domain. One-off extension scripts. IE, defining a new weapon for scorched earth.
When providing and API for small extension I've seen two approaches.
The API exposes ...
4
votes
2answers
286 views
Storing Entity Meta-Data
The question is about how to handle data about entities, but not particularly useful to the entity itself. An example of such data may be the external script that controls the entity's behavior or the ...
3
votes
2answers
584 views
Simple scripting language for “one-liner”-type scripts?
Can you recommend a scripting language which allows me to easily parse "one-liner" types of scripts (they're just commands, really)?
For example, a C/C++ function which simply sets the value of a ...
3
votes
2answers
311 views
How does Unity use C# as a scripting language?
To my knowledge, thus far, I have thought that C# is and has always been a compiled language. I have recently started studying Unity3d and noticed that they give C# as an option for scripting and ...
3
votes
2answers
274 views
Does it make sense to use Lua scripting in a game developed in Python?
Well for C++ written games using Lua scripts for easy changing ai, quets etc is very reasonable and it's common. However now I'm going to write a game in pure python and I don't know if I should use ...
3
votes
1answer
277 views
Entity position: In map or in script?
I'd like to know how others have handled the issue of storing the entity's position. (Or maybe it's not an issue and I just make it too complicated.)
I'm undecided on whether to store the position of ...
3
votes
3answers
486 views
3D Side-Scrolling Shooter: to use or not to use Lua scripting?
I'm programming a Side-Scroller, and I've reached the point where I need to program the enemy behaviour. I don't know what I should choose between hard-coding the enemy ships' behaviour or using a ...
3
votes
2answers
77 views
Playing different particle effects in Unity on the same ParticleSystem
The question really sums it up: What is the best way to use one particle system for playing different particle effects?
The scenario: GameObject is picked up and it starts playing a simple indicator ...
3
votes
2answers
281 views
Profiling code with threads and script interpreter
Basically, how I profile a game that have multithreading and script interpreter? (Lua in my case)
I have no idea of where to look for that.
Also it would be nice to be able to profile code that ...
3
votes
0answers
106 views
Is there a logic game engine to be used in OS game?
Ludocore is a paper where a research on a logic game engine is presented.
For game I cooperate on -- Opendungeons -- it would seem fine to have separate abstract layer of code which would deal only ...
3
votes
0answers
360 views
Any recommended books/resources on component-based design?
I come from a background with heavy use of the classical object-oriented paradigm for software development.
The company I am a part of switched to Unity not too long ago, and we're all very excited ...
3
votes
2answers
727 views
Experience embedding javascript
I'm looking into scripting languages to embed in my game.
I've always assumed Lua was the best choice, but I've read some recent news about embedding V8 as was considering using it instead.
My ...
2
votes
4answers
1k views
Should NPC dialog be stored in XML or in a script?
I'm developing an action RPG with some friends. I would like to know the differences and pros/cons of making NPC's dialogue using a file in XMLformat instead of using a script.
I see that script ...
2
votes
2answers
516 views
Scripting language with class instance support
I have come across the need to use a scripting engine for my C++ game, but after experimenting with many languages since the last few days, nothing has truly stood out as the obvious choice for a ...
2
votes
2answers
119 views
How might I script the creation of CLR objects?
I am looking for a method to script the creation of entities (arrays of components) for delivery through my entity factory, i.e scripted creation of .net objects.
I have looked into Lua but it seems ...
2
votes
1answer
604 views
Scripting for a C#, multiplayer game
I have a multiplayer game written in C# and we've recently been creating a lot of content but have been looking for a way to give our entities customization logic that the designers can hook into. I ...
2
votes
2answers
1k views
Game Scripting Example in any scripting language
If i have to create a Battle System for a game which is like Final Fantasy 10 Turn Based battle system or Shadow Hearts Ring Based Battle System and likewise.
How should i start with scripting a ...
2
votes
3answers
195 views
How can I customize an FPS game?
I want to create a customized (modded) fps game where I can change the look and feel of the game to match my intended theme.
Some of the things I would like to do:
Create a custom map (terrain).
...
2
votes
1answer
126 views
How can I instantiate my variables in Boo?
I have a Player Attributes class:
import UnityEngine
class Stat ():
public current as int
public max as int
class PlayerAttributes ( MonoBehaviour ):
public Name as ...
2
votes
4answers
1k views
Unity: Assigning a key to perform an action in the inspector
I am trying to write a simple piece of code in JavaScript where a button toggles the activation of a shield, by dragging a prefab with Resources.load("ActivateShieldPreFab") and destroying it again ...
2
votes
2answers
189 views
Importance of scripting engine at Cocos2d Game Engine
Each Game Engine is different and solves different problems in different ways, so the engine design does vary greatly from engine to engine (even though a lot of principles are shared from engine to ...
2
votes
2answers
246 views
How to make and render a simple game just with 3d max?
I want to make a simple EXE file, where there is one object in the scene and the user can rotate that object by using arrow keys (or mouse).
Is there any way in which I don't have to use a game engine ...

