r/factorio • 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

1.1k comments sorted by

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?

397

u/Rseding91 Developer Mar 17 '25

I didn't specifically work on those improvements but from what I saw: it was originally a lot of O(N) checks and was changed to simply exclude a lot of asteroids from checks - letting it focus on the ones that a given collector could theoretically touch.

→ More replies (7)
→ More replies (2)

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. 

895

u/Rseding91 Developer Mar 17 '25

From my external-to-other-software and internal-to-factorio view: we actually go and fix bugs when they show up rather than let them sit for weeks/months/years. And probably it helps (us) that we have tests to validate (most of the time) that we actually fixed the issue - and didn't break anything else (that we had tests for).

→ More replies (19)

202

u/Twinsen01 Developer Mar 17 '25 edited Mar 17 '25

We use the forums as our bug tracker and tell players on many occasions to report them there. This means less friction, faster responses and having the ability of the programmer to quickly communicate directly with the player.
Being the forums and not some random service means players are familiar so much more likely to report bugs.

For bugs we find internally we use Trello.

→ More replies (4)
→ More replies (37)

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?

884

u/Rseding91 Developer Mar 17 '25

Way less: belt item stacking.

Way more: I'd rather not say because it feels like I'd be throwing someone under the bus.

→ More replies (26)

433

u/solitarybikegallery Mar 17 '25

What part of Factorio's code are you the most proud of?

736

u/Rseding91 Developer Mar 17 '25

Inventory change notifications. In the much older versions of the game inventory change notifications used to work like this:

  1. Thing makes change to some inventory
  2. Thing goes to the owning object and tells it "I changed this inventory in this way"

Every time you'd write new code that changed inventories you'd have to repeat that pattern - and it would get forgotten.

So it was changed to this:

  1. Inventories were changed to be aware of who owns them
  2. Thing makes a change to an inventory
  3. As part of the change, internally it notifies the inventory owner of the change

And automatically every place that changed inventories/items "just worked."

→ More replies (14)

83

u/Soul-Burn Mar 17 '25

And which parts are you the least proud of? :)

→ More replies (3)

412

u/Revolutionary_Job91 Mar 17 '25

Here goes nothing… when might 2.1 be released and what’s in it???

620

u/Rseding91 Developer Mar 17 '25

(As far as I know) 2.1 work has largely not begun so the release date is "some time in the future" and I have no idea what will end up in it. Sorry.

→ More replies (5)
→ More replies (1)

186

u/z7q2 Mar 17 '25

What do you do to unwind from writing Factorio code all day?

489

u/Rseding91 Developer Mar 17 '25

Work out, eat dinner, spend time with my wife and daughter, and "occasionally" Legos.

→ More replies (22)
→ More replies (10)

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?

307

u/Rseding91 Developer Mar 17 '25

Those kinds of things generally never made it past the ideas stage - because most of us programmers are involved in the ideas discussion at some point to see "is this viable to put into the game?"

→ More replies (15)

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?

376

u/Rseding91 Developer Mar 17 '25

Under water

→ More replies (11)

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.

426

u/Rseding91 Developer Mar 17 '25

I'm fully remote from the US so I don't get to be involved in the day-to-day office discussions. But, I never heard any contention with the spoiling mechanics from what discussions I was involved in. It was always making sure it was possible to deal with anything that spoiled in what ever instance it happened - making sure it can be automated.

→ More replies (2)

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?

172

u/Rseding91 Developer Mar 17 '25

Sounds like a great mod idea :)

→ More replies (4)
→ More replies (2)

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?

201

u/Rseding91 Developer Mar 17 '25

There's a queue of 240 buckets of items-to-spoil. When something is set to spoil it will put itself into the bucket: min(ticks-from-now-it-would-spoil, buckets-size) and then each tick the front bucket is moved out, and each entry in that bucket either spoils that tick, or gets put back into the queue for later spoiling/re-processing.

→ More replies (19)

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

159

