Change version with 4.14.3 on 4.15.1

Help!

Running S:/Epic Games/UE_4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe Lineage2UE4 Development Win64 -project=“C:/Users/Reiner Lute/Documents/Unreal Projects/Lineage2UE4 4.14/Lineage2UE4.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for Lineage2UE4 (no existing makefile)
@progress push 5%
ERROR: In C:\Users\Reiner Lute\Documents\Unreal Projects\Lineage2UE4 4.14\Source\Lineage2UE4\Faction\CharacterAI.cpp: #include “BehaviorTree\BehaviorTree.h” contains backslashes (’’), please use forward slashes (’/’) instead.

As the error states at the end (I know, they can get pretty gross to with long paths in them), you are using backslashes instead of forward slashes on a #include. You use forward slashes ‘/’ for paths in #includes.

Go into the CharacterAI.cpp source file in your project and change the following:

#include "BehaviorTree\BehaviorTree.h"

to:

#include "BehaviorTree/BehaviorTree.h"

I opened the file CharacterAI.cpp and cleared all the information. But the problem did not dare. Help me please!

Can you post all of your errors you are getting now? The error you are getting in your shared video means there are errors in your code and the error you posted in your original post shows at least one of the culprits.

When you attempted to switch to another version it has to rebuild some dlls and successfully compile the source, if you have errors this will not work.

I can’t understand as to open for me my project

I’m delete Visual Studio and install now, but my problem not solved. Need help! Please!

Hey TPAKC-

In the second video of your comment, it appears you did not actually compile the changes after deleting the contents of the file. If you open the solution you should be able to right click on the project name and select the Build option to compile everything. The editor should be able to open after this. If this compile fails, please provide the output errors for additional info. Additionally, if you right click on the .uproject file you should have an option to “Switch Unreal Engine version”. You should be able to select this and manually switch the engine version from 4.14 to 4.15.

Cheers

Conflict file https://drive.google.com/file/d/0B1DWeiM0NqbUOC1wcUEwZ3A4cWc/view?usp=sharing
https://drive.google.com/file/d/0B1DWeiM0NqbUNUpKQWkyaGthU28/view?usp=sharing
https://drive.google.com/file/d/0B1DWeiM0NqbUeE1WYWZvTVp6cWs/view?usp=sharing
https://drive.google.com/file/d/0B1DWeiM0NqbUYmttN3dTaTZaYzA/view?usp=sharing
https://drive.google.com/file/d/0B1DWeiM0NqbUazRqLUxRSXNSUVU/view?usp=sharing

Please help me <(-,)>

Sorry for the delay, had to sleep. You still have a camera utility class and game mode class in there after that second video which could be causing the compile error. It is still stopping on an error related to your project files; if you try to build via Visual Studio you can easily see the errors show in the Output window (I need to know what errors it is saying to be able to tell you what is still causing it to fail to compile).

It won’t be Visual Studio causing the error, it’s almost unheard of for Visual Studio to be the cause. See my response I just made above.

In your first video, the error from halfway point to end of video is saying the enum is trying to use an unsupported type, that is because of a typo you made. Your code shows the enum as:

UENUM(BlueprintType)
enum class EFactionType : unit8

but it should be:

UENUM(BlueprintType)
enum class EFactionType : uint8

where you accidentally spelt uint8 as unit8.

Other errors you see can be caused by the first initial errors so ignore other errors and focus on the first errors that show up. The “OtherCompilationError(5)” and “-waitmutex” errors are just related to UE4 failing to compile due to your code errors so you can ignore those.

Use build instead of rebuild. If you want to build cleanly, especially after removing files, make sure to choose ‘Clean’ so that it cleans up intermediate files and then choose ‘Build’; you should find it then won’t be attempting to still use files you have removed from source.

Deleting all source files won’t work as UE4 can’t build without the specific base project files which are needed needed. Until you clean the build, you will likely still have intermediate files trying to reference files you have deleted as well. Those errors after deleting the ‘Source’ folder in your second video are due to having zero project source (as you deleted the base source files created by UE4 for the project which it needs for knowing how to setup your project and specific UE4 data).

