Changeset - f92cf8ef0f0b
[Not reviewed]
0 1 0
Branko Majic (branko) - 2 years ago 2022-08-15 22:45:11
branko@majic.rs
[factorio_manager.sh] Drop sleeps between instance launching when looping:

- For development purposes it is better to relaunch straight away to
reload things like prototype definitions, settings, and localisation
strings (for faster feedback).
- Even with 2-second delay, chances are that the user will miss to
actually get to terminal on time, and making it longer makes it more
annoying when developing mods.
1 file changed with 2 insertions and 8 deletions:
0 comments (0 inline, 0 general) First comment
games/factorio_manager.sh
Show inline comments
 
@@ -1606,17 +1606,11 @@ elif [[ $command == launch-loop ]]; then
 
    # Launch instance
 
    if [[ -e $server_config ]]; then
 
        while "$factorio_bin" --config "$game_config" --start-server "$instance_directory/saves/default.zip"; do
 
            info "Relaunching in 2 seconds (press CTRL-C to abort)..."
 
            if ! sleep 2; then
 
                exit
 
            fi
 
            info "Relaunching (press CTRL-C to abort)..."
 
        done
 
    else
 
        while "$factorio_bin" --config "$game_config"; do
 
            info "Relaunching in 2 seconds (press CTRL-C to abort)..."
 
            if ! sleep 2; then
 
                exit
 
            fi
 
            info "Relaunching (press CTRL-C to abort)..."
 
        done
 
    fi
 

	
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now