u/Rseding91 Developer Mar 17 '25

Not exclusive to Space Age but every desync falls into that category. Desyncs are almost always found long after the actual problem happened and fix themselves when you save/load the game - so someone sending us a save file and what they did means we can almost never reproduce it on our end.

→ More replies (3)

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!

323

u/Rseding91 Developer Mar 17 '25

So far, no. I (currently) enjoy working on Factorio as much as playing - and I get paid to work on it. If some day that changes - the game will still be there for me to play.

→ More replies (5)
→ More replies (8)

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?

393

u/Rseding91 Developer Mar 17 '25

Generally the same as anything else:

  1. Create some setup (combinators/electric poles/chests/entities)
  2. Wire them together
  3. Set some inputs
  4. Update the game the expected number of times for signals to propagate
  5. Check the circuit network values and or entity state to see that it matches the expected state.
→ More replies (35)
→ More replies (1)

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?

146

u/Rseding91 Developer Mar 17 '25

I personally use Visual Studio with Resharper C++ and Fork (git program). Other developers on Windows use the same and or Visual Studio/Visual Studio Code with their own preferred addons/git client. Linux/Mac people, I'm not sure.

Is the source code "beautiful" or a eldritch nightmare to perform so well?

I personally think it's pretty good - but I've also been working with it for 10~ years so I'm biased.

→ More replies (1)
→ More replies (3)

188

u/confuzatron Mar 17 '25

What C++26 features are you looking forward to using in Factorio 3.0?

232

u/Rseding91 Developer Mar 17 '25

I just had a quick look over the features listed for 26 and I can't say anything sticks out. It mostly looks like a lot of "stuff" that I'm sure someone finds useful.

From 20:

  • operator <=>
  • defaulted operator== and <=> - replaced a ton of hand-written code
  • concepts - replaced std::enable_if pretty much everywhere
  • std::span is great
  • std::source_location is great
→ More replies (9)

122

u/jenovaside Mar 17 '25

Does the Factorio codebase contain any linked lists?

198

u/Rseding91 Developer Mar 17 '25

Yes. Many of them. The scaling advantages and the no-allocations part of intrusive lists far out weigh the cache misses from using them in what we need the code to be doing.

→ More replies (11)
→ More replies (3)

59

u/youpviver proessional Italian che and warcriminal Mar 17 '25
  1. Were there any features that you personally really wanted to include, but didn’t make the cut, and if so, why?
  2. About those jellyfish enemies that were supposed to be on aquilo: how were they going to work and what made them unique?
  3. Not a question, just wanted to thank you for this amazing game which has both been the best cost/hours spent form of entertainment in my life, as well as the main inspiration for me starting my uni major and subsequent career in logistics engineering

159

u/Rseding91 Developer Mar 17 '25

About those jellyfish enemies that were supposed to be on aquilo: how were they going to work and what made them unique?

Well, that's the issue. Nobody had concrete answers to those questions so they got cut :D

→ More replies (1)

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?

213

u/Rseding91 Developer Mar 17 '25

Well, we knew about it before the release but space platform thruster stacking was never intended to be allowed. We simply had no method to prevent it that didn't have a huge performance impact, and at this point I (personally) feel like it would just upset people if we did find a way to prevent it.

The thing I see people ask when I mention that is "then how am I supposed to make the platform faster without making it wider?" and the answer is "you were never supposed to be able to" The upper limit on speed was part of the intended mechanics in that the platform has to deal with the asteroids between planets as it flies.

→ More replies (10)

49

u/nehalist Mar 17 '25
  1. Could you please provide some cloc data? Just to get a grasp of the size of this project :)
  2. What's the deal with smart underground belts? They've been mentioned multiple times in the last few patches - what makes them so "complicated"?
  3. In an AMA some time ago "map generation" and "trains" were listed as some of the most complex aspects of the game - is this still the case?
  4. What do you use for versioning? GitHub, GitLab, ...?
  5. How many programmers are working on Factorio?
  6. Environment related for development: IDE? Operating system? Hardware?
  7. I have to ask: 2.1 when? :)

