Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Opened 13 years ago

Closed 5 years ago

#243 closed task (fixed)

Scripting engine with lua

Reported by: bknecht Owned by: bknecht
Priority: minor Milestone: Version 0.2 Codename: Bellatrix
Component: ScriptEngine Version: 0.2.0
Keywords: Cc:
Referenced By: References:

Description

Introduction

To make things happen in a game and to react on player interaction. There is something called a script engine. With this thing, people can manipulate objects via a script.

Goal

Implement a script engine into the game.

Implementation

Lua is a good thing, and there is already something about it on the Ogre wiki. Check it out and think of a way to implement this in an easy way into the game. Also think about network support and how to make objects able to be manipulated.

Attachments (1)

osdlua.png (43.3 KB) - added by bknecht 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by bknecht

comment:1 Changed 12 years ago by bknecht

  • Component changed from misc to ScriptEngine
  • Milestone changed from Future Engine Features to Version 0.2 Codename: Bellatrix
  • Version set to 0.2.0

comment:2 Changed 12 years ago by bknecht

  • Owner changed from nobody to bknecht
  • Status changed from new to assigned

comment:3 Changed 12 years ago by rgrieder

  • Priority changed from major to minor

In the mean time there is a lua interface now in orxonox. It even supports certain static C++ functions. You can for instance call the command executor with any string command.

However there is no way to actually load and use self written scripts. But it is clear that we use lua.

comment:4 Changed 12 years ago by rgrieder

  • Type changed from PPS_project to task

comment:5 Changed 12 years ago by rgrieder

  • Summary changed from Scripting engine (lua?) to Scripting engine with lua

comment:6 Changed 11 years ago by rgrieder

Renamed LuaBind class to LuaState and de-Singletonised it. That way you can create a LuaState anywhere you need one. I also adjusted the Script class that is XML loadable (any kind of code). However there is still no connection to triggers yet. And the C++ interface is very minimal.

comment:7 Changed 5 years ago by landauf

  • Resolution set to fixed
  • Status changed from assigned to closed

Lua-scripts were included years ago.

Note: See TracTickets for help on using tickets.