- Timestamp:
- Jan 26, 2007, 10:14:42 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptchanges.new/src/world_entities/script_trigger.cc
r10321 r10378 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 } … … 216 216 //testScriptingFramework(); 217 217 if(!(script->selectFunction(this->functionName,returnCount)) ) 218 PRINT(1)("E rror ScriptTrigger: Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str());218 PRINT(1)("ERROR SCRTIPTTRIGGER : Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 219 219 220 220 script->pushParam( timestep, this->functionName); 221 221 222 222 if( !(script->executeFunction()) ) 223 PRINT(1)("E rror ScriptTrigger: Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str());223 PRINT(1)("ERROR SCRTIPTTRIGGER : Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 224 224 225 225 scriptFinished = script->getReturnedBool(); 226 226 } 227 else 228 printf("ERROR SCRTIPTTRIGGER : Script could not be executed !\n"); 227 229 228 230 … … 241 243 scriptIsOk = true; 242 244 } 245 else 246 printf("ERROR SCRTIPTTRIGGER : Could not find the wrapperobject of %s , the script won't be executed ! \n", file.c_str()); 243 247 } 244 248 }
Note: See TracChangeset
for help on using the changeset viewer.