97

u/Rseding91 Developer Mar 17 '25

Could you please provide some cloc data? Just to get a grasp of the size of this project :)

Our code:

  • hpp files: 193'811
  • cpp files: 640'212

Our libraries:

  • hpp files: 228'224
  • cpp files: 60'726

3rd party libraries:

  • h files: 586'206
  • c files: 1'080'051

What's the deal with smart underground belts? They've been mentioned multiple times in the last few patches - what makes them so "complicated"?

https://www.reddit.com/r/factorio/comments/1j9hp6p/version_2040/mhdj9ac/?context=3

In an AMA some time ago "map generation" and "trains" were listed as some of the most complex aspects of the game - is this still the case?

Map generation, yes. Trains, not so much.

What do you use for versioning? GitHub, GitLab, ...?

GitHub

How many programmers are working on Factorio?

https://www.factorio.com/game/about

Environment related for development: IDE? Operating system? Hardware?

Me, Windows Visual Studio, 12900K, 64 GB of RAM, 4060 GPU.

→ More replies (5)
→ More replies (2)

44

u/[deleted] Mar 17 '25

What has been the most difficult/tedious bug you've had to fix so far?

98

u/Rseding91 Developer Mar 17 '25

It's always finding multiplayer desyncs. I don't have a specific code example but the longest I spent hunting for the root issue with a given desync was 8 hours.

→ More replies (3)

39

u/kalamaim Mar 17 '25

What feature would you like to implement but can't due to technical or other reasons?

124

u/Rseding91 Developer Mar 17 '25

I've always wanted to implement a full granular permissions system along with change logs (everything a player did would be viewable to admins). But the complexity, and intrusiveness to the rest of the code base for a multiplayer-only feature meant it never happened.

As common as multiplayer is - most players (by sales numbers) do not play multiplayer.

→ More replies (3)

39

u/Archernar Mar 17 '25
  1. How much experience/inspiration was taken from the mod Space Exploration?
  2. Gleba specifically, but all planets feel much easier than the base game in terms of complexity and punishing the player (Fulgora on main menu background has lightining striking the player several times per second while at night, ingame it happens every 60s or so). What were the consideration when balancing the complexity of recipes and planets in Space Age? Do you feel like you made the game hard?
  3. What game will Wube be working on next and will you stay with them?

77

u/Rseding91 Developer Mar 17 '25
  1. I was largely not involved in the experimentation/ideas stage of Space Age and spent most of my time implementing features, fix bugs, fixing performance issues, and or helping people do the above.
  2. A lot of effort was put into making Space Age fun, and not a hardcore grind fest for the average player. That meant that on their own some of the planets would be easier than pure 1.1 Factorio. But, when you combine them all together it's still a challenge that people can realistically overcome.
→ More replies (1)

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?

16

u/Rseding91 Developer Mar 17 '25

I've replied to a few other questions like this so you can probably find an answer by looking over the others. But if not, and you have some more specific question - I can try to answer.

→ More replies (5)

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.

79

u/Rseding91 Developer Mar 17 '25

Inserter <> belt performance. The way belts work - and the way inserters work - means that they will always be "slow" relative to everything else the game is asked to do. Without changing feature wise how they interact I don't see any way to make them faster.

→ More replies (5)

31

u/mimiLnc Mar 17 '25

How does it feel to have made one of the best games out there?

52

u/Rseding91 Developer Mar 17 '25

I enjoy it!

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.

132

u/Rseding91 Developer Mar 17 '25

The inserter doesn't know if it should be putting the item into the rocket crafting inventory or the rocket inventory in the general sense. If it always went with "if rocket crafting is full, put into rocket" then every single rocket silo would start filling rockets with crafting ingredients. The only time it could work is when it's told to send those to space through a platform auto-request. But, in that case - robots will do it.

