How I Debug My Game | Finding & Fixing Bugs/Issues | Tutorial in Unreal Engine 5 (UE5)

3,145
0
Published 2023-09-17
Learning Goals:
1 - A simple process to narrow down and find the cause of bugs in your game
2 - How to use print statements to validate the execution of your code
3 - How to use the Unreal Engine Debugger to inspect the values of program at certain points in the execution cycle

What bugs I encountered in this video:
- Bug 1: Montage notify not executing
- Bug 2: Line trace colliding with the wrong actor/object
- Bug 3: Score function unintentionally called twice
- Bug 4: Sword slash combo being spammed when spamming the attack button due to an incorrect interrupt

To download the full project files from all my videos and use any assets I create in your own games for free, then join my Patreon. Also I would be forever thankful to my early adopters
www.patreon.com/Alizoh

Join my Discord server to chat and mingle with the community
discord.gg/AEnM4wvYzN

Link to part 1 of the "Smart Enemy AI" tutorial:
   • Smart Enemy AI | (Part 1: Behavior Tr...  

Link to the "Damage System" tutorial:
   • How to Build a Combat Damage System |...  

Link to the "Projectile System" tutorial:
   • How to Shoot Projectiles | Unreal Eng...  

Checkout my other tutorials on my channel:
   / @alielzoheiry  

Chapters:
00:00 What You'll Learn In This Video
00:50 Intro To My Mini-Game
01:33 Bug 1
07:53 Bug 2
12:09 Bug 3
17:48 Bug 4
28:59 Outro


About me:
I've been learning game development for a few years now, I do have a background in software engineering, and I also have a background in education, so being able to combine my love of gaming and love of education is the best way to spend my time.

I am currently working on this 3rd person action adventure game as a hobby, but I am also trying to build a community, thus I am creating YouTube tutorials to find others who are interested in game development and design.

If you are interested in learning more or if you are interested in working together, please let me know in the comments.


#unrealengine #unrealengine5 #ue5 #gamedev #tutorial #bug #debugging

All Comments (21)
  • @LegendOfCalvas
    Again, I have to say, this man is literally the best teacher on YouTube. I wish I would have known about this channel when I first started out. 💯
  • @occy999
    Dude my guy is like literally a legend, you really seem to know what you’re doing, you just seem so professional and can explain concepts, it helps so much and giving all this content away, I’ve been going through making my first game for the final year uni project. My game contains a large portion of the smart AI series and I wouldn’t be able to do it without you. This all ends in six weeks, I’ll post a video of it for YouTube then. I’m placing all my bets on unreal for my future lol but I’ll make it work
  • @Justlivin00
    This was very educational. I know ill be coming back to this in the future. Thanks for the video, and more videos like this are definitely appreciated. Thanks again 👍
  • @Chatmanstreasure
    Awesome video, been doing unreal for just about a year now. And slowly starting to grasp how to trouble shoot, Appreciate you!!
  • @roydash5657
    You not only amazing developer and person! You one of best developers who supported others! Thank you so much
  • @velocifossa
    Looking forward to the performance issue correction vid! I don't know if that'll cover discrepancies between the different PIE modes, but still useful nonetheless. Nice vid my dude!
  • @ericlagel
    Lovely video. Thanks for sharing these tips. Debugging is not always sexy, but it's great to see some focus on techniques we can use
  • @sami444L
    Thanks for this. Underrated video
  • @ShawnPolancoII
    Thank you for this tutorial! I hope you'd consider making some future content about giving your character the ability to switch between melee and ranged weapons just like in this video.
  • @Shizuma450
    Thank you Ali Elzoheiry, this video is really educational, and allows me to think differently when I want to debug, you really have an organized and clean method, it's impressive! We can feel that you've often been confronted with these problems haha, to the point that your way of debugging is really optimized. I've gotten into the habit of fixing a bug to create a new one... haha On the other hand, when you talk about fps drop ect... I must admit it would be incredibly instructive! I think your final message is very pertinent, and it's true, you're absolutely right. I really have the impression that creating a video game is 80% maintenance xD Thank you for this video, and for taking the time to show us an efficient and clean way of doing things!
  • @Nirah-qs7qr
    Thank you for this video! I know you aren't going to get as many likes for this video as others. But please make more!!! I'm going to subscribe to your patreon.
  • @occy999
    Definitely gonna do some exercises to help make this instinctual
  • @luckycogstudios
    This is awesome. Could you make a similar video on how to bug fix animation sliding / animations looking bad / not syncing up correctly with movement?
  • @sara-uh8xy
    Dam this is a solid videos the only debugging way i knew was to use the print string 😆 we good to expand the language, there still something that i don't full understand its about how breakpoint works ig i will have to use in my project to know about it better. Nevertheless, very well done :))
  • @hendra_winata13
    Please do performance profiling or optimizing especially when using lumen feature. Thank you so much!
  • @Istarsiva
    Can you make a map tutorial with automatic widget switchers in the world that activate when in doors?
  • @ryanjdevlin87
    You sir haven't taught me how to catch a fish you taught me how to hunt skin and cook moby dick himself !! your the best Ali thanks so much