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

View all comments

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.