Changeset 10381 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 26, 2007, 5:29:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/script_trigger.cc
r10374 r10381 148 148 else 149 149 { 150 PRINTF(2)(" Target %s for %s::%s does not Exist\n", target.c_str(), this->getClassCName(), this->getCName());150 PRINTF(2)("ERROR SCRTIPTTRIGGER : Target %s for %s::%s does not Exist\n", target.c_str(), this->getClassCName(), this->getCName()); 151 151 } 152 152 } … … 167 167 else 168 168 { 169 PRINTF(2)(" Parent %s for %s::%s does not Exist\n", parent.c_str(), this->getClassCName(), this->getCName());169 PRINTF(2)("ERROR SCRTIPTTRIGGER : Parent %s for %s::%s does not Exist\n", parent.c_str(), this->getClassCName(), this->getCName()); 170 170 } 171 171 } … … 213 213 //testScriptingFramework(); 214 214 if(!(script->selectFunction(this->functionName,returnCount)) ) 215 PRINT(1)("E rror ScriptTrigger: Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str());215 PRINT(1)("ERROR SCRTIPTTRIGGER : Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 216 216 217 217 script->pushParam( timestep, this->functionName); 218 218 219 219 if( !(script->executeFunction()) ) 220 PRINT(1)("E rror ScriptTrigger: Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str());220 PRINT(1)("ERROR SCRTIPTTRIGGER : Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 221 221 222 222 scriptFinished = script->getReturnedBool(); 223 223 } 224 else 225 printf("ERROR SCRTIPTTRIGGER : Script could not be executed !\n"); 224 226 225 227 … … 238 240 scriptIsOk = true; 239 241 } 242 else 243 printf("ERROR SCRTIPTTRIGGER : Could not find the wrapperobject of %s , the script won't be executed ! \n", file.c_str()); 240 244 } 241 245 }
Note: See TracChangeset
for help on using the changeset viewer.