Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 3:00:37 AM (17 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.