Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Inventory Master - Inventory System with the new UI System 4.6

Discussion in 'Works In Progress - Archive' started by Sander1991, Nov 4, 2014.

Thread Status:
Not open for further replies.
  1. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    Actually I will rewrite my item class anyways. This wouldn't be the problem ;).
     
  2. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    So actually a small list which will come with the new update:
    • some small bug fixes
    • an eventsystem for consuming and equiping an item(will work with delegates)
    • an "X" on the top right side which you can position in the inspector aswell
    • Scripting API
    • Documentation
    • Video tutorials
    Possible further updates:
    • recoding of the item class
      • that means that you will able to add so much stats/attribute to an item how you like
    If you got some other important things in the asset, than let me know.
     
    Last edited: Jan 11, 2015
  3. Siduron

    Siduron

    Joined:
    Dec 13, 2014
    Posts:
    6
    Been playing around with this asset and already got some great results in a single evening of tinkering around.
     
    Dramamine0001 likes this.
  4. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    I haven't had too much time, but made a little progress pointing the scripts I made following the tutorial at the UFPS item inventory/database. I've only got it showing the weapons so far but it's a start!

    I'm still trying to figure out if I want to use UFPS in my main project, as it might add too much complexity trying to hook it up to other systems. However, this is good learning for me and will help me make the decision.

    upload_2015-1-7_10-2-56.png
     
  5. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @Dramamine0001 Wow this looks really nice. How much time did you spend with implementation?
     
    Last edited: Jan 7, 2015
  6. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    A couple hours and that was mainly fighting with UFPS' item system, getting all the types correct and they use a texture2D object instead of an image like you, so I had to play around with converting it.

    The more I work on this, the more I think I like your idea of using your item/inventory system and changing UFPS to use it. UFPS is setup for more of a classic FPS style inventory...the number buttons tied to specific weapons and you either have them or not. Obviously, your system is a more modern/GUI interface which is what I'm going for. It's just going to take pretty significant changes to the UFPS weapon and player scripts to make it happen.

    Any timeline for your latest patch and then when you're going to be looking at UFPS integration?
     
  7. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    Very nice!
     
  8. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @Dramamine0001 Actually I am working at the itemclass and the itemdatabase. I will post a picture about it in around 20 minutes so you can see there will be a nice change which you will like. I cannot give you a date. I hope I finish it in around 1 1/2 week. Hopefully earlier.
     
  9. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @Dramamine0001 Here is the new Itemdatabase. Firstly it is well better organized and secondly it is possible to add so many itemattributes you like. Just check the picture out:

    So the sendmessage got deleted because I have a added a eventsystem where everytime when you consume or equip a item a function is called. If you do not know what events are, just google "events unity" there is a video which explains what it does.

    The second big change is you can add attributes to the item now. You can add how many you like. The first field is to add attributes in generel to an attribute list.
    When you change the value of the slider new attribute fields appear with the popup and the intfield. Int the popup you can chose the attribute for the item and and in the intfield you can parse a value in. I hope you like it ;)
     
    LoDx, Dramamine0001 and AddisonYarb like this.
  10. schipman

    schipman

    Joined:
    Jan 22, 2010
    Posts:
    45
    I just bought this asset yesterday and I'm already having alot of fun with it- definitely a quick and easy way to get an inventory up and running. I too am trying to integrate it with UFPS, mostly related to how UFPS likes to lock your cursor and hide it. So any further plans on making this more compatible with it would be great. Not sure what your future plans are but I would love to see a store panel, where you can buy and sell items. Thanks so much!
     
    Dramamine0001 likes this.
  11. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    Looking good! If you are reworking the inventory I might hold off on going too much further with UFPS integration, especially if you are adding it in yourself. I have lots of other systems to work on for my project but definitely plan on using this for my inventory system.

    Some crafting ideas:
    -a version of the crafting UI that doesn't require you to add the ingredients in manually. So, more like a list of craftable items with some kind of visual cue that you have the items in your inventory to craft it, and then can simply click a button to craft the item (more like Rust, if you've played the game).
    -being able to group recipes by category (maybe a tabbed interface)
    -craft times per recipe (10 seconds to craft this, 20 for that, etc.).
     
    Last edited: Jan 8, 2015
    LoDx likes this.
  12. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @schipman Nice to hear that you like the asset ;). Here is the plan for the next update:

    So actually a small list which will come with the new update:
    • some small bug fixes
    • an eventsystem for consuming and equiping an item(will work with delegates)
    • an "X" on the top right side which you can position in the inspector aswell
    • Scripting API
    • Documentation
    • Video tutorials
    • recoding the itemclass
    I will integrate it with UFPS for sure. I guess after the next update and maybe also a store panel but that is something which I cannot promise with the store panel. UFPS integration will be 100%.
     
    Last edited: Jan 11, 2015
  13. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @Dramamine0001 Yes I will go into UFPS after this update for sure ;). Nice to hear that you wanna add this inventory system into your game.

    So you want something like a recipes book where you can see all recipes? I guess so. Yes this is something which I really would like to have aswell.

    Craft times ist something which I also wanna add, but this is also for further updates.
     
  14. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    Sounds great!

    Yeah like a list of the recipes where it detects if you have all the ingredients and then you can click to craft...instead of dragging all the ingredients into the craft menu. I think the dragging (Minecraft style) is fun early on playing a game and trying to figure out what you can all make, but later gets tedious when you want to craft a lot quickly.
     
    Last edited: Jan 8, 2015
  15. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @Dramamine0001 Yes I understand what you mean. I have to create both. Maybe someone only wants the minecraft style. So both has to be possible ;).
     
  16. OHG777

    OHG777

    Joined:
    Nov 18, 2014
    Posts:
    20
    UFPS integration is a great idea and I would be happy to help you test your integration if you need another set of eyes :)
     
  17. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    Finally finished the version. Starting with the Script API now. If you are interested what I have done, here is a webversion:
    >>>HERE<<<
    This evening or next day I will also upload the first videos. Hope you like them ;).
     
  18. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    Looking good!
     
  19. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    @Dramamine0001 @LoDx @Siduron @Vickylance @Alex3333 @shadow-river @goldencruz

    So some updates. I just created a complete new tutorial series(more videos about scripting will come this weekend). You can find it here:


    You can check a demo here: >>>DEMO<<<

    The last video is at the moment about the event system from my asset. In this video I create a HP and Mana bar with the new event system. Im also the new Item class in the scripting video.

    If you want to see the new written Item class go to the second video. I am showing the itemdatabase there and how it is working with the attributes.

    Here a small list which I have done so far:
    • FIX: Number of stacking item does not reset after changing inventory settings
    • FIX: items are getting updated now, after you changed them in the itemdatabase
    • FIX: Tooltip only get displayed when it should be displayed
    • FIX: Number of a stack should be placed right now, even if you are splitting the item
    • FIX: fixed a building bug
    • FIX: fixed where you could have picked up more items than you could
    • UPDATE: added a event system which provides consuming, equiping
    • UPDATE: added "X" for closing the inventory
    • UPDATE: change the general design for a better overview
    • UPDATE: changed the item class. Itemattributes are possible to add: Check these two videos for better explaination:
      • Itemdatabase:
      • Scripting with the new Item class:
    I will submit the update with the documentation and the script API this weekend so I hope it is up next week wednesday.
     
    Last edited: Jan 13, 2015
  20. Dramamine0001

    Dramamine0001

    Joined:
    Mar 23, 2014
    Posts:
    84
    This is looking awesome. I had an issue picking up items I dropped yesterday in your demo, but it all is working great now. Keep it up!
     
  21. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    I don't know when you have tested it but I allready fixed it later. There is a new Demo version online.
     
  22. OneShotGG

    OneShotGG

    Joined:
    Nov 16, 2012
    Posts:
    225
    So, I am going to need to randomize items found in chests based on rarity. Can I make "rarity" an item attribute in your system and then call it from a script to randomize and place items within each storage chest?

    Basically, when the player opens a chest, I want to run a function that selects the number of items, type of item (based on rarity) and stack size of items in that chest.
     
  23. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162


    @OneShotGG
    Actually this should be possible. I will create a tutorial video for it this weekend! So I will show you this then ;).
     
    Last edited: Jan 13, 2015
  24. OneShotGG

    OneShotGG

    Joined:
    Nov 16, 2012
    Posts:
    225
    Sounds great!
     
  25. goldencruz

    goldencruz

    Joined:
    Oct 2, 2013
    Posts:
    94
    is there a shop system for the future update also a small tutorial show use how to hook it up to a character controler
     
  26. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    LoDx and OHG777 like this.
Thread Status:
Not open for further replies.