Circuit Network Switch


Like the power switch but with red and green wires. Now with sprites...

7 years ago
0.14 - 0.15
15

a Looking for feedback!

8 years ago
(updated 7 years ago)

You can leave your opinions on this mod here. I'll use this to determine whether I should continue developing this or not.
Cheers TRK

EDIT: Not sure if it's worth mentioning by now but I have obviously decided to keep this mod alive so no worries about that ;)

8 years ago

Interesting concept, very useful for circuit isolation. Will definitely try it!

8 years ago
(updated 8 years ago)

It's updating every single tick, which might be a bit excessive. Also, the if statement and creation of two tables is also quite a lot of overhead. Something like this might be better (would need testing with the F4 debug menu to see what effect it has on performance):

https://github.com/aubergine10/scrapbook/wiki/better-tick-handler

8 years ago
(updated 8 years ago)

I knew the performance side of things wasn't going to be ideal - I'll sure work on it later.

As for updating every tick - that was actually intended to be that way for a good reason: when working with circuit network you often need exact timings and updating every other tick or more is unnecessarily long, not to mention it would create inconsistencies depending on when you build the device...

Thanks for the feedback, I appreciate it :)

8 years ago

So I tested what the performance is like and it didn't seem too bad even in the original form. I had 100 switches constantly turning on and off and didn't see any huge performance hits (well, aside from the game recalculating all the network connections, but I can't do anything about that...).

I then tried implementing some of your suggestions and while the performance did increase, it was just a tiny bit, not really noticable unless you run the game on 4x speed or something. But it WAS an increase so I published a new version without the if statement (the rest didn't seem to really matter).

Anyway, enjoy and have nice day TRK

8 years ago

Can you toss the code on github for easier viewing/discussion? I can definitely see myself using these if I needed no-delay MUXing for something, like to bank-switch memory arrays on my computer or something like that! (Also, come hang out on IRC, I'd love to talk circuits and see what you're using this for!)

8 years ago

Ok, I'll put it on github, just bear with me as I've never used it before...

7 years ago

Nice idea, could be very useful - but it isn't blueprintable :( Could you make it so please?

7 years ago

I'll try, but I already have a lot of things backlogged for Factorio mods and not enough time so just be patient ;)

7 years ago

Hi guy, this mod is very interresting, thanks...But it seems not work with new blueprint feature. ( 0.15.0 )
Am I wrong ?

Sorry for my english.

7 years ago

You are correct, it doesn't. I'm currently working on a solution for this, so hopefully I'll get it working soon.

Cheers TRK

New response