#Mithaldu's custom combinator

1 messages · Page 1 of 1 (latest)

gritty jay
#

lets continue in here

white hollow
#

sure

gritty jay
#

i can do this with circuits, but the UPS is too much
a script powered combinator will also use some ups depending on update rate

white hollow
#

configurable, optimally, but every 20 seconds at the fastest

gritty jay
#

sounds like that will be fine then

white hollow
#

note that i've already got most of the logic in lua, since i maintain yarm

#

the nature of the logic is really irrelevant, i just need to know how to make a box that every x seconds wakes up, reads its signals and writes its signals

gritty jay
#

sounds like you'll be needing 2 entities

#

an "inactive" combinator so you have your input points, and inside it an invisible constant combinator hooked up to both output points where you can set your signals

white hollow
#

is that how the arithmetic and decider combinator work also?

#

but sure, if that's how that works best, yeah

#

i'm just looking for a mod that already does this

gritty jay
white hollow
#

i see

gritty jay
#

a bunch of mod portal mods are bound to use that mechanic, but those would probably be overcomplicated examples to disect

#

i could probably cook up a small barebone example mod

white hollow
#

that was my conclusion too

#

i mean heck, if you wanna go that far i'd definitely be very appreciative :)

gritty jay
#

well my last 2 mods happen to be circuit related so i should be fine :D

white hollow
#

oh actually, given how much SE stuff i've done, you might actually be interested in what it's meant to do

#

as mentioned, i've been maintaining yarm

gritty jay
#

yeah

white hollow
#

and in yarm i've been trying to handle giving the user a proper estimate of "the way it's looking, your shit is gonna hit the wall in X hours"

#

but yarm being the way it is, it can only handle resources on the ground, and needs to do a bunch of expensive counting and such

#

worse, it can't do anything useful with infinite resources like oil, or resources that change their extraction speed, without getting a LOT more computationally expensive

#

plus it needs to do a lot of duplicate effort to track multiple mines, etc.

#

meantime we already have the tools to just span a bunch of wires and get a count of "we have x iron, x copper, x oil" per planet

#

so it'd be MUCH more useful, and ups-sparing, to just do all the observation on how it depletes and such on what a player has in their stores, instead of in the mine

#

plus, once it's a combinator you can hook up alarms to it

#

(mind, in practice all of this is basically sysadmin stuff, where experiences teaches measuring how full a drive ain't useful, warning when it's gonna be full in a week however is)

gritty jay
#

what kind of output signals do you plan to have? just like one to trigger the alarm? or also stuff like a T signal for estimated time?

white hollow
#

depends on what's easier really in terms of making a gui for it, etc.

#

the most simple version would be simply outputting the ETD, probably in minutes

#

then users can do post-processing with their own circuitry to display that on nixies or such

#

could however, if easily doable, ALSO output a signal that is just a flag that's raised whenever the ETD passes a threshold

#

a concern would also be smoothing, but that could be handled on the input side with a constant smoothing factor

gritty jay
#

note that my little example mod will feature no custom gui

white hollow
#

that's fine :)

#

i figure if i get invested enough i can learn from LTN combinator how to do that

#

also, for the start, since i have access to just plain signals coming in, that could be handled via a specific input signal too

wicked zincBOT
#

A set of general utility cominators. Includes: Location Combinators, Bonus Combinators, Player Combinators, Research Combinators

Owner

justarandomgeek

Downloads

904

cunning tusk
#

might be a handy reference

white hollow
# wicked zinc

in the readme, you might wanna fix this :) "teh" also yes, that looks really neat :D

cunning tusk
#

meh, i'm gonna have to rewrite teh whole thign for 2.0 anyway

white hollow
#

yeah, i feel that

gritty jay
#

@white hollow

cunning tusk
#

you're gonna get a lot of disappointed users posts with that title

gritty jay
#

its already marked as internal so i doubt the normal folk will come across it

cunning tusk
#

yeah that shoudl help some

gritty jay
white hollow
#

that looks great :D

#

ok, the search and replace method of cloning the decider combinator is funny, and useful

gritty jay
#

you're welcome

white hollow
#

thanks a bunch, that's exactly what i needed :)

gritty jay
#

didnt't feel like doing normal & hr version for each cardinal direction by hand

white hollow
#

see i don't even know what that means :D

#

also the handling of the invisible entity looks interesting, that looks like it would be hell to figure out

gritty jay
gritty jay
#

this demo is by no means perfect but it works and its how i roughly would use it, but feel free to ask for further clarifications or suggestions for things you seem to run into

white hollow
#

sure, once i have it running i'll see what issues come up :D