Announcement

Collapse
No announcement yet.

Action RPG Inventory System

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

  • replied
    Originally posted by Old-Crow View Post
    Thank you, I'll see what I can do with this info. I am still very confused as to why I am supposed to keep all of the movement logic in the inventory player controller when the documentation for UE says to set it up in the character BP. I merged this with the mount tame and feed which has logic already in it's character and suggests not moving it. I guess I can move it all but thats probably over 100 variable and an entire melee attack system, couple with camera tweaks and three movement modes... I don't see how this is "easily integrated in to existing projects" if it's mandatory to have the movement logic in the IPC as suggested in this thread.

    Originally yes you would handle your movement logic in the player controller like pirate has setup in his inventory system, individual pawn movement wasn't always available epic added support for it so a lot of devs still use the player controller because its what they are use to using, you can always move the input logic to the pawn and cast to your player controller events rather than moving logic.

    If you need to access a variable you can always call the equipment character variables from your character bp.

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    player controller to your equipment inventory component..
    Thank you, I'll see what I can do with this info. I am still very confused as to why I am supposed to keep all of the movement logic in the inventory player controller when the documentation for UE says to set it up in the character BP. I merged this with the mount tame and feed which has logic already in it's character and suggests not moving it. I guess I can move it all but thats probably over 100 variable and an entire melee attack system, couple with camera tweaks and three movement modes... I don't see how this is "easily integrated in to existing projects" if it's mandatory to have the movement logic in the IPC as suggested in this thread.

    Leave a comment:


  • replied
    Originally posted by Old-Crow View Post
    Still having some trouble getting the correct socket to take a weapon from my character's hand.

    I'm a little confused how communication is supposed to work with the components vs inventory player controller (Which I chose to keep and use from the project) and the equipment character's slots vs the slots in the equipment inventory manager component. [MENTION=39476]Pirate[/MENTION] [MENTION=190677]OverRated_AU[/MENTION]
    Even a quick workflow rundown would be most appreciate. Been at this all night and I just can't seem to get the sword to stop disapearing instead of "sheathing" to the socket on spine 1 I named "Sheath" and added the name to the struct.

    Sorry to be such a pain.

    I am using the skeleton from the ARPG, targeted to a character BP I already had set up. Char is parented correctly to the equipment char, and everything else works as it should be. So if you were going to add a back "sheath" socket and the functionality to destroy item in hand, spawn in sheath socket, then visa versa for the toggle, how would the communication flow? I don't need any info on the animations triggers, just getting the sword "in" and "out" of the correct sockets.. while being able to wipe the slate and add a different weapon if one is equipped instead of having a sword sheathed and still being able to equip another..

    Any advice or even a link would be most appreciated as I"m at a loss trying to google anything relevant about components vs custom controllers vs my character bp vs equipment character BP and it seems I have to have a network of communication happening between all three of those things with the way this is set up.

    Edit:
    To be more clear and specific, I have a full understanding of how to do this this when everything is set up in the character BP itself, so I'm not asking how to socket a weapon, or any related info to that matter.. and yes I understand how to look that type of thing up on my own, but there is almost no information I can return in a search engine that talks specifically about the way the this is set up between so many components.. I don't know if I have to trigger "equip item" "unequip item" as far back as the inventory management or if I can just swap out the image in the equipment character (ideally) and still notify the server of the change.. It's just very confusing with all of the previous listed things needing to talk to one another to make one item equip or unequipped.

    Here's is a short break down on how a equipment item is used, the equipment UI calls a event inside the inventory manager component when a item is placed in an equipment slot, which then fires EquipItem which sends the item data to the equipment inventory component which sets a OnRep variable inside the equipment character and sets your items mesh.

    Now if you want say your weapons to re-socket when a animation is played or a event happens you will need to OnRep that change on the server, so when the animation plays it triggers the anim notify which calls an server event to attach the weapon to a new socket, this would be done inside your player controller to your equipment inventory component.

    As for replacing a weapon if its an actor you would check if its valid and if its is destroy it then spawn a new one, or setup your weapon actor to have a mesh variable which Reps, so when a new weapon is Equipped it simply just applies your new weapon mesh to the already spawned actor, you would also want to pass other variables that apply to the weapons damage and so on.

    I hope i answered your questions here let me know if i have missed anything .

    Leave a comment:


  • replied
    Day3, still trying to figure out the relationship between equipment character, inventory component updating equipment, equipment inventory manager component, main hand, player controller, and getting this to change and show up on my custom character when I sheath/unsheath a weapon.

    Even a simple link in the right direction would really help. I have watched every video, again, in the blueprint essentials and beginners series, the entire intro series, and not once does it even mention a "component blueprint" only level and class blueprints.

    Totally at a loss here and I know this is probably simple. Sorry for leaning on you guys for an answer here but every tutorial I have ever watched in UE4 has the logic and variables set up in the character BP, and this is the first I have even seen a custom controller bing used with what I am guessing are custom "components" added to that controller, but I really don't understand how the logic flows for each possessed pawn.

    Anyways, anything, even a response that you can't help would be helpful so I can stop checking for updates.

    I guess I'll just continue my rant since no one is reading any of this anyways, but another thing I'm finding very confusing is that everything I've read about putting movement logic in to a custom player controller instead of the character says not to do it because you set a hierarchy that isn't really explained anywhere in Ue4 documentation.

    https://forums.unrealengine.com/show...ayerController

    I watched and read everything shared in that post and still don't understand how I can communicate between all of these component blueprints, the parented equipment character, and my custom character blueprint, which currently has all of my movement logic in it because it was already set up that way when I bought this product which says it can be implemented in to any existing project.

    Then I go on to read this entire forum thread and on page two or three [MENTION=39476]Pirate[/MENTION] says that you don't ever want to take the movement logic out of the IPC because thats where the move form container item close is..

    There is no way I can move all of the logic from my character in to the inventory player controller without doing more work than it would take to just start over from scratch..

    Completely at a loss here and no idea what video or tutorial to watch next. If this was all done in one player character BP like every tutorial Ive watched, 100s them, suggest to do, and in fact the consensus is from the posts Ive read, never to put it all in the controller because of conflict issues with things like death and re spawn screens, etc.

    I know what you guys have created is the most modular method but I just can't seem to figure out where to go to learn about this Controller/Component/Parented equipment character method so I can adapt it to my own. Every tutorial Ive seen says use the generic controller provided with 3rd person template and or create your own generic one, then build EVERYTHIGN in the character blueprint.

    Utterly confused why this seems so obvious for everyone but me and Ive spent probably 80 hours this week searching for the answer.
    Last edited by Old-Crow; 05-12-2017, 10:25 PM.

    Leave a comment:


  • replied
    Still having some trouble getting the correct socket to take a weapon from my character's hand.

    I'm a little confused how communication is supposed to work with the components vs inventory player controller (Which I chose to keep and use from the project) and the equipment character's slots vs the slots in the equipment inventory manager component. [MENTION=39476]Pirate[/MENTION] [MENTION=190677]OverRated_AU[/MENTION]
    Even a quick workflow rundown would be most appreciate. Been at this all night and I just can't seem to get the sword to stop disapearing instead of "sheathing" to the socket on spine 1 I named "Sheath" and added the name to the struct.

    Sorry to be such a pain.

    I am using the skeleton from the ARPG, targeted to a character BP I already had set up. Char is parented correctly to the equipment char, and everything else works as it should be. So if you were going to add a back "sheath" socket and the functionality to destroy item in hand, spawn in sheath socket, then visa versa for the toggle, how would the communication flow? I don't need any info on the animations triggers, just getting the sword "in" and "out" of the correct sockets.. while being able to wipe the slate and add a different weapon if one is equipped instead of having a sword sheathed and still being able to equip another..

    Any advice or even a link would be most appreciated as I"m at a loss trying to google anything relevant about components vs custom controllers vs my character bp vs equipment character BP and it seems I have to have a network of communication happening between all three of those things with the way this is set up.

    Edit:
    To be more clear and specific, I have a full understanding of how to do this this when everything is set up in the character BP itself, so I'm not asking how to socket a weapon, or any related info to that matter.. and yes I understand how to look that type of thing up on my own, but there is almost no information I can return in a search engine that talks specifically about the way the this is set up between so many components.. I don't know if I have to trigger "equip item" "unequip item" as far back as the inventory management or if I can just swap out the image in the equipment character (ideally) and still notify the server of the change.. It's just very confusing with all of the previous listed things needing to talk to one another to make one item equip or unequipped.
    Last edited by Old-Crow; 05-12-2017, 04:40 PM. Reason: nevermind, still lost :P.

    Leave a comment:


  • replied
    Originally posted by Haoris View Post
    I can't click to use the item dropped in the hotbar, am I missing something or is it exepected? If so, does anyone knows how to add this? I tryied to add the code from the inventory_slot to the hotbar_slot but it doesn't work. Looks like the "InventorySlot" integer variable is my problem. Any help is welcome
    Hello Haoris,

    The HotBar_Slot is setup to hold a shortcut to a type of item not the specific item itself that you added to the HotBar.
    For example say you have 3 stacks of Apples in your Inventory. If you drag the 2nd stack to the HotBar Slot. When you use that hotbar it will use apples from the 1st stack, then the 2nd then the 3rd.

    When adding click to use code like the Inventory_Slot has, you first need to know what slot the item your HotBar_Slot is referencing is in. Then you can use the same logic. From the HotBar_Slot you can get the Item ID from the ItemInformation Struct. Then you would search the Inventory for that Item and use that Item Slot that it is in. I would create a function in the HotBar_Slot that takes an Item ID and returns a Inventory slot number if it finds an item.

    I hope that makes sense. The HotBar was setup quite simply so it would be easy for people to gut it and do it differently if their project wanted to handle it differently. I know the current implementation is not for everyone but if you have any more specific questions on how to achieve your goals with the HotBar in your project please send us an email and I am happy to give you more pointers.
    Last edited by Pirate; 05-10-2017, 07:10 PM.

    Leave a comment:


  • replied
    Originally posted by likeyer View Post
    I have problem when loot a body after that my camera not moves at all
    What version of the ARPGIS are you using? And what version of Unreal did you create your project for on the launcher?

    Leave a comment:


  • replied
    @No_Circut

    I apologize for my lack of checking the forum thread, as always the best way to reach me quickly is with our support email. also if you use [MENTION=39476]Pirate[/MENTION] in your forum post I will get email alerts about someone posting a question in the forum thread.

    I had to recently fly half way across the world to take care of my father for awhile. So things have been quite hectic as of late but I always have my phone on me and will be able to reply to emails very quickly if anyone has questions.

    The ARPGIS is still supported and will always be. I continue to update it if needed for each engine release and try my best to go above and beyond other marketplace sellers when it comes to support questions and requests. I can understand how it can be frustrating to feel like you aren't getting a reply in the forum thread quickly but the support email is always going to be the best option for quick and direct support. This forum thread is great for getting feedback from other users but I can't always check it on a daily basis with my current situation.

    Thank you for your support and understanding.

    Leave a comment:


  • replied
    Added a 10 second delay to initializing the inventory, apparently my lobby was messing it up. You hit the nail on the head, that was the problem. THANK YOU for your help !

    Leave a comment:


  • replied
    Originally posted by No_Circuit View Post
    I'm having some issues with a runtime error. Any thoughts ? http://prntscr.com/f5whi2
    Make sure your initializing the inventory in your player controller, by the looks of it your Inventory widget isn't being created and set.

    Leave a comment:


  • replied
    I'm having some issues with a runtime error. Any thoughts ? http://prntscr.com/f5whi2

    Leave a comment:


  • replied
    Originally posted by Old-Crow View Post
    Im very sorry to hear Pirate is having troubles and hope things improve. I am just a little confused by the Weapon Actor and Assault rifle example, and why they are a category in the Item list.

    In all of the videos, including how to import a weapon, and the other one about importing the wizard hat, say nothing about "Actor Type" and the drop down isn't even in the item list on those videos. It simply says select Equipment type as Weapon, but there is now a separate Weapon Actor Class that isn't referenced anywhere (from what I could find) in any of the documentation.

    This isn't to complain, as Im sure it was put there, like many other things, just to be kind and provide examples, but I am not sure if I should be choosing the Actor Class as "Weapon" when I add a new sword or whatnot, or my sneaking suspicion that this was added to correct the orientation of the gun, and is just an example in case someone wants to add an item with different default orientation to socket?

    Sorry if that's not very clear.. but basically what I need to know is if I add a sword of my own (skeletal mesh) to the item list, according to the tutorial vid, do I need to use this dropdown and select "Weapon Actor Class" as "weapon"? If so, and or, if not, what is this for and why is it in there? Thanks for your time and for creating such an awesome product.
    Pirate added in the Weapon Actor Type for people as they were asking how to implement one so he did it for them , it was adding in a few updates ago which is why the videos don't cover it, depending on your game you can use ether a lot of people rather use a weapon actor as it offers a blueprint to handle weapon logic and you can also add components easier to your weapons, it also reduces clutter from your character blueprint because without a actor all your weapon logic would have to be added there, i hope this helps.

    Leave a comment:


  • replied
    Im very sorry to hear Pirate is having troubles and hope things improve. I am just a little confused by the Weapon Actor and Assault rifle example, and why they are a category in the Item list.

    In all of the videos, including how to import a weapon, and the other one about importing the wizard hat, say nothing about "Actor Type" and the drop down isn't even in the item list on those videos. It simply says select Equipment type as Weapon, but there is now a separate Weapon Actor Class that isn't referenced anywhere (from what I could find) in any of the documentation.

    This isn't to complain, as Im sure it was put there, like many other things, just to be kind and provide examples, but I am not sure if I should be choosing the Actor Class as "Weapon" when I add a new sword or whatnot, or my sneaking suspicion that this was added to correct the orientation of the gun, and is just an example in case someone wants to add an item with different default orientation to socket?

    Sorry if that's not very clear.. but basically what I need to know is if I add a sword of my own (skeletal mesh) to the item list, according to the tutorial vid, do I need to use this dropdown and select "Weapon Actor Class" as "weapon"? If so, and or, if not, what is this for and why is it in there? Thanks for your time and for creating such an awesome product.

    Leave a comment:


  • replied
    Originally posted by Old-Crow
    Apparently this is no longer a support thread.
    Hi Crow,

    This thread is still supported but please understand Pirate is currently away because of family health reasons, please try to explain your issue in more detail and ill try to help best i can.

    Leave a comment:


  • replied
    I have problem when loot a body after that my camera not moves at all

    Leave a comment:

Working...
X