Announcement

Collapse
No announcement yet.

Action RPG Inventory System

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

  • replied
    Hi can anyone help me?

    When I right click on an item to equip it, I've checked what's being equipped with a print string and It's saying the thing i'm equipping (Armour blade shoulder) is being equipped then nothing is being equipped straight after, is this actually working then changing the mesh to nothing straight after?

    Still don't fully understand the blueprints, just enough to have an idea of what's going on.

    Any help?

    Leave a comment:


  • replied
    I think that in order to increase your frame rate, you will want to take what happens in the Event Tick in the InventoryPlayerController (along with removing the delay node) and put it into a function that operates on a timer so that every X (< .05) seconds it calls the Client Get Usable Actor Focus function, and start that timer at the end of the Event Begin Play.

    This is only theoretical, as I don't know if it will actually increase your frame rate, but I always heard that putting something onto Event Tick would almost always decrease your frame rate.

    Leave a comment:


  • replied
    So I bought this inventory recently and got it set up. Everything seems to work as far as I can tell but I've noticed that my frame rate has dropped by about 20 frames on average. Everything use to run at 120 now I'm getting anywhere from 90 to 100. Anyone else experience this?

    The only new thing in my project is the inventory and that most of my inputs and controls have been moved from the character to the player controller.

    Also Is there an ETA on when the 4.12 update to the inventory is going to happen?

    Leave a comment:


  • replied
    Hi I was wondering if you could point me in the direction of adding additional slots to the equipment Eg having left shoulder and then a right shoulder, as differant equipable armour slots, So far i have managed to figure out that i will need to add a Skeletal Mesh Component with name of the slot along with adding an entry to both EquipmentSlots and EquipmentSlotsType from here im a little stumped on where to continue
    Thanks in advance and the tutorials have been a greet help so far.

    Leave a comment:


  • replied
    Originally posted by Lord Caine View Post
    Good Morning,

    So I'm working on my crafting system and it is very basic. I have a hud widget with only two elements in it. The player will press the number keep associated with a hotbar slot and this will move an item out of inventory and place the icon for that item in my new hud widget.

    The problem is I have no idea how to get the icon form the associated inventory item and place it in my new hud element. I've got my branch all setup to do this is UseConsumableItem in the inventorymanagement component.

    Does anyone have any sample code on how I might do this?

    I'm not going to ever bother with dragging and dropping anymore since using the hotbar is a lot easier.

    Thanks,

    Arthur
    The best advice I can give is to really look over the UMG code and the client UI code in the InventoryManagerComponent and get a feel for how it was designed. Once you start following the code through and see how different actions work behind the scenes you will be able to start creating new functions to do your new logic and include existing functions that already provide a lot of the functionality.

    Alternatively understanding that the Item exists on the server and that the UI Icon is just a client representation sent from the server to 'show you the client' what you have in your inventory. This is the most important concept to understand and will help with your design moving forward. You will want the server to handle the crafting and modifications of the items and then simply update the clients UI with where the item is now or the changes made to it. For example if you start crafting with an item you would want the server to move it from the inventory into some sort of Crafting Work Bench Inventory. This logic will then update the clients UI so it removes from the Players Inventory as it is no longer there and then draws it in it's new place in the Crafting Work Bench Inventory.

    I'm not sure if anyone will be able to provide a sample of code to help you achieve your goal as the way you might approach making a crafting system may be entirely different as someone else. But without first the understanding of how the items and the UI interact with each other it might be a bit daunting of a task at first.
    Last edited by Pirate; 06-02-2016, 02:46 PM.

    Leave a comment:


  • replied
    Good Morning,

    So I'm working on my crafting system and it is very basic. I have a hud widget with only two elements in it. The player will press the number keep associated with a hotbar slot and this will move an item out of inventory and place the icon for that item in my new hud widget.

    The problem is I have no idea how to get the icon form the associated inventory item and place it in my new hud element. I've got my branch all setup to do this is UseConsumableItem in the inventorymanagement component.

    Does anyone have any sample code on how I might do this?

    I'm not going to ever bother with dragging and dropping anymore since using the hotbar is a lot easier.

    Thanks,

    Arthur

    Leave a comment:


  • replied
    Originally posted by Lord Caine View Post
    Hi Overrated,

    So you looking to build a crafting system or similar? its probably best to learn the inventory UMG logic it will help you build your own widgets.
    Yes I am building a crafting system. I am going through the inventory system's UMG logic, but I'm just no getting how the dragging and dropping is working.


    Particle system in UMG ? i think you mite be mistaken by video overlays effects made to match UI elements?
    I'm not sure that I was confused, but I really like those video overlay effects!!!! Is there a tutorial for that somewhere?

    Thanks!

    Arthur
    Have you seen my crafting system using this inventory? make sure you don't over complicate the functionality.

    When building a GUI you would design it in Photoshop and create the effects in a program like after effects, then recreate it in UMG.

    Leave a comment:


  • replied
    Hi Overrated,

    So you looking to build a crafting system or similar? its probably best to learn the inventory UMG logic it will help you build your own widgets.
    Yes I am building a crafting system. I am going through the inventory system's UMG logic, but I'm just no getting how the dragging and dropping is working.


    Particle system in UMG ? i think you mite be mistaken by video overlays effects made to match UI elements?
    I'm not sure that I was confused, but I really like those video overlay effects!!!! Is there a tutorial for that somewhere?

    Thanks!

    Arthur

    Leave a comment:


  • replied
    Originally posted by Lord Caine View Post
    Hi Overrated,

    Are you talking about the user actor blue print or in one of the usable actor code blocks somewhere?

    I couldn't find it.

    Thanks,

    Arthur
    Hi,

    Both look in the details were you setup the items ID, if you set it in the usable actor blueprint it will apply to all if you set it to a single child it will only apply to that single actor, not if you wish it to work in networked you'll need to change the code to allow that as its limited to Single Player.


    Originally posted by Lord Caine View Post
    Hi there,

    I'm building a new HUD widget which is going to allow the player to construct something new from items in their inventory.

    The will move items from the inventory to the hotbar.

    From there they will bring up the new HUD with the B-Key which will have 2 empty containers in it.

    They will select items from the hot bar by either pressing the hot bar number or dragging an dropping the item icon from the hotbar into my new containers in the new build HUD.

    I've been going through the inventory code and looking at the drag/drop code, but I'm still unsure of the best way to do this. Does anyone have a good tutorials I can watch or code samples or forum updates I can look at to guide me?

    I've also been looking for ANY thing that shows how to integrate a particle system into a HUD. The most recent entry I can find in the forum is 2 years old. Does anyone know if you can even do this? If you can does anyone have a tutorial I can check out?

    Thanks,!

    Arthur
    So you looking to build a crafting system or similar? its probably best to learn the inventory UMG logic it will help you build your own widgets.

    Particle system in UMG ? i think you mite be mistaken by video overlays effects made to match UI elements?

    Last edited by OverRated_AU; 06-01-2016, 11:16 AM.

    Leave a comment:


  • replied
    Tips for moving Inventory Icons around in the UI

    Hi there,

    I'm building a new HUD widget which is going to allow the player to construct something new from items in their inventory.

    The will move items from the inventory to the hotbar.

    From there they will bring up the new HUD with the B-Key which will have 2 empty containers in it.

    They will select items from the hot bar by either pressing the hot bar number or dragging an dropping the item icon from the hotbar into my new containers in the new build HUD.

    I've been going through the inventory code and looking at the drag/drop code, but I'm still unsure of the best way to do this. Does anyone have a good tutorials I can watch or code samples or forum updates I can look at to guide me?

    I've also been looking for ANY thing that shows how to integrate a particle system into a HUD. The most recent entry I can find in the forum is 2 years old. Does anyone know if you can even do this? If you can does anyone have a tutorial I can check out?

    Thanks,!

    Arthur

    Leave a comment:

Working...
X