Announcement

Collapse
No announcement yet.

Action RPG Inventory System

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

  • replied
    Can anyone help me on wihy this is happening I have tried everything to get this to work and its driving me insane

    Leave a comment:


  • replied
    Adding another entry to the ToolTipInfo Struct compiles without errors and runs ok... but wont let me cook and package...

    I added a simple integer "Regeneration" variable under the intelligence variable

    here are the errors in the log file

    LogProperty:Error: UStructProperty::Serialize Loading: Property 'StructProperty /Game/InventorySystem/Blueprints/Components/InventoryManagerComponent.InventoryManagerComponent_C:SetToolTip.ToolTipInfo'. Unknown structure.
    MainFrameActions: Packaging (Windows (32-bit)): UE4Editor-Cmd: [2016.07.06-19.34.55:737][ 0]LogInitisplay: LogProperty:Error: UStructProperty::Serialize Loading: Property 'StructProperty /Game/InventorySystem/Blueprints/Components/InventoryManagerComponent.InventoryManagerComponent_C:GetItemToolTip.K2Node_MakeStruct_ToolTipInfo'. Unknown structure.
    MainFrameActions: Packaging (Windows (32-bit)): UE4Editor-Cmd: [2016.07.06-19.34.55:738][ 0]LogInitisplay: LogProperty:Error: UStructProperty::Serialize Loading: Property 'StructProperty /Game/InventorySystem/Blueprints/Components/InventoryManagerComponent.InventoryManagerComponent_C:Client_SetToolTip.ToolTipInfo'. Unknown structure.
    MainFrameActions: Packaging (Windows (32-bit)): UE4Editor-Cmd: [2016.07.06-19.34.55:739][ 0]LogInitisplay: LogProperty:Error: UStructProperty::Serialize Loading: Property 'StructProperty /Game/InventorySystem/Blueprints/Components/InventoryManagerComponent.InventoryManagerComponent_C:ExecuteUbergraph_InventoryManagerComponent.K2Node_CustomEvent_ToolTipInfo'. Unknown structure.
    MainFrameActions: Packaging (Windows (32-bit)): UE4Editor-Cmd: [2016.07.06-19.34.55:740][ 0]LogInitisplay:


    I immediately went to the SetToolTip function in the InventoryManager component to see if there was anything obviously wrong but there wasn't... I did a "refresh nodes" to see if that would help...

    but its like the struct gets broken when I add a new entry to the "ToolTipInfo" Struct (even if I delete the entry and put it back to exactly what it was before... it no longer works and always gives me that error during packaging)

    (using 1.5 version and ue4 4.10.4 version)

    Do I need to do something else? Thanks
    Last edited by wrfstudios; 07-06-2016, 04:00 PM.

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Hi LLews, are you also assigning your new slot with a slot number in its details under inventory slot in widget?
    Yep that worked i cant belevie i missed that Thanks Overrated slots now work as intended.
    Thanks for all the help its been great
    Last edited by LLews; 07-05-2016, 10:48 AM.

    Leave a comment:


  • replied
    Originally posted by LLews View Post
    Yep all of them are numbered correctly
    its 14th in the enum starting from 0 as head. Named 14th here in the equipment.
    [ATTACH=CONFIG]100636[/ATTACH]
    Then in the array its 14th as well
    Thanks for the help though
    Hi LLews, are you also assigning your new slot with a slot number in its details under inventory slot in widget?

    Leave a comment:


  • replied
    Yeah i had doen both of thoose
    Click image for larger version

Name:	EquipmentType.PNG
Views:	1
Size:	190.6 KB
ID:	1111507
    Click image for larger version

