Unreal Engine 4 Tutorial - Inventory System - Part 4 - Adding Stacking Items

preview_player
Показать описание
In this new series I go through a method of creating an inventory system, similar to a survival game. In this part I show how we finally begin to add stacking items to our inventory.

There are unlimited ways to create a tutorial, all based on your own tutorial design. As per usual with my tutorials I will explain everything and how it works so that you may be able to adapt it to meet your own designs.

Similar to my previous guides, I make the system so that it is easily expandable by game designers without too much extra work. This makes it quick and easy to add more items and their functionality.

If you get stuck, have issues, or any questions about this video topic, please leave a comment below and I will try my best to answer them for you.

Have a suggestion for a video, let me know below in a comment.
Рекомендации по теме
Комментарии
Автор

Oh god, I didn't know about the "straighten conection" option. My perfectionism says thank you.

TwiistedRaven
Автор

It's amazing that these little things we take for granted in most modern video games are so incredibly complicated behind the scenes. I could probably follow this tutorial series five times and still not remember every little step. And this isn't even that complicated of an inventory system... It's pretty daunting when I consider trying to make a game of my own. Thanks for the series though. Even though it's intimidating I'm still learning a ton.

adamdecoder
Автор

These are REALLY useful Ryan. I've been looking at a ton of tutorials over the past year and the way you explain your steps and more so, the rationale behind them, is awesome. Keep up the great work.

ryansenger
Автор

it feels like having a teacher, patiently teaching a stuff i dont understand T_T. your videos are so great! keep it up!

arankasih
Автор

diddnt notice theres 10 parts at least to this series for inventory ! .super excited to experience the outcome !.

GAMEBRVIP
Автор

this is really cool! really useful thank you. Keep making ue4 tutorials

tomas_ton
Автор

brother thanks a lot ... recently i tried other channel videos, didnt work... but first four videos of this course worked . thanks again and god bless

kunalpratapsingh
Автор

I have had an issue that I have been trying to fix for the last 45 mins to an hour and it is about having an INFINITE LOOP (capitals so it is easier to see in comments for others trying to find a solution). It was an issue that when trying to pick up the STACKABLE herb, it would just be invisible and you wouldn't be able to see it and it would just be a gap (as if it is storing something but you cant see it). Also, if you picked up more than 4 it would crash and have an infinite loop error. To fix this, I had forgotten to connect the 'Local Boolean' node to the condition of the branch. I have also seen others in the comments that have forgotten to tick the value of the Assign node. Hope this helps someone and saves them a lot of confusion! :)

jakelongartist
Автор

Damn ! I learn so fast with your series :o Thanks you so far !

julientavernier
Автор

Current build version is ue4 4.27
I know this is a old video but to anyone new here are a few thing to check if you have the following issues
: infinite loop detected in add to inventory.
Make sure you actually connected arry element quantity and not structure quantity. if you dont the game will crash after max item stack size.
:Item turns invisible once set to stackable. make sure you actually connected the local bool to the branch in the maco called Has Partial Stack. If you don't the branch just wont work properly. and only return false.

these are the two main issues I ran into and noticed alot of people were running into as well so i hope this helps someone

goldenfox
Автор

Everything was going perfectly but for some odd reason my stupid chest doesn't work 🤣 glad I basically made it to the end before having an issue. Thanks for all the videos and tutorials. Will return to this again to fix my mistake with the chest! You're the man!

aluckyshot
Автор

Awesome. The last part with the containers will help me with my Thief's Stealing Mechanics >:)

PrescottLawani
Автор

I enjoy your tutorials for the sheer flexibility and explanations on why your doing something lets people add there own personality/method in what your teaching can't wait to see the last episode but now to keep working on my project time to head over to blender in 6 days for a month would prefer sticking to learning and doing coding but meshes required im sure every new person runs into that lol. But like I said love the tutorials can't wait to see the next one and Im going to throw this out there would love to see how you would do a quest system

earneststewart
Автор

hey, love your videos, just wanted to point out for people that when testing your quantity you did a number lower than the items max stack size, so it will stack correctly, however giving the player more than the max stack max does not work correctly, it would need another check to handle that right.

yurikoma
Автор

ODD issue here, redoing this in 4.22.1 and for some reason when I change the Quantity on the Make Slot Structure of the "master item", the first stack (of 3) shows the icon on the inventory just fine, but the second stack of 3 I pick up, the item icon is missing. Thoughts? This only happens when I add3 quantity. With a max stack of 4, adding 5 adds five to the slot, not 4 and 1.

timmaness
Автор

I'm having an issue where when I have Is Stackable Ticked true the item doesnt show up in my inventory at all but if its false it still does show up. If this problem persists after a second watch i wont edit this.


Sorry i didnt tick the variable Boolean on the assign

thelxiope
Автор

Learning a lot, going to watch the next video now.. I've got this far but there are 2 major issues/problems (some comments mention some fixes which I cannot seem to implement).

Problem 1.
If you make more items than slots (and stack sizes) you can keep picking up items and they get destroyed but not added to your inventory (but it thinks it has added it to your inventory), for instance if you have 4 slots, 5 items (max stack size 1), you can pick up all 5 but you'll lose the 5th, it gets destroyed and added to nothing?

Problem 2.
Once you have filled up the inventory, then used an item in a middle slot and it's removed from the inventory, when you pickup another item it doesn't add it to the empty slot (if the end slot is filled, it's lost as above in problem 1.) For example you have 4 slots, all full, you UseItem on the 2nd slot. Pick up and item and it's not in your inventory.

MrE-
Автор

10:27 can we use content to add from the bottom one? I know it doesnt matter that much, just wondering if something like that would work

emptybruh
Автор

Hey Ryan, I'm having an issue after I do the following: pick up one non stackable item, then I pick up 4 stackable items, this is fine, I have a stack of 4 and then the 1 non stackable, however picking up another unstackable leads to 4 stackables in one panel and then the next panel shows 2 items when it should be 4 stackables, 1 stackable and 1 unstackable. The image of the unstackable is also changed to that of stackable when the 5th stackable is added to the unstackable panel for some reason. Do you know where in the code this issue likely is?

connarrow
Автор

How would I go about including a maximum amount of stacks per item so that if you exceed the amount of stacks, you can't pick up the item? I figured that it's somewhere in the create stack function, but I'm a noob so I don't know where to begin. 😥

furrybproductions