C++ Character Class Creation UE4 / Unreal Engine 4 C++

Sdílet
Vložit
  • čas přidán 21. 08. 2024

Komentáře • 57

  • @DevEnabled
    @DevEnabled  Před 4 lety +11

    There seems to be an issue in recent versions of Unreal where splitting the classes into their public/private counterparts is causing reference issues. It seems to be tracked as an official bug so it will be easier at the moment to avoid splitting them into a public folder.

    • @myanrueller91
      @myanrueller91 Před 4 lety

      Gotta love it when a bug screws with good practices...

    • @ROSALIEIK
      @ROSALIEIK Před 3 lety

      oh fuck oki is it stillbroken? do i delete my project and start over?

    • @DevEnabled
      @DevEnabled  Před 3 lety +1

      @@ROSALIEIK you'll likely have a problem with a specific #include. The fix is to just include the full path so #include "ProjectName/FolderStructure/Class.h"
      Compared to what should have been generated previously would have been something more like #include "Class.h"

    • @mattgraves3709
      @mattgraves3709 Před 3 lety

      @@DevEnabled Thanks for the heads up, I used the public visibility as well so we'll see if I have a linker/build issue I will try to use the full path for imports. Otherwise no biggie to redo it at this point.

  • @smac3086
    @smac3086 Před 4 lety +29

    For anyone else that cannot compile because the BaseCharacter.h file could not be imported. Make sure that in your BaseCharacter.cpp file you change the #import to read: #include "Characters/BaseCharacter.h". You have to add `Characters` to the include file path or it will not be found. Seems like the editor's class creation tool should take care of that automatically when it generates the class file, but it doesn't.

    • @DevEnabled
      @DevEnabled  Před 4 lety +3

      Thanks for the update. Not sure if that's a result of some changes with the recent release.

    • @MatthewCC0311
      @MatthewCC0311 Před 4 lety

      Wow, I looked for hours for this solution, and it was right under my nose, or in this case, my comment. Thank you!

  • @DevEnabled
    @DevEnabled  Před 5 lety +8

    In this video, we create the character class that we will control throughout this playlist and cover some of the basics of C++. With some of the important C++ basics covered we'll be jumping into implementation in future videos.

  • @joelholdbrooks6729
    @joelholdbrooks6729 Před 2 lety +3

    If you're following along with UE5, you can find "New C++ Class..." menu under the "Tools" menu.

  • @alexandersh895
    @alexandersh895 Před 3 lety

    nice video. For anyone having issues with public/private classes and not being able to compile updating to 4.26.1 solved that for me.

  • @aurelianobuendia24
    @aurelianobuendia24 Před 4 lety

    OMG I've been programming in openframeworks, just starting with unreal engine. The most awsome thing I learn about this tutorial was the ctrl+k+o shorcut. Can´t beleieve i live all this years without using it

  • @abdulahmad2680
    @abdulahmad2680 Před rokem

    amazing walkthrough, thanks! i’ve been developing in unity and looking for a good UE resource to get started and it’s been tough. this video explains everything so nicely!

  • @JeffKwak
    @JeffKwak Před 4 lety

    Thank you for explaining _WHY_ you are doing things and why you are making certain decisions like prefixing the class names with the project name et. al.

    • @DevEnabled
      @DevEnabled  Před 4 lety +1

      No worries, the process is as important, if not more so than just copying the code.

  • @Sanityy2G
    @Sanityy2G Před 5 lety

    Going to start a side project soon, willing to follow your steps! Earned yourself a new sub!!

  • @bobdillon1138
    @bobdillon1138 Před 5 lety

    Really looking forward to this series...Thank you so much!

  • @erikpolygon5471
    @erikpolygon5471 Před 4 lety

    Rider is amazing! Thanks for the tip yesterday

    • @DevEnabled
      @DevEnabled  Před 4 lety

      Yeah, it is. I'm not sure on the pricing yet but I have a feeling I'll be buying it whenever it goes into full release. It's made UE4 C++ almost not a chore to work with.

  • @MatthewCC0311
    @MatthewCC0311 Před 4 lety +1

    I appreciate the thoroughness of your explanations. Any Udemy course you come out with that has that level of quality, I am all in for :)

    • @DevEnabled
      @DevEnabled  Před 4 lety +2

      Thanks again, Matthew. Be sure to stay tuned to the channel then, I have a lot planned and in the works right now, just need the time to complete it all :p

    • @MatthewCC0311
      @MatthewCC0311 Před 4 lety

      @@DevEnabled ​Of course! I dabbled in CZcams for a time, so I know how much work goes into it! I will also check out your courses on PluralSight :)

    • @DevEnabled
      @DevEnabled  Před 4 lety +2

      @@MatthewCC0311 Oh nice, I'm guessing you don't have an active channel anymore? Pluralsight is a good idea, everything on there is free until the end of the month. I should probably make a post about that on the Community section, I always forget to utilise that part of CZcams.

    • @MatthewCC0311
      @MatthewCC0311 Před 4 lety

      @@DevEnabled No not anymore. It wasn't the exact direction I wanted to take with a channel, but eventually when I can get more experienced with C++, and UE4 Development, I want to create another channel, and focus it on a devblog of my current game, as well as game design. I'm very much in the beginning stages on my experience though. Just starting CS courses in college, and self educating on game development! I'm falling in love with programming more and more every day :)

    • @DevEnabled
      @DevEnabled  Před 4 lety

      @@MatthewCC0311 Nice, sounds cool. Be sure to leave a comment when you start the devlogs, I love following other developers and watching their progress.

  • @Andy_S79
    @Andy_S79 Před 5 lety +2

    Nice more C++ stuff :) Is the "Unreal 2D" Udemy tutorial in planing, any news about that?

    • @DevEnabled
      @DevEnabled  Před 5 lety +2

      Hey, thank you. It's still in progress, the project template is all together and I've almost finished outlining the learning points and quizzes I want to focus on. I just need to free up some time to record and edit the content now.

    • @DevEnabled
      @DevEnabled  Před 4 lety +2

      @J S Yeah that's quite an old course now though, I plan on releasing some new content on Udemy going into 2020. Between both, I really like Pluralsight due to their consistent quality control whereas Udemy is obviously open to anyone so some courses quality can be questionable. I'd like to think I make reliably good quality content though so I like Udemy for some of the extra freedom I get as an author when coming up with ideas for topics. Also, the people managing and helping develop the courses are great so I'd be happy to work with them again if more opportunities come up.

  • @twitchingpsycho
    @twitchingpsycho Před 4 lety

    Would it be possible to make a custom movement component for a pawn that is perhaps based off of the character class but implement stuff like prone with proper collisions while in that stance and a corrective head rotation to camera view that would account for body orientations? Also, it would be awesome if somehow the movement component would have an option to work on the -Z or gravity direction. The reason i want char orientation to get the gravity direction is for possibility to make space ships with gravity on them and be possible to make a character move within a spaceship and the movement to work no matter how the ship is turned relative to world. There's literally no tutorial on that matter while more and more games are space focused and more and more third person games offer prone movements which i love. (love sneaking and sniping and would like to make such a game). Thanks for the tuts anyway, they are amazing and very informative.

  • @oddstuffcs3296
    @oddstuffcs3296 Před 4 lety +2

    hi, when I Create Class as you do at 5:11, it gives me an error: "ue4 failed to automatically compile YT_CPP". Any ideas?

    • @oddstuffcs3296
      @oddstuffcs3296 Před 4 lety

      never mind, I figured it out. Follow Mackenzie Fishers advice.

    • @DevEnabled
      @DevEnabled  Před 4 lety

      Good to hear you've solved it.

    • @capivara-sama3408
      @capivara-sama3408 Před 3 lety

      @@oddstuffcs3296 How?

    • @oddstuffcs3296
      @oddstuffcs3296 Před 3 lety

      @@capivara-sama3408 look at the comment made by Mackenzie Fishers, that comment told me how to fix it

  • @lennartlut
    @lennartlut Před 4 lety

    Thanks for the great video. Do you have some sort of Unreal Cheat Sheet? It feels like there is quite a lot to remember at the beginning and so much to keep in mind. It would be great to have a general goto sheet of paper regarding the general process.

    • @DevEnabled
      @DevEnabled  Před 4 lety +2

      I don't have anything like that. A lot of procedures and approaches are just things that you start to memorise the more you do them and then for other things like engine specific functions people tend to not remember them as there are just too many so I tend to have the documentation up on the other screen if there's something I might need during a video.

  • @zjfjack
    @zjfjack Před 4 lety

    In UE4 v4.24.3, YTCharacterBase header cannot be found, which means we have to #include "Characters/YTCharacterBase.h"

  • @LawMasterTimmy
    @LawMasterTimmy Před 4 lety

    When I add the Characters in the path of the character class, it fails to rebuild itself in the editor. So I run the uproject, I keep gettings this error: Game1 could not be compiled. Try rebuilding from source manually

  • @rudey38
    @rudey38 Před 2 lety

    Do you have a video on how to create a FPS shooter?

    • @DevEnabled
      @DevEnabled  Před 2 lety

      Hey, afraid not. Maybe a good topic for the future.

  • @riyansaeed2596
    @riyansaeed2596 Před 3 lety

    In Content Browser How can I create a c++ class for an actor in Content instead of c++ classes folder?

    • @riyansaeed2596
      @riyansaeed2596 Před 3 lety

      "Create new c++ class" option is missing because I tried to move my object and main actor which was alongside starter content into a new blueprint folder which I created in Content. After that "create new c++ class" option went missing.

  • @CombatFXZone
    @CombatFXZone Před 5 lety +2

    3:57 lmao

    • @DevEnabled
      @DevEnabled  Před 5 lety +2

      I'm guessing you have CC on?... YT seems to default to that regardless of how I pronounce it, I'm starting to worry about it having a bit of an obsession...

    • @CombatFXZone
      @CombatFXZone Před 5 lety +3

      @@DevEnabled don't worry, for a childish moron like me this "advanced humor for mature people" is a nice addition to your already great videos haha

  • @baconhairman
    @baconhairman Před 5 lety

    when i try to create the character class i cannot compile the files. Please help!

    • @DevEnabled
      @DevEnabled  Před 5 lety

      check the compiler errors, there're so many issues that it could be that it'd be hard to just guess. Also, make sure you have all the correct parts of VS installed and maybe even restart the pc just to check it's all synced up, that can sometimes be an issue for complete first-time installations.

    • @baconhairman
      @baconhairman Před 5 lety

      @@DevEnabled Thank you its now fixed

  • @lunaricko5759
    @lunaricko5759 Před rokem

    3:56 for real bro ?

    • @DevEnabled
      @DevEnabled  Před rokem +1

      😅CZcams hears what it wants to hear when generating the CC's. Suffice to say I've stopped saying Pawn now.

  • @thescrimsknight9554
    @thescrimsknight9554 Před 4 lety

    What do u do if the c++ compilie fails??? I have followed every step up to the compiling process. What do I do???

    • @DevEnabled
      @DevEnabled  Před 4 lety

      Read the output log, locate the error and fix it.

  • @ROSALIEIK
    @ROSALIEIK Před 3 lety

    bruh i broke my project like 5 times lol. just me?