-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Pocket test #81173
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
Pocket test #81173
Conversation
I'm sure there's a better way
(continued from above) ERROR : src/item.cpp:1854 [ret_val item::put_in(const item &, pocket_type, const bool, Character *)] tried to put an item (smart_watch) count (1) in a container (outfit_storage) that cannot contain it: pocket with type (MAGAZINE_WELL) not found Error still happening |
Attempting to narrow it down. The call is odd. I can isolate it to generate a single message followed by the error. And then it gets called again and follows the expected function latb. |
Basic build passed. Good job. I’ll retrigger the failed tests and see how it goes |
Yeah, its a fair fix for now vs editing the loot table. I'm working through the logic of steps to determine if its truly an issue or not. The general gist I've got at the moment is any item that has pocket data magazine should not then insist on being loaded into a magazine well. I think the route to start then would be the is_magazine() would need to be more robust in its typing determination logic. But that then goes counter to the typing model of other types which are essentially assigned labels. So I'm unsure if there's a direction to take without a proper determination of either |
I'm a little concerned about the LTO build failure that keeps occuring. Can someone confirm merging this won't break a different build? cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling |
Remove smart watch test
Pedaaantry
Remove space, retrigger build
What is the purpose of the c++ change? It doesn't seem to me that does anything helpful, since Also unrelated changes should go into their own PR, or at the very least be described in the PR. |
Was seeing the error occur twice and tried to narrow down the first. Then noted that the outfit could just be changed to be like other basic containers that dont have tool flag. And yeah all for separating the changes out. Since the bugfix is blocking changes will leave that decision to others tho. |
Closing and recreating for basic build fixes. |
Summary
Bugfixes "Testing a continue for items that register incorrectly as magazines."
Purpose of change
Fix a build error.
Describe the solution
Implement a check to see if item is a tool or an armor and has a magazine. If it does, skip it.
Describe alternatives you've considered
No alternatives considered.
Testing
This run against the build.
Additional context