Much faster boot - suggestion, speed up your dev!

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
thelordodin
Fast Inserter
Fast Inserter
Posts: 153
Joined: Fri Jan 06, 2017 1:54 am
Contact:

Much faster boot - suggestion, speed up your dev!

Post by thelordodin »

1. Please introduce a special text file "include-only.lua".
This file will have lua arrays of permitted content (entities, graphics, etc).
If the file exists, then game loads only content which matches given inside it.

2. Create a button inside sandbox mode, which enumerates all these content used inside this game session and put it into "include-only.lua"
3. Create a command-line switch which allows to start factorio without menu directly into sandbox with a small map (100x100) with all cheats on.
4. A nice additional cherry one to add an array of folders which should be loaded fully - i.e. they are not restricted by "include-only" lists. If there is a dependency from this folder - it should be loaded too.
5. Reload all inside the game button, since in this setup - the app start time and lua load time will matter.

Use scenario (quite obvious):
- Run the game normally
- Setup all the staff you need to test
- Push the button
- All subsequent runs will be much faster

The results:
ALL subsequent game loads will be 10x faster (or more).
Modders will be happy.
Your own team will also be able to use this.
Last edited by thelordodin on Sat Jan 28, 2017 6:27 am, edited 1 time in total.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15132
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Much faster boot - suggestion, speed up your dev!

Post by Rseding91 »

We have no issues with boot times: https://gfycat.com/MinorUnfoldedGuineafowl

https://www.reddit.com/r/factorio/comme ... g/dcjxrf2/

Also you only have to restart if your change one of the data.lua files. Changing control.lua just requires a save/exit/load.
If you want to get ahold of me I'm almost always on Discord.
thelordodin
Fast Inserter
Fast Inserter
Posts: 153
Joined: Fri Jan 06, 2017 1:54 am
Contact:

Re: Much faster boot - suggestion, speed up your dev!

Post by thelordodin »

Thanks! You should consider putting text from this links to very first modding tutorial... or even put a button "Fast boot" into options menu...
Post Reply

Return to “Modding interface requests”