- Timestamp:
- Jan 25, 2007, 4:42:51 PM (18 years ago)
- Location:
- branches/scriptchanges.new/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptchanges.new/src/lib/script_engine/script.cc
r10353 r10369 111 111 if(currentFile.length() != 0) 112 112 { 113 printf(" SCRIPT %s : ERROR:Could not load %s because an other file is already loaded: %s\n",currentFile.c_str(),filename.c_str(), currentFile.c_str());113 printf("ERROR IN SCRIPT %s : Could not load %s because an other file is already loaded: %s\n",currentFile.c_str(),filename.c_str(), currentFile.c_str()); 114 114 return false; 115 115 } … … 128 128 else 129 129 { 130 printf("SCRIPT %s : ERROR: while loading file %s: \n",currentFile.c_str(),filename.c_str());131 130 reportError(error); 132 131 } … … 135 134 else 136 135 { 137 printf("SCRIPT %s : ERROR: while loading file %s: \n",currentFile.c_str(),filename.c_str());138 136 reportError(error); 139 137 } 140 138 141 printf(" SCRIPT : ERROR: while loadingfile %s \n",filename.c_str());139 printf("ERROR IN SCRIPT: Could not load file %s \n",filename.c_str()); 142 140 return false; 143 141 } … … 166 164 tmpObj.name = objectName; 167 165 registeredObjects.push_back(tmpObj); 168 } 169 } 166 return; 167 } 168 } 169 printf("ERROR IN SCRIPT %s: Could not add %s of class %s\n",this->currentFile.c_str(),objectName.c_str(),className.c_str()); 170 170 } 171 171 … … 188 188 tmpObj.name = objectName; 189 189 registeredObjects.push_back(tmpObj); 190 } 191 } 190 return; 191 } 192 } 193 printf("ERROR IN SCRIPT %s: Could not add %s of class %s\n",this->currentFile.c_str(),objectName.c_str(),className.c_str()); 192 194 } 193 195 … … 229 231 } 230 232 else 231 printf(" SCRIPT %s : ERROR:There is an other function active ( %s ) or there are unremoved return values on the stack. Please remove them first.\n",currentFile.c_str(),currentFunction.c_str());233 printf("ERROR IN SCRIPT %s : There is an other function active ( %s ) or there are unremoved return values on the stack. Please remove them first.\n",currentFile.c_str(),currentFunction.c_str()); 232 234 return false; 233 235 } … … 256 258 } 257 259 else 258 PRINTF(1)("SCRIPT '%s' : no function selected.\n",currentFile.c_str());260 PRINTF(1)("SCRIPT '%s' : No function selected.\n",currentFile.c_str()); 259 261 260 262 return false; … … 273 275 else 274 276 { 275 printf(" SCRIPT %s : ERROR:Couldn't add parameter because the wrong function is selected: %s instead of %s\n",currentFile.c_str(), currentFunction.c_str(), toFunction.c_str());277 printf("ERROR IN SCRIPT %s : Couldn't add parameter because the wrong function is selected: %s instead of %s\n",currentFile.c_str(), currentFunction.c_str(), toFunction.c_str()); 276 278 return false; 277 279 } … … 290 292 else 291 293 { 292 printf(" SCRIPT %s : ERROR:Couldn't add parameter because the wrong function is selected: %s instead of %s\n",currentFile.c_str(), currentFunction.c_str(), toFunction.c_str());294 printf("ERROR IN SCRIPT %s : Couldn't add parameter because the wrong function is selected: %s instead of %s\n",currentFile.c_str(), currentFunction.c_str(), toFunction.c_str()); 293 295 return false; 294 296 } … … 306 308 else 307 309 { 308 printf(" SCRIPT %s : ERROR:Couldn't add parameter because the wrong function is selected: %s instead of %s\n",currentFile.c_str(), currentFunction.c_str(), toFunction.c_str());310 printf("ERROR IN SCRIPT %s : Couldn't add parameter because the wrong function is selected: %s instead of %s\n",currentFile.c_str(), currentFunction.c_str(), toFunction.c_str()); 309 311 return false; 310 312 } … … 341 343 } 342 344 else 343 printf(" SCRIPT %s : ERROR:Trying to retreive non bolean value\n",this->currentFile.c_str());345 printf("ERROR IN SCRIPT %s : Trying to retreive non bolean value\n",this->currentFile.c_str()); 344 346 } 345 347 return returnValue; … … 394 396 const char *msg = lua_tostring(luaState, -1); 395 397 if (msg == NULL) msg = "(error with no message)\n"; 396 printf("ERROR : %s\n", msg);398 printf("ERROR IN SCRIPT %s : %s\n",currentFile.c_str(), msg); 397 399 lua_pop(luaState, 1); 398 400 } -
branches/scriptchanges.new/src/world_entities/creatures/fps_player.cc
r10340 r10369 342 342 velocity *= 100; 343 343 344 if( this->bJump) 345 { 346 printf("position:( %f, %f, %f ) \n", this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ()); 347 } 344 348 if( this->getModel( 0) != NULL && this->getModel(0)->isA(InteractiveModel::staticClassID())) 345 349 {
Note: See TracChangeset
for help on using the changeset viewer.