Page 1 of 1

No pause on the end-game "no satellite" message

Posted: Fri Jun 17, 2016 9:59 pm
by binbinhfr
It would be great for mods using rocket-silo in an alternative way (ion cannon, cargo rockets), to avoid the blocking "no satellite" message in solo play.

For memory, the map code is :

Code: Select all

script.on_event(defines.events.on_rocket_launched, function(event)
(...)
    if (#game.players <= 1) then
      game.show_message_dialog{text = {"gui-rocket-silo.rocket-launched-without-satellite"}}
    else
      for index, player in pairs(force.players) do
        player.print({"gui-rocket-silo.rocket-launched-without-satellite"})
      end
    end
It would be great to suppress the solo-play test and always use the player.print non-blocking message.

Re: Suppress the "no satellite" paused dialog

Posted: Thu Jun 30, 2016 7:28 pm
by binbinhfr
Well I checked a new map under 0.13, and it seems that my request was not received :-(
It would be great for rocket mods and any end-game mods... And not a big change to implement...

Re: Suppress the "no satellite" paused dialog

Posted: Tue Jul 26, 2016 8:00 am
by Versepelles
I'd like to second this request. Redefining the end-game is the purpose of some mods, and these can be a great boon to Factorio, so I believe the time invested making this change would probably be worth it.

Re: No pause on the end-game "no satellite" message

Posted: Tue Jul 26, 2016 8:30 am
by binbinhfr
Yes !
In general, I always think that these paused dialogs are always a pain.
(The "freeplay" paused dialog when you create a new map is another example).
Those dialogs could be printed in the console window, as informative non blocking messages.

Re: No pause on the end-game "no satellite" message

Posted: Fri Jul 29, 2016 8:38 pm
by Rockstar04
Would it be possible to allow mods to change what triggers the message? So things like the ion-cannon would be considered "valid" payloads?

Re: No pause on the end-game "no satellite" message

Posted: Sat Jul 30, 2016 12:52 am
by Rseding91
I'll see what I can come up with.

Re: No pause on the end-game "no satellite" message

Posted: Sat Jul 30, 2016 1:26 am
by Supercheese
Rseding91 wrote:I'll see what I can come up with.
Awesome! :D