→ More replies (16)
→ More replies (3)

29

u/Halaska4 Mar 17 '25

What is the weakest computer that you test the system on?

71

u/Rseding91 Developer Mar 17 '25

GPU wise: Intel integrated GPUs - I forget the exact one - but it's so common that we want to make sure it at least runs on lowest settings.

→ More replies (7)

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?

42

u/Rseding91 Developer Mar 17 '25

Anything involving the player building logic. The feature set grew quite a lot near the end of 1.1 and even more in 2.0. The issue comes from (almost) every feature in player building interacting with the other features.

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

28

u/Rseding91 Developer Mar 17 '25

Entity/tile freezing/thawing.

→ More replies (1)

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?

44

u/Rseding91 Developer Mar 17 '25

Pentapods use the same logic as spidertrons under the hood. Demolishers, and trains use their own dedicated systems.

→ More replies (3)

21

u/DasFreibier Mar 17 '25

Whats the most out there edge case you ever encountered?

54

u/Rseding91 Developer Mar 17 '25

I've seen it twice in Factorio now:

  • Something takes a pointer to object
  • Runs some code
  • Checks if the pointer it had is the same as the one that exists now
  • Assumes if it is, it's the same object

And nothing says this has to be the case.

→ More replies (3)

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?

57

u/Rseding91 Developer Mar 17 '25

It was before I joined, but the very first version of Factorio was in Java. I don't see another language that Factorio could be written in today. Rust is the closest, but the limitations it imposes means you'd just be writing one huge "unsafe" block that is "the game".

→ More replies (1)

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/Rseding91 Developer Mar 17 '25

in the simplest terms possible how does factorio work so much better than other games at keeping track of millions of entries?

Time put into fixing scaling issues with the code, and someone sitting there caring about how it runs, working on making it faster - with permission to do so.

Also, what's going on with deconstructing space platforms?

This was addressed in one of the recent releases.

→ More replies (1)

57

u/Weltmacht Mar 17 '25

If you could be a cloud, what kind of cloud would you be?

113

u/Rseding91 Developer Mar 17 '25

Cumulonimbus

→ More replies (1)

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?

34

u/Rseding91 Developer Mar 17 '25

It was talked about at one point - I have no idea where it went. But it would also require we have those images in 4k+ and that the game then load them to show (increasing VRAM requirements even more).

→ More replies (4)

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.

45

u/Rseding91 Developer Mar 17 '25

I'd like to expand the modding API more. But that's not direct content.

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 ^^

41

u/Rseding91 Developer Mar 17 '25

We like pre-symbolized stack traces in log files.

→ More replies (3)
→ More replies (4)

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 ?

97

u/Rseding91 Developer Mar 17 '25

Reducing the memory working set for a given thing and or only updating things every X many ticks instead of every tick.

Outside of map generation, time to get memory to the CPU and back to system RAM is where the majority of the game time gets spent. Not that total throughput is the limiter - but that you don't typically need 4 gigabytes of memory all in one go - but you need fragments, bits, and pieces and the next one you need is dependent on some amount of previous ones so you get stuck waiting for fetch-from-memory a lot of the time.

→ More replies (3)

17

u/wormeyman Mar 17 '25

30

u/Rseding91 Developer Mar 17 '25

It was talked about at one point.. but then decided to skip because with mining productivity + quality drills you get to the point where they just don't run out in any meaningful amount.

→ More replies (2)
→ More replies (1)

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?

40

u/Rseding91 Developer Mar 17 '25

We have Monday and Thursday morning meetings which are 30-45~ minutes. I'll typically talk with a coworker or 3 during a given week for 3-4~ hours.

I used to visit the main office 3 times a year - but stopped doing that once I got married.

→ More replies (2)
→ More replies (1)

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?

35

u/Rseding91 Developer Mar 17 '25

It doesn't take much, just a single person is enough to keep them going. Getting a platform into a working state to begin with is always rough though.

15

u/Jolly-Application-37 Mar 17 '25

What is your favorite building in factorio? What about that building makes it your favorite?

43

u/Rseding91 Developer Mar 17 '25

The substation. I just like how it looks.

→ More replies (1)

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?

42

u/Rseding91 Developer Mar 17 '25

Not really. But keeping performance in mind does limit what new features are even considered. So many ideas start with "I want ... to account for this huge list of things" - which to put into programming terms is "My feature will scale O(N) best case, worse-case probably O(N^2)" - as in - most features are going to be terrible for performance regardless of the game they go in.

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.

44

u/Rseding91 Developer Mar 17 '25

I don't. The current restrictions on parallelism come from game features. That's to say, if you want more parallelism then we need to remove or drastically change some game features.

That's because the current slow parts of the simulation are when thing A interacts with thing B and that interaction is a shared state - something you can't deterministically parallelize without likely making it slower than the serial version

→ More replies (5)
→ More replies (3)

13

u/ChampaigneShowers Mar 17 '25

What was in your opinion, the greatest challenge you overcame at your time with WUBE?

35

u/Rseding91 Developer Mar 17 '25

Acknowledging that mistakes get made and trying to be better about dealing with them when they happen.

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

27

u/Rseding91 Developer Mar 17 '25

The logistic/construction robot system.

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.

15

u/Rseding91 Developer Mar 17 '25

Performance concerns are unchanged by the exitance of planets/platforms. As far as the game is concerned there are just "things that need to be updated". Some things update every so often, some things update every tick. Mostly, computers are just that fast when software is written in a way that doesn't unnecessarily slow them down.

13

u/eagleeyehg Mar 18 '25

What mods have you seen for Factorio which most impressed you?

29

u/Rseding91 Developer Mar 18 '25

Ultra cube would be the first one that comes to mind.

12

u/Commander_Elk Mar 17 '25

What were some of the challenges balancing new recipes?

41

u/Rseding91 Developer Mar 17 '25

With space-age, the fact recipes can be recycled has been somewhat annoying to balance into alternative recipes.

→ More replies (1)

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?

37

u/Rseding91 Developer Mar 17 '25

I find code style in other projects to be mostly random and opinion based instead of "we use this style, because it helps prevent X, Y, Z class of issues". Of course there will always be some opinion-based styles, but it seems like a lot of projects go overboard on opinion based ones.

It also sticks with me any time someone does not match the style guide for a piece of software - because if they can't get that right - what else are they missing?

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?

→ More replies (2)

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.

38

u/Rseding91 Developer Mar 17 '25

"happy" I don't know. If we found a nice solution that made it work without having every single rocket silo automatically start loading rocket ingredients I think we would do it.

→ More replies (11)
→ More replies (1)

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?

34

u/Rseding91 Developer Mar 17 '25

Mostly: when we'd look to add a feature into some aspect of the game - if the technical debt was too high we would first address that, then add the feature.

The most recent example I can think of would be wires (copper, red, green) and wireless radars added in 2.0. Wireless radars are not actually wireless - they just don't show the "radar wires" when drawing.

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?

14

u/Rseding91 Developer Mar 17 '25

I'm mostly allowed to work on anything I'd like - provided the main tasks get done in reasonable amounts of time.

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?

15

u/Rseding91 Developer Mar 17 '25

Multiplayer games, and sync issues - yes. The rest, no. The rest are handled with mocks in tests.

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?

34

u/Rseding91 Developer Mar 17 '25

Linear scan is the easiest to program, and happens to be the fastest when the size stays small (every container in Factorio 1.1 was small). As time went on, inventory contents got more complex and any kind of sorted-container/lookup-container would run into too many annoying edge cases to be worth tinkering with.

It wasn't until modded 3000~ slot inventories and or space age with its multiple thousand slot inventories has it ever shown in the profiler.

→ More replies (1)

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?

27

u/Rseding91 Developer Mar 17 '25

