Announcement

Collapse
No announcement yet.

Action RPG Inventory System

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    I have a question about Left click events with the Inventory/equipment UI. I cannot seem to get Left double click or even single click to register on the Inventory Slot other than drag. Any direction would be appreciated, I want to change the Equip/Use to left double click and right click to open small menu. Right double click works and right click, but not the left. It works if I create a new different widget but not on any of the equipment or Inventory widgets.

    Thanks

    Leave a comment:


  • replied
    Originally posted by Connecta View Post
    Hiyo!
    First off: Thanks for this System! I really like it - well documented and structured so that even I can handle it (somewhat)

    Though it seems like I've met with a problem now... I deleted some of your DEMO-meshes and ItemBP's, and now I'm getting a lot of errors...
    Everything works fine... Just a bit annoying/omnious that I'm getting these - any ideas what I can do to fix it?
    Hello,

    If you read the errors you see they have nothing to do with items so don't worry that's not what did it. Perhaps you changed your gamemode to use a different HUD class or Unreal just decided to unhook some wires to keep you on your toes.

    The real error is because in the InventoryPlayerController it looks like in your PlayerInitialize function the HUDReference isn't being set. This reference is used by the system to know where to get references to different widgets in the UI. In this case it's trying to access and read from the HUDReference to show and hide the InteractText widget when you have highlighted an item.

    You can see where it sets the HUDReference in the InventoryPlayerController show in this screenshot.
    Click image for larger version

Name:	hudref1.jpg
Views:	1
Size:	123.8 KB
ID:	1116438

    And here you can see where one of the errors are, as it is trying to read the HUDReference to find the InteractText Widget but since HUDReference is null it's giving the error.
    Click image for larger version

Name:	hudref2.jpg
Views:	1
Size:	75.6 KB
ID:	1116439

    By reading those errors you should be able to figure out why your project isn't setting the HUDReference and resolve them quickly.
    If you are still having issues after checking that out, please send us a support email to support@vanguardinteractive.com

    Leave a comment:


  • replied
    Hiyo!
    First off: Thanks for this System! I really like it - well documented and structured so that even I can handle it (somewhat)

    Though it seems like I've met with a problem now... I deleted some of your DEMO-meshes and ItemBP's, and now I'm getting a lot of errors...
    Everything works fine... Just a bit annoying/omnious that I'm getting these - any ideas what I can do to fix it?

    Click image for larger version

Name:	errors.jpg
Views:	1
Size:	377.0 KB
ID:	1116413
    Last edited by Connecta; 10-08-2016, 09:04 PM.

    Leave a comment:


  • replied
    Originally posted by Scottc91 View Post
    I got it sorted, I was way over complicating it! Now I can update the craft data list and it will automatically update the crafting window with the icons and put them into their correct group in the crafting window
    Also, When it is pressed, it gets the item data from the list, checks the required materials, removes then and adds the crafted item makes life much easier now I have it all automated haha
    Well if your happy with that type of list thats great.

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Why not use the inventory system logic and slots you would only need to add a few boolean checks for the slots a simple Iscrafting slot boolean would do. but why not just create a list rather than using the inventory slots?
    I got it sorted, I was way over complicating it! Now I can update the craft data list and it will automatically update the crafting window with the icons and put them into their correct group in the crafting window
    Also, When it is pressed, it gets the item data from the list, checks the required materials, removes then and adds the crafted item makes life much easier now I have it all automated haha

    Click image for larger version

