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

Поділитися
Вставка
  • Опубліковано 19 чер 2024
  • 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
    / alizoh
    Join my Discord server to chat and mingle with the community
    / discord
    Link to part 1 of the "Smart Enemy AI" tutorial:
    • Smart Enemy AI | (Part...
    Link to the "Damage System" tutorial:
    • How to Build a Combat ...
    Link to the "Projectile System" tutorial:
    • How to Shoot Projectil...
    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 UA-cam 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
  • Ігри

КОМЕНТАРІ • 60

  • @LegendOfCalvas
    @LegendOfCalvas 9 місяців тому +2

    Again, I have to say, this man is literally the best teacher on UA-cam. I wish I would have known about this channel when I first started out. 💯

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому +1

      Thank you so much for your support. I'm glad you like the content, and good luck on your game, it's looking great ;)

    • @LegendOfCalvas
      @LegendOfCalvas 9 місяців тому

      Thank you, really appreciate that! and keep up the good work! Love the channel!! @@AliElZoheiry

  • @Justlivin00
    @Justlivin00 9 місяців тому +1

    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 👍

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Thank you for the feedback, really glad you liked it, I'll try to make more educational content like this

  • @occy999
    @occy999 9 місяців тому +2

    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 UA-cam then. I’m placing all my bets on unreal for my future lol but I’ll make it work

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Thank you for all the kind words, I really appreciate your support 🙏 Good luck on your Uni project, curious to see it when it's done

  • @Chatmanstreasure
    @Chatmanstreasure 9 місяців тому

    Awesome video, been doing unreal for just about a year now. And slowly starting to grasp how to trouble shoot, Appreciate you!!

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Thank you, I really appreciate your support. Glad you found this useful 🙏

  • @themeskimoze
    @themeskimoze 9 місяців тому

    great concept, tutorial and demonstration

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Glad you liked it. and thank you for always watching 🙏

  • @ericlagel
    @ericlagel 9 місяців тому

    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

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      You're very welcome, glad you found it useful 🙏 it's indeed not the sexiest topic, but I hope it helps a lot of people fix bugs easier

  • @hauntingalpha5195
    @hauntingalpha5195 9 місяців тому

    another great tutorial, that can be used for all scenarios!

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Thank you! Glad you found it useful 🙏

  • @Shizuma450
    @Shizuma450 9 місяців тому

    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!

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Thank you as always for your support Shizuma, indeed a huge part of building software in general is debugging and maintenance, so it's really important to keep improving that skill.

  • @velocifossa
    @velocifossa 9 місяців тому

    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!

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Glad you liked it! I'll start planning the performance video soon

  • @ShawnPolancoII
    @ShawnPolancoII 9 місяців тому

    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.

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      You’re most welcome. Glad you liked it, I will indeed be adding some of these elements to my AI series, to test out the melee combat system of the enemies with melee attacks from the player themselves

  • @sami444L
    @sami444L 6 днів тому

    Thanks for this. Underrated video

    • @AliElZoheiry
      @AliElZoheiry  День тому +1

      Hey, thanks for watching! I'm glad you found it helpful. Your feedback means a lot 🙏

  • @Nirah-qs7qr
    @Nirah-qs7qr 8 місяців тому

    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.

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      Thanks again Nirah, I really appreciate the support 🙏

  • @roydash5657
    @roydash5657 9 місяців тому +1

    You not only amazing developer and person! You one of best developers who supported others! Thank you so much

    • @roydash5657
      @roydash5657 9 місяців тому

      I am really so sorry.
      Please forgive me.
      I am right now work's 7 different Enemies AI. (I am uses your AI Too).
      I am just wanted you making Boss AI like DMC/Dark Souls.
      Please forgive me my order.
      I am just wanted to make good game for find job. Really appreciate your help.
      I am really so grateful for your amazing tutorials. I wish you all the best.

    • @after9485
      @after9485 9 місяців тому

      @@roydash5657 it's really will be Awesome! I'm buying so many animations like a DMC. If I put this animations boss. It's will be PERFECT

    • @greatoni8452
      @greatoni8452 9 місяців тому

      @@after9485 I Agree 👍
      Ali is the best developers EVER! Ali can making really robot! Just kidding :)
      Honestly in my project too needs BOSS AI ENEMY! It's sounds like a Very Cool!

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому +1

      Thank you as always Roy, you're always very kind. I will definitely be doing a boss fight tutorial, just not sure how soon it will be yet because my plan isn't very clear at the moment unfortunately, but I will let you know when I start working on it

    • @roydash5657
      @roydash5657 9 місяців тому

      @@AliElZoheiry I am really so grateful for you. I am wishing you all the best!
      I am really so gladly supported you.

  • @sara-uh8xy
    @sara-uh8xy 8 місяців тому

    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 :))

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      Thank you Sara 😊 really glad you found it useful 🙏

  • @occy999
    @occy999 9 місяців тому

    Definitely gonna do some exercises to help make this instinctual

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      It's all about that practice ;)

  • @luckycogstudios
    @luckycogstudios 5 місяців тому

    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?

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      Hey, thank you for the suggestion, I'll definitely take it into consideration 🙏

  • @brokleshman
    @brokleshman 8 днів тому

    you the man

  • @hendra_winata13
    @hendra_winata13 9 місяців тому

    Please do performance profiling or optimizing especially when using lumen feature. Thank you so much!

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      I'll definitely be planning it, it's an interesting topic for me as well 😊

  • @ryanjdevlin87
    @ryanjdevlin87 6 місяців тому

    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

    • @AliElZoheiry
      @AliElZoheiry  6 місяців тому +1

      It is my pleasure Ryan, I'm very happy to see that you saw the value in this video. It definitely didn't get as much love as my other's, so I was starting to think that people didn't care about fixing bugs 😂 you have restored my faith 🙏

  • @Istarsiva
    @Istarsiva 9 місяців тому

    Can you make a map tutorial with automatic widget switchers in the world that activate when in doors?

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      What do you mean by automatic widget switchers?

    • @Istarsiva
      @Istarsiva 9 місяців тому

      @@AliElZoheiry I mean when going inside a building or a cave the map texture switches accordingly !

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Ahh ok, I understand now 👍

  • @roydash5657
    @roydash5657 8 місяців тому

    Mr Ali I need your advice.
    I am really so sorry for disturbing you. I made a 2 Damage system, but they had problems (AOE damage did not work sometimes). Mr. Ali your damage system good for rpg games? Please don't think bad Idea. I mean Mr. Ali your damage system can attack many enemies at the same time?
    I am just not want wasted time searching or making damage system. I am really so want to making this game (I am already wasted so many times). Please you can give me advice?

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      Hey Roy, yeah the damage system can be used to damage multiple enemies at once, it's actually not the damage system that's responsible for that, but how you set up your attack

    • @roydash5657
      @roydash5657 8 місяців тому

      @@AliElZoheiry You awesome person in this world. You really very good person.
      Thank you so much

  • @user-xv6hh8iw8m
    @user-xv6hh8iw8m 9 місяців тому +2

    及时雨。 Teach a man to fish.

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Hahaha indeed, that's what I aim to do :D