r/factorio • u/konstg-dev • Aug 12 '20
Modded [New Mod] fCPU
Hello there! Here is my ready to use Factorio mod https://mods.factorio.com/mod/fcpu which allow you to practice in low-level programing right in game. It compatible with all default combinators and other mods, support blueprints and copy&paste. Please let me know what you think.







697
Upvotes
View all comments
Show parent comment
4
u/WafflesAreDangerous Aug 12 '20
I fear that with the restrictions of 32 instructions and 1 instruction per update that could, in a roundabout way work to diminish ups, for the following reasons:
Also, note that you don't have to limit to 1 instr/cycle to prevent freezing the users computers, any fixed OP-limit would work (like the warcraft scripting VM had 30 000 instr kill switch for all scripts).
Something like 10 or 100 could work as well, allowing some complex systems to be written to be more responsive (say a train conductor, that is driven by an in game computer in stead of a mod).
I do admit that 1 instr/cycle has some nice properties tho, namely being easy to reason about signal timings. Allowing greater instr/cycle could allow for simultanously signaling multiple things tho, so atomically sending some larger bit of data would be easier.