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"

AIController.h in C++ (4.3)

Hey guys

So I am trying out the new 4.3 preview build. I see I had to change my included AIController.h from "/GameFramework/AIController.h" to just "AIController.h". It now finds the file yet when I build I get the following error, which is very similar to a file thats not included ?? Any help anybody ??

 AIPlayerController.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl AAIController::AAIController(class FPostConstructInitializeProperties const &)" (__imp_??0AAIController@@QEAA@AEBVFPostConstructInitializeProperties@@@Z) referenced in function "public: __cdecl AAIPlayerController::AAIPlayerController(class FPostConstructInitializeProperties const &)" (??0AAIPlayerController@@QEAA@AEBVFPostConstructInitializeProperties@@@Z)
 1>AIPlayerController.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __cdecl AAIController::Tick(float)" (__imp_?Tick@AAIController@@UEAAXM@Z) referenced in function "public: virtual void __cdecl AAIPlayerController::Tick(float)" (?Tick@AAIPlayerController@@UEAAXM@Z)
 1>AIPlayerController.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __cdecl AAIController::Possess(class APawn *)" (__imp_?Possess@AAIController@@UEAAXPEAVAPawn@@@Z) referenced in function "public: virtual void __cdecl AAIPlayerController::Possess(class APawn *)" (?Possess@AAIPlayerController@@UEAAXPEAVAPawn@@@Z)
 1>AIPlayerController.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl AAIController::~AAIController(void)" (__imp_??1AAIController@@UEAA@XZ) referenced in function "int `public: __cdecl AAIPlayerController::AAIPlayerController(class FPostConstructInitializeProperties const &)'::`1'::dtor$0" (?dtor$0@?0???0AAIPlayerController@@QEAA@AEBVFPostConstructInitializeProperties@@@Z@4HA)
 1>AIPlayerController.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl AAIController::ClearFocus(unsigned char)" (?ClearFocus@AAIController@@UEAAXE@Z)
 1>AIPlayerController.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl AAIController::DisplayDebug(class UCanvas *,class FDebugDisplayInfo const &,float &,float &)" (?DisplayDebug@AAIController@@UEAAXPEAVUCanvas@@AEBVFDebugDisplayInfo@@AEAM2@Z)
 1>AIPlayerController.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FString __cdecl AAIController::GetDebugIcon(void)const " (?GetDebugIcon@AAIController@@UEBA?AVFString@@XZ)
 1>AIPlayerController.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FVector __cdecl AAIController::GetFoc....

Product Version: Not Selected
Tags:
more ▼

asked Jul 03 '14 at 07:32 PM in C++ Programming

avatar image

Ad3ViLl
96 12 21 20

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

2 answers: sort voted first

Ok never mind, just figured it out. Have to include the "AIModule" now as one of the PublicDependencyModuleNames.

more ▼

answered Jul 03 '14 at 07:43 PM

avatar image

Ad3ViLl
96 12 21 20

avatar image MieszkoZ STAFF Jul 03 '14 at 09:32 PM

That's right, whole of AI code (excluding Navigation code) has been moved to the AIModule. Sorry for not communicating that better!

--mieszko

avatar image Ad3ViLl Jul 04 '14 at 06:24 AM

Hey there. I see changes were also made to Behavior trees and blackboard. I can no longer use TsubClassof blablabla . Which should I use now ? Thanks. Anton

avatar image Ad3ViLl Jul 05 '14 at 09:08 AM

bump. Anybody ?

avatar image MieszkoZ STAFF Jul 11 '14 at 11:02 AM

I'm not sure what you mean. Can you post a code snippet that doesn't compile?

avatar image vikhik May 28 '15 at 05:19 AM

Just a heads up, when trying to follow your Jumping Nav tutorial (http://unreal-ai-tutorial.info/index.php/8-tutorial-cpp/3-making-ai-jump-as-part-of-path-following) I ran into this issue when adding a new PathFollowingComponent.

If possible please update the tutorial!

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

Kylawl actually told me on the forums that I had to

include "BehaviorTree/BlackboardComponent.h"

include "BehaviorTree/BehaviorTreeComponent.h" #include "BehaviorTree/BehaviorTree.h"

now, so that solved it. Thanks anyway.

more ▼

answered Jul 11 '14 at 03:23 PM

avatar image

Ad3ViLl
96 12 21 20

(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