-
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
Un-Swappable Storage Batteries #34741
Comments
First off: Mods are never Second: that change from six months ago cannot possibly be responsible for this problem, seeing as how I was installing swappable storage batteries without welding for months afterwards. |
I have added the mods I am using. As you can see, they clearly have zero impact on the relevant section of the game and are, as such, not applicable to this bug. |
I've already confirmed the bug without mods, I'm just stating that as a matter of policy for bug reports of this type, N/A is incorrect; it's always possible one of them does have impact and you just didn't realize it. |
So in the future when I duplicate the bug in my modless testbed should I put "None" instead of N/A? |
Yes, but I would request in such a case you explicitly state you tested it without mods; we've had instances in the past with users reporting "none" when they had an arbitrary mod they just assumed couldn't possibly be the problem and thus not worth mentioning (even though it turned out to be the problem). It's best to not have any ambiguity. |
I've narrowed the cause down to #34455 by @jbytheway. I'm not sure what the correct fix is here, hopefully he can shed some light since he's been putting a lot of work into json parsing cleanup lately. |
I have a workaround fix that "solves the problem" by requiring a screwdriver, but I have a better solution in mind that just requires me to go through the vehicle parts json files. |
Could you outline that solution? I'm sceptical of a solution that requires you to edit anything ut the involved code or parts. |
I'm not sure where you got the idea that vehicleparts json files aren't involved as they are the reason that jbytheway made the changes to the "using" code that he did. By figuring out what needs to be changed on both ends, I can hopefully either reverse his change, or possibly render the entire legacy section of veh_type.cpp obsolete by updating the json. |
I assume it must have been the change to |
|
Makes sense. |
Describe the bug
Storage batteries cannot be installed into their case without using a welder.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The storage battery can be installed provided you have the strength/lifting to do so.
Versions and configuration
Additional context
A change from six months ago #29595 made storage batteries use non-legacy requirements. As the code currently stands, this prevents the removable version from being installed without a welder. The "using" array remains present in the removable copy. I have a current naive solution working which uses the fact that a single string "using" will overwrite the array of the base object, but will submit a PR later this evening with a hopefully more robust solution.
The text was updated successfully, but these errors were encountered: