Page 1 of 1

Yet another programmable microcontroller mod?

Posted: Fri Apr 02, 2021 12:26 pm
by ZwerOxotnik
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.

Re: Yet another programmable microcontroller mod?

Posted: Sat Apr 03, 2021 5:07 am
by Optera
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.

Re: Yet another programmable microcontroller mod?

Posted: Tue Apr 06, 2021 3:49 am
by eradicator
Optera wrote:
Sat Apr 03, 2021 5:07 am
I see no point in coming up with some made up assembly language to be interpreted by lua.
Yea, not until someone comes up with a language+compiler that outputs vanilla blueprints :D.

Re: Yet another programmable microcontroller mod?

Posted: Sat May 29, 2021 6:00 pm
by Qon
eradicator wrote:
Tue Apr 06, 2021 3:49 am
Optera wrote:
Sat Apr 03, 2021 5:07 am
I see no point in coming up with some made up assembly language to be interpreted by lua.
Yea, not until someone comes up with a language+compiler that outputs vanilla blueprints :D.
I'm trying my best to not do that but the temptation is real. :ugeek:
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.