-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dumpster and vehicle storage #70184
Dumpster and vehicle storage #70184
Conversation
Co-authored-by: Karol1223 <[email protected]>
Co-authored-by: Karol1223 <[email protected]>
I still don't think seats should both act as large storages at the same time as a passenger seat (or bed). While you could presumably (no personal experience, obviously) strap in a corpse in a passenger seat, trying to stack the same volume of random stuff on the seat will be quite dangerous, as stuff would topple off the tile during driving and some of it could end up under the driver's pedals. |
70 liters isn't large storage. I've driven with groceries in my lap and I have driven with unsecured furniture and huge piles of groceries, boxes of books, and God knows what else in the passenger seat. There were no problems, and it's hardly less safe than anything else characters do, especially as the game takes place in a world with no traffic. As stated in the PR, I think adding consequences for unsecured belongings and bad driving is a swell idea, but it's no reason to prevent logical and realistic behavior. People do this IRL all the time. |
And to be clear, this wasn't just down the street and back. I moved over a thousand miles with all of my earthly belongings loaded up this way at high speeds on the freeway. |
putting a corpse or tons of junk on the seat is ok in my opinion, but what about storing 60L of items on the seat and then sitting on it and taking controls? |
I addressed this in the PR. |
Working on a solution to characters not counting as cargo. I think I've almost got it, will reopen when I do. |
I thought I had a very clever solution that worked quite well, and then I discovered that the stuff I edited in game.cpp was at the avatar level and not character. I have no idea how NPCs move. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There we go. All tests are passing except a mapgen test which is failing for all PRs and has nothing to do with this. |
This description is clearly out of line with other handling of vehicle tile size, e.g. #68603. |
Tiles are not consistently sized and never will be, it's all just ballparked between one and three square meters. This means in cases where I don't have a real world item (such as a wheelbarrow or specific vehicle trunk) to go off of, I am forced to make somewhat arbitrary decisions. If you start trying to do otherwise, you realize that all of our cars are like twice as big as they should be, tile-wise, but if they weren't as big as they are, we wouldn't be able to fit the necessary number of characters and seats inside, because in this game a human takes up an entire tile, just like a rat or an elephant. It's unfortunately necessarily nonsensical. An aisle usially means something like the aisle of a city bus, which is about that wide in my city. Since that's the case they're most often placed in the world as, that's what I have gone with. It also matched the existing description. It makes logical sense that such a space could hold as much as it does, so that's what we have. |
As far as I can tell, the established standard is vehicle parts are 0.5x0.5m square. For things like storage volume especially, this seems like an appropriate measure to use. |
There isn't really any kind of standard like that. A vehicle bed for instance would have to be almost two meters long and easily a meter wide, but it only occupies one tile. A wing mirror is a few inches across, still fills a tile. An aisle must hold more than a seat and be easier to maneuver through. These things are true because it's bigger. It has less capacity than something like a trunk (whosd volume is derived from actual manufacturer measurements). Logically about 100 liters of stuff (a corpse and a backpack, for instance) could be piled up there. That all checks out. If there's some issue with the description, it still wouldn't affect the storage volume, as the volume was decided somewhat arbitrarily since it is not a container but a flat space. The dirt example in the PR text was a sanity check which common sense says we still pass. I said one square meter could hold 333 liters of dirt. If it's a half square, that's 115, which is just about what we have. |
I have reason to believe there is: #68705 (comment) |
🤷♀️ Even so it doesn't affect anything other than a single comment line in the json that I didn't write. I wildly undershot the cargo size because 333 liters seemed excessive (how could an aisle hold more than a trunk?) and it looks like I was correct to do so. A trunk, if it's a .5 meter space, holds 300 liters. It is able to do this because it's enclosed. An aisle, if it's a .5 meter space, holds 100 liters. It holds less than a trunk because it's not enclosed. Makes sense to me. I don't think changing a single number in a comment line that players can't even see is worth opening a new PR for. |
Sorry, I was just trying to notify that what that aisle is saying is (by a statdard partially applied to some parts) wrong. I wasn't trying to suggest changes or anything (it's a comment on a closed PR, I wouldn't be surprised if nobody read it), unless you thought changes were necessary as a result. |
I changed the comment in #70393 |
I dragged my travois into a deadend and found myself stuck, with prompt "There's not enough room for you to fit there". Kinda annoying. |
Thank you for bringing this to my attention, I'm doing a PR to fix something else tonight and I can make travois work properly too. It's just a couple of sticks on the ground, you should be able to step over it even if it's full. |
Floor trunks are marketed as floor vaults if you want to do some research into that for a future PR. |
This issue will be solved if #70393 is merged. |
@@ -202,7 +213,7 @@ | |||
"damage_modifier": 60, | |||
"durability": 95, | |||
"description": "A small but comfortable bed.", | |||
"size": "50 L", | |||
"size": "100 L", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprised this passed tests you appear to have added an extra space after the number (More interested in tests catching this in future than a change to this specifically)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, yeah. I have fixed it in #70560 but that's something that shouldn't be getting through.
It seem to still be 87.5L. Did you forgot to change it? |
The floor trunk is meant as a walkable option when it's full, unlike an
aisle which blocks passage when full.
…On Thu, Jan 25, 2024, 9:56 PM maniak1349 ***@***.***> wrote:
- Upgraded floor trunks to 100 liters of storage for parity with
aisles.
It seem to still be 87.5L. Did you forgot to change it?
Also right now floor trunk makes no sense whatsoever - it requires the
same amount of time-effort-additional-resource to install, have the same
durability and walk speed, but requires specific part instead of readily
available sheet metal, weights more and accepts less cargo (same cargo when
fixed).
—
Reply to this email directly, view it on GitHub
<#70184 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5QN23USKXSUFPTXG2F6YLYQMLNPAVCNFSM6AAAAABAS57DX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRGMZDSNBXHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Oh, I see. Didn't know that. That's a fair game then. |
Not presently.
…On Fri, Jan 26, 2024, 12:40 AM maniak1349 ***@***.***> wrote:
he floor trunk is meant as a walkable option when it's full, unlike an
aisle which blocks passage when full.
Oh, I see. Didn't know that. That's a fair game then.
Also is there a way to tell a tileset to show full parts like that
differently?
—
Reply to this email directly, view it on GitHub
<#70184 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5QN27Z6GWCZDFFF73DW7LYQM6UNAVCNFSM6AAAAABAS57DX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRGUYTMNJRHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This reverts commit c390b86.
Summary
Bugfixes "Vehicle parts check creature size, increases storage of dumpster and vehicle parts"
Purpose of change
Closes #69159
Closes #70180
Several vehicle parts which should logically be able to store a human corpse, namely beds and seats, were unable to do so. Additionally, dumpsters were not providing any storage advantage despite that being their explicit purpose IRL.
As pointed out in the comments, simply turning up the storage volume on seats was problematic as you could then have a seat store both a corpse and a person. Therefore I took the opportunity to make characters and monsters dynamically check cargo space when moving through vehicles. This makes being a mutant, especially a large or huge one, more impactful, and will similarly affect power armor and CBMs if these are ever able to change a character's effective size.
Describe the solution
VEHICLE SEAT STORAGE AND COMFORT
STORAGE VS CREATURE SIZE
Describe alternatives you've considered
None
Testing
Additional context
Overall this is a pretty big buff for vehicle storage, but I don't really see that as an issue if it's more realistic this way. Additionally, players are constantly needing more storage space as crafting gets more complex and more junk gets added for them to haul around.
I do absolutely think that when swerving at high speeds or colliding with things, unsecured items should go flying around the inside of the vehicle, possibly breaking, getting flung from the car, or hurting the occupants. I suspect it would be difficult to do this without massive lag but it would be super funny.
While working on this, I realized it may be a good idea to add a json field for furniture and vehicle parts that increases the cost to retrieve items stored there. This would be appropriate for high volume storage solutions which have no compartments or shelving, such as the dumpster. It can hold a lot, but getting stuff out of it would be inconvenient.