Jump to content

Oafkad

Seraphim
  • Posts

    123
  • Joined

  • Last visited

  • Days Won

    2

Oafkad last won the day on March 19

Oafkad had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Oafkad's Achievements

Collaborator

Collaborator (7/14)

  • One Year In Rare
  • Collaborator Rare
  • One Month Later Rare
  • Dedicated Rare
  • Conversation Starter Rare

Recent Badges

2

Reputation

  1. I find that UI work is both incredibly rewarding once it is finished and incredibly taxing while you work on it. Ever interaction point from people requires a lot more effort than linear systems. There are many intuitive ways that people expect things to work and making all those things work in harmony is quite a chore. I'm not sure how much we will get done tomorrow but I do think once more of the initial developer UI is done that the experience will start to feel more tangible. It is one thing to see an editor window updating but a whole other experience to see it live in game.
  2. Hey Folks, Alrighty, done some updates. They ended up being more world modifications than actual action bar updates. The next steps though are pretty clear once I recover a bit more. We will hook up a simple inventory that reads our current items. When you pick up an item this will inform the game to add the item to your inventory. Upon doing this it'll check your action bars for an empty slot. If there is a slot it will place a reference to that item in that slot. Otherwise nothing happens. Then following that, we'll want to have it so when you are in your inventory. If you left (right?) click on an item, or perhaps some other key we'll see, when you use that key it will assign the item to that spot on your action bar. If that ends up not being annoying we'll stick with that for the time being.
  3. Hey Folks, So I slightly recovered from the work week. Only a bit. But here we are! It isn't pretty but I've got the start of our action bar setup. The fields update when you press one of the keys, through the magic of events. Next I need to setup it actually showing the items you have in each spot. Probably have item pickups fill in the first open space. That's all I have for tonight though. Take care of yourselves! actiontime.webm
  4. Today I think is an important time to just take a step back. Only for the day, work has been extremely rough these past few days and I'm officially out of steam. But when we come back, tomorrow I'll whip together a simple GUI to test our our action bars and throw up an image or two maybe, if the day is kind. Take care of yourselves and thanks for the random visit, internet strangers.
  5. It will eventually be mappable but the action bar support is added to the new unity input system. For now it defaults to 1 through = on your keyboard, but we'll eventually add in support for things like shoulder buttons on a controller. There is now an event setup that will inform all listening systems that the player has pressed one of these keys. Tomorrow I'll be hooking up a simple UI of some kind to alternate between these. What I haven't determined yet is how we will represent our items on the action bar. I'm not sure if they will have unique 2D art made for them or not. Heck, there is nothing stopping us from making our items in the scene 2D as well, perhaps doing the ole cross cut style of "3D" 2D art. I'll give you an example of this tomorrow.
  6. I've added a new data collection to the player data. We've now got 12 slots available for an action bar. These are IDs that would match up with items in our item catalog. So now, lets think about how the interaction will work for the next code pass tomorrow. First I'll just set the keys by hand to match a few of the items we support. Then we'll hook up the input tracking for 1-12. If you press one of these items then we'll print out the item in that slot. I also need to add an integer to the player data that tracks the "current" item. Have it default to 0, but otherwise it'll be whichever number you pressed last. Just added that before I forget. So you press a key, we set the "current" item, then we need to pass this information to some kind of processor. Perhaps that's what we'll call this as opposed to a Handler. I suppose its really just two words for the same thing. But I kind of feel like Handler's are monobehaviors and I would like a ScriptableObject to take care of this. That object will reside on the input controller because that's where we get all of our input information. Then pipe in the index to the "Select item" function. The SO will hold an artifact reference to the player and the item catalog. In this way it can set and get the index that was chosen on the player for saving and loading. It can also cross reference the GUID stored in that spot with the catalog to get all the item data. From there I need to raise an event for Holding a particular item. I'm not sure what kind of class will handle this yet, but it will be dedicated to the player holding items to use for interactions. Now that I think about it...our game actions on items will be really useful for this. I can have items do various things like heal, water plants, or so on. Nice! I'm glad when past me is looking out for future me. I think this is sufficient guidance for tomorrow.
  7. Hey Folks, So the next thing I want to setup is holding items. If we want to place items it makes sense that we'd need to be able to hold them. I haven't really thought about how we should do this but I'm going to spitball here and see what captures us. The Player Handler only does a few things currently: Saves and Loads Player Data. This actually also includes WORLD data as well currently, just out of convenience. It tracks the player position and updates that positional data. Contains the various artifacts critical to the game running so that they can be saved and loaded to. That's not much, in fact 1 and 3 are basically the same thing. I think the lean nature of the player handler is very ideal. I'm going to try to not sully this in the long term. And just as I'm writing this I realize I'm forgetting about another class on the Player Object. Our Player Input Handler takes care of all the KBM or Controller inputs of the human player. Well maybe Human, maybe cats will ant to play this, I don't judge. Regardless, we have a class that handles this information. I worry that this class has gotten far too big, basically the inverse to our player handler's lean nature. So what we can do is create an HandlerInteractorPlayer component, this will be the container that houses all of our interactor logic. Likely including rulings like "open handed" or similar. It will also pipe the "currently held item" back and forth from the player data inside the player handler. We can connect this to our Player Input Handler with an artifact like everything else. From there we can communicate player inputs through the interactor. This does leave me wondering if I want to break up the player input handler into some ScriptableObjects rather than multiple components. This would be easier to pipe into a game menu elsewhere. Perhaps that will be our first experiment this coming week. I think we'll go this route, make the base class with all our functionality then contain it within an artifact. Sure...ok. For now I think we only need to track what item that is selected. For now that can be handled with some keyboard commands, but later will likely be h...oh! I'll have it be the number row, maybe this will be a good time to put in a dummy UI for your inventory quickbar. Fun! Ok, that's it then. See you this coming week!
  8. No matter how hard Manor Lords tried, I did manage to do a small bit of work tonight. Trivially added a new action to the adventure system that lets us reward items to the player. I'm really pleased that it only took a couple of minutes, this suggests to me that I'm on the right path with that design. In the future I think I'll want the actions to be coroutines, just so we can yield on some as needed. If I've mentioned that before already, welcome, I'll be doing that a lot over the next few years. Lots of things to keep stuck in my brain and some of it loops.
  9. I got it! Our action system works great with the adventures and provides us with a ton of flexibility with each new adventure. In this example our kitty goes on the adventure, then after the adventure finishes, they return and their need is satisfied. Tomorrow I'll see about doing an item award to the player. Obviously later these will need updating to include animations, sounds, etc, but the core is there! PARTYCAT_Smol.webm
  10. Today was kind of an awful day physically for me. But regardless, the cats send themselves on adventure, pool themselves, the adventures go through their timer, then complete as expected. So all that remains is to create the adventure reward actions! That's quite exciting, one of those will be unpooling the cat, another to satisfy a need and so on. Looking forward to playing with that tomorrow.
  11. Alright! I took a huge detour tonight to work on an EDH deck of mine, but we've got the kitties able to send themselves on adventures based on their needs. In this case I made my kitty tired and there are no available beds in the scene. So they go to the adventure node to leave on an adventure. They find and add themselves to the right kind of adventure and start it. Tomorrow we'll get the hooks tested for them pooling and unpooling themselves and finally handle the adventure actions which (I hope) will be much easier. So that's nice! Also yeah, I need to name my cats so they stop just showing their guids for their name... Huzzah!
  12. Dead ass loaded up Kingdom Come: Deliverance and had a WAY BETTER IDEA the moment it loaded up. More details tomorrow, already tested it and it'll work!
  13. So I've found a flaw in our adventure design but believe I've already got the solution. Much like our adventures should use modules to determine "what" they do when you finish them. We should also use a modular system for determining "who" they are as well. The plan then is as follows. Our Datum Adventure, so called because its a single unit of Adventure Data, will contain an Artifact of a Container Datum Adventure Info. This one gets the name from being a container of a single unit of Adventure Info. We name our assets like this so that you know what they are, generally, just by reading the name. The reason Info doesn't come before Adventure in this example is that Adventure Info is our object. The prefixes are all the special class design styles I follow. We can then have this adventure info take in an artifact that implements a specific interface. Though! Like is so true with all sorts of ideas, this is making me wondering if I could just create a catalog that expects an interface instead of an object. So perhaps before we finish this we'll investigate making that. I could see that being supremely useful going forward. Good going me...good going.
  14. Tonight I updated the state machine so that we now have a series of legal vectors across our navmesh. Kitties can choose to wander to any one of them at random when they lack interactable objects to play with. In the future what we might do is just have cats go to sleep if they can't find things to do. Then once their needs are unavoidable they'll go on adventures to solve it. But for now I'm going with this. It might be that once we flesh out the map it becomes physically impossible for cats to have nothing to do. Or perhaps we'll have a "nothing to do" option for cats where they just go on a random adventure on their own to find cool things for the player. Be it new friends or items. Regardless the game is now in a state where I believe nothing actually gets broken state wise. This leaves us back on adventures to start adding in adventure actions upon completely. For now the first one will be updating the status of the cat depending on the adventure they go on. We'll save that for tomorrow or Friday. I'm going to rest for the remainder of tonight.
  15. About the only negative is tomorrow I need to fill out a few SOs, luckily we only have debug assets currently so this won't take long.
×
×
  • Create New...