Unreal Engine 5 Tutorial - Inventory System Part 7: Inventory Widget

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии • 241

  • @NekotTheBrave
    @NekotTheBrave Год назад +22

    For those on 5.3, when creating a new player controller, be sure to copy the "begin play" code from the previous player controller so that you can move around and whatnot. This is related to the new "enhanced input local player subsystem" that deprecated the old action mapping system.

    • @HHondi
      @HHondi Год назад

      thank u so much, this helped, been trying to find out why it doesnt work for me

    • @ZealousAvenger
      @ZealousAvenger 11 месяцев назад

      Freaking thank you, I just encountered this issue.

    • @NekotTheBrave
      @NekotTheBrave 10 месяцев назад

      @@ZealousAvenger Hey, No problem. This is why I posted it.

    • @Redvil01
      @Redvil01 10 месяцев назад

      I didn't copy anything and can still move around. I actually questioned the logic of that myself.

    • @infumiinations1311
      @infumiinations1311 10 месяцев назад +1

      Copy it where the begin play only allows me to for to “create W Player HUB Widget” or the other how to I get begin play to set both

  • @Qworco
    @Qworco Год назад +38

    Instead of binding a key to i for example if you want to use the IA input system you can,
    Inside the On key down. get enhanced input local player subsystem from that query mapped keys to action then set your input action for me its IA_Inventory. Put that into a for each loop, From the In key event on the On key down function pull a Get Key node. Compare the return value to the array element with a == node and then put that into a branch before doing remove from parent.

    • @travelmidgard
      @travelmidgard Год назад

      by any chance could you make a video explaining that a bit? cheers man

    • @rogerfoster8020
      @rogerfoster8020 Год назад +8

      Not a video but hope this helps
      First go to the On key Down function created in the video. Now right click and type in "enhanced input local player subsystem", then drag off the blue pin and type 'query keys mapped to action' on the left hand side select your inventory action for me it was "IA_Inventory"
      That returns an array of any keys mapped to the specific action so for example as the video did I and the special key on the controller. Then drag off the return value and look for the node "Contains" The Contains node should replace the equals node he used with the I key and any other key.
      So to Recap. On Key Down function .get key. Contains ( which has the described Query keys above it). Branch. Remove from Parent. Return. @@travelmidgard

    • @lenat_1
      @lenat_1 11 месяцев назад

      Thank you! This is just what I needed!

    • @storeboughtrocketgames2560
      @storeboughtrocketgames2560 10 месяцев назад

      Great! I was definitely wondering why he was hardcoding in the key mappings. Glad there's another way.

    • @luke0812
      @luke0812 9 месяцев назад

      @@rogerfoster8020 Incredibly useful. Thank you so much!

  • @1999buba
    @1999buba Год назад +7

    4:30 I don't have any tabs, what could I have done wrong?

  • @KirillZandaryan
    @KirillZandaryan 2 года назад +35

    Hi, great lesson. In "My Player Controller" -> Event Begin Play -> Create W Player HUD Widget -> "Owning Player" is not connected -> you need to connect "Get Player Controller" otherwise there will be an error.
    Maybe I corrected it in further videos, it will be useful for those who are watching now.

  • @WebbyStudio
    @WebbyStudio Год назад +8

    i just started learning unreal 2 weeks ago, and i found your channel after getting frustrated trying to follow an inventory system tutorial by another youtuber and kept getting bugs and issues (quit on video #5), and often found steps not explained in their videos. by contrast your tutorial is well organized and easy to follow and i've had no bugs and already here at video #7. i'm considering joining your patreon. keep up the great work.

  • @mitacdaniel6624
    @mitacdaniel6624 Год назад +8

    There is a error at 3:22 .
    When you display the W_PlayerMenu, you create a new widget each time you call the method. But when you exit menu, you just do RomoveFromParent(not actually destroing it).
    That is wrong. You should check it the widget allready exists, and add the existing one back to the HUD.
    Great tutorial thought. Keep up the good work!

    • @Redvil01
      @Redvil01 10 месяцев назад

      That's because the inventory is only updated when you create it, so if you just add the existing one, new items won't show in the inventory. I've tried.

    • @jakespencer917
      @jakespencer917 6 месяцев назад +4

      @@Redvil01 He is correct on this error. And you should be able to update the inventory any time it is opened either way. Technically you do not want to just keep creating inventories. That is a major issue.

  • @ArtistficiallyZ
    @ArtistficiallyZ Год назад +6

    Didn't think personally the Event destruct was the best way to go so I setup a bool on whether the menu was displayed on the player controller true or false'd it to hide or display the inventory then set the menu as displayed or not displayed in the bool, just thought it was better to gate it then on destruct which was giving me inconsistencies when I hit the key quickly.

    • @davidosrs6978
      @davidosrs6978 Год назад

      hey, how exactly youo do that? after display inventory in the pre construct you add a bool 'Menus is displaying' to true? what should i do next? sorry for noob question
      thx

    • @ArtistficiallyZ
      @ArtistficiallyZ Год назад +2

      @@davidosrs6978 I did it in the Player controler on input action inventory pressed, I just created a bool called is menu displayed? Branch true >hide menu >Set is menu Displayed=false, False >Display player menu> Set is menu displayed True.
      Probably a downside to doing this I haven't ran into yet, I am a little rusty myself have not touched Unreal in 5 months, half following tutorials tacking on what I prefer trying to get back where I was, still running into lots of issues myself picking up container replication but im sure ill get back there soon.
      the important thing is to start to understand the concepts rather then just the A>B in these tutorials, debuging with print strings, how you can gate with bools, use for loops in arrays, casts etc.

    • @davidosrs6978
      @davidosrs6978 Год назад +1

      @@ArtistficiallyZ thx alot bro, i fixed it, did a boolean too and change somethings =)

  • @StopItRyan
    @StopItRyan Год назад +5

    7:50 why are we hard coding the "I" key to remove the inventory widget, isn't the whole point of an input event so it can later be changed by the player? Is there another way to do this? Why can't we do a flip/flop on the player controller or something?

    • @brunoraposo3807
      @brunoraposo3807 Год назад +3

      i would love an answer for this one too

    • @jakespencer917
      @jakespencer917 6 месяцев назад +2

      you can. You are actually right here. I am not sure why Ryan did it this way at this point in time but this is not the right way to do it.

  • @Ser0zine
    @Ser0zine Год назад +48

    If anyone notices that when clicking anywhere outside the inventory it doesn't toggle off, just set the canvas as visible in the behavior

    • @tanver3d982
      @tanver3d982 Год назад

      what behavior

    • @Ser0zine
      @Ser0zine Год назад +3

      @@tanver3d982 On the behavior section of your root widget set the visibility to visible

    • @dangerkatdev
      @dangerkatdev Год назад

      When I open my inventory, I have to press the open button twice (after the first time that I open my inventory). Do you happen to know why this is happening?

    • @t3chkn1ght
      @t3chkn1ght Год назад

      Is that in the player menu widget or the inventory grid widget?

    • @Ser0zine
      @Ser0zine Год назад +1

      @@t3chkn1ght Player menu

  • @Redvil01
    @Redvil01 10 месяцев назад +2

    If you pick up an item while the inventory is open(can't do it if you disable controls though) the inventory isn't updated. Unfortunately this inventory system wasn't designed for allowing actions while the inventory is open, which is useful for a game with any kind of action.

    • @mindofyears
      @mindofyears 10 месяцев назад

      I need to find a way to update the Inventory UI whenever the Inventory Contents changes.

  • @TruixBeams
    @TruixBeams Год назад +4

    Mine isn't popping up the slots when opening the inventory, im at 9:20... i'll look through again and see if I messsed something up, but I don't know what it might have been

    • @swipsi6858
      @swipsi6858 Год назад +3

      had the same problem,. If yours is (was?) like mine, then it is because in the InventoryGrid Widget the EventPreConstruct fires before the DisplayInventory Event. Which makes sense, because when we call the inventoryGrid Widget via the DisplayInventory function, the widget gets constructed before the DisplayInventory fires, since its a PREconstruct.
      I solved it by just putting a DelayUntilNextTick Node between EventPreConstruct and IsValid (InventoryComponent). This causes the DisplayInventory Event to fire first so InventoryComponent can be set before the PreConstruct Event tries to validate it. Otherwise the Validate is invalid, thus nothing happens and it doesnt create the slots.

    • @TruixBeams
      @TruixBeams Год назад +1

      @@swipsi6858 I did fix mine, mine was a more blunt force type fix. I also had to remove the is valid. also had a lot of debug prints😵

    • @swipsi6858
      @swipsi6858 Год назад +2

      @@TruixBeams actually my previous comment is wrong. Fixed by simply connecting the output of the removeChildren node to the validate node and it works fine.

  • @andrewdavis4190
    @andrewdavis4190 9 месяцев назад +1

    Those getting stuck on the Keybinding I section at the 8min mark where player controller isnt connected I just added get player pawn to the target of get player controller and this allows for the function to work as intended

  • @KnitterX
    @KnitterX 2 года назад +8

    We set an input action for opening the menu but then we hardcode the keys for closing the menu to be I or Gamepad Special Right. Wouldn't it be better to also use the input action for closing the menu?

    •  Год назад +2

      Exactly the same problem for me. I tried different technique, and unfortunately, I can't find a way to use input action for that. This causes an issue, if the player changes the mapping of the keys in-game, he will always have to call the key that has been hardcoded.

    • @yushkovyaroslav
      @yushkovyaroslav Год назад +1

      @ Well you don't have to do everything the exact same way as this guy. You can set the key to a variable if you want to be close to what he did. But in general, you can do a simple flip flop in your player controller and call another event in the HUD. Instead of destroying the widget in the player menu you can destroy the widget in the HUD. That way you are using the same input action. Maybe even better to just hide it instead of destroying it and creating it again every time but that's up to you. And you don't need to worry about it ever creating multiples of itself and player does need to stop while using inventory. Its better to do it like that, not sure why he used the other way but then again, it's all relative, I guess.

    • @moiseman
      @moiseman Год назад

      For anyone who wants to do this dynamically, go to player controller BP, promote the key output of your "InputAction Inventory" event to a variable, set to the key that is output, then go back to your Player menu widget, and add Get Player Controller, Cast To Player Controller BP and then get your key variable from here and compare it to key that is being pressed.

    • @snowbeat936
      @snowbeat936 Год назад

      If you need see my comment

    • @KnitterX
      @KnitterX Год назад +1

      @@snowbeat936 What comment?

  • @MiitchPhOeNiXzZ
    @MiitchPhOeNiXzZ Год назад +3

    If anyone runs into not being able to spawn the menu, just make sure that in World Settings, you change the Override Game Mode to be your Custom Gamemode

  • @bellisperennissturdivant
    @bellisperennissturdivant Год назад +1

    so far so good, thanks for these videos. hope i make it to the end

  • @darrylmorin7112
    @darrylmorin7112 2 месяца назад +1

    Great Tutorials. I used a popup widget on my wrist and no HUD. Everything work except no apple pops up in my inventory. As in previous tutorials when i hit #1 it shows that it was picked up but when i open my inventory, nothing is there. I think I missed something you did with the HUD that finishes the connection that I am missing. I tried leaving the Item ID as apple and still nothing in my inventory. Seems to me the slot is not talking to the inventory grid. Please help 😊

  • @HichsOhnezahn
    @HichsOhnezahn 4 месяца назад

    Hi all, on 4:42 he opens up the inventory and has 16 empty slots in it. I followed the tutorial so faar but I have no slots in my inventory from default/ have no elements added to the arry. Can somebody help me where I missed something or if anybody ran into the same problem.

    • @HichsOhnezahn
      @HichsOhnezahn 4 месяца назад

      I guess I found the sollution:
      In episode 5 he resizes the Array which I forgot to do.
      ruclips.net/video/-cdzw9YE-MM/видео.html
      at about 23:28

  • @asieri8308
    @asieri8308 3 месяца назад +1

    I get the error: Blueprint Runtime Error: "Accessed None trying to read property HUD". Node: Add to Viewport Graph: EventGraph Function: Execute Ubergraph My Player Controller Blueprint: MyPlayerController. I added get player controller on owning player in the myplayercontroller bp. any help?

  • @erhanpro106
    @erhanpro106 4 месяца назад +1

    when i get the item the icon shows up on the server but doesn't work for local players. what could i have done wrong.

  • @louthinator
    @louthinator 8 месяцев назад +1

    I'm getting an issue where the icon and the counter for the item widget is only half opacity for some weird reason. Like you can see the background box through the counter

  • @pitipito
    @pitipito 2 года назад +6

    @RyanLaley I'm following this beautiful tutorial everything seems pretty strong and it's all well explained, but I have a problem.
    Whenever the inventory opens, if the player clicks oustide de inventory (but in the game screen) the closing with the I key doesn't work anymore, any idea how to fix this?

    • @Tegurd
      @Tegurd Год назад +2

      Having the same problem. Did you solve this?

    • @pitipito
      @pitipito Год назад +2

      @@Tegurd nope, srry

    • @Madway_tv
      @Madway_tv Год назад +4

      If anyone notices that when clicking anywhere outside the inventory it doesn't toggle off, just set the canvas as visible in the behavior

    • @studiobaxter1242
      @studiobaxter1242 Год назад

      Setting the canvas to visible works here, but becomes a problem later in the hotbar tutorial. I don't know the solution yet.

  • @ChezComics
    @ChezComics 2 года назад +1

    Series is helping me a lot, thank you!

  • @CHASELAVANCHER-b6p
    @CHASELAVANCHER-b6p 10 месяцев назад +1

    with the top down in 5.3 I can toggle the inventory and untoggle it, the second i click off the inventory onto a part of the screen i cant close it. then when it does close, i have no input movement

    • @merlethibault7076
      @merlethibault7076 9 месяцев назад

      I have the same problem. I have to make a double click to get back the movement. I have to do it everytime i want to move from this moment. Did you find a solution ?

  • @jellyfish6042
    @jellyfish6042 Год назад +2

    I've checked several times but still can't see a problem. Having the same issue all the time: "Blueprint Runtime Error: "Accessed None trying to read property HUD". Node: Add to Viewport Graph: EventGraph Function: Execute Ubergraph BP Custom Controller Blueprint: BP_CustomController"
    Can someone help me please?

    • @doomducker
      @doomducker Год назад

      im having the same issue i also have double checked the last few videos worth of stuff for anything i have missed and found nothing wrong
      if you have a solution can you post it and if i find one before hand ill try reply with the fix

    • @doomducker
      @doomducker Год назад

      ok so i had to move everything from "MyPlayerController" into my BP_ThirdPersonCharacter" or first person depending on your game (i also re watched the last 2 videos like 3 times and made 100% sure nothing was different
      i also used the IA enhanced inputs instead of the old way he did it
      i think that error is happening because the controller is not being called properly in the game mode when you set the player controller

    • @joshlawley8335
      @joshlawley8335 10 месяцев назад +1

      Found a solution. I dont think its the most acceptable solution but it works. Eventually I will change it to the new enhanced input local player subsystem.
      Utilizing the original BP_FirstPersonPlayerController add the Create Widget, Hud, and Add to viewport to the end of the Add Mapping Context instead of creating a new event

  • @jeffersonhighsmith7757
    @jeffersonhighsmith7757 5 месяцев назад +2

    Has anyone made a thread or a tut or anything to fix all the bugs that prevent this from working in 5.4? Would be a pity to scrap this series, as I was just starting to enjoy it. It's my first programming experience so I don't have the expertise to go through and figure out how to fix it on my own. I guess I'll have to start with some simpler tutorials and come back to this later.

  • @terryp594
    @terryp594 9 месяцев назад

    Just curious, has anyone had the issue at 8:55 the inventory is not going away, it just keeps adding. I did the deconstruct and everything looks good also i have went over the tutorial multiple times and it seems i haven't missed anything? Any help would be greatly appreciated. I'm on 5.3. BTW: Very good series everything has worked far and its sure easy to follow and I'm looking forward to completing it.

    • @MikeJenifer
      @MikeJenifer 9 месяцев назад +1

      For me personally, I had to map the Display Player Menu event to the "Completed" enhanced input action node, not the "Triggered" node to get the inventory to do away. I'm also using Enhanced Input Actions instead of the regular Input Actions

    • @HenryTheOneAndAHalfth
      @HenryTheOneAndAHalfth 8 месяцев назад

      @@MikeJenifer Gotcha, this fixed it for me o7

    • @Dhdowned
      @Dhdowned 6 месяцев назад

      @@MikeJenifer marry me bruh, Thanks a lot

  • @Vesperse
    @Vesperse 6 месяцев назад +1

    WARNING WARNGING EVERYONE if you come back to this video after experiencing the no item slots appearing in the next episode ep(7)there are 2 things you could've missed 1 you forgot to set your inventory size variable to more then 0 . Or 2 my problem at 16:50 ep 6 he plugs the clear all children into the get is valid DO NOT FORGET THIS

  • @aelfneir992
    @aelfneir992 10 месяцев назад

    if anyone was having trouble with the slots not showing up in the grid, make sure that you don't have a canvas panel for the slot or the grid -- my slots weren't showing and I realized by habit I had thrown a canvas panel into both the grid and the slot. See if that fixes your problem (it fixed mine!)

  • @ciirdan4013
    @ciirdan4013 6 дней назад

    So I noticed something while using a different keybind for the "display inventory" If you click on an item slot in your inventory and then press Tab, it highlights the next inventory slot. Is there anyway to disable this?

  • @RileyMacfarlane-cg3or
    @RileyMacfarlane-cg3or 11 месяцев назад +2

    Hey, Thanks Ryan Laley for these tutorials has been a great help!! Unfortunately though I have run into an issue at 5 mins, would anyone be able to give me a hand? my inventory slots don't show up when I press I to toggle the inventory, only the Inventory grid UI appears I have tried to go back through this episode and the previous one to make sure I haven't made any mistakes but cannot work out what it would be. Thanks in advance :)

    • @TheP1x3l
      @TheP1x3l 11 месяцев назад +1

      I would go back through the previous video as well since that's where that part was set up. And check your output log and see if it's giving you any specific error.

    • @RileyMacfarlane-cg3or
      @RileyMacfarlane-cg3or 11 месяцев назад

      will give this a go thanks@@TheP1x3l

    • @purpledraff293
      @purpledraff293 10 месяцев назад +2

      Hello Riley I came across this exact same issue. It was a super easy fix and I wanna make sure anyone else who may come have this same issue has and answer. If you go back to your inventory component there is your inventory size variable make sure you tell it how many slots you want it to have. This fixed it up for me.

    • @mrrussiantv8492
      @mrrussiantv8492 10 месяцев назад

      InventorySystem --> InventorySize (In details on bottom change value to see squares.) @@TheP1x3l

    • @mrrussiantv8492
      @mrrussiantv8492 10 месяцев назад

      InventorySystem --> InventorySize (In details on bottom change value to see squares.) @@purpledraff293

  • @alinaikorina2570
    @alinaikorina2570 Год назад +3

    The videos are great and simple to follow. But i have one problem, when i collect the Item and open the Inventory to check the item didn't appear in any of the slots (all Slots are visible in the grid) with the icon. I don't know how to figuret this out (new in Ue5) can someone help? I use UE 5.2

    • @K1N3RGY
      @K1N3RGY Год назад

      Did you ever figure this out?

    • @captaintromaras616
      @captaintromaras616 2 месяца назад

      hello did you find any fix for tha i have the same problem...

    • @captaintromaras616
      @captaintromaras616 2 месяца назад

      @@K1N3RGY did you find any solution for that?

    • @K1N3RGY
      @K1N3RGY 2 месяца назад

      @@captaintromaras616 Pretty sure it was just something I'd missed while watching

  • @SoggySocksGames
    @SoggySocksGames 5 месяцев назад

    I had a couple of issues when I tested the stacks here.
    (1) When ever I picked up a new item, it would toggle through the first slot in the inventory, meaning that if I picked up a new item it would be in slot one, then if I picked up the next it would remove that, and leave my inventory empty - my fix for this was in "AddToStack" function in the InventorySystem. I somehow forgot to connect ItemID up between the 'GET' and 'Make FSlotStruct.
    (2) a new issue I then noticed was that each new stack that was meant to be made was either replacing the first stack, or just not being made. After a bunch of print debugging, I found that it was just always using the same "index" slot when trying to create it. - My fix was that I had also forgot to connect the "Empty Index" in the return node up to the "Array Index" in the ForEachLoop of the "AnyEmptySlotAvailable" function, also in the InventorySystem.
    I gotta be more attentive lol - hope my hour of print debugging helps someone

  • @shawdawg.gaming
    @shawdawg.gaming 7 месяцев назад

    Hello, this tutorial has you add the HUD widget to the player controller and another tutorial I watched had you add the HUD to the player character. I was wondering if anyone could tell me the difference (if any) and why you would choose one over the other?

  • @fuzzydon7693
    @fuzzydon7693 2 года назад +4

    Thank you Ryan, this series is awesome! Does the Enhanced Input system allow for get key down events? I don't see the documentation mentioning anything about it.

    • @MrMeat570
      @MrMeat570 Год назад

      It Does, i tried and it works perfectly

  • @darrenj.griffiths9507
    @darrenj.griffiths9507 Год назад +2

    Anyone know why my client's items are not appearing in it's inventory but in the server's inventory only?

  • @beckystreet7756
    @beckystreet7756 Год назад +2

    So I’m having an issue where if I manually add the item straight into player character, it shows up in the inventory window but if I pick up an item from the world, it doesn’t show in the inventory window. But when I do the debug of pressing 1, the item shows as being in the inventory. So why is it I can’t see it in the actually slot?

    • @PikBo100
      @PikBo100 Год назад +2

      have same problem ((( did you fixed?

  • @mattshroom33
    @mattshroom33 5 месяцев назад

    PlayerController; Need to set a "isvalid" for the return value of W Player HUD, as it does not load in time and will spit out an error (or create a timer to recheck)
    W_PlayerHUD needs to check whether menu is valid, if not then create the menu widget, if it is valid, and is visible = flalse pipe that back into create w player menu widget
    On W_PlayerMenu, create an "event on focus lost" event and set input mode ui only, ref to self, get player controller, and set mouse cursor to true

  • @tomtornados6236
    @tomtornados6236 Год назад +2

    If I change the variable type of the "Menu", the editor freezes for eternity. Why is that?

  • @kazunha9759
    @kazunha9759 2 года назад +1

    THX!! your videos are very well explained, I'm thinking of subscribing patron so I can watch them before :D

  • @madisonwentz1961
    @madisonwentz1961 11 месяцев назад

    I am trying to add the Inventory Menu to a Player Menu popup (running with a widget switcher) but for some reason the contents (when I pickup the Flashlight) don't show - They do show when I open the same Inventory Menu on it's own. What might cause it to not update in the switcher? -
    Switcher works fine and works even with your Building tutorial, so I'm likely missing an obvious thing

  • @Eatyomuffin
    @Eatyomuffin Месяц назад

    Through the help of a colleague, I figured out how to move after implementing your new player controller. (This is for first person code) You got into BP_FirstPersonController. Grab everything inside the comment "assign the input mapping context for player controls." Grab those nodes from begin play to add mapping controls. You cut them from that blueprint. Then you go to myplayercontroller and paste it. Delete the custom event or event begin play and plug in the add to viewport into the is valid node then you should be fine.
    Thanks Khelben!

  • @michelhafliger536
    @michelhafliger536 11 месяцев назад +1

    at 4.45 my hud opens but i cant see a grid i double checked everything but cant find the wrong code.... anyone an idea? im on 5.3.

    • @purpledraff293
      @purpledraff293 10 месяцев назад

      Check your inventory component. mine was set to 0 for inventory size.

    • @HichsOhnezahn
      @HichsOhnezahn 4 месяца назад

      I had a similar problem where none of the slots showed up. I guess I found the sollution:
      In episode 5 he resizes the Array which I forgot to do.
      ruclips.net/video/-cdzw9YE-MM/видео.html
      at about 23:28

  • @lunhong5511
    @lunhong5511 Год назад +1

    How to do if myplayercontroller is not working?I let it print something but nothing to show .Can anyone help 😢

  • @erksipa
    @erksipa 5 месяцев назад

    Is there any point in making a player controller now?

  • @Abc-tx4zr
    @Abc-tx4zr 2 месяца назад

    how do you fix clicking with the inventory system open and causing the menu to darken. It seems like every time you click and press i the inventory duplicates, the menu is stacking

    • @darrylmorin7112
      @darrylmorin7112 2 месяца назад

      He talks about it 4 min into the video #7

    • @Abc-tx4zr
      @Abc-tx4zr 2 месяца назад

      @@darrylmorin7112 no but he wasnt clicking with the mouse first my inventory opens and closes with the i button but if i click before closing it does the weird darkening

  • @Abc-tx4zr
    @Abc-tx4zr 2 месяца назад

    I cant move lol how do you make this work with the enhanced mappings from 5.0+?

  • @mekbots
    @mekbots 2 года назад +2

    Everything so far is working grand but just now when testing an item with a max stack size of 10, it starts to act up. The item fills up to 10 for the first stack as intended and then picking up an 11th also works as normal filling a new slot, but then when I pick up a 12th the second stack jumps immediately from 1 to 11. Which considering the max stack size for this item is supposed to only be 10 is even more confusing. This then repeats with the next # of that item starting a new stack and then the one after it jumping it to 11 again. Any ideas?

    • @PraiseMore
      @PraiseMore 2 года назад

      u ever figure out this issue? i have the same issue

    • @mekbots
      @mekbots 2 года назад +1

      @@PraiseMore I've no idea how. Out of curiosity do you also have this other problem too because I think it may be related: if you pick up an item with a max stack of 1 in the first slot and then pick up something which can stack multiple after, it turns into whatever is in the first slot too? For example in mine I have 'Iron Boots' which stacks to 1, and a debug item which stacks to 10. If I pick up Iron boots and then the debug items, the debug items turn into a stack of 2 iron boots and then repeat in the next slot.

    • @ren1538
      @ren1538 2 года назад +1

      @@mekbots Hey. The video creator makes fail in the Inventory System BluePrint. In Add To inventory function you have branch with condition '>'. Then you return -1 when it false. Just remove the false thing. I had the same issue and studied eveyrthing once again and found it. Don't know if he fixes it later.

    • @PraiseMore
      @PraiseMore 2 года назад

      @@mekbots I haven’t had this issue yet lol sounds like a hair puller for sure tho!

    • @mekbots
      @mekbots 2 года назад

      @@ren1538 Hi, thank you for the tip, I'm not sure which bit you mean though. Please could you maybe send a link to the video with a timestamp attached so I can see which bit you are talking about? I can't find a branch with a condition of '>' that returns -1 when false in my blueprint.

  • @HonestbudSadegh
    @HonestbudSadegh Год назад

    Hi
    Thanks for this series. Im following all the way, Im at No7
    Is there any crafting system rhat you will be adding to this series? If not, can we use yout previous series on Crafting with this new inventory system?

  • @textik5821
    @textik5821 2 года назад +1

    Thank you Ryan! Everything is working for me, i must be really good at following instructions as it seems others are having bugs.

  • @RichardSweetman
    @RichardSweetman Год назад +2

    anyone else having the problem where your player menu is only showing one grid icon? also the apple is not show in the grid when i pick it up

    • @HichsOhnezahn
      @HichsOhnezahn 4 месяца назад

      I had a similar problem where none of the slots showed up. I guess I found the sollution:
      In episode 5 he resizes the Array which I forgot to do.
      ruclips.net/video/-cdzw9YE-MM/видео.html
      at about 23:28

  • @Fattnuke03
    @Fattnuke03 9 месяцев назад

    I know this is a year old. But why put the input action on the player controller rather then the player? it works the same either way so Im just curious as to why.

  • @JuiceStain66
    @JuiceStain66 9 месяцев назад

    Hello! I am running into an issue, where I have multiple items, and they are getting rid of each other. For example, I have a flashlight and a compass when I pickup the flashlight it works great but when I pick up the compass instead of taking the place next to it, it deletes the flashlight and takes its place. How do I fix?? Thank you!

  • @kraigthejawa3963
    @kraigthejawa3963 Год назад

    I'm having a strange bug where items will show up in my inventory HUD... but collecting items of different types with different icons change to the first items obtained in the first inventory slot. So collecting Item A, Item B, and Item C shows in my inventory of Quantity 1 Item A, Qty 1 Item A, Qty 1 Item A. But if I start with item B then the same happens but with Item B. So after a test run of collecting many items/resources my inventory is filled with the first type of item I collected.

  • @Draconicgames207
    @Draconicgames207 7 месяцев назад +1

    I have checked my code several times but I can’t get my item to show up in my inventory after I pick it up. Does anyone have any solutions?

    • @darrylmorin7112
      @darrylmorin7112 2 месяца назад

      I am in the same boat, I hit #1 and the Debug says it see that i picked up the apple but why doesn't it show in my inventory? I didn't use a HUD, this is what i think is the issue

  • @gangsteam
    @gangsteam Год назад

    I thought that "get player controller" with player index of 0 does not work in multiplayer games. You are using that node but it assumes theres only 1 player.

  • @rusameii
    @rusameii 29 дней назад

    hello there people I got lost on where the error for the slot in the inventory is not appearing when I open my inventory try to see what I did wrong and try to read the comment see if there's was a way but sadly I couldn't see problem can anyone help ? *still new to unreal so anyone helping pls tell me step by step thank you*

  • @joeanrachelmiller6529
    @joeanrachelmiller6529 Год назад

    Can you at some point cover the difference between the various validate and which ones are better to use when? Or would it truly just be more along the lines of what one prefers? I see one is a function, one is a macro, and then there are validated get... if you already have such a video can someone just say where to find it please?

  • @Madway_tv
    @Madway_tv Год назад

    Thank you for your video tutorials! And I have a couple of questions. If I change the input key "I" for example to "tab", then when I open and click on the slot, then click on "tab", then a slot is allocated and switching to another slot takes place instead of closing the inventory window. how to solve this problem?. And another question is how to make an auto replacement of the "I" key directly from the project settings from the input section, in W_PlayerMenu > On Key Down?

    • @studiobaxter1242
      @studiobaxter1242 Год назад

      I don't know the answer but I only just noticed the same thing this morning, because I used the tab key also.
      I've switched back to the 'I' key because tabbing through the slots would be useful.

  • @g-kurse459
    @g-kurse459 Год назад +2

    Hey guys,
    I'm having this error in 'MyPlayerController' saying: 'Blueprint Runtime Error: "Accessed None trying to read property HUD."'
    I tried to check if I did everything according to the tutorial and I did! I don't know why does this error keep coming up and I can't display the inventory even if I click 'I' key.
    I'm stuck, in this, cause the main thing in my game is the inventory system.
    Can someone help me out?

    • @buildrsaul3332
      @buildrsaul3332 11 месяцев назад

      Same problem. Did you fix it?

    • @ImageInUnreal
      @ImageInUnreal 10 месяцев назад +1

      I think you made the player controller, but didnt set it to be used. I havent finished the vid yet, but i didnt see him go to the gamemode and set it to use the new player controller. Could try a debug, make an input in the player controller, and have it print a message when you press it. If it doesnt print, the default controller is still set as the active one and the new one isnt being used

    • @gamedevofcoffeeandpower
      @gamedevofcoffeeandpower Месяц назад

      set the default value of the HUD variable in third person character to be HUD

  • @LordTalismond
    @LordTalismond 2 года назад

    Is there a way to make the background canvas dynamically size to size of actual # of inventory slots when displayed on screen.

  • @badtemperTV
    @badtemperTV 8 месяцев назад

    Hello Mate, first of all, thank you for the tutorials, I always watch your content.
    So, I'm facing a problem that I can't find what I did wrong, when I drag the item from my inventory to the chest, it adds to the container, but than it clones the remaining amount in my inventory... for Exemple, I have 1 Apple, when I Put it to the container, it leaves 9 apples on my inventory, and 1 goes to the container... If I try to stack more than 10, It stays in 10 but the rest disappears ..
    I've watched all the videos twice already and still can't find where I screwed up.
    Anyway thanks for the videos, they're great content!

  • @gemergame7884
    @gemergame7884 Год назад

    Hi good day!
    I've come so far and everything is fine, it picks up and counts. However, when I pick up the first item, the counter says zero quantity, and one for two items. In other words, there will be one more. Where is the mistake? I'm a beginner, I checked as much as I could, but I did everything as I was supposed to you showed.

  • @TheP1x3l
    @TheP1x3l 11 месяцев назад

    I'm struggling with getting the inventory to display. I am on 5.3, so I was wondering if it was an enhanced action input problem, but when I set it up with a debug key it doesn't work with that either. My log script is giving a warning that W_PlayerHUD has already been added to the screen. I'm unsure if it has anything to do with that. I'm going to check the Display Player Menu function and make sure that's set up correctly as well. I'll say what I did to fix it if I manage to. :(
    Edit: I have moved everything from both the controller and the player HUD event graph into the player character BP. I also did the mentioned fix below to implement enhanced input actions into the player menu widget. And NOW it works perfectly. It looks kind of crammed in with my other player controls but it works. Hooray.

  • @B_Bgames
    @B_Bgames 8 месяцев назад

    hi when i press I nothing happens any ideas why

  • @SevenYearsGoodLuck
    @SevenYearsGoodLuck 10 месяцев назад

    What if you have different items with different icons? The issue I am, having is that, No matter what object I pick up, they all become Apples in my inventory. Perhaps it has something to do with the DataRowTable

    • @ImageInUnreal
      @ImageInUnreal 10 месяцев назад

      Yeah it would be the item data table that you arent changing the thumbnail for, or perhaps when you are making new items in the data table, you arent going into each item and setting them to use the new item rows from the table. So they are all still apples since thats the default in the item

    • @ImageInUnreal
      @ImageInUnreal 10 месяцев назад +1

      Just to specifiy, you need to make a new item row in the item data table, and a new item actor/child actor that uses that row

    • @SevenYearsGoodLuck
      @SevenYearsGoodLuck 10 месяцев назад

      @@ImageInUnreal Okay, I will give this a try. Thank you.

    • @SevenYearsGoodLuck
      @SevenYearsGoodLuck 10 месяцев назад

      @@ImageInUnreal It works. And it works beautifully. Thank you! The issue was that the items I used were children of the Master_Item Blueprint. Instead of making a child of the blueprint. I simply duplicated it.

  • @luxdaemonis6571
    @luxdaemonis6571 2 года назад

    Awesome series! Thank you for everything you do! Quick question, my player hud is built in my game mode. Can I just access it that way to call display player menu?

    • @brianstrigel2241
      @brianstrigel2241 Год назад

      It won't show up on the client side. Had to reconfigure it otherwise.

  • @SantiagoMora-r2o
    @SantiagoMora-r2o 7 месяцев назад

    Is anyone having a problem where it goes to the servers inventory but not the clients?

  • @kn1ght_yt181
    @kn1ght_yt181 Год назад

    In inventory mode, whenever I click on the screen that's not the widget, I'm unable to close the inventory until I click on the inventory again. How can I make it that I can still close the inventory despite clicking somewhere else on screen. Do I override a function for the mouse in player menu widget??

    • @studiobaxter1242
      @studiobaxter1242 Год назад

      You set the canvas to 'visible'.
      This works for now, but becomes a problem later in the hotbar tutorial and I don't know the solution yet.
      Others here are saying closing the inventory should not need to be hard coded like it is, and maybe that's part of the solution.

    • @ImageInUnreal
      @ImageInUnreal 10 месяцев назад

      @@studiobaxter1242 since you open the inventory with the player controller, could set it as a variable and check if its valid or not, so if it is valid, it closes the already open inventory, or if its not valid then create the inventory. That way its not hard coded and it will close without refocusing the inventory widget

    • @studiobaxter1242
      @studiobaxter1242 10 месяцев назад

      @@ImageInUnreal
      Maybe, but the issue was resolved recently with the correct layering of the widgets.

  • @infumiinations1311
    @infumiinations1311 10 месяцев назад

    What decides how many slot there are??? I’m so lost on why it’s putting the amount it has on there

    • @purpledraff293
      @purpledraff293 10 месяцев назад

      Check the inventory size variable in the inventory system component

  • @arkham666
    @arkham666 11 месяцев назад

    Hi I've just tested this increasing the quantity of apples from 1 to 5 and it's always displaying one. Is this a bug the gets noticed and fixed later or have I made a mistake somewhere?

    • @Redvil01
      @Redvil01 10 месяцев назад

      It sounds like you forgot to connect the text variable in the widget to the quantity. It was done in an earlier episode.

  • @akiakimedia919
    @akiakimedia919 9 месяцев назад

    So I've followed your videos to the tee and gone back and forth between Google and RUclips, but the issues remains. I can't get my inventory slots to display after "I" key is pressed. Any ideas would be grateful in the matter. Other then that awesome TuT.

    • @flamedcoyote4903
      @flamedcoyote4903 8 месяцев назад

      Did you figure this out?

    • @RedCat_Noodle
      @RedCat_Noodle 6 месяцев назад

      Im also still looking for this :( changing inventory size doesnt help.

    • @HichsOhnezahn
      @HichsOhnezahn 4 месяца назад

      I had a similar problem where none of the slots showed up. I guess I found the sollution:
      In episode 5 he resizes the Array which I forgot to do.
      ruclips.net/video/-cdzw9YE-MM/видео.html
      at about 23:28

  • @beatsaberclipsforme7648
    @beatsaberclipsforme7648 Год назад +1

    When I Set the player controller, I can no longer move? Please can someone help?

    • @Monke-vf1oj
      @Monke-vf1oj Год назад

      I also have the same issue. Were you able to fix it?

    • @beatsaberclipsforme7648
      @beatsaberclipsforme7648 Год назад

      @@Monke-vf1oj i was able to , but i dont rmeber, sorry :(, i think i was setting the wrong controller or something

    • @Monke-vf1oj
      @Monke-vf1oj Год назад

      Thats fine I managed to fix it on my own 👍@@beatsaberclipsforme7648

    • @infumiinations1311
      @infumiinations1311 10 месяцев назад

      @@Monke-vf1ojwhat did you do bc I’m having that problem

  • @Axelmalmborg
    @Axelmalmborg 2 года назад

    ok so if i pick up multiple items: the items only go into the first slot! they replace eachother? any solution?

  • @Nicara_V
    @Nicara_V Год назад

    Please specify that this tutorial is for 5.0 as recorded. When you use 5.1 or higher, and you fully understand what to change to use the new Enhanced Input Actions you can break the game. Sadly, I started using 5.3 and I won't be restarting this tutorial back on part one to change to 5.0

    • @Mordynak
      @Mordynak Год назад

      You dont need to. You can still use standard legacy input in 5.3.
      You can also easily switch to Enhanced input with very minimal changes to this tutorial.

    • @beatsaberclipsforme7648
      @beatsaberclipsforme7648 Год назад

      @@Mordynak how would you changed to enhance input?

  • @brianleightoniii5501
    @brianleightoniii5501 7 месяцев назад

    Anyone else having an issue where the lines on the right side aren't showing up properly?

  • @kartingst
    @kartingst Год назад

    Creating my own custom player controller removes any sort of movement or view that I have. How can I fix this?

    • @NekotTheBrave
      @NekotTheBrave Год назад

      If you're using 5.3 and up, you'll need to copy the "begin play" code from the previous player controller since that's what controls the character instead of action mappings now.

    • @infumiinations1311
      @infumiinations1311 10 месяцев назад +2

      @@NekotTheBravecopy and paste it where

  • @pvpherthen2981
    @pvpherthen2981 11 месяцев назад

    So if i open my inventory and click about a few times, then close my inventory, and try to click to move, i end up having to double click to move, instead of just clicking. It's as if creating the widget is fucking up my click to move somehow, but i have no idea how.
    Edit: I found the fix, with 5.3, you need a custom node for "Set Input Mode Game Only" that i found from google.

    • @merlethibault7076
      @merlethibault7076 9 месяцев назад

      I have the same problem. Can you explain your fix in more detail? What is the custom node?
      Thank you for your help !!

  • @CleanEditHQ
    @CleanEditHQ Год назад

    Anyone else run into an issue where the last two columns right hand side of the inventory slot border is getting cut off?

    • @beatsaberclipsforme7648
      @beatsaberclipsforme7648 Год назад

      your box might not be big enough? or too many slots? or the margin/ border isnt centered?

  • @tanver3d982
    @tanver3d982 Год назад

    my event destruct is not triggering ?

  • @JW-dp1bs
    @JW-dp1bs Год назад

    If my inventory is open when I pick up an item, it does not show until I close and reopen the inventory. Is there a fix for this?

    • @swipsi6858
      @swipsi6858 Год назад

      that would require the item you're picking up to update your inventory system every time you pick something up. Up until this episode he didnt do that. So far the inventory only updates when it gets opened by yourself.

  • @noahtoonscomedy
    @noahtoonscomedy Год назад +3

    I dont see the slots in my grid

    • @Tegurd
      @Tegurd Год назад

      I have the same problem. Do you remember what the problem was?

    • @Tegurd
      @Tegurd Год назад +4

      OK. I solved it. If anyone has the same problem as me. I made a mistake in the inventory grid blueprint. The clear children output was set to create W inventory slot widget. Not to the "get" directly after event pre construct. Watch from 16:45 from the part 6 in this series and see if you made the same misstake as me

    • @HichsOhnezahn
      @HichsOhnezahn 4 месяца назад

      I had a similar problem where none of the slots showed up. I guess I found the sollution:
      In episode 5 he resizes the Array which I forgot to do.
      ruclips.net/video/-cdzw9YE-MM/видео.html
      at about 23:28

  • @ademkoluk5047
    @ademkoluk5047 Год назад

    Thank you so much

  • @KE-hr4sb
    @KE-hr4sb 5 месяцев назад

    Got everything to work, until I picked up the item. It doesn't show up in my inventory.

    • @darrylmorin7112
      @darrylmorin7112 2 месяца назад

      your the 2nd person to say this, I'm still looking for a solution, or did you find 1?

    • @KE-hr4sb
      @KE-hr4sb 2 месяца назад

      @@darrylmorin7112 I never did. Started looking into other tutorials. If you figure it out, let me know.

    • @gamedevofcoffeeandpower
      @gamedevofcoffeeandpower Месяц назад

      @@KE-hr4sb do you have an error on reading the containerinventory variable in the HUD

  • @alexmorgan2771
    @alexmorgan2771 Год назад

    Can someone help? I cant get the UI to show up when i press the interact key. It seems like the code isnt even trying to pull it up and no error is showing.

    • @shanemiller5679
      @shanemiller5679 Год назад +1

      I had the same issue. Changing the target on the 'Server_Interact' event in the InventorySystem event graph to a 'Get Component by Class'' node and setting the component class to Actor Component worked for me.

    • @alexmorgan2771
      @alexmorgan2771 Год назад

      @@shanemiller5679 I found my mistake, I put the interact key in MyPlayerController rather then my BP for my character.

    • @kawaiiwaste
      @kawaiiwaste Год назад

      i had the same issue and in my case the mistake was i didnt connect the target in the add to viewport

  • @everythingwyld4389
    @everythingwyld4389 9 месяцев назад

    I can’t move at yall please help

  • @lcdcstudios
    @lcdcstudios Год назад

    im having an issue where if I open the inventory again the grid is gone

    • @lcdcstudios
      @lcdcstudios Год назад

      solved it

    • @tanver3d982
      @tanver3d982 Год назад

      @@lcdcstudios how

    • @lcdcstudios
      @lcdcstudios Год назад +1

      @@tanver3d982 I put box list instead of my variable in my player controller and somehow that worked, however I think it messed some other stuff up

  • @mrh8984
    @mrh8984 4 месяца назад +1

    Blank inventory (like I had), didn't show up the slots (I thought I had this is but clearly didn't) the inventory slot size. Make sure this is in 'InventorySystem' ruclips.net/video/-cdzw9YE-MM/видео.html

  • @studiobaxter1242
    @studiobaxter1242 Год назад

    Still working!

  • @NEXTGENPLAYS
    @NEXTGENPLAYS 8 месяцев назад

    Man. You know. There are some guys in this world... oh sht... Thanks my dude, thanks a lot

  • @muqtada6611
    @muqtada6611 2 года назад

    After taking an item and open inventory widget I don't see the item can anyone help me?

    • @nathanmiller8818
      @nathanmiller8818 2 года назад

      I had the same issue. Make sure under inventory system you have the success boolean node connected to condition as well as found stack boolean connected to the condition as well

    • @sergey8229
      @sergey8229 2 года назад

      check - pre constract display Inventory pin get component by Class

    • @aaronhojnacki6051
      @aaronhojnacki6051 Год назад

      @@nathanmiller8818 Where in the inventory system? I don't understand.

    • @HichsOhnezahn
      @HichsOhnezahn 4 месяца назад

      I had a similar problem where none of the slots showed up. I guess I found the sollution:
      In episode 5 he resizes the Array which I forgot to do.
      ruclips.net/video/-cdzw9YE-MM/видео.html
      at about 23:28

  • @t3hPoundcake
    @t3hPoundcake 2 года назад +3

    Dude I really appreciate what you're doing for us but you have to put your new system in a playlist or get rid of your old videos or something. Do you not see how many people are getting completely lost because they go from one part of your new system to the sequential part of your system from a year ago? I just went through 10 minutes of part 7 from the old system, the third time it's happened now, before I realized I was on the wrong series.

    • @BeinIan
      @BeinIan 2 года назад +2

      Just look at the thumbnails, they're different for the different series.

    • @DadGeekUK
      @DadGeekUK Год назад +1

      @@BeinIan Yeah. Old system = Carrots, New system = Apples

  • @FluteMonke
    @FluteMonke Год назад +5

    the icons aren't displaying just the menu can anyone help me here?

    • @RedCat_Noodle
      @RedCat_Noodle 6 месяцев назад

      I have the same problem... Looking for a solution as well

    • @RedCat_Noodle
      @RedCat_Noodle 6 месяцев назад

      The fix for me was to go to the W_PlayerMenu - event graph - then take out W_inventoryGrid get - drag out a display inventory and in the Inventory component put a get player class + get component by class -> inventory system.
      Then just plug all of that into the Set impt mode UI only. Hope it may help someone.

    • @Someone-mm3jl
      @Someone-mm3jl 4 месяца назад

      @@RedCat_Noodle Which function?