MarcioHuser / EfficiencyCheckerMod-SML3

GNU General Public License v3.0
5 stars 5 forks source link

Add power connection to allow network connections to efficiency detecting buildings. #18

Closed ZTenski2 closed 10 months ago

ZTenski2 commented 1 year ago

Hello,

I noticed that the Ficsit Networks compatibility appears to be broken due to not being able to connect network cables to the detectors, so I fixed it (clumsily, I may add; I'm kind of new to this, so improvements to this simple block are probably possible).

This PR adds the ability to connect network cables to the buildable detectors. Connection point is on the bottom, probably could be made better if moved. Also, allows the connection of a single power wire which does nothing if attached, which could be prevented by setting the max connections to 0 on an extension of the UFGPowerConnectionComponent, but I'm kind of new to this so I didn't mess with it too much.

ZTenski2 commented 1 year ago

Built and working for me image image

Edit: Did not break my existing detectors, and does not add any connection mesh to the detectors that I saw (unlike when connecting to a storage container for example). Although I had a limited number placed due to just starting to mod in this game :)

Edit2: Added a missed header from my original change.

MarcioHuser commented 10 months ago

The thing is: the building already has a power conection. It used to work before, but the network cable building no longer detects the presence of the connector in the checkers 🤷🏽‍♂️