Changeset 8858 for code/trunk/src/libraries/network/synchronisable
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/libraries/network/synchronisable/Synchronisable.cc
r8706 r8858 130 130 // assert( !header.isDiffed() ); 131 131 132 COUT(4) << "fabricating object with id: " << header.getObjectID() << std::endl;132 orxout(verbose, context::network) << "fabricating object with id: " << header.getObjectID() << endl; 133 133 134 134 Identifier* id = ClassByID(header.getClassID()); … … 136 136 { 137 137 for(int i = 0; i<160; i++) 138 COUT(0) << "classid: " << i << " identifier: " << ClassByID(i) << endl;139 COUT(0) << "Assertion failed: id" << std::endl;140 COUT(0) << "Possible reason for this error: Client received a synchronizable object whose class has no factory." << std::endl;138 orxout(user_error, context::network) << "classid: " << i << " identifier: " << ClassByID(i) << endl; 139 orxout(user_error, context::network) << "Assertion failed: id" << endl; 140 orxout(user_error, context::network) << "Possible reason for this error: Client received a synchronizable object whose class has no factory." << endl; 141 141 abort(); 142 142 } … … 168 168 bo->setLevel(creator->getLevel()); // Note: this ensures that the level is known on the client for child objects of the scene (and the scene itself) 169 169 //assert(no->classID_ == header.getClassID()); 170 COUT(4) << "fabricate objectID_: " << no->objectID_ << " classID_: " << no->classID_ << std::endl;170 orxout(verbose, context::network) << "fabricate objectID_: " << no->objectID_ << " classID_: " << no->classID_ << endl; 171 171 // update data and create object/entity... 172 172 bool b = no->updateData(mem, mode, true); … … 242 242 uint8_t* oldmem = mem; 243 243 if (this->classID_==0) 244 COUT(3) << "classid 0 " << this->getIdentifier()->getName() << std::endl;244 orxout(internal_info, context::network) << "classid 0 " << this->getIdentifier()->getName() << endl; 245 245 #endif 246 246 … … 258 258 // end copy header 259 259 260 CCOUT(5) << "getting data from objectID_: " << objectID_ << ", classID_: " << classID_ << std::endl;261 // COUT(4) << "objectid: " << this->objectID_ << ":";260 orxout(verbose_more, context::network) << "getting data from objectID_: " << objectID_ << ", classID_: " << classID_ << endl; 261 // orxout(verbose, context::network) << "objectid: " << this->objectID_ << ":"; 262 262 // copy to location 263 263 for(i=syncList_.begin(); i!=syncList_.end(); ++i) 264 264 { 265 265 uint32_t varsize = (*i)->getData( mem, mode ); 266 // COUT(4) << " " << varsize;266 // orxout(verbose, context::network) << " " << varsize; 267 267 tempsize += varsize; 268 268 sizes.push_back(varsize); … … 271 271 } 272 272 assert(tempsize!=0); // if this happens an empty object (with no variables) would be transmitted 273 // COUT(4) << endl;273 // orxout(verbose, context::network) << endl; 274 274 275 275 header.setObjectID( this->objectID_ ); … … 305 305 if(syncList_.empty()) 306 306 { 307 orxout(internal_warning, context::network) << "Synchronisable::updateData syncList_ is empty" << endl; 307 308 assert(0); 308 COUT(2) << "Synchronisable::updateData syncList_ is empty" << std::endl;309 309 return false; 310 310 } … … 326 326 } 327 327 328 // COUT(5) << "Synchronisable: objectID_ " << syncHeader.getObjectID() << ", classID_ " << syncHeader.getClassID() << " size: " << syncHeader.getDataSize() << " synchronising data" << std::endl;328 //orxout(verbose_more, context::network) << "Synchronisable: objectID_ " << syncHeader.getObjectID() << ", classID_ " << syncHeader.getClassID() << " size: " << syncHeader.getDataSize() << " synchronising data" << endl; 329 329 if( !syncHeaderLight.isDiffed() ) 330 330 { … … 344 344 { 345 345 mem += SynchronisableHeaderLight::getSize(); 346 // COUT(0) << "objectID: " << this->objectID_ << endl;346 // orxout(debug_output, context::network) << "objectID: " << this->objectID_ << endl; 347 347 while( mem < data+syncHeaderLight.getDataSize()+SynchronisableHeaderLight::getSize() ) 348 348 { 349 349 VariableID varID = *(VariableID*)mem; 350 // COUT(0) << "varID: " << varID << endl;350 // orxout(debug_output, context::network) << "varID: " << varID << endl; 351 351 assert( varID < syncList_.size() ); 352 352 mem += sizeof(VariableID); -
code/trunk/src/libraries/network/synchronisable/Synchronisable.h
r8706 r8858 232 232 it++; 233 233 } 234 COUT(1) << "Tried to unregister not registered variable" << endl;234 orxout(internal_error, context::network) << "Tried to unregister not registered variable" << endl; 235 235 assert(false); //if we reach this point something went wrong: 236 236 // the variable has not been registered before -
code/trunk/src/libraries/network/synchronisable/SynchronisableVariable.h
r7266 r8858 202 202 if ( *static_cast<uint8_t*>(mem) != this->varReference_ ) 203 203 { // wrong reference number, so discard the data 204 // COUT(0) << "discharding data" << endl;204 // orxout(debug_output, context::network) << "discharding data" << endl; 205 205 mem += getSize( mode ); // SynchronisableVariableBidirectional::getSize returns size of variable + reference 206 206 return;
Note: See TracChangeset
for help on using the changeset viewer.