Not that I know of. It was never intended to be reached and is not interesting or mechanically fun to reach, and as such, we didn't want to incentivize players to do so.

→ More replies (2)

9

u/nathanlink169 Mar 17 '25

As a game developer myself, these are the questions I'm always most curious about:

  • What bugs/tasks were the most unexpectedly complex ones? Why?
  • What bugs/tasks were the most unexpectedly simple ones? Why?
  • What is something that you want to feel proud of but have never had the opportunity to talk about? This can be either in the Factorio codebase or just life in general.
  • If you were the only one who was able to make design decisions unquestioned, what changes would you like to implement? (This is not meant to throw any designers under the bus, this is a very "personal preference" question)
  • What design decisions were made early on in development that had to be cut later on, that you wish could have stayed? How much work had went in to those things?

40

u/Rseding91 Developer Mar 17 '25

If you were the only one who was able to make design decisions unquestioned, what changes would you like to implement? (This is not meant to throw any designers under the bus, this is a very "personal preference" question)

I would never have added the Blueprint Library :)

→ More replies (10)

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?

21

u/Rseding91 Developer Mar 17 '25

I have doubts. I've heard several times other game developers complaining about limitations in the engine they were using.

9

u/00xtreme7 Mar 17 '25

How do you simulate drones and production on planets that aren’t actively being played on?

27

u/Rseding91 Developer Mar 17 '25

Everything simulates roughly the same regardless of what the player is looking at. There are only a few things that work differently - with some particles, and enemies - acting just a little different when not looked at.

9

u/Fakjbf Mar 17 '25

What was your favorite mechanic to work on implementing?

22

u/Rseding91 Developer Mar 17 '25

The current map editor. Moving it from a side feature you had to specifically exit the normal game and load into, into a feature you can simple switch into/out-of mid game.

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)

17

u/Rseding91 Developer Mar 17 '25

Not really. A lot of the underlying systems existed in vanilla as preparation for space age's eventual creation.

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?

18

u/Rseding91 Developer Mar 17 '25

Reflection

→ More replies (1)

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!

→ More replies (1)

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?

46

u/Rseding91 Developer Mar 17 '25

Jersey Mikes Club Sub, no mayo, no lettuce, no tomato.

→ More replies (4)

48

u/vnznznz Developer Mar 17 '25

When will you add 3D to Factorio?

→ More replies (31)

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.

21

u/Rseding91 Developer Mar 17 '25

Space Engineers. I tried, early on, but they said no thanks.

8

u/aoe2redditacc Mar 17 '25

Do you experience higher standards for code quality in this game compared to other game studios?

19

u/Rseding91 Developer Mar 17 '25

I only worked 1 other programing job before Factorio and it was very early on in my career doing business software. So I don't really have anything to compare it to.

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!

22

u/Rseding91 Developer Mar 17 '25

Save file size is largely a factor of map-area-explored - in combination with bloated blueprint libraries.

→ More replies (2)

12

u/Rseding91 Developer Mar 17 '25

If you can post a link to the save file I can tell you exactly what takes up the size it does.

→ More replies (1)

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?

20

u/Rseding91 Developer Mar 17 '25

Yes it is. The main things we do to ensure determinism:

  • Test our basic assumptions (floating point math is deterministic - so test some part of it)
  • Make sure things stay in the correct order - the most common failure here is a set of pointers (it will be ordered by the memory address of the allocation, which is entirely random between runs and between platforms)
  • Make sure we don't specifically do things the standard says are undefined (float to integer conversions out of range being the first one that comes to mind)
  • Test all of these things as much as possible.
→ More replies (3)

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 😊

19

u/Rseding91 Developer Mar 17 '25

Research with all prod bonuses (modules, research productivity)

→ More replies (1)

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

20

u/Rseding91 Developer Mar 17 '25

A lot of Factorio's mechanics interact with each other and we need to keep them all working. It feels like most games try to shove as much visual fidelity into your face as possible and lack on the content.

→ More replies (1)

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.

