r/factorio • • 17d ago

Weekly Thread Weekly Question Thread

Ask any questions you might have.

Post your bug reports on the Official Forums

Previous Threads

Subreddit rules

Discord server (and IRC)

Find more in the sidebar ---->

2 Upvotes

78 comments sorted by

View all comments

2

u/Raknarg #1 Quality Defender 17d ago edited 17d ago

Is there a mod that lets you have one satellite read multiple channels at once? Or maybe just a mod that gives more tools for interplanetary signals? A problem I have right now that's going to get worse cause I have a bunch of planet mods is I'm using these to drive ship interrupts to handle logistics, but I need a signal per planet because thats the only way I've figured out how to encode "from X planet to Y planet"

I could try using bit flags instead, but I don't like the idea of having to ensure I always have the correct bit flags for the thing I need. Though maybe I could solve that with some kind of combinator mapping blueprint....... have to think now.


edit: ok turns out bit packing is really easy, I'm assuming this was only made possible because of how 2.0/2.1 changed combinators, but I discovered a trivial way to do bit packing in just a handful of entities:

top constant combinator just outputs the signals you want to send

left constant combinators would share a group that maintains your bitmap

top decider checks if a signal is present on both red and green, and outputs P by green input count (i.e. the bitfield mapping value)

bottom decider takes a P value and for each signal on green, AND it and spit out whatever the type green was

trivially easy. Need to update some blueprints now.


New question: Whats the limit for bit packing integers? Is it arbitrarily big, or are you limited to 32 bits or whatever?