Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2437


Ignore:
Timestamp:
Dec 14, 2008, 3:00:37 AM (15 years ago)
Author:
landauf
Message:

There's a problem in the network engine causing a crash. It's somehow related to objects with object-mode 0x0 that were deleted and/or created on the server during the game.

I managed to avoid the crash by not setting the object-mode to 0x0 when running on the server. However there's more research to be done on this topic.

Location:
code/branches/objecthierarchy2/src/orxonox/objects/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Camera.cc

    r2396 r2437  
    4343#include "CameraManager.h"
    4444
     45// REMOVE THIS AS SOON AS THE SERVER CAN HANDLE DESTRUCTION OF OBJECTS WITH OBJECTMODE 0x0
     46#include "core/Core.h" //--------------------------------------
     47//----------------------------------------------------------------------------------------
     48
    4549namespace orxonox
    4650{
     
    6165        this->nearClipDistance_ = 1;
    6266
    63         this->setObjectMode(0x0);
     67// REMOVE THIS AS SOON AS THE SERVER CAN HANDLE DESTRUCTION OF OBJECTS WITH OBJECTMODE 0x0
     68        if (!Core::isMaster()) //---------------------------------------------------------
     69//----------------------------------------------------------------------------------------
     70            this->setObjectMode(0x0);
    6471
    6572        this->setConfigValues();
    6673        this->configvaluecallback_changedNearClipDistance();
    67 
    68 //        this->requestFocus(); // ! HACK ! REMOVE THIS !
    6974    }
    7075
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/CameraPosition.cc

    r2087 r2437  
    3434#include "Camera.h"
    3535
     36// REMOVE THIS AS SOON AS THE SERVER CAN HANDLE DESTRUCTION OF OBJECTS WITH OBJECTMODE 0x0
     37#include "core/Core.h" //--------------------------------------
     38//----------------------------------------------------------------------------------------
     39
    3640namespace orxonox
    3741{
     
    4448        this->bDrag_ = false;
    4549
    46         this->setObjectMode(0x0);
     50// REMOVE THIS AS SOON AS THE SERVER CAN HANDLE DESTRUCTION OF OBJECTS WITH OBJECTMODE 0x0
     51        if (!Core::isMaster()) //---------------------------------------------------------
     52//----------------------------------------------------------------------------------------
     53            this->setObjectMode(0x0);
    4754    }
    4855
Note: See TracChangeset for help on using the changeset viewer.