From f92cf8ef0f0b0b91ea96c86ec5248f6ab27814a6 2022-08-15 22:45:11 From: Branko Majic Date: 2022-08-15 22:45:11 Subject: [PATCH] [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. --- diff --git a/games/factorio_manager.sh b/games/factorio_manager.sh index f9a24c023fa92e2bac9f243401beec0ec80c58cf..902202845bf3378d8c71a52753dfa7bd7d117992 100755 --- a/games/factorio_manager.sh +++ b/games/factorio_manager.sh @@ -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