Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10378 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 26, 2007, 10:14:42 AM (18 years ago)
Author:
snellen
Message:

added some conclusive errormessages in script.cc and script_trigger.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptchanges.new/src/world_entities/script_trigger.cc

    r10321 r10378  
    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}
     
    216216       //testScriptingFramework();
    217217    if(!(script->selectFunction(this->functionName,returnCount)) )
    218       PRINT(1)("Error 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());
    219219
    220220    script->pushParam( timestep, this->functionName);
    221221
    222222    if( !(script->executeFunction()) )
    223       PRINT(1)("Error 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());
    224224
    225225    scriptFinished = script->getReturnedBool();
    226226  }
     227  else
     228  printf("ERROR SCRTIPTTRIGGER : Script could not be executed !\n");
    227229
    228230
     
    241243      scriptIsOk = true;
    242244    }
     245    else
     246    printf("ERROR SCRTIPTTRIGGER : Could not find the wrapperobject of %s , the script won't be executed ! \n", file.c_str());
    243247  }
    244248}
Note: See TracChangeset for help on using the changeset viewer.