Last ditch debug mode?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
webkilla
Inserter
Inserter
Posts: 48
Joined: Sun May 11, 2014 4:17 pm
Contact:

Last ditch debug mode?

Post by webkilla »

I'm 5½ hours into a very good game

Just got blue science production up, about to set up solar power - my lasers are wreaking havoc on my coal power production since it disrupts coal mining... and my last auto-save puts me about 1½ minutes away from a massive swarm attack that will crush me utterly. My power supply is completely down due to coal power disruptions from this. Was about to fix it with solar, but no time left.

I've tried to handle it - but I'm boned. Thoroughly. After half a dozen attempts, nothing. I'm a so boned.



...and I don't want to toss away almost 6 hours of leisurely fun and industry.


Is there a debug command I can use to temporarily give me infinite electricity or something?
I don't want to have to toss this game away - but without a cheat-fix I cannot salvage this.
Koub
Global Moderator
Global Moderator
Posts: 7784
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Last ditch debug mode?

Post by Koub »

Why not give yourself a few stacks of coal ?
Koub - Please consider English is not my native language.
User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: Last ditch debug mode?

Post by Smarty »

You could run a kill all command
User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: Last ditch debug mode?

Post by Smarty »

Code: Select all

/c game.forces["enemy"].kill_all_units()
This is the command
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Last ditch debug mode?

Post by prg »

To give you a bit more time to sort out your energy situation till the next wave comes, flip the game to peaceful mode:

Code: Select all

game.peaceful_mode=true
game.forces.enemy.kill_all_units()
Run the same thing again with peaceful_mode=false to switch the critters back to aggressive.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
webkilla
Inserter
Inserter
Posts: 48
Joined: Sun May 11, 2014 4:17 pm
Contact:

Re: Last ditch debug mode?

Post by webkilla »

thank you so much!

...now to get that damned power supply up and running
Post Reply

Return to “Gameplay Help”