Name:	10.jpg
Views:	1
Size:	415.9 KB
ID:	1116346
    Last edited by Scottc91; 10-07-2016, 08:53 AM.

    Leave a comment:


  • replied
    Originally posted by Scottc91 View Post
    I am trying to use the same methods that the inventory systems uses to populate an inventory system and then update Item info, which in turn updates the inventory slot. So I made craft slot, craft slot info etc. I am updating the craft item info in the inventory manager component (like it does to update the inventory). But instead of waiting for items to be added to the inventory when they are picked up. I am using the Craft list data list to populate the crafting window on initialisation as it won't change (but it allows me to added/remove items from the data list easier instead of each slot being hard coded)

    I have an idea to try and make it work which I will try later.
    Why not use the inventory system logic and slots you would only need to add a few boolean checks for the slots a simple Iscrafting slot boolean would do. but why not just create a list rather than using the inventory slots?

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Hello,

    Are you setting the inventory slots in details in UMG? also that approach isn't necessary are you trying to use the inventory slots to build a craft list or some think ?
    I am trying to use the same methods that the inventory systems uses to populate an inventory system and then update Item info, which in turn updates the inventory slot. So I made craft slot, craft slot info etc. I am updating the craft item info in the inventory manager component (like it does to update the inventory). But instead of waiting for items to be added to the inventory when they are picked up. I am using the Craft list data list to populate the crafting window on initialisation as it won't change (but it allows me to added/remove items from the data list easier instead of each slot being hard coded)

    I have an idea to try and make it work which I will try later.
    Last edited by Scottc91; 10-06-2016, 12:52 PM.

    Leave a comment:


  • replied
    Originally posted by Scottc91 View Post
    https://answers.unrealengine.com/que...xture-bug.html

    Can you take a look at this question I have asked... I am replicating the inventory blueprints to do a crafting blueprint (I previously hard coded each crafting slot, but decided if I used a data list "Craft List" for re-usability in future projects, and makes it easier if I want to add/remove items on the crafting list. I just can't get the icons to refresh in the crafting window, but when I check in the array, the items have been updated to their data list counterpart...
    Hello,

    Are you setting the inventory slots in details in UMG? also that approach isn't necessary are you trying to use the inventory slots to build a craft list or some think ?

    Leave a comment:


  • replied
    https://answers.unrealengine.com/que...xture-bug.html

    Can you take a look at this question I have asked... I am replicating the inventory blueprints to do a crafting blueprint (I previously hard coded each crafting slot, but decided if I used a data list "Craft List" for re-usability in future projects, and makes it easier if I want to add/remove items on the crafting list. I just can't get the icons to refresh in the crafting window, but when I check in the array, the items have been updated to their data list counterpart...

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Are you doing the loop on the server? please post a image it will be easier for me to help you.
    I've don't the checks on the server and got it working, thanks

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Are you doing the loop on the server? please post a image it will be easier for me to help you.
    I'm working nights I will try to get you one later. I actually think I might be doing the check on the client xD I will have a look though, thanks

    Leave a comment:


  • replied
    Originally posted by Scottc91 View Post
    In regards to the item count. I have a for loop and tested two different types.
    First, for each loop through to find "wood" each one I break the result and add the amount to "item count" it returns 1.
    Second a for each with break. This finds the item in the inventory, I break the item to get the amount of said item and again it returns 1. Each time the stack could have 5+ wood
    Are you doing the loop on the server? please post a image it will be easier for me to help you.

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Custom trace channels are not the same as custom object types, the trace will only hit objects with the custom trace channel ticked, but after thinking about your problem more and the way the inventory trace works its actually setup wrong, It really should only be a channel trace using Visibility so volumes and collision boxes are ignored.

    Please update your trace node like mine below.

    [ATTACH=CONFIG]112344[/ATTACH]





    Loop the Inventory to check for the items you need, on each loop pull off the found inventory item and break the structure and get the amount, then add the amounts together using a int, adding a crafting system is fairly easy with this inventory system.




    You can add this in your self like following.

    In regards to the item count. I have a for loop and tested two different types.
    First, for each loop through to find "wood" each one I break the result and add the amount to "item count" it returns 1.
    Second a for each with break. This finds the item in the inventory, I break the item to get the amount of said item and again it returns 1. Each time the stack could have 5+ wood
    Last edited by Scottc91; 10-03-2016, 11:38 AM.

    Leave a comment:


  • replied
    Originally posted by Rhynedahll View Post
    As configured out of the box, ARPGIS has WorldStatic, WorldDynamic, And Pawn for the Object types. The WorldStatic enum covers containers placed in the world and the WorldStatic covers dropped (spawned) items. I didn't investigate further to find out what the Pawn type covers. I haven't worked on the line trace previously, so I don't think that I have altered it, but I may have.

    These categories include basically everything that I have on the map.

    Right now I am getting all actors of class of the several invisible objects that currently cause me problems and building the ignore array at begin play. I have several custom object types already and can make another for usable actors, but I have a feeling that I might need multiple custom obj types to cover all the bases.

    I'll work on it. If I only need one, then that would indeed be the most elegant solution. Thanks for the suggestion!
    Custom trace channels are not the same as custom object types, the trace will only hit objects with the custom trace channel ticked, but after thinking about your problem more and the way the inventory trace works its actually setup wrong, It really should only be a channel trace using Visibility so volumes and collision boxes are ignored.

    Please update your trace node like mine below.

    Click image for larger version

Name:	Linetraceupdate.jpg
Views:	1
Size:	560.2 KB
ID:	1116154



    Originally posted by Scottc91 View Post
    I've not read through the whole thread so I apologise if it has been already asked. I am implementing a crafting system with this inventory system. How do you get the amount of items in a stack? No matter what I do it just returns 1.. I can do it of the items aren't stacked but I don't want that if a user has 50+ pieces of wood lol
    Loop the Inventory to check for the items you need, on each loop pull off the found inventory item and break the structure and get the amount, then add the amounts together using a int, adding a crafting system is fairly easy with this inventory system.


    Originally posted by antsonthetree View Post
    Stack Splitting: One thing I'd like to see is a slider or text box dialog that allows you to input the size of the stack you are splitting.
    You can add this in your self like following.

    Last edited by OverRated_AU; 10-03-2016, 11:29 AM.

    Leave a comment:


  • replied
    I've not read through the whole thread so I apologise if it has been already asked. I am implementing a crafting system with this inventory system. How do you get the amount of items in a stack? No matter what I do it just returns 1.. I can do it of the items aren't stacked but I don't want that if a user has 50+ pieces of wood lol
    Last edited by Scottc91; 10-03-2016, 06:25 AM.

    Leave a comment:

Working...
X