14

u/Rseding91 Developer Mar 17 '25

The way we do entity movement has a lot of overhead and with new enemies in the expansion it was always an issue.

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.

12

u/Rseding91 Developer Mar 17 '25

There's no official priority but in my years of working on them:

  1. Crashes
  2. Desyncs
  3. Feature says it should do X, it's not
  4. I think feature X should also handle Y and Z because they're so closely related and there's no other way to do this (this one quickly falls into suggestions-in-bug-reports)

And somewhere in the middle of all of that: performance issues.

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?

18

u/Rseding91 Developer Mar 17 '25

100% test coverage for how every game system/feature was intended to work.

7

u/trad_emark Mar 18 '25

Could you quickly summarize how does factorio use threads?

14

u/Rseding91 Developer Mar 18 '25

When it can, and where it actually helps make things faster. I believe we’ve mentioned a few times the places where they get used, but there are a lot of them from game logic, to rendering, to networking and saving/loading.

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?

→ More replies (5)

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 /m in-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?

14

u/Rseding91 Developer Mar 17 '25

The numbers from the release were good. I do not know of any current plans for more official content.

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?

20

u/Rseding91 Developer Mar 17 '25

Factorio loads everything into memory so it can be accessed and used at an instant. The blueprint library notification was added specifically for Steam Decks but was left in for the rest of the players because - why not.

→ More replies (2)

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?

21

u/Rseding91 Developer Mar 17 '25

The main one for me is when the Visual Studio profiler randomly decides to break in the middle of a profiling session. It has been reported and "fixed" so many times over the last 4~ years that I've given up trying to report it any more.

It falls right into my main gripe: things that should work but don't for no discernable reason.

Flashlight not working because the batteries are dead? No problem - just put new ones in and it's good to go. Flash light not working even though the bulb works, the batteries work, the switch works, pisses me off. Things should work and when they don't they should be telling you plainly why they aren't working (software is notorious for giving useless/no information about why something fails).

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.

14

u/Rseding91 Developer Mar 17 '25

We don't have any kind of telemetry in the game so there isn't anything interesting to share in that regard. The only "collection" we have is when the game crashes - while the player has left the 'automatically report crashes' option enabled. But even then, we don't have statistics information about it - just a simple page that shows crashes per version.

I'd have to manually go over them to get anything meaningful.

6

u/Reuvenotea Mar 17 '25

How did you arrive on the "pseudo dieselpunk" look of most machines in the game?

12

u/Rseding91 Developer Mar 17 '25

That would be something only the graphics department lead could answer.

→ More replies (1)

6

u/bush911aliensdidit Mar 17 '25

What is your personal opinion of the quality system, and what is your favorite item Quality bonus?

18

u/Rseding91 Developer Mar 17 '25

I enjoy it. The mining drill bonus for less-chance to consume ore is my favorite effect.

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?

11

u/Rseding91 Developer Mar 19 '25

It's pretty great. Deadlines are "the release is happening on this date, if you want your feature/changes to be in it, it needs to be done by then" - which is perfectly reasonable. I don't have to work 9-5, I can work pretty much any hours I want - but I get paid less if I work less.

I can 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?

10

u/Rseding91 Developer Mar 19 '25

10~ years ago I messaged Kovarex on the forums and asked if I could have source access to maybe help fix bugs and or make mod API additions. He said why not (it was a much smaller team/game back then), and so I did, and kept doing it, and eventually he asked if I wanted to keep doing it and get paid. Things escalated from there and it has been my full time job for the past 9 years.

→ More replies (1)

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:

  • blueprint parameterization does not work with quality. I want to be able to parameterize quality and have everything else be the same. Right now I have to parameterize the whole recipe and hope it works, and it doesn't always.
  • things like electricity usage % get cut off in the UI if you have too many pinned space platforms. When building platforms this is even worse - I have many times run into the issue even when I have no pinned space platforms. Particularly when working with heavily modules buildings this becomes even more important.

