Skip to content

Bionic power supply tool mod#57501

Merged
Fris0uman merged 3 commits intoCleverRaven:masterfrom
Nerezza:BionicPowerSupplyMod
Sep 1, 2022
Merged

Bionic power supply tool mod#57501
Fris0uman merged 3 commits intoCleverRaven:masterfrom
Nerezza:BionicPowerSupplyMod

Conversation

@Nerezza
Copy link
Contributor

@Nerezza Nerezza commented May 7, 2022

Summary

Content "Adds a craftable kit to convert devices to use bionic power. Become buddies with Rubik to learn how."

Purpose of change

With CBMs being sourced from the Exodii now, the bionic UPS doesn't make much sense anymore. However, a tech-wielding, wayfaring nomad needs to power the gadgets in their backpack somehow and their internal power generators would be ideal if they could just tap into that energy somehow.

Describe the solution

The basic bionics kit the Exodii initially install in us includes an external interface we already now use to power some of the Nomad gear, so if that interface can supply bionic power why don't we connect that to a power converter and attach it to our own technology? With some electronics know-how and at least a vague explanation of what that Exodii interface wiring kit does, someone handy with soldering and electric circuits shouldn't have trouble doing just that.

To begin with we first need to become good buddies with the Exodii. Get to the point where Tier 3 CBMs are being offered to you and Rubik will also offer to sell you the technical reference for the Exodii CBM interface wiring kit (along with some more surplus wiring kits being made available for you to purchase).
See Screenshot 1 for the tech reference.

It's hard to understand the alien technical reference, but at least someone left notes to make it possible to decipher if you know what you're looking for. If you have at least 4 knowledge in electronics you'll learn enough to know which wires are the important wires for your power project.
See Screenshot 2 for the recipe.

Once you make the tool mod, activate it and install it just like a UPS conversion mod! Speaking of a UPS, it can't be installed on a UPS or devices that normally get power from a UPS. The former requires fixing an issue with how UPSes work, and the latter requires modifying how tool mods modify devices they're installed on. Anyway, see screenshot 3 for my bionic-powered flashlight.

I'd post a screenshot of my flashlight lighting up an evac shelter basement and draining my bionic power pool while waiting for 30m, but you'll probably take my word for it.

The single line I changed in C++ should be self-explanatory: it's to prevent having both the USE_UPS and USES_BIONIC_POWER flags on the same object simultaneously, and to prevent bricking a UPS by installing this mod on one. Again, the UPS is coded with a special way to consume power that's incompatible with this.

Describe alternatives you've considered

Figuring out how to fit a bionic UPS into the new bionics lore. UPSes are already probably going to be cut content soon enough so I figured I could just ignore them with my solution.

Making the cable charger CBM specifically provide (and be a requirement for) power to devices. This would require a bunch of new C++ code to implement, while the solution I've come up with makes use of already existing features and already existing item flags.

Testing

I downloaded and compiled the repo with my single changed C++ line, which resolved (or rather prevents) a bug I observed before I'd made that change. I've manually confirmed Rubik will begin to stock the tech reference and extra wiring kits at 20 favor with the Exodii, and I've made my new recipe then attached it to devices to test that they draw power from my character's bionic power pool.
Unless there are other tools with special power consumption code like the UPS that I don't know about, there shouldn't be any battery powered tools that can break with this tool mod installed.

Context

bpmbook
bpmrecipe
bpminstalled

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons labels May 7, 2022
@Nerezza
Copy link
Contributor Author

Nerezza commented May 7, 2022

Working on fixing the styling right now, sorry p:

@Nerezza Nerezza force-pushed the BionicPowerSupplyMod branch from 2d37f05 to bfb1e48 Compare May 7, 2022 04:21
@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels May 7, 2022
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 7, 2022
@stale
Copy link

stale bot commented Jun 12, 2022

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.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants