Factorio Automated: A 1000SPM self-expanding factory built with bots and Lua

Chris Uehlinger
Chris Uehlinger
246.8 هزار بار بازدید - 5 ماه پیش - Check out this followup if
Check out this followup if you have questions or issues with getting things running: Followup: Factorio Automated

The scenarios:
- Bot-based factory [FIXED AS OF 2024-02-19]: https://drive.google.com/file/d/1luWU...
- The older and less polished train-and-belt-based factory: https://drive.google.com/file/d/104kx...

Unzip these and put the folder inside the scenarios folder in Factorio's data directory: https://wiki.factorio.com/Application...

The bot-based one has a file in it called von_noying.lua, if you want to turn off biters set the safe_mode variable in that file to true.

If you want to transplant the root megatile to a new scenario, there are a lot of steps. You'll obviously need to copy-paste it, but make sure to bring over the blueprint book from the Blueprint Deployer, throw a stack of heavy oil barrels in one of the storage chests and put at least one logistic bot in one of the Roboports to bootstrap things. The pins the algorithm puts on the map also won't line up if you move the root megatile, so you'll need to adjust the variables PIN_OFFSET_X and PIN_OFFSET_Y in the Moon Logic combinator until they line up.

The save files (these are with the factories producing 1000SPM) may be easier to get running:
- bot-based: https://drive.google.com/file/d/1eG3f...
- trains-and-belts-based: https://drive.google.com/file/d/1Z0r3...

The code for the algorithm: https://gist.github.com/chrisuehlinge...

How this was recorded:
For clips where I'm talking about UPS on my M1 Max MacBook Pro, I recorded using a 4K30 capture dongle with screen mirroring turned on to force the resolution (since the Macbook Pro screen isn't actually 3840x2160). However I wanted 4K60 for as many clips as possible, so for all the other footage I used my Windows desktop (Intel 8700K) and used a GTX1080 for rendering the game and an RTX2080Ti for encoding the footage in the highest quality I could. I used OBS for all captures and edited in Adobe After Effects.

References:
- ‪@niftymaniacfactorio5050‬ GreyGoo Mk I: A self-expanding factor...
- ‪@DroCaMk3‬  Hi, I'm JOSEF! (Self-Expanding Factor...
- ‪@Nilaus‬  How I Made Factorio Play By Itself | ...
- The 10k SPM bot base: Reddit: 10k_spm_bot_base

FAQs that aren't answered in the video:

Q: How long did this take to make?
A: I started in 2021, I spent about 2 months on the initial trains-and-belts factory, then another month or two on the bot-based factory. Over the course of the past couple years I probably spent about six months total working on this, but most of that was tweaking and minor improvements.

Q: What's with the name?
A: The bot-based factory is called "Von Noying", a name that references the concept of "Von Neumann Probes" and which I came up with when I was frustrated with an issue I was running into. That name is all over all of my files now, so it's the one I'm stuck with. Notably, I worded the whole script to avoid saying the name because I'm honestly not in love with it.

Q: What are those two lines of lights on the root megatile?
A: Those keep track of the percentage of idle logistic bots. I keep those lights on their own power network so I can use the graph of their power usage to measure whether the factory has enough logistic bots over time.

Q: What's the deal with those two nuclear-related tiles in the root megatile?
A: Those were initially designed to be stamped out by the algorithm, but finding a good "build condition" for the uranium enrichment tile in particular proved difficult. In the end I discovered that one of each tile is enough to fuel 1000SPM worth of nuclear megatiles, so I just kept them in the root megatile to simplify things.

Chapters:
0:00 Introduction
0:45 Mods used
1:33 Part 1: The Design of the Factory
1:36 The Algorithm
3:10 Manufacturing Tiles
4:24 Solar Megatiles
4:54 Nuclear Megatiles
5:27 Oil Processing Megatiles
6:17 Mining Tiles
6:51 Part 2: The Factory Lifecycle
6:56 Kickstart demand with the "Mall of Shame"
7:42 Building the first Research Tile
8:17 The climb to 1000SPM
8:55 Biter Defense
10:09 Part 3: Evaluation Pros and Cons
10:15 Pro: Small Tiles mean low stakes
10:53 Pro: Fine-grain measurements of supply and demand
11:17 Pro: Transportation is simple
11:54 Con: UPS
12:35 Con: Water
12:56 Con: Modules
13:36 Things that aren't Cons
14:00 Other factories you should check out
14:35 Conclusion
5 ماه پیش در تاریخ 1402/10/29 منتشر شده است.
246,809 بـار بازدید شده
... بیشتر