Coder Social home page Coder Social logo

Comments (13)

Whales avatar Whales commented on July 17, 2024

Almost definitely not.
In Cataclysm 1, inventory management was pretty bad. For Cataclysm 2, I'm trying to make it a lot easier on the player. Forcing them to manage what article of clothing holds what item would be a nightmarish step in the wrong direction.
As usual, I could be wrong. I can't think of a way to implement this that wouldn't be a horrible burden, but if someone else can I'm open to ideas.

The issue of "dropping your backpack to enter melee" is a valid one. In C1, the idea there was to force dedicated-melee players to simply carry fewer items. Of course, that didn't work; players want to have their cake and eat it too, and the engine allowed them to do so by dropping their backpack when entering melee.
My planned solution, for now, is just to remove backpack encumbrance. It's not ideal, but it's the best solution I can think of.

from cataclysm2.

HeIsMohawk avatar HeIsMohawk commented on July 17, 2024

I see what you mean. One potential middle of the road solution would be to track items considered "in pockets" separately from those inside a container. Things like backpacks, plastic bags, and fanny-packs, could be grouped separately from clothing for the purpose management. So if you were wearing a backpack, fanny-pack, cargo pants, a hoodie and an ammo belt, the program could track them as 3 distinct inventories. this would only be for the purpose of organization and they would still be displayed as a single Inv. list. the only micromanagement could be a quick choice when you pick up an item about where you want to store it.

from cataclysm2.

superninjakiwi avatar superninjakiwi commented on July 17, 2024

Maybe if dropping a storage item leaves more items then you have room for, it drops items until your item volume is <= your maximum volume. Then when picking up a storage item on the same square as another item, ask if you want to put it on. If (Y)es, add items from the ground until maximum volume is reached or you cannot pick up any more items.

from cataclysm2.

Whales avatar Whales commented on July 17, 2024

Making the player track three distinct inventories is exactly what I want to avoid. Having to pick where to stash something, and inevitably having to move stuff around later on, is what I had in mind when I said that per-item inventory would be a burden.
Superninjakiwi, that was something I'd planned for in C1 (and kind of implemented), but it's still a large chore to be repeated every time you drop your backpack (or whatever). Automatically picking up items takes away the easiest part of that chore, but it leaves the larger, more annoying part of picking what to drop.
Again, the easiest (for the player) solution seems to be to remove the situation where the player picks items to drop (or to keep in their backpack), by removing the reward for taking off your backpack. The backpack can still be destroyed, and items will have to be dropped then, but that's a relatively rare occurrence.

from cataclysm2.

superninjakiwi avatar superninjakiwi commented on July 17, 2024

I was assuming that a system would be in place that automatically decided which items to drop, such as either tracking most recently picked up items, or using a semi random number generator. If there is no way to avoid having the player decide what to drop, then I must agree that such a feature would be more of a hassle then it's worth.

from cataclysm2.

Whales avatar Whales commented on July 17, 2024

Oh, I misunderstood. Random or chronological dropping is definitely an option, but I remember in C1 that it wasn't a popular one. Players would instead drop items before dropping the backpack, to gain control over what to drop. That can be foiled by making dropping items take time I guess... it does make dropping the backpack a potentially strong drawback, which is kind of what I want.
So that could work! I'm sure everyone would complain about not getting the choice of what to drop, of course :)

from cataclysm2.

HeIsMohawk avatar HeIsMohawk commented on July 17, 2024

while there are technically three inventories, the player only needs to see one. you could have a tag on the item indicating where it is. I also think it might make it easier if certain items automatically sort to the best container. i.e. a lighter is small and would automatically be stowed in clothing. I think of it almost as a sorting system within the inventory, you could have it auto sort to maximize space. this could also open the possibility for things like mission specific load-outs. for instance, if I need to go on a long scouting mission I'd grab a bag that is stocked with alot of provisions, and if I'm doing an assault mission then I'd grab a bag with more ammo and medical supplies. I agree that the player shouldn't be forced to micromanage his inventory, but the ability to compartmentalize could open up a lot of possibilities for managing NPC's both as far as load-outs and when it comes to setting up missions. Superninjakiwis idea could be used to eliminate the micro management aspect for those who don't want to deal with that

from cataclysm2.

Whales avatar Whales commented on July 17, 2024

Yeah, I get that the player only sees one, but they still have to manage all three - decide where an item goes when they first pick it up, and move items around later on. Autosorting might work okay, but I'm not sure what it would look like, and whether it would fit all players' needs. At the end of the day though, it's still an extra thing for the player to be aware of and keep track of, no matter how it's done, and like I said, we need to be moving in the opposite direction from that. Picking a load-out can be done just fine without the complexity of storing that load-out in a specific bag; just pick the items.

from cataclysm2.

vipches avatar vipches commented on July 17, 2024

Seriously, How did you make labels on you title?

from cataclysm2.

Whales avatar Whales commented on July 17, 2024

I don't understand the question...

from cataclysm2.

vipches avatar vipches commented on July 17, 2024

nothing, just seen a enhancement on his title right, and I also got mail for you, whale.

from cataclysm2.

vipches avatar vipches commented on July 17, 2024

If only we can have a forum...

from cataclysm2.

Whales avatar Whales commented on July 17, 2024

Oh, the "enhancement" label was added by me. Not sure if others can tag issues.
Anyway, closing this for now. If anyone has a specific suggestion for how to implement inventory - specific to the point of including pseudocode, or similar - please open a new issue. Better yet, make a pull request with some actual code.

from cataclysm2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.