-
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
[WIP] Adds recipe to modify normal batteries to be used in vehicles. #39961
Conversation
I think that that's a good idea but I'd suggest to make batteries you can install at least medium ones. |
The problem with "minimal size" is that it will be rather weird and arbitrary limitation: the kind of "vehicle" you might be building may literally be just a solar panel or two powering a stereo system. P.S. Plus, the recipe does include a |
That's a good point. |
My instinct would be to add an item ( I was just thinking about the same thing after #39772, because you need a vehicle battery around to charge anything using the solar panel / frame / battery charger "vehicle". |
@AlexMooney Now, I pretty certain I can make that happen code-wise. Let's call it However, this does effectively make such a part an analog of "proper" recharging station. Key differences would be:
With that in mind: is that enough of a list of differences to be meaningfully distinct from charging station without rendering it obsolete? |
One more consideration: |
This is good; recharging stations remain useful to make sure your pile of spare batteries are always topped off. Grid adapter is still super useful for niche uses.
Someday the vehicle power grid will need to account for power instead of only energy. For now, I don't think it's a problem.
It should also take ~1 minute of vehicle interaction to install or remove a vehicle battery, to model making very careful electrical contact and attaching heat sinks to the soon-to-be-abused battery. There will be meme potential about running a firetruck off of a watch battery, but I'm okay with that.
I think so; the charging station fills up all batteries in a pile and you can load and unload it as fast as you can drop and pick up. The adapter isn't something you're going to want to use to recharge your batteries, but it's a substitute for vehicle batteries (which are normally very abundant) for niche situations and might be preferable for many folding vehicles. One more complication is the existence of disposable batteries. Are you planning to allow loading one into a grid adapter? If so, it might be tricky to change the vehicle code to disallow putting energy back into said battery. If not, it will feel strange to not be able to use a disposable battery to run your stereo. |
Not initially. For exactly reasons you specified.
Technically true, but (luckily) disposable batteries are actually pretty rare. |
Changed it from being multiply recipes (on per-battery basics) to one universal battery adapter. However, there are a few problems/questions I've encountered:
|
Looks like here: Cataclysm-DDA/data/json/vehicleparts/vp_flags.json Lines 197 to 202 in 789d3b2
and then add a line here: Lines 1913 to 1914 in 789d3b2
I think "requirements": {
"repair": {}
} and that will clear repairing. That said, I don't see any examples of the repair being made to be empty on an item. Maybe you should just make it repairable as a normal battery, to save key presses of uninstalling, fixing, & installing. |
@Tamiore are you just busy with other things, or you got stuck somewhere? I'm able to help out if you need it. |
@AlexMooney Everything's good, just lots of work last few weeks, haven't had much time to code for this PR. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
Feel free to resolve conflicts and reopen. |
General idea, community input welcomed.
Summary
SUMMARY: Content "Adds recipe to modify normal batteries to be used in vehicles. "
Purpose of change
Allow for normal batteries to be used used in vehicles power grid (after some modifications).
Because sometimes (especially with wilderness scenarios) it may be impossible to find "proper" vehicle batteries, while you DO have access to several normal rechargeable batteries.
Describe the solution
Modify a battery with the same materials used in
battery compartment mod
to make the battery vehicle-compatible.Describe alternatives you've considered
Add a vehicle part that (when installed) would allow for normal batteries to be installed without any modification.
Testing
Works ok locally (for the 1 recipe already added).
Additional context
So far I've added only a recipe for
light battery (high-capacity)
.This is a general template I can apply to all other types of rechargeable batteries.
However, at this point I'd like like to hear some input: