Changeset 10609 for code/branches/SciptableControllerFS15/src/orxonox/controllers/ControllerDirector.cc
- Timestamp:
- Oct 4, 2015, 11:51:01 AM (9 years ago)
- Location:
- code/branches/SciptableControllerFS15
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SciptableControllerFS15
- Property svn:mergeinfo changed
/code/branches/presentationFS15 (added) merged: 10499
- Property svn:mergeinfo changed
-
code/branches/SciptableControllerFS15/src/orxonox/controllers/ControllerDirector.cc
r10262 r10609 41 41 { 42 42 SUPER(ControllerDirector, XMLPort, xmlelement, mode); 43 XMLPortParam(ControllerDirector, "scriptname", setScriptName, getScriptName, xmlelement, mode).defaultValues("testscript"); 43 44 44 45 orxout(verbose)<< "ControllerDirector::XMLPort " … … 83 84 else 84 85 return; 85 86 86 87 /* Set up a luastate to use for running the scripts */ 87 88 LuaState * ls = new LuaState(); … … 98 99 * variable "newctrlid" defined, which means it can make use of it. 99 100 */ 100 101 ls->doFile( "testscript.lua");101 std::string scr = this->scriptname_ + ".lua"; 102 ls->doFile(scr); 102 103 103 104 /* Increase the controller ID so we have a different one for
Note: See TracChangeset
for help on using the changeset viewer.