Disable the warning popup when no sattelite is in rocket?

Place to get help with not working mods / modding interface.
MrDoomah
Fast Inserter
Fast Inserter
Posts: 196
Joined: Mon Jun 01, 2015 1:11 pm
Contact:

Disable the warning popup when no sattelite is in rocket?

Post by MrDoomah »

Every time you set a rocket without a satellite in it, you get a pop-up that you did that and the game pauses.

Is there a way to disable this pop-up?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Disable the warning popup when no sattelite is in rocket?

Post by prg »

Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
MrDoomah
Fast Inserter
Fast Inserter
Posts: 196
Joined: Mon Jun 01, 2015 1:11 pm
Contact:

Re: Disable the warning popup when no sattelite is in rocket?

Post by MrDoomah »

Yes, i can change that in my personal game.

But can I do something in MY mod to disable that pop-up for everyone that installs my mod?
Or is creating a new scenario that is just freeplay without those lines the only way to do it?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Disable the warning popup when no sattelite is in rocket?

Post by prg »

That code is part of the freeplay scenario, so if a game with that scenario is started, this code will be executed. Maybe you could use an on_rocket_launched event handler that inserts a satellite into event.rocket if none exists and hope the scenario's handler is called after that. But the sanest solution would probably be to create a scenario without that code in it in the first place.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Post Reply

Return to “Modding help”