x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Crash by adding and compiling "UGameplayStatics::GetPlayerCameraManager(PC_World, 0);"

Hey Guys, can anybody help me? MY problem is, when I compile my code then crashs my Editor and I can't open it again. I have test it three Times, every try same crash. I add these Line: "cm = UGameplayStatics::GetPlayerCameraManager(PC_World, 0);" "cm" is: "APlayerCameraManager* cm;" and my crash report: http://pastebin.com/HAQ2P3mD

 MachineId:D9173D30423C63632FD87DAFB1B25A76
 EpicAccountId:6f263b3f847647239b10ed1c63046b59
 
 Assertion failed: Object [File:D:\Build\++UE4+Release-4.12+Compile\Sync\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp] [Line: 7968] 
 
 
 
 UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:440]
 UE4Editor_Engine!UEngine::GetWorldFromContextObject() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\engine\private\unrealengine.cpp:7970]
 UE4Editor_Engine!UGameplayStatics::GetPlayerController() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\engine\private\gameplaystatics.cpp:58]
 UE4Editor_Engine!UGameplayStatics::GetPlayerCameraManager() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\engine\private\gameplaystatics.cpp:89]
 UE4Editor_Factorio3D_2073!APlayerControll::APlayerControll() [c:\users\yannic\documents\yannic\projecte\games\factorio3d\source\factorio3d\playercontroll.cpp:15]
 UE4Editor_HotReload!FHotReloadClassReinstancer::ReconstructClassDefaultObject() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreloadclassreinstancer.cpp:207]
 UE4Editor_HotReload!FHotReloadClassReinstancer::RecreateCDOAndSetupOldClassReinstancing() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreloadclassreinstancer.cpp:243]
 UE4Editor_HotReload!FHotReloadClassReinstancer::FHotReloadClassReinstancer() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreloadclassreinstancer.cpp:316]
 UE4Editor_HotReload!FHotReloadClassReinstancer::Create() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreloadclassreinstancer.h:114]
 UE4Editor_HotReload!FHotReloadModule::ReinstanceClass() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreload.cpp:1179]
 UE4Editor_HotReload!FHotReloadModule::ReinstanceClasses() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreload.cpp:1170]
 UE4Editor_HotReload!TBaseRawMethodDelegateInstance<0,FHotReloadModule,void __cdecl(void)>::ExecuteIfSafe() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:642]
 UE4Editor_CoreUObject!UClassReplaceHotReloadClasses() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:674]
 UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:821]
 UE4Editor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl(void)>::ExecuteIfSafe() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:1021]
 UE4Editor_Core!TBaseMulticastDelegate<void>::Broadcast() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:921]
 UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:461]
 UE4Editor_Core!FModuleManager::LoadModule() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:322]
 UE4Editor_HotReload!FHotReloadModule::DoHotReloadInternal() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreload.cpp:770]
 UE4Editor_HotReload!UE4Function_Private::TFunctionRefCaller<<lambda_885b6930da405f85c35121aefbb9aaaf>,void __cdecl(TArray<FHotReloadModule::FRecompiledModule,FDefaultAllocator> const & __ptr64,bool,enum ECompilationResult::Type)>::Call() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\core\public\templates\function.h:308]
 UE4Editor_HotReload!FHotReloadModule::CheckForFinishedModuleDLLCompile() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreload.cpp:1817]
 UE4Editor_HotReload!FHotReloadModule::Tick() [d:\build\++ue4+release-4.12+compile\sync\engine\source\developer\hotreload\private\hotreload.cpp:506]
 UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\build\++ue4+release-4.12+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:957]
 UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\build\++ue4+release-4.12+compile\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:368]
 UE4Editor!FEngineLoop::Tick() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2775]
 UE4Editor!GuardedMain() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\launch.cpp:148]
 UE4Editor!GuardedMainWrapper() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
 UE4Editor!WinMain() [d:\build\++ue4+release-4.12+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]
 UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
 kernel32
 ntdll
Product Version: UE 4.12
Tags:
more ▼

asked Jul 21 '16 at 04:07 PM in C++ Programming

avatar image

Panakotta00
10 1 4 8

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Were you trying to call GetPlayerCameraManager from the constructor of your player controller class? You can't do it like that. If you're trying to set a custom Player Camera Manager class, APlayerController already has a member var called PlayerCameraManagerClass which you can set right in the bp for your custom player controller. And to access the player camera manager from code you can just cast the playercontroller member var "PlayerCameraManager" to your custom camera manager class.

more ▼

answered Jul 21 '16 at 05:03 PM

avatar image

Chris528
322 20 21 36

avatar image Panakotta00 Jul 21 '16 at 05:34 PM

Thank you, Chris528.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question