Other errors:
In CharacterAI.cpp the OnSeePawn function has:

if (NeuralFactions.Contains(Player->GetFaction())

where you have a typo of NeuralFactions instead of NeutralFactions.

In Header1.h, at the start of the class declaration you have:
GENERATET_BODY() which should be GENERATED_BODY().

My failures

And if I do as on the second video, what pitfalls can arise in the future?

I missed that typo - *class USptingArmComponent ** in Header1.h should be *class USpringArmComponent **.

You got errors half-way through the video when you removed the USpringArmComponent property because you left the “UPROPERTY(” line which needs a variable declaration to go with it (also take out the UPROPERTY line that is after the comment /**.Follow Camera */).

The function ACharacterAI::OnSeePawn(APawn* Pawn) error:

AControllerAICharacter* Controller = Cast<AControllerAiCharacter>GetController());

should be:

AControllerAICharacter* Controller = Cast<AControllerAiCharacter>(GetController());

Errors that have a Code starting with “LNK” mean they are linker errors instead of compile errors. This means after compiling, trying to link code to other code did not work. Trying to double click on these will not take you to the place of cause as the errors are located in the compiled obj files. A linker error generally happens when you are including a header file without cpp implementation (generally the cause is a function that hasn’t been defined in the cpp file but is declared in the header file).

The error at the end of the first video was likely the fact you removed the OnSeePawn function from ACharacterAI in the cpp file but the function declaration still existed in the header file.

I’m sorry to say but this is very much a lack of ability to understand basic programming to be able to notice and resolve typo errors. I will try and help you get this build going but I really don’t see you being able to continue writing code for UE4 without first doing structured learning if you cannot detect and solve these kinds of problems yourself (as all programmers end up with much harder errors they have to deal with as their project grows).

If this is not your code and is someone else’s code that you copy-pasted or got from a plugin, you should ask them to fix their errors if you are finding any errors being stated in their source files by UE4 or Visual Studio.

In response to your second question and video there - to start with, if you are making a C++ project it is best to choose the C++ templates tab when creating it rather than the Blueprint templates.

Moving UE4 files from “Content” by copy-paste can have issues so it is generally best to use the Migrate feature via the UE4 Editor instead (although you have to be in the project they are from to be able to migrate them to another project’s content folder). Using source control would avoid this issue if you have something break that you cannot resolve as you can revert to an older build that worked and migrate files from that build.

The reason for your project working through creating a new project is because you did not copy over the C++ files that were giving you errors in the original project.

Simply creating a new project for a different version will not resolve version difference issues, if there are any. Also, especially so with larger projects, a lot of settings specific to a project are done via the Editor which can become time-consuming to ensure you transfer settings and default values over 1:1 between projects without missing something. If neither of those bother you then creating a new project instead is completely fine, just understand that in most cases the errors on switching version is due to your own errors so transferring over any files that include errors will result in the same result you were having with the original project.

I’m doing my project in the blueprint. I learn to do C ++ on this video Unreal Engine Tutorial - Faction System - YouTube, but I did not succeed and I decided not to use this method.
After that I made a long time project on the blueprint. But now it’s time to upgrade to a newer version. And at this moment there is this problem. Could you join my computer with the help of a teamviewer and help me solve my problem? Or are there other options?

Another line that will likely cause an error:

if (Controller && Player == Pawn && (Player->GetActorLocation()) - GetActorLocation()).Size() < 300.f)

should be:

if (Controller != NULL && Player == Pawn && ((Player->GetActorLocation() - GetActorLocation().Size()) < 300.f))

Can you get discord? You can screenshare on that and I’ll walk you through it. Message me your username for it.

What about the “#” numbers after it? You can find them below your name in the bottom-left corner.

My nick name in discrod - WhoreCraft

Whorecraft #3169