Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10381 in orxonox.OLD for trunk/src/world_entities/script_trigger.cc


Ignore:
Timestamp:
Jan 26, 2007, 5:29:26 PM (17 years ago)
Author:
patrick
Message:

merged script branche to turnk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/script_trigger.cc

    r10374 r10381  
    148148  else
    149149  {
    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());
    151151  }
    152152}
     
    167167  else
    168168  {
    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());
    170170  }
    171171}
     
    213213       //testScriptingFramework();
    214214    if(!(script->selectFunction(this->functionName,returnCount)) )
    215       PRINT(1)("Error 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());
    216216
    217217    script->pushParam( timestep, this->functionName);
    218218
    219219    if( !(script->executeFunction()) )
    220       PRINT(1)("Error 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());
    221221
    222222    scriptFinished = script->getReturnedBool();
    223223  }
     224  else
     225  printf("ERROR SCRTIPTTRIGGER : Script could not be executed !\n");
    224226
    225227
     
    238240      scriptIsOk = true;
    239241    }
     242    else
     243    printf("ERROR SCRTIPTTRIGGER : Could not find the wrapperobject of %s , the script won't be executed ! \n", file.c_str());
    240244  }
    241245}
Note: See TracChangeset for help on using the changeset viewer.