Shortly, you can extend/simplify circuit network using mods like MicroController, fCPU, FactorioScript, Moon Logic etc
Examples of usage:
And, I pondered, do you want yet another fast programmable microcontroller mod?
I guess all of those realizations are not enough productive for players and for the game. Also, there are many matters to make syntax obvious etc...
If people still really interested in that, perhaps, I'd make one from scratch.
Yet another programmable microcontroller mod?
- ZwerOxotnik
- Fast Inserter
- Posts: 114
- Joined: Tue Dec 19, 2017 6:58 pm
- Contact:
Re: Yet another programmable microcontroller mod?
At best you'd expose lua directly like LuaCombinator3.
I see no point in coming up with some made up assembly language to be interpreted by lua.
The few cases where I could see myself using micro controllers they will always be too slow to make any practical sense.
I see no point in coming up with some made up assembly language to be interpreted by lua.
The few cases where I could see myself using micro controllers they will always be too slow to make any practical sense.
My Mods: mods.factorio.com
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Yet another programmable microcontroller mod?
Yea, not until someone comes up with a language+compiler that outputs vanilla blueprints :D.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Yet another programmable microcontroller mod?
I'm trying my best to not do that but the temptation is real.eradicator wrote: ↑Tue Apr 06, 2021 3:49 amYea, not until someone comes up with a language+compiler that outputs vanilla blueprints .
I considered a lua subset without tables, strings and floats and no library might be straight forward. But then you can't really take advantage of the fact that all combinators execute in parallel and can't make anything reasonably fast if if you need to send a lot of signals to a lot of places at once.
My simple HDL for edutainment is going to have a compiler to combinators eventually, any decade now. But it will happen. Not for practical purposes though.
On topic: I use moon logic/lua combinator or vanilla combinators. If I'm using a mod then I want to be able to do things too complex for vanilla combinators and everything that isn't full Lua is essentially just vanilla with the added risk of having your creation be lost to a bug or an update with no value of note.
If I am ok with wiring up combinators then vanilla combinators can do everything already and have no bugs or performance issues. And I can share my stuff with the community instead of being locked into a small subset that decided to use the same half-useful modded combinators as me. Making things 2% more convenient isn't worth it when it makes it many times harder to share it through time and space reliably. And I don't want to cheat myself of the small challenge of building a usually fairly simple contraption that does the same without mods. You just have to get used to the combinators instead of modding away any small problem due to your own lack of understanding. Imho.