The issue where research_all_technologies() does not follow the research tree

Things that we aren't going to implement
Xeon257
Inserter
Inserter
Posts: 46
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

The issue where research_all_technologies() does not follow the research tree

Post by Xeon257 »

Hello. I am developing a mod called Planet Linox.

In this mod, the order of research is extremely important because completing certain technologies changes the surface terrain, places additional entities, and affects the behavior of various scripts. During normal gameplay, the research tree is followed correctly, so everything works as intended.

However, when all technologies are completed at once—such as through the /cheat command or by calling research_all_technologies()—it appears that the research tree order is not preserved.

When that happens, my mod cannot properly apply the results of each research stage: required terrain may not be generated, entities may fail to be created correctly, and in more severe cases the game may even crash.

Although bulk research completion is not part of normal gameplay, it is an officially supported command that players can execute at any time, so I believe mods should ideally be able to handle this situation.

I can implement my own workaround to deal with this behavior—and I intend to do so—but I would first like to ask the Factorio developers whether it would be possible to guarantee the correct research tree order when all technologies are completed at once.
If the game could support this, it would have a positive impact on mod development.
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
Koub
Global Moderator
Global Moderator
Posts: 8102
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: The issue where research_all_technologies() does not follow the research tree

Post by Koub »

[Koub] Moved to Modding interface requests from Ideas and Suggestions.
Koub - Please consider English is not my native language.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16355
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: The issue where research_all_technologies() does not follow the research tree

Post by Rseding91 »

Research order is not guaranteed and can be any arbitrary sequence. Players - and mods - can force any research to finished at any time and it's up to any mods that care to listen and handle it as they want.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't implement”