Name:	equipedmeshes.PNG
Views:	1
Size:	308.0 KB
ID:	1111506
    I think both of theese are corrently done is there anywhere else that delcares what each slot is or similar
    *Edit ok so my item now equips in the slot but does not show up in game but if i unequip it it unequips the head slot not the selected slot also when nothing is in the head slot it still does not unequip
    Attached Files
    Last edited by LLews; 07-04-2016, 06:35 PM.

    Leave a comment:


  • replied
    Originally posted by LLews View Post
    Yep Thanks pirate That fixed the loading of items from the load logic but the slot still thinks it the head slot unfortunately as in if i move any item there it says it can not be equiped but if i move a head item there Then it equips it but it slots the item into the actual head slot also it the new slot is right click it ddequips the head slot if that makes any sense
    You need to update the Switch in the InventoryManagerComponent->GetEquipmentTypebySlot function.
    Since you have this new Equipment Slot you need to return the new Equipment Type that fits it.
    In the Enum the HEAD type is #0 that's why it thinks your new slot is a head slot as it's getting a null value (0).

    Click image for larger version

Name:	EquipmentTypeBySlot.png
Views:	1
Size:	147.8 KB
ID:	1111496

    There are only two switches for EquipmentSlots and the other is in the EquipmentInventoryComponent->Update Equipped Meshes function which handles replicating and updating the changes onto the Character when an item of that EquipmentType is equipped.

    Leave a comment:


  • replied
    Yep Thanks pirate That fixed the loading of items from the load logic but the slot still thinks it the head slot unfortunately as in if i move any item there it says it can not be equiped but if i move a head item there Then it equips it but it slots the item into the actuall head slot also it the new slot is right click it dequips the head slot if that makes any sense

    Leave a comment:


  • replied
    Originally posted by LLews View Post
    Yep all of them are numbered correctly
    Oh I know what the issue is.

    In InventoryPlayerController in the ServerLoadPlayerItems function you need to add another pin for the new equipment slot. It's this function that is loading the Inventory Item into the wrong slot.

    Click image for larger version

Name:	LoadItems.png
Views:	1
Size:	99.6 KB
ID:	1111493

    To get the load items logic to work with your changes it requires hooking up your new Equipment Slot and making sure it exists in the right place/order in the NPCItems struct.

    Not sure why it thinks it's the head slot on hover though, but lets see what happens once it's loading the item into the right slot.
    Last edited by Pirate; 07-04-2016, 01:51 PM.

    Leave a comment:


  • replied
    Yep all of them are numbered correctly
    Click image for larger version

Name:	Enum.PNG
Views:	1
Size:	28.6 KB
ID:	1111484
    its 14th in the enum starting from 0 as head. Named 14th here in the equipment.
    Click image for larger version

Name:	Equipment.PNG
Views:	1
Size:	261.3 KB
ID:	1111485
    Then in the array its 14th as well
    Click image for larger version

Name:	Inventory.PNG
Views:	2
Size:	209.3 KB
ID:	1111486
    Thanks for the help though

    Leave a comment:


  • replied
    Originally posted by LLews View Post
    Thanks For the reply Pirate I had done both of thoose, [ATACH=CONFIG]100547[/ATTACH]
    This is how things are looking in a blank project as you can see theres a fern in the added slot if the class item spawing is enabled seems to be the first item in the list from the class.
    Along with this as youll see in the next image while the mouse is hovered over the added slot it belives its over the head slot [ATTAC=CONFIG]100548[/ATTACH] sorry for the text was done with the Snip tool.
    Make sure your equipment slots in the equipment umg widget are numbered correctly, and that they match the same slots are your equipment slots Enum and your make inventory array, all 3 need to follow the same order.

    Leave a comment:


  • replied
    Thanks For the reply Pirate I had done both of thoose, Click image for larger version

Name:	CurrentIssue.PNG
Views:	1
Size:	757.5 KB
ID:	1111448
    This is how things are looking in a blank project as you can see theres a fern in the added slot if the class item spawing is enabled seems to be the first item in the list from the class.
    Along with this as youll see in the next image while the mouse is hovered over the added slot it belives its over the head slot Click image for larger version

Name:	Tooltip.PNG
Views:	1
Size:	692.0 KB
ID:	1111449 sorry for the text was done with the Snip tool.

    Leave a comment:


  • replied
    Originally posted by LLews View Post
    Hi im back with the same issue though i have adavanced a little bit in what i have done with creating extra slots, so as i posted in the last post i have created the slot in the equipment UMG, along with adding a entry into both equipmentslots and equipmentSlotType Enum, Along with making the OnRep function in the EquipmentCharacter and ading an extra skelatal mesh componet i have then found after a few hours of going through all the funuctions i have found i needed to add it to The UpdateEquippedMeshes Funuction and Get Equipment slot by type Function then in the Inventory layout i have added the inventoryslot 14 in this case to the array, now im not getting any errors from the blueprints so all this bit seems to work fine but if i am using the demo classes in will places the first inventory item in that slot so eg the Apple if the warrior was chosen then if interacted with it will dequip/equip Items for the head slot and nothing will change in that slot (14), so my basic conclusion is i havent definded that slot 14 should be slot 14 But after a few days of going over all the Blueprints i cant seem to find where that is either im blind which is the most probable or i have come to the wrong conclusion as to what is wrong. Thanks for any help i could also get a few images/ videos if that would help explain the situation better than what i have here

    Make sure you add your new slot into the Enum EquipmentSlots so that the inventory backpack count will start at 15 when Get number of entries in EquipmentSlots is used in the Logic to figure out how many of the slots are equipment before starting the inventory.

    Click image for larger version

Name:	GetEquipSlotCount.jpg
Views:	2
Size:	130.7 KB
ID:	1111444



    Also in the UI InventoryLayout you need to add the new Equipment UI Slot into the array and that will fix it from being off when it's translating from Inventory Slot # to UI Inventory Slot #.
    All the Equipment slots that are in your Equipment window must be added here and the remaining backpack slots are created on init based on inventory size and added to this array automatically.

    Click image for larger version

Name:	InventorySlots.png
Views:	1
Size:	126.6 KB
ID:	1111445

    Pretty sure the 2nd part is your issue. Let me know how it goes.
    Last edited by Pirate; 07-03-2016, 04:02 PM.

    Leave a comment:


  • replied
    Hi im back with the same issue though i have adavanced a little bit in what i have done with creating extra slots, so as i posted in the last post i have created the slot in the equipment UMG, along with adding a entry into both equipmentslots and equipmentSlotType Enum, Along with making the OnRep function in the EquipmentCharacter and ading an extra skelatal mesh componet i have then found after a few hours of going through all the funuctions i have found i needed to add it to The UpdateEquippedMeshes Funuction and Get Equipment slot by type Function then in the Inventory layout i have added the inventoryslot 14 in this case to the array, now im not getting any errors from the blueprints so all this bit seems to work fine but if i am using the demo classes in will places the first inventory item in that slot so eg the Apple if the warrior was chosen then if interacted with it will dequip/equip Items for the head slot and nothing will change in that slot (14), so my basic conclusion is i havent definded that slot 14 should be slot 14 But after a few days of going over all the Blueprints i cant seem to find where that is either im blind which is the most probable or i have come to the wrong conclusion as to what is wrong. Thanks for any help i could also get a few images/ videos if that would help explain the situation better than what i have here

    Leave a comment:


  • replied
    Originally posted by OverRated_AU View Post
    Go to your projects folder and ActionRPGInventorySystem\Config\DefaultGame.ini and check the ProjectVersion, search for make inventory item and much sure all the wires are connected.
    You AU... If I haven't said it before I'll say it now... YOU DA MAN!!!!

    I missed a few locations where I forget to connect up the new struct items! Thanks! This one had me pulling my hair out and there ain't much left to pull out!


    BTW I'm running 1.5.

    Leave a comment:


  • replied
    Originally posted by Lord Caine View Post
    Hi AU

    Where do I find the version number for Action RPG?

    I copied ItemIntelligence to a new macro called ItemScale and wired that output to a float called ScaleValue. Both macros take inventory item as an input. I know the value is set back in my itemlist but when I use ScaleValue nothing comes back.

    Thanks,

    Arthur

    Go to your projects folder and ActionRPGInventorySystem\Config\DefaultGame.ini and check the ProjectVersion, search for make inventory item and much sure all the wires are connected.

    Leave a comment:

Working...
X