Jump to content

Rafiloni

Member
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

About Rafiloni

Informations

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Rafiloni's Achievements

Newbie

Newbie (1/16)

  • Reacting Well
  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. hello I have a problem with the system. A compilation of the effective treatment course selectmodel interrupts the client. void CRenderTarget::SelectModel(const DWORD index) { if (index == 0) { //delete m_pModel; m_pModel.reset(); return; } CInstanceBase::SCreateData kCreateData{}; kCreateData.m_bType = CActorInstance::TYPE_NPC; // Dynamic Type kCreateData.m_dwRace = index; auto model = std::make_unique<CInstanceBase>(); if (!model->Create(kCreateData)) { if (m_pModel) { m_pModel.reset(); } return; } m_pModel = std::move(model); m_pModel->GetGraphicThingInstancePtr()->ClearAttachingEffect(); m_modelRotation = 0.0f; m_pModel->Refresh(CRaceMotionData::NAME_WAIT, true); m_pModel->SetLoopMotion(CRaceMotionData::NAME_WAIT); m_pModel->SetAlwaysRender(true); m_pModel->SetRotation(0.0f); auto& camera_manager = CCameraManager::instance(); camera_manager.SetCurrentCamera(CCameraManager::SHOPDECO_CAMERA); camera_manager.GetCurrentCamera()->SetTargetHeight(110.0); camera_manager.ResetToPreviousCamera(); } after function tests kCreateData.m_bType = CActorInstance::TYPE_NPC; // Dynamic Type kCreateData.m_dwRace = index; auto model = std::make_unique<CInstanceBase>(); TraceError("OK"); //displays ok if (!model->Create(kCreateData)) { TraceError("OK"); //does not display if (m_pModel) { m_pModel.reset(); } return; } TraceError("OK"); //does not display the error closes the client without syser and log errors. Compiles distriubute. Please help.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.