Can you respawn the spaceship wreck?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
GewaltSam
Filter Inserter
Filter Inserter
Posts: 345
Joined: Thu May 08, 2014 5:42 pm
Contact:

Can you respawn the spaceship wreck?

Post by GewaltSam »

Hey there, pretty much the thread title. A "friend" visited our little factory, and we're 99% sure that it was him who deconstructed the prestige piece of our factory - when we discovered it, we were already 6 hours ahead :-(

Now, the question is, can you respawn this thing again, like, per console command or anything? I googled for it for a bit and searched around in the forums, but I couldn't find anything. Any help would be greatly appreciated!
Last edited by GewaltSam on Thu Aug 19, 2021 7:18 am, edited 1 time in total.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3713
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Can you respawn the spaceship wreck?

Post by DaveMcW »

Code: Select all

/c game.player.surface.create_entity{name="crash-site-spaceship", force="player", position={-5,-6}}
And optionally...

Code: Select all

/c shipwreck = game.player.surface.find_entities_filtered{name="crash-site-spaceship"}[1]
shipwreck.minable = false
shipwreck.destructible = false

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 526
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Can you respawn the spaceship wreck?

Post by Silari »

Should be able to with

Code: Select all

/c game.surfaces["nauvis"].create_entity{name="crash-site-spaceship",position={-5,-6},force="player"}
where {-5,-6} is the position where the spaceship was. Both games I checked that's where it was, so I'm assuming it's always put there by the freeplay scenario.

User avatar
GewaltSam
Filter Inserter
Filter Inserter
Posts: 345
Joined: Thu May 08, 2014 5:42 pm
Contact:

Re: Can you respawn the spaceship wreck?

Post by GewaltSam »

Thank you guys very much ❤️

One quick follow up question though, does it still allow for doing the achievements? I was thinking about trying the editor for getting the rocket back, but if we can't do achievements then, we would rather build a little memorial for our hare-brained friend and the lost rocket.

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 526
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Can you respawn the spaceship wreck?

Post by Silari »

There's no easy way to do it that won't make you lose achievements. Commands permanently mark the save as not being eligible for any achievements.

User avatar
GewaltSam
Filter Inserter
Filter Inserter
Posts: 345
Joined: Thu May 08, 2014 5:42 pm
Contact:

Re: Can you respawn the spaceship wreck?

Post by GewaltSam »

Aww, too bad, but I was afraid it will be like that :/
Well, blinking and insulting letters visible from space it is, then :-D

Thanks again for the quick responses! The Factorio community is still my favorite one for a reason ;)

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Can you respawn the spaceship wreck?

Post by eradicator »

Silari wrote:
Thu Aug 19, 2021 7:30 am
There's no easy way to do it that won't make you lose achievements.
Depends on if you're talking about steam achievements or merely modded in-game achievements. ;)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Gameplay Help”