User Request - Runescape Skill System: Part 2 - Unreal Engine 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • In part 2 of our Runescape Skill System replication series, we'll be covering the core logic that will drive the leveling of any given skill meter.
    Helpful Links:
    Structures - • Unreal Engine 4 - Stru...
    Data Tables - • Unreal Engine 4 - Craf...
    --------------------------------------------------------------------------
    Audio editing by the amazing:
    - www.jonathanev...
    - / jonathan-evans-a74979b9
    Music:
    Tonebox - Nocturn

ความคิดเห็น • 30

  • @jackmorton7406
    @jackmorton7406 4 ปีที่แล้ว +3

    The problem with the experience formula is in the order of operations. What you're doing is essentially putting the "level + 300" in parentheses, so it does that first. In the actual formula they are not in parentheses, so it does "300 * 2^(level/7)" first.

    • @konradsmith6550
      @konradsmith6550 4 ปีที่แล้ว

      How would I have to re-organize the nodes to achieve this affect?

    • @jackmorton7406
      @jackmorton7406 4 ปีที่แล้ว

      @@konradsmith6550 i.imgur.com/PHqXgYZ.jpg Something like that. It's kind of hard to parse out with the graph, but you can see the 300*2^(level/7) is separate from the index (current level). Technically this is still slightly off, as at 98 it requires 1 less xp than the actual game to level up, but it's as close as it gets.

    • @Cronza
      @Cronza  4 ปีที่แล้ว

      Ahh! Thank you for clarifying that Jack. I was reading that getting the exact results that Runescape uses was some tricky business (given how floating point values get strewed). Glad to hear that its possible to get that close!

    • @gamingwithtor1802
      @gamingwithtor1802 3 ปีที่แล้ว

      awesome, thanks for this! I'm horrible at math...It's always been a problem when programming, lol. I tried for years to convince myself programming didn't require math, but it do! :D

    • @jackmorton7406
      @jackmorton7406 3 ปีที่แล้ว +1

      @@gamingwithtor1802 It definitely does! I hated math for a long time, but it turns out no one teaches it right. Coming at math from the angle of "this is this way because it is and don't question it" doesn't teach you anything, it's just memorization, which I am terrible at. But if you understand WHY something is the way it is, and go through how the solution works, it works much better to understand it, and for me, makes me like math much more. Theory vs Practice is very important. Linear algebra made me realize this more than anything. It requires a lot more "puzzle solving" I would say than something like algebra, so you end up working through a problem that makes sense in the real world, instead of just "solve for x".

  • @goosestreamx6535
    @goosestreamx6535 4 ปีที่แล้ว

    Loving these little runescape tutorials

  • @ugxgaming6541
    @ugxgaming6541 3 ปีที่แล้ว

    I wonder if you could use blueprint components for the skills

  • @Tsitex
    @Tsitex 3 ปีที่แล้ว

    please could you continue the runescape/other game mechanic tutorial love them!

  • @TFx2TV
    @TFx2TV 2 ปีที่แล้ว

    Great tutorial keep up the good work. The explanation is excellent!

  • @linka711
    @linka711 5 ปีที่แล้ว

    incredible! how would you go about creating the experience events? as in when you mine a rock, you award the experience. cheers

  • @ryanbayley6139
    @ryanbayley6139 4 ปีที่แล้ว

    Keep it up mate, been looking for this exact video!!!!

  • @larry04
    @larry04 3 ปีที่แล้ว

    The skill panel shows up but i keep on getting this error message Blueprint Runtime Error: "Failed to resolve the table input. Be sure the DataTable is valid.". Blueprint: WG_SKILL_METER Function: Execute Ubergraph WG SKILL METER Graph: EventGraph Node: Get Data Table Row

    • @Tsitex
      @Tsitex 3 ปีที่แล้ว

      i don't know if you're still looking to fix this but just fill other empty skill slots just had the same issue

  • @lunawolve
    @lunawolve 5 ปีที่แล้ว

    It has released \o/
    Thanks for the awesome guide as always!

  • @brandthedon3
    @brandthedon3 4 ปีที่แล้ว

    Hey Garrett Love your content. In the back half of this coding video I can't seem to "UpdateUI" because it's not found in Skill_Panel and is found in Skill_Meter, how do I find Update_UI in Skill_Panel, if we defined it in Skill_Meter? Any help would be great thanks

    • @brandthedon3
      @brandthedon3 4 ปีที่แล้ว

      Realized I had 'UpdateUI' somewhere else. I'm good! Great tutorial my friend

  • @IBurntFaceDog
    @IBurntFaceDog 4 ปีที่แล้ว

    Awesome tutorial. Thank you so much for this. I had created my own but it did not work half as well as this (and this is easily scalable). One question though - how would I figure out how to surpass more than one level if I get a big chunk of exp at once? Say 1000exp from 1 should take me to about 9 or 10. No matter how much exp I currently give at once, it only levels once.

    • @IBurntFaceDog
      @IBurntFaceDog 4 ปีที่แล้ว

      I figured it out, and I'm pretty sure this wasn't covered in the video, but you just need to run the UpdateSkill function again after calling the Skill Level Up function inside UpdateSkill. Here's a screenshot i.imgur.com/gWPkceu.png

  • @IBurntFaceDog
    @IBurntFaceDog 4 ปีที่แล้ว

    Me again. How would I go about saving the experience/levels and have it load those values when the game starts? I'm familiar with save game objects but as I understand, currently the pre-construct references a data table which is read-only, so starting up the game again will always reset progress to 0.
    And also how would you reference the current levels to check that the player has reached a certain level before being able to perform certain actions? Like needing a mining level of 10 to mine certain nodes etc.

    • @IBurntFaceDog
      @IBurntFaceDog 4 ปีที่แล้ว

      Figured out how to check the current levels. I bet I'll be back soon to tell you about saving the skills 😅

  • @jackmorton7406
    @jackmorton7406 4 ปีที่แล้ว

    This is awesome! Any reason in particular you wouldn't want to store the skill values in the player controller? I am still trying to learn UE4, but that seems intuitive to me, so I'm sure there's a reason not to, I'd just like to know it. 😊

    • @Cronza
      @Cronza  4 ปีที่แล้ว

      Excellent point! The simple answer is: There is no particular reason.
      Normally, information about the player (skill levels included) should live in the player controller, or at least the player character. For this particular example, I found it easier to keep the relevant skill information to a given meter with the meter itself (Centralizing the information). However, i'd definitely recommend what you mentioned: Move that information into the player controller.
      Also, "I am still trying to learn UE4"
      The fact you even asked this question, and provided the possible solution like you did shows you already have a great grasp of what "right" looks like. Keep it up!

  • @konradsmith6550
    @konradsmith6550 4 ปีที่แล้ว

    ~~~~~~~~~~~~
    Please I need help I don't know what to do
    ~~~~~~~~~~~~
    When I press E to test I only get the "Max Level Achieved" message and my panel stays the same, I looked through the functions for the level up and max level and it all looks right. What am I doing wrong?
    Edit: I was able to fix part of it, I am now leveling up but the panel still shows me at level 1 no matter what level I'm actually at.
    Edit 2: I spent another hour to try and get it to work and I've fixed multiple errors but nothing has fixed the problem of the panel only showing me at level 1.

    • @groundzero2221
      @groundzero2221 4 ปีที่แล้ว

      hey, just wondering how you managed to fix the first part?

    • @konradsmith6550
      @konradsmith6550 4 ปีที่แล้ว +1

      I was missing a connection, I just rewatched and followed along in my script until I noticed a connection was missing in mine

    • @Cronza
      @Cronza  4 ปีที่แล้ว

      Im sorry for not getting back to you earlier Konrad! I've definitely had that happen to me before. Im glad you were able to figure it out :)

  • @Mr.Biegel
    @Mr.Biegel 4 ปีที่แล้ว

    anyone got this right ?
    i need some help please

  • @brendinventer6407
    @brendinventer6407 3 ปีที่แล้ว

    You should comeback to making TH-cam videos! 😭