How do i create a suit/armor with integrated power supply?

Place to get help with not working mods / modding interface.
Post Reply
julius1701
Inserter
Inserter
Posts: 33
Joined: Sun Dec 17, 2017 8:33 pm
Contact:

How do i create a suit/armor with integrated power supply?

Post by julius1701 »

I want to create a suit with an integrated solar panel type energy provider and a integrated battery. Can someone pls help me?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by bobingabout »

With the current modding interfaces, I don't think you can, the suit itself accepts modules that does things, but can't do anything beyond being armor itself.
Maybe you should request for it to be possible in the modding interface requests subforum?
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

julius1701
Inserter
Inserter
Posts: 33
Joined: Sun Dec 17, 2017 8:33 pm
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by julius1701 »

Thanks for the reply. I will ask the devs. Can you make an Solar modul with integrated Battery?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by bobingabout »

...... maaaaybe, I've never tried. probably not.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by Ranakastrasz »

I've done something similar, in my Modular Armor revamp, but it was horrifically bad code, inefficient, and probably not worth the effort.
Namely the custom burner generators and conduits, before burner generators existed. It was pretty much a per-tick loop that looked at all player's armor's grids, and determined how much power to add, then looped through all items in the grid and added power to them.
Horrifically inefficient, but I couldn't find an alternative at the time.

So it is possible, absolutely. I have no idea how to do it efficiently.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

julius1701
Inserter
Inserter
Posts: 33
Joined: Sun Dec 17, 2017 8:33 pm
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by julius1701 »

Could i just add a buffer to the solar equipment?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by bobingabout »

julius1701 wrote:
Fri Feb 22, 2019 5:09 pm
Could i just add a buffer to the solar equipment?
It's what I'd try, adding buffer tags to the energy_source table, but I don't know if it would work or not. you should try it.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: How do i create a suit/armor with integrated power supply?

Post by Ranakastrasz »

julius1701 wrote:
Fri Feb 22, 2019 5:09 pm
Could i just add a buffer to the solar equipment?
I would say no, but it may have changed. That was one of the first things I tried back in ?0.12? or whenever I started my Modular armor mod, for custom generators. Had to use modified batteries instead. But who knows these days.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Modding help”