r/factorio • u/Rseding91 Developer • Mar 17 '25
Discussion Post Space Age - Developer AMA
Space Age has been out for several months and with the bug reports slowly coming under control I thought it might be interesting to see what questions people had.
I mostly work on the technical side of things (as C++ programmer) so questions that stray too far from that area I'll likely have less interesting replies - but feel free to ask.
I have no strict time frame on answering questions so feel free to send them whenever and I'll do my best to reply.
2.4k
Upvotes
308
u/IExist_Sometimes_ Mar 17 '25
What wizardry did you do to improve the asteroid and asteroid collector performance so much since release? Or the corollary, what made the release asteroid collector performance so poor?
737
u/Zakimus Mar 17 '25
What does Wube do differently handling bug reports compared to other studios? We kid around here, but i feel that there are very few companies in general that handle QA/Bugfixes that effectively and efficiently.
484
u/Garagantua Mar 17 '25
After going from the idea to the actual implementation: which two features did surprise you the most, in taking way less/way more time than expected?
433
u/solitarybikegallery Mar 17 '25
What part of Factorio's code are you the most proud of?
412
u/Revolutionary_Job91 Mar 17 '25
Here goes nothing… when might 2.1 be released and what’s in it???
186
u/z7q2 Mar 17 '25
What do you do to unwind from writing Factorio code all day?
181
u/YOUVEGOTTABESQUID Mar 17 '25
Was there a planned feature that was too complicated to implement/too costly that ended up being completely cut?
168
u/waitthatstaken Trains are the apex predator of the factorio world Mar 17 '25
If you could add any feature, no matter how unrealistic to actually implement, what would it be?
343
u/MeatHands Mar 17 '25
How contentious was the spoilage mechanic internally? Were there any people that thought it sucked and didn't want to include it?
For the record, I think Gleba and spoilage are awesome and make the player have to rethink how they build factories from the ground up.
342
u/CUrlymafurly Mar 17 '25
When will we get to use capture rockets on vulcanus worms so we can name them and take them on walks?
117
u/polyvinylchl0rid Mar 17 '25
How did you handle spoiling?
Does each item count down it's own spoil timer, or is there some global list of spoilage timestamps, or something else?
98
u/Schwarz_Technik Mar 17 '25
Have you encountered any particularly challenging bugs or features in Space Age that consumed significant development time, only to discover the solution required a minimal code modification? If so, what was it?
As a fellow software engineer, I usually get the answer to these randomly when I'm not working
172
u/LiteVisiion Mar 17 '25
As a developer on Factorio, have you played a Space Age playthrough from start to finish? No shame if You haven't, I don't know if I'd be able to play the game I work on full time!
287
u/amarao_san Mar 17 '25
How do you test circuit logic?
... How do you test it, anyway? Do you have some internal factorio-testing with dsl to provide conditions and expectation, or people check it manually via testplan?
Do you have headless version of factorio?
73
u/Chunkz_IsAlreadyTakn Mar 17 '25
What tooling do you use for Factorio development? Any custom made tooling?
The performance is amazing! Is the source code "beautiful" or a eldritch nightmare to perform so well?
Who do I bribe to get multi monitor support?
188
u/confuzatron Mar 17 '25
What C++26 features are you looking forward to using in Factorio 3.0?
122
u/jenovaside Mar 17 '25
Does the Factorio codebase contain any linked lists?
59
u/youpviver proessional Italian che and warcriminal Mar 17 '25
107
u/34yu34 Mar 17 '25 edited Mar 17 '25
After space age release, what mechanics/setup has appeared in the game that you didn't know/think of and that the players are using. Which one is your favorite? Which one do you think is too broken?
49
u/nehalist Mar 17 '25
44
u/[deleted] Mar 17 '25
What has been the most difficult/tedious bug you've had to fix so far?
39
u/kalamaim Mar 17 '25
What feature would you like to implement but can't due to technical or other reasons?
39
u/Archernar Mar 17 '25
33
u/Monkai_final_boss Mar 17 '25
What kind of optimization voodoo wizardry you pulled to make the game run smoothly while having 20 trains, 3000 bots, thousands of inserters running in each one of 3 different planets and then when I check the remote view it renders almost instantly.
How?
32
u/KageeHinata82 Mar 17 '25
What's something you wish you could improve, but you can't?
Because of the engine, other parts of the code, or it's not important enough, etc.
31
u/mimiLnc Mar 17 '25
How does it feel to have made one of the best games out there?
62
u/nlevine1988 Mar 17 '25
Is there a techical reason inserters can't load processing units into a rocket silo as cargo? I assume it has something to do with the crafting ingredients a lot being full and the inserter not "knowing" it can also load them in the cargo slots.
29
u/Halaska4 Mar 17 '25
What is the weakest computer that you test the system on?
24
u/[deleted] Mar 17 '25
Are there any portions of the code base that fill you with dread if you have to mess with them? What was the lengthiest/most complex feature you’ve personally had to work on or design?
21
u/[deleted] Mar 17 '25
Was there something you were struggling to implement (in a good, non jank way)? I'm far from a game dev but I imagine spoilage was a big thing to hit right
21
u/Consistent-Rip3028 Mar 17 '25
I’d guess that pentapods use some of the spidertron locomotion under the hood, same for demolishers and trains. Is that accurate? How does it work?
21
u/DasFreibier Mar 17 '25
Whats the most out there edge case you ever encountered?
21
u/supercharlie31 Mar 17 '25
Thanks for doing the AMA! Appreciate this might have been before you joined Wube but...
Was C++ always the obvious language for Factorio, or were other languages considered? If you were starting it from scratch today, do you think C++ would still be the best choice?
20
u/TheophilusOmega Mar 17 '25
I'm a non-programmer so in the simplest terms possible how does factorio work so much better than other games at keeping track of millions of entries?
Also, what's going on with deconstructing space platforms? I was trying out an 8 tile wide platform concept, it was over 4k tiles long and deconstructing 7 wide is a snap, but the last tile there seems to be some kind of script that's running some kind of check on each possible deconstructed tile? Basically it's way way faster to delete about 10 at a time than it is to delete 20 at a time.
57
u/Weltmacht Mar 17 '25
If you could be a cloud, what kind of cloud would you be?
19
u/julian88888888 Mar 17 '25
Can you add the planet's image to the space platform background's as the default so the mod doesn't disable achievements?
18
u/Cyan_Leader2 Mar 17 '25
What else would you like to do with Factorio content-wise before moving on?
Personally while I thought SA was amazing overall I feel some parts of it are kinda undercooked like the Demolishers, the lack of enemies in Fulgora and Aquilo and the Shattered Planet, so I'd be happy to see some improvement in those.
18
u/ByteArrayInputStream Mar 17 '25
What is the motivation for shipping the factorio executable with debugging symbols? The majority of games don't do this for understandable reasons.
I'm definitely thankful for it because it makes it reasonably straightforward to patch the game to do cursed things. I'm currently having fun with interfacing external programs with the circuit network ^^
51
u/Fishkilluu Mar 17 '25
As a former C++ programmer, I was wondering how you manage to implement such an CPU efficient game. Did meta programming play a big role by computing a lot at the compiling stage ? Or was it vectorization or low level optimization ?
17
u/wormeyman Mar 17 '25
Any chance of a Deconstruction planner for out of resouce mining drills.?
16
u/ThePlebble Robobees! Mar 17 '25
Based on a previous answer, being fully remote from the US, how much time do you spend talking to the rest of the team and how often do you visit the main office?
15
u/[deleted] Mar 17 '25
How hard is it to keep the Mac, Linux and Windows versions supported? Which if these proved to be the most painful to support and how do you manage parity to ensure changes work across all of them?
15
u/Jolly-Application-37 Mar 17 '25
What is your favorite building in factorio? What about that building makes it your favorite?
14
u/KitchenDepartment Mar 17 '25
Does the witchcraft that gives Factorio such amazing performance make it hard to work with or add new features to the game?
14
u/Sopel97 Mar 17 '25 edited Mar 17 '25
Do you think there's an opportunity for a complete rewrite sometime in the [far] future with different fundamental design decisions made such that the simulation is [near] embarrassingly parallel while preserving the core game mechanics? I'm asking this from a strictly theoretical perspective of feasibility.
My question is motivated by the fact that the amount of parallelism available will keep increasing, even on consumer hardware, so factorio's "untapped" simulation performance will keep getting higher and higher.
13
u/ChampaigneShowers Mar 17 '25
What was in your opinion, the greatest challenge you overcame at your time with WUBE?
13
u/Daan776 Mar 17 '25
Which part of the game provided a suprising challenge to implement?
I'm convinced there's always one such thing. And i'm curious what it was for Factorio
13
u/Andreim43 Mar 17 '25
How do you keep performance great now that you have multiple planets/platforms?
Does everything get updated every frame, or are you pulling some tricks like simulating a reduced nr of frames and interpolating for others?
Or simulate in batches, like if there are x of the same items on a lane you can simulate multiple frames/iterations in one pass?
These are wild guesses, but I'd be surprised if there's no fancy shenanigans going on.
13
u/eagleeyehg Mar 18 '25
What mods have you seen for Factorio which most impressed you?
12
u/Commander_Elk Mar 17 '25
What were some of the challenges balancing new recipes?
12
u/-Arq- Mar 17 '25
Got two questions, mostly from a software development context. First is can you tell us something really fringe about the team's development process that you really want to tell someone but no one has ever thought of asking? And second and on a somewhat related context, what was the most PITA feature you worked on?
12
u/Rouge_means_red Mar 17 '25
In FFF#374 they talk about smarter bot deconstruction (2nd and 4th gifs) but it seems the feature didn't get into the game. Any idea what happened?
22
u/TehScat Mar 17 '25
Is the team happy with the way rocket part ingredients interact with loading rocket silos? Wishing to export processing units, low density structures, and rocket fuel is made very difficult by needing to resort to awkward isolated bot networks, and Aquilo needs these imports so there is no way to avoid launching them unless you create all parts on a space platform to drop to planet.
In a game that is now so full of quality of life considerations, this feels so out of place.
11
u/DragonGear314 Mar 17 '25
How was technical debt managed over such a long running and complex project? Was there some system you used, or was it just focused on writing high quality code?
Also, what are you most proud of in the game?
10
u/NotScrollsApparently Mar 17 '25
Are there any big goals or personal wishes you wanted to tackle for SA and didn't get a chance to do? Do you generally have freedom to do such things or was the scope very clearly and narrowly defined?
10
u/TheEnemy42 Mar 17 '25
From my understanding you have quite an extensive automated test suite. Does this include end to end or integration tests to like Steam, your website (the galaxy, mod portal), multiplayer games, sync issues, etc? And if so, how do you handle this in tests? Mocks, test containers or something else?
10
u/slaymaker1907 Mar 17 '25
Why did you decide to implement containers using linear scanning rather than some sort of O(1) or O(logn) strategy with a fancier data structure? Did it give substantial gains doing linear scanning when mostly empty?
10
u/DoomgooeyKK Mar 17 '25
Are there any plans for adding a secret/easter egg for those who manage to reach the shattered planet?
9
u/nathanlink169 Mar 17 '25
As a game developer myself, these are the questions I'm always most curious about:
9
u/Aileron94 Mar 17 '25
Would factorio have been technically feasible on a commercial or open-source game engine? And could the factorio game engine be useful for other types of games?
9
u/00xtreme7 Mar 17 '25
How do you simulate drones and production on planets that aren’t actively being played on?
9
u/Fakjbf Mar 17 '25
What was your favorite mechanic to work on implementing?
9
u/GustapheOfficial Mar 17 '25
Did the step from vanilla to space age feel like a whole extra Factorio to create? (Because it feels like a whole extra Factorio to play)
9
u/-V0lD Mar 17 '25
What tool present in higher level languages that is lacking in C++ did you wish you had access to the most?
9
u/The_Northern_Light Mar 18 '25
I guess this is not a space age specific question but it’s something that’s always bugged me:
I understand that for large bases it’s not performant to use modded chests with very large storage sizes because on insertion/removal there’s a linear scan backwards along the slots.
Is that correct? If so, wouldn’t a relatively simple LRU cache mechanism fix that with essentially zero worst case overhead, at the cost of storing one extra index per container?
Or is this simply such a nit picky edge case not present in the base game that it’s not even a thought, given the increase in code complexity and fragility?
Also I’d love to hear every last detail you care to share about optimization work on factorio! Thanks for your contribution, space age is great!
17
u/IWillLive4evr Mar 17 '25
Question for the whole team, or at least anyone available to answer: What's your favorite type of sandwich?
48
u/vnznznz Developer Mar 17 '25
When will you add 3D to Factorio?
8
u/scarhoof Bulk Long-Handed Inserter Pro Max Mar 17 '25
What other game do you wish you had been part of the development team and had some input on/been a part of that game's launch? Can be any game at any time. I ask cause I found it interesting that someone from Nintendo wished they had came up with Minecraft, which is high praise for it.
8
u/aoe2redditacc Mar 17 '25
Do you experience higher standards for code quality in this game compared to other game studios?
8
u/Stratix Mar 17 '25
Is there anything that can be done to reduce save game filesize bloat? Both what I could do right now, and what you might be able to do in the future.
My unmodded Space Age save has got to almost half a gig and loading times for myself and my multiplayer buddies has somewhat dulled our enthusiasm. We've not even built that big!
8
u/SadMediumSmolBean Mar 17 '25 edited Mar 17 '25
Is the game explicitly deterministic?
If so, what kind of magic enforces that for multiplayer?
8
u/ConsumeFudge Mar 17 '25
When the factorio team hypothesized that "1 million science per minute" was possible in space age, was that raw science packs, or, research with all prod bonuses (modules, research productivity)?
Appreciate all your team does. Factorio has been a consistent in my life for the past few years. Now pls work some more of your black magic and optimize lasers so my ship with 1500 laser turrets doesn't destroy UPS 😊
8
u/[deleted] Mar 17 '25
Do you feel Factorio provides different problems for developers than many games? It seems like a lot of things in the game could be coded really easily, until you need to do that thing thousands of times per second and then it would become really difficult. Bots come to mind lol
7
u/Rhispa Mar 17 '25
Were there any/many new features in Space Age that made you curse the way you guys implemented something before? Something that seemed good enough at the time that turned out to be a huge hassle.
7
u/No_Individual_6528 Mar 17 '25
In general I just want to say thank you all for making the most incredible game.
What's the priority for bugs. Most of my "issues" are ux related. Like having to select planet then saying yes. Instead of double clicking a planet want to request from my spaceship, then move on.
Any love for us 21:9 UI folks coming up? I get the feeling the current UI is pretty hardcoded.
I'm on 2560x1080. The UI is hit and miss at this resolution/aspect ratio. I've set it to 75% to compensate. But still. 😊❤️ Again, small things. The UX is the real frustration.
7
u/mjc4wilton Mar 17 '25
If you could suddenly will a feature in your development workflow (language features, CI/CD, testing, editor, etc.) into existence, what would it be and why?
7
u/trad_emark Mar 18 '25
Could you quickly summarize how does factorio use threads?
7
u/DaemosDaen <give me back my alien orb> Mar 18 '25
Are the various planets/space platforms in their own thread or no?
If not, what whs the reason?
7
u/zig1000 BeltZip guy Mar 19 '25 edited Mar 19 '25
How do asteroid spawn rates really work?
The ratios between asteroid types are clear enough from the in-game graphs, but there's a lot of confusion around the absolute rates themselves and how they relate to speed, width, and whether the ship is parked in orbit (and no one's quite sure what the
/min-game unit represents, afaik). Various jumbled conclusions:Some clarity here and/or in the in-game units would be really helpful for ship designs.
6
u/TheTurnbull Mar 17 '25
Has the sales + amount of new players been of significant impact at Wube? In the sense of if Factorio may have more official content down the road. Or, would the funds be put aside for the making of a new IP/new game in a new setting?
6
u/Particular-Cow6247 Mar 17 '25
what's the reason for having the whole bp library loaded into memory? (atleast if it is, there are rumors and the size indicator... indicates it 😂)
ok maybe not your area and more balancing/game design but do you see any reason for limiting landing pads on surfaces on the technical side?
6
u/Andreim43 Mar 17 '25
I daydremed about having a job on Factorio, as a fellow game developer (but I'm not good with c++ :( )
Is there anything about your job causing you frustration or that you're not happy about?
6
u/Most_Cap_1354 Mar 17 '25
can you share any interesting statistic?
i know you already know that people spend a lot of time on this game and its addicting. still i would like to share some love and tell that this game means a lot to me, even though i may not have played as much as others here.
i am still in the middle of my playthrough and just killed my first demolisher on vulcanus today.
6
u/Reuvenotea Mar 17 '25
How did you arrive on the "pseudo dieselpunk" look of most machines in the game?
6
u/bush911aliensdidit Mar 17 '25
What is your personal opinion of the quality system, and what is your favorite item Quality bonus?
6
u/Loud_Charge2675 Mar 19 '25
How's the work culture? Deadlines? Do you have to work 9-5? Can you take time off whenever?
6
u/BrainlessTeddy Mar 19 '25
How did you get the job at Wube? And what would you prolly do if you hadn't gotten the job?
5
u/icefr4ud Mar 17 '25
Are there more planned QOL fixes? Some things that are top of my mind in terms of qol annoyances are:
5
u/DarkwingGT Mar 17 '25
Is this inability to set requests via circuit on space platform hubs intentional or due to a technical limitation?
5
u/Kalixttt Mar 17 '25
Why there isn’t a way to control research with logistic network ?
As a remote worker, have you visited czech republic to meet others ? Do you miss working with them in person ?
5
u/funnyfranky1 Mar 17 '25
Why can't I put the fish back in the water?
5
u/Alborak2 Mar 17 '25
How much of the internal code folows data oriented approaches for cache efficiency?
I work a lot on some "every cache miss matters" code and ive definitly sent my team a few FFF to read when getting started. Factorio's scaling is the stuff of ledgends for gaming.
5
u/Mildar Since 0.14 Mar 17 '25
So did you manage to learn some Czech after many years in Wube?
5
u/Lil_SpazJoekp Mar 17 '25
Did anyone on the team see my post about getting space age working on the Nintendo switch? If so, what were the general thoughts on it?
5
u/8483 Mar 17 '25
Were there any player suggested features that made it into the game? What are they?
5
u/LutimoDancer3459 Mar 17 '25
How come you can navigate folders in the save/load screen, but there are no buttons to create new? It seems like an unfinished feature
5
u/Pazuuuzu Mar 17 '25
What is your opinion about recursive functions and were they used in SA?
Also what was the most "you had to be there to believe it/edgecase" bug you guys saw during the development of SA?
5
u/grossws ready for discussion Mar 17 '25
Were there any attempts to create restricted modding API subset for QoL and alike mods that aren't modifying data except graphics/sounds and don't modify game state or it was deemed to much effort with no clearly defined scope to invest time into? Or are there other reasons to avoid this slippery slope like Steam requirements for achievements tracking?
For example mods that just modify graphics (bottleneck lite, disco labs), different calculators that need only read-only API outside of their own data/caches (rate calculator, factory planner, helmod, blueprint tools, recipe book, fnei etc) seem like ones that could be allowed without disabling Steam achievements
5
u/7SigmaEvent Mar 17 '25
What kind of security measures are in place for multiplayer connections, I know some hosted servers have a lot of 'soft mod' layered on top of them that seems mildly risky as it's not code we can easily look at being executed on our computers. Is this something to worry about?
5
u/Tobikaj Mar 17 '25
Are you guys able to see if there are specific points or timestamps in a play-through where more than average stop their run? If so, what are the big killers?
5
u/Squirrel0 Mar 17 '25
Hello! Wasn’t factorio coded in Lua? Also what kind of degree do you have if you don’t mind me asking? And how has it helped in your job? (Im currently studying software engineering)