Unreal engine Inventory Course - FREE Full Course

  Рет қаралды 4,151

The Game Dev Cave

The Game Dev Cave

Күн бұрын

Many of our games will require some sort of inventory system! And let me tell you, there are too many ways to count to make something like that but today, lets take a look at how you can get started on building your own inventory system!
Bonus Episode:
/ intenvory-bonus-100356841
• Inventory Course : Bon...
Finished Course Project files :
/ inventory-course-99591435
/ @thegamedevcave
Join the discord for any help you need! : / discord
Join this channel to get access to perks:
/ @thegamedevcave
support the channel and development over on patreon : / thegamingcaves
Get personalized Coaching : www.fiverr.com...

Пікірлер: 50
@thegamedevcave
@thegamedevcave Ай бұрын
IMPORTANT BUG FIXES: In the buy/sell function, we put the "subtract item" function before the adding and subtracting of they money to both inventories. This results in a bug where the last item in a slot can't be properly sold because by the time the system tries to subtract or add money, the inventory slot is empty, meaning that it has no idea what value to add or subtract. To fix this, simply move to "Subtract item" node to AFTER the adding and subtracting of the money variables! The Drag & drop system also is generally just buggy so i made a followup video adressing those issues and creating a fix for them, i highly suggest you watch this video and follow along to replace the drag & drop system! kzbin.info/www/bejne/inymq6OAlMSemtE
@robertziak7611
@robertziak7611 4 ай бұрын
Im not sure if this is only compilation of already released Playlist of inventory or complete new tutorial. Watched little bit, but you are starting with same stone in both cases :-)
@thegamedevcave
@thegamedevcave 4 ай бұрын
yeah this is just the full series uplaoded as 1 long video for people who just want to go through the whole thing at once's sake :) if youre followed along as they came out you wont find anything new here :)
@SavageLykos
@SavageLykos 2 ай бұрын
No matter what I do I get the error below. I know that its telling me that is is trying to access something that is set to none but I am having trouble fixing it. This started after I created the UI. Please any suggestions would be greatly appreciated. Blueprint Runtime Error: "Accessed None". Node: Branch Graph: ForEachLoop Function: Execute Ubergraph WBP Item Grid Blueprint: WBP_ItemGrid
@SavageLykos
@SavageLykos 2 ай бұрын
Apparently just checking if it is valid and setting the rest to execute on true fixed the issue.
@Unity_and_Peace
@Unity_and_Peace Ай бұрын
Anyone getting error like " Blueprint Runtime Error: "Accessed None". Node: Branch Graph: ForEachLoop Function: ..." Here is the solution : Create a custom event in The Inventory UI , and connect it to where you set the item grid inventory's to player inventory. Then in the the Player BP, after creating the inventory widget in the begin play , call your custom event .
@SavenJerent65
@SavenJerent65 10 күн бұрын
@@SavageLykos I am having this issue, been baffling me for hours! Can you elaborate a little bit i.e. check if what is valid?
@SavageLykos
@SavageLykos 10 күн бұрын
@@SavenJerent65 you could also use a wait node at the very beginning. It runs faster that the structure is created.
@FPChris
@FPChris 4 ай бұрын
Very good so far. Looking forward to watching the whole thing.
@yourstarchan
@yourstarchan 4 ай бұрын
I spent a month and I cannot get an answer. Where should I store dynamic data (state) about my item actors while they are in inventory, if keep in mind, that it can be pistol, apple, sword, car key or anything else and everything has their custom dynamic properties some of which are complicated.
@thegamedevcave
@thegamedevcave 4 ай бұрын
easiest way to store metadata like that is to add a map that uses string keys (or name keys, which is technically slightly more performant i believe) and add a struct with a few variable types on it. that way you can look for the string "ammo" and read.write to the int variable of that stuct. or you coudl store it all as just strings, i've heard some people do that too.. i'm not too sure if that's a good idea though. the best way though, which is a little more difficult to do, is to add in an extra Object slot to each itemslot, and if there is metadata you put a UObject that hold specific data in there. but that can get complicated pretty quickly and I am not even sure if you could get that all set up in just blueprint to be honest. So, easiest and most straightforward way would be to make that String-struct map where the struct simple has options for a few different types of data. whatever the case, metadata on items is a massive pain to deal with so if you can work around having to implement it (for instance by not having the ammo in the gun, but have the gun just use ammo from the inventory) that's probably a way less headache inducing way to do it
@yourstarchan
@yourstarchan 4 ай бұрын
@@thegamedevcave thank you for the answer. Now I think about to create BaseItemActor and BaseDynamicData for saving mutable data and override function that adds this object to replicated. So, every class just can use this data object and not required to implement any converting to structure functions or casting from string. I think that this is overhead. But I don't know how to implement it easier. Also I really scared about 8th reimplementation of my item system after I learn the GAS. I heard something about AttributeSets but I'm not sure that I can use it for the inventory system. But I will use it for a gameplay item actor logic. Im frustrated.
@WeirdGoat
@WeirdGoat 4 ай бұрын
You need a Saving & Loading system to store the inventory, right?
@thegamedevcave
@thegamedevcave 4 ай бұрын
if you want to store the inventory between play sessions you indeed to need to save & load it too, just like any data :)
@WeirdGoat
@WeirdGoat 4 ай бұрын
@@thegamedevcave I mean you should make one for your audience.
@thegamedevcave
@thegamedevcave 4 ай бұрын
@@WeirdGoat i have a video about saving and loading data, saving works the same with pretty much any data so i figure it's a little redundant to add a video about saving in each series i would make : kzbin.info/www/bejne/bJ7Sg5qdjsd0mJo
@stickks2189
@stickks2189 2 ай бұрын
Spilt stack dose not seem to working. i get preview slot and the divided amount placed to new slot. but the "Remainer" is deleted. 5 rocks spilt i get 2 rocks to new slot.. the 3 from current is gone. halved again and so on.. right click drag is struggling to work.. but does seem to work in Index 0 more often. tested before then... but currently (your test before adding) @ 1:52:51..
@thegamedevcave
@thegamedevcave 2 ай бұрын
i'll be honest, doing for a drag and drop system... was an educational choice to show of that feature but ended up being a nightmare... my version of the system in the end also had a fair few bugs left in it. It sounds like the issues you might be running into are different but if you can manage to kind of get things to work, the Bonus video (separate from this whole course) which i made because more people (again, including myself) were running into some major issues with the drag/drop system, goes over replacing the whole drag and drop system with a click based system, which is both easier to use and more straightforward to program.
@flymacseamus3474
@flymacseamus3474 4 ай бұрын
Thank you but... only in glorious 360p ?? The event graph looks like I'm looking at it from the next room without my glasses on 😅
@thegamedevcave
@thegamedevcave 4 ай бұрын
youtube is a little slow on processing this one, if you check back in a little bit it should be up to 4K :)
@flymacseamus3474
@flymacseamus3474 4 ай бұрын
@@thegamedevcave Dude me and my eyes thank you earnestly 🤓 And in general let me say I thoroughly enjoy your work: there's something very laid back about your live sessions that make them quite compelling to watch (and obviously one learns tons watching them)
@kmtsvetanov
@kmtsvetanov 4 ай бұрын
Can you tell me more about the "Index"? Is this the position in the array? Or the different items ID? In the player inventory is it a bug when we have 2 slots with the same index?
@kmtsvetanov
@kmtsvetanov 4 ай бұрын
did some changes. The "index" is the position of the inventar array. 2 slots with the same index was incorect. Now I need to see how to disable left click when drag with right mouse button and the opposite.
@kmtsvetanov
@kmtsvetanov 4 ай бұрын
Found it. Use both: 1. Get Effecting Button (left mouse button) With Is Mouse Button Down (Right Mouse Button) and revert them for the other case. 2. For escape button just add "Cancel Drag Drop" in "BP_ThirtPerson..." graph (After "Set Input Mode Game Only)" when you hide the Inv UI
@kmtsvetanov
@kmtsvetanov 4 ай бұрын
I've watch this video for 3 days and made it all!
@NAOYFB
@NAOYFB 4 ай бұрын
5 hours sitting on the edge of my seat for my educational dopamine fix for the day. Finger nails gonna be fully gone by the time 720p+ is in!
@thegamedevcave
@thegamedevcave 4 ай бұрын
KZbin is soooo slow with this one im sorry 😭
@rlb1968able
@rlb1968able 4 ай бұрын
Making the introductory on how to do a three D inventory as well for the final product with the ability to equip to different weapons and potions etc
@FPChris
@FPChris 4 ай бұрын
This is a 3D inventory.
@rlb1968able
@rlb1968able 4 ай бұрын
@@FPChris I was thinking of something more along the lines of like Resident Evil or rust
@Unity_and_Peace
@Unity_and_Peace Ай бұрын
Anyone getting error like " Blueprint Runtime Error: "Accessed None". Node: Branch Graph: ForEachLoop Function: ..." Here is the solution : Create a custom event in The Inventory UI , and connect it to where you set the item grid inventory's to player inventory. Then in the the Player BP, after creating the inventory widget in the begin play , call your custom event .
@kmtsvetanov
@kmtsvetanov 4 ай бұрын
Gold!
@THEcATMiAW
@THEcATMiAW 29 күн бұрын
yeaaa i pass the Split Part
@todzifushigur0
@todzifushigur0 4 ай бұрын
great
@pr1meKun
@pr1meKun 4 ай бұрын
A few years ago, I switched to Unreal from Unity, but due to a lack of resources or learning materials, I had to return to Unity. By the way good to see you, and I'll try to learn from you.
@kellowattentertainment
@kellowattentertainment 4 ай бұрын
That's rough. I started in Unity also, but I quickly switched to Unreal because Unity is not it. Unity has more "learning" material than Unreal. But then again, that depends on the game you want to make and where you're looking. I haven't switched back to Unity cause Unreal is it. You need to know where to go to get the stuff you're looking for.
@Adam-cn5ib
@Adam-cn5ib 2 ай бұрын
This guide is impossible to follow cause you keep cutting and all of a sudden you did something without recording it and now i'm lost
@thegamedevcave
@thegamedevcave 2 ай бұрын
every step needed is shown on screen. but i do admit sometimes some bits do go a little fast. you can skim through as many times as you need to find what you're missing, or if you has a discord account you can join the discord server and ask questions. If you feel like youre missing entire sections that might be because you lack some fundamentals concepts about programming, in which case I can recommend my unreal introduction/beginners series. you probably wont need to watch everything in that playlist but it might be a good thing to take a look through to see if there's anything you might want to learn before jumping into something a bit more intermediate like this
@Adam-cn5ib
@Adam-cn5ib 2 ай бұрын
@@thegamedevcave i will torment your discord server with noob questions thx. I was able to solve the issue that kept me stuck. I hope I am able to get through this video tomorrow.
@thegamedevcave
@thegamedevcave 2 ай бұрын
@@Adam-cn5ib of course! that's what the discord is for! :)
@MasterKatSilver
@MasterKatSilver 4 ай бұрын
I like the part where you don't show bug fixing for when something is wrong
@thegamedevcave
@thegamedevcave 4 ай бұрын
I am pretty sure I show everything needed. Even having re recorded sections to make sure of that. Where are you having trouble?
@MasterKatSilver
@MasterKatSilver 4 ай бұрын
@@thegamedevcave I fixed it, it was in split stack slot index before the last return node was It didn't make the split and return back to original slot work the slot index should be there but I don't think you did in the video
@MasterKatSilver
@MasterKatSilver 4 ай бұрын
@@thegamedevcave and there was another thing but I forgot it already
@MasterKatSilver
@MasterKatSilver 4 ай бұрын
@@thegamedevcave I had an Inventory System with Data Table but I am testing here It seems this one require less coding but there is a better way of coding this system
@thegamedevcave
@thegamedevcave 4 ай бұрын
@@MasterKatSilver if you want to change anything about this code, you are of course free to change it to whatever you prefer
@ИгорьАлексеевич-м5м
@ИгорьАлексеевич-м5м 3 ай бұрын
Ну можно find использовать вместо foreach когда нужен только первый подходящий элемент и это выглядит более читаемо
@ИгорьАлексеевич-м5м
@ИгорьАлексеевич-м5м 3 ай бұрын
Конечно переделывать лень и рождаются косяки в основании проекта и потом из за таких ломается весь проект
@ИгорьАлексеевич-м5м
@ИгорьАлексеевич-м5м 3 ай бұрын
Не хакерский а костыль, у кого то может быть очень слабый пк и все не будет работать из за таких тупых решений
SOFT Object References in Unreal Engine EXPLAINED
11:58
The Game Dev Cave
Рет қаралды 12 М.
I solved Unreal Engine's Package Size Problem...
14:35
Cobra Code
Рет қаралды 73 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 29 МЛН
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,1 МЛН
USE Gameplay Tags
10:38
The Game Dev Cave
Рет қаралды 47 М.
Getting Started with the Gameplay Ability System (GAS) in Unreal Engine 5.4
55:00
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 962 М.
Slot Inventory Tutorial Part 1 - Unreal Engine 5.4+
17:19
Lisowi
Рет қаралды 4,6 М.
De-Mystifying Inventory Systems - Unreal Engine 5 - Part 1
29:05
DarkslayerTV
Рет қаралды 4,3 М.
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 244 М.
Unreal Engine 4 - Inventory System Tutorial (Free Download)
27:52
How to create Modular and Scalable UI systems in Unreal Engine
19:15
Unreal Engine - Spatial Inventory Tutorial (1/4)
43:40
Reids Channel
Рет қаралды 90 М.