Cool was waiting for a new one! thank you very much!
, hi!
Thanks for the tutorials. I am following the English version of your very first tutorial âGetting Started : Developing Games with UE4â and I have an issue.
*My engine version is 4.5.1.
*I am creating a basic C++ template.
*But I am not seeing the UE4DemoPlayerController.h file defined anywhere in the project. How do you get the code generator to include the PlayerController class automatically?
*Understandably, when I add the following line
PlayerControllerClass = AUE4DemoPlayerController::StaticClass(); in UEDemoGameMode.cpp, the compiler freaks out.
*Any ideas what is happening?
Great tutorials BTW.
Hi Frederic,
The first tutorial was created using a old version of the UE4. I am very sure that this is the reason of the problem.
Anyway, you can create your custom PlayerController class manually.
1 - Open the Editor and go to File/Add Code To Project. Select the Player Controller Class as base class and enter the name, for example: UE4DemoPlayerController, open it in your IDE.
2 - Include this file in your UE4DemoGameMode.cpp (include âUE4DemoPlayerController.hâ) and add the following line:
PlayerControllerClass = AUE4DemoPlayerController::StaticClass();
at the beginning of the AUE4DemoGameMode Constructor.
Save, compile and run the Editor. To check if all the Game Mode setup is fine, click in the World Settings button in the Toolbar and check the Game Mode section, you will see something like this:
Try it please, and let me hear your comments.
PD: Sorry for my bad English :S
Regards
, hi!
I am travelling today and will be out for a week. I had time to quickly create the PlayerController class as suggested and the code compiles now just fine. I havenât had time to test out the full tutorial but will certainly do so once I am back.
Thanks for the quick feedback. Your English is just fine. There are many who donât have English as the first language. But so long as we communicate in C++ syntax, guess weâll all get along fine.
, hi!
Unfortunately, I am still having issues. I suspect that the starter content for 4.5.1 is totally changed compared to what you have in the tutorial.
*First of all, I have this weird, fuzzy background that is irritating me to no end when I start the level.
I donât understand why the background is fuzzy.
*The second issue is that after I manually create the class for UE4DemoGameMode, the code compiles and the level loads.
But alas, I loose my camera controls entirely. (Mouse and WASD keys do nothing.)
are the code changes that I made:
In the file UE4DemoPlayerController.h
UCLASS()
class UE4DEMO_API AUE4DemoPlayerController : public APlayerController
{
GENERATED_UCLASS_BODY()
virtual void BeginPlay() OVERRIDE;
};
And in the file UE4DemoPlayerController.cpp
AUE4DemoPlayerController::AUE4DemoPlayerController(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
}
/** Inherited method of the AActor class that's called automatically by the engine when the game starts. */
void AUE4DemoPlayerController::BeginPlay()
{
//Call to the Begin Play method in the base class.
Super::BeginPlay();
//We iterate among all the actors in the level through the TActorIterator
//TActorIterator is a parametrized iterator that allow us to iterate among all actors in the level.
for (TActorIterator<ACameraActor> It(GetWorld()); It; ++It)
{
//We get the current actor in the loop. As we only have an ACameraActor in the level, the iterator will iterate only once.
ACameraActor* _mainCamera = *It;
//We configure the new point of view of the camera as our game view.
//SetViewTargetWithBlend can receive more parameters, but the method has default values and in this case we wonât need more specialization so weâll leave like this.
this->SetViewTargetWithBlend(_mainCamera);
}
}
Would it be possible for you to test this tutorial on a more recent UE4 version?
I am learning a lot from your tuts. It is frustrating that I am still stuck halfway through the first tut.
Thanks in advance.
Hi Frederic
First of all, I have this weird, fuzzy background that is irritating me to no end when I start the level.
Probably this is a little change in the sample level in 4.6 version, but donât worry about that because technically do not represent any problem.
The second issue is that after I manually create the class for UE4DemoGameMode, the code compiles and the level loads. But alas, I loose my camera controls entirely.
Yes, this is completely normal, continue the tutorial and you will see why
Also if you have problem with the camera. Comment the BeginPlay method in C++ completely, and do the blueprint solutions, maybe some methods or logic was changed in 4.6
Starting the new year i going to review the tutorials already published in the 4.6 and the new translations will be compatible with Unreal 4.6 and later
Sorry for this problem Frederic, but the Epic team are doing updates, great updates!!, constantly, is very hard to do a tutorial completely compatible with the very news versions. Sorry about that !
Well, try this stuffs and let me hear your comments.
Happy new year !!
Hello, you making great tutorial, thank you very much.
Can you make a video tutorial for equipment system, if it will not too dificult for you.
Hi ThierryH, at least for now i donât have enough time to make a video-tutorial, sorry. Maybe you can use Google TranslateâŚ
Anyway, âs another tutorial (in spanish !!) :
8 - How to make a IA Character with a weapon in UE4 (Spanish Version !!)
I Hope you enjoy it
Hi guys, âs another tutorial (in spanish !!) :
9 - Getting Started with Delegates and Event Dispatchers in Unreal Engine 4
I Hope you enjoy it
Hi guys, âs another tutorials:
Introduction to the development of multiplayer games using Unreal Engine 4 (English and Spanish version !!)
Developing a Third Person Multiplayer Shooter in U4 - Part 1 (English version !!)
I Hope you enjoy it