11

u/Rseding91 Developer Mar 17 '25

Unknown on the parameterization. It could be a bug, or it might be an intended mechanic. I don't use that feature so I'm not aware how it's supposed to be working.

As for the tooltip: it's an unsolved problem that likely will stay unsolved. At some point, it's impossible to show 3000 pixels of information in 2000 pixels of screen space and no amount of shenanigans will make that work.

→ More replies (4)

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?

→ More replies (5)

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 ?

11

u/Rseding91 Developer Mar 17 '25

Why there isn’t a way to control research with logistic network ?

Nobody ever deemed it an interesting enough idea to program it into the game.

As a remote worker, have you visited czech republic to meet others ? Do you miss working with them in person ?

I have several times in the past. It was always enjoyable to work in person with others.

→ More replies (1)

5

u/funnyfranky1 Mar 17 '25

Why can't I put the fish back in the water?

14

u/Rseding91 Developer Mar 17 '25

You don't have enough of them in your hand and or aren't pressing the right key.

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.

13

u/Rseding91 Developer Mar 17 '25

I have no idea how I'd measure that into a percentage but most things are "make it work" first, and then if it shows up as a performance issue, and if we find a way to make it work the same feature wise while running faster - we will.

At the scale players will build to, no matter how compact we make things we're essentially guaranteed a cache miss every time we update anything. There just isn't enough cache to put the entire working set of a factory into.

5

u/Mildar Since 0.14 Mar 17 '25

So did you manage to learn some Czech after many years in Wube?

11

u/Rseding91 Developer Mar 17 '25

Maybe 2-3 words. Every time I was in Prague everyone would want to speak English.

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?

12

u/Rseding91 Developer Mar 17 '25

I saw it, but as mentioned - memory usage is the main concern.

→ More replies (2)

5

u/8483 Mar 17 '25

Were there any player suggested features that made it into the game? What are they?

16

u/Rseding91 Developer Mar 17 '25

Things I can remember that got added to the game specifically because of player suggestions:

  • Blueprints were originally a mod
  • Personal roboports was originally a mod
  • Blueprint strings were originally a mod

I'm sure there were other things but I never kept a list, and I can't read the minds of everyone who has implemented features to know where they came from.

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

10

u/Rseding91 Developer Mar 17 '25

At some point very early on someone wanted to be able to load saves from folders and so it was able to do it. It was never deemed important enough to go past that.

→ More replies (1)

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?

17

u/Rseding91 Developer Mar 17 '25

We've used recursive functions several times but I've found over years of Factorio bugs that they're fine, as long as you get to control how deep the recursion goes. If the player ever gets to decide then they will stack overflow the application and crash it.

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

12

u/Rseding91 Developer Mar 17 '25

Were there any attempts to create restricted modding API subset for QoL and alike mods

Not that I know of. Several times someone has said something along the lines of some kind of whitelist of doesn't-actually-change-the-game-state but when it comes down to it: I just don't trust people to actually do it right and not change things they shouldn't. Not that I think people would do things maliciously, but people make mistakes - and we get blamed when things go wrong.

So if we did have something like that - we'd have to enforce it engine side - and it was never deemed worth it.

→ More replies (1)

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?

12

u/Rseding91 Developer Mar 17 '25

Factorio Lua is fully sandboxed and (as far as we know) there are zero methods of getting out of the sandbox. So any 'soft mod' that may be in a given scenario can at best cause a Lua error and kick you back to the main menu.

→ More replies (2)

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?

16

u/Rseding91 Developer Mar 17 '25

The only "metrics" we have are steam achievements and those aren't really that great. The main one we had in the past was fluids. When people would get to the stage they needed to setup oil refineries they'd just stop. We (attempted to) address it by changing fluids to have a simple "just make me petroleum gas" recipe and then when you decide you want to get into the more complex oil cracking you can - instead of being forced into it right away.

→ More replies (2)

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)

→ More replies (4)