Allow creating space platforms at any space-location

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Sa.sa
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 25, 2024 11:27 am
Contact:

Allow creating space platforms at any space-location

Post by Sa.sa »

At the moment, force.create_space_platform fails when the target location is just a space-location and not a planet. From the outside at least this seems arbitrary.

My use case is a space platform start mod. I'd like to start players in open space so reaching a planet can be the first challenge.
protocol_1903
Fast Inserter
Fast Inserter
Posts: 134
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Allow creating space platforms at any space-location

Post by protocol_1903 »

The reason it fails is because a platform is in one of two states: orbiting a planet, or moving between two planets. It needs to have a planet to orbit when being created.

Your best bet right now is to generate nauvis as a planet, create the platform above nauvis, then hide nauvis.
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Sa.sa
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 25, 2024 11:27 am
Contact:

Re: Allow creating space platforms at any space-location

Post by Sa.sa »

I'll have to experiment with that then. Thank you!
protocol_1903
Fast Inserter
Fast Inserter
Posts: 134
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Allow creating space platforms at any space-location

Post by protocol_1903 »

It should also be noted that you can't delete the nauvis surface at all, so you're going to need to hide it somehow
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
User avatar
MaxAstro
Inserter
Inserter
Posts: 31
Joined: Sun Nov 09, 2014 7:53 am
Contact:

Re: Allow creating space platforms at any space-location

Post by MaxAstro »

Why not just create an "empty space" planet?
"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark Twain

"True friends stab you in the front." - Oscar Wilde
Sa.sa
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 25, 2024 11:27 am
Contact:

Re: Allow creating space platforms at any space-location

Post by Sa.sa »

MaxAstro wrote: Tue Dec 10, 2024 7:49 pm Why not just create an "empty space" planet?
That's what I've been doing so far. The main problem was that players were able to drop down to it, but when I next have time I'll try hiding it as suggested. I'm not sure what'll happen to the space route when I do, I'll have to see.
User avatar
MaxAstro
Inserter
Inserter
Posts: 31
Joined: Sun Nov 09, 2014 7:53 am
Contact:

Re: Allow creating space platforms at any space-location

Post by MaxAstro »

Sa.sa wrote: Fri Dec 13, 2024 1:02 am
MaxAstro wrote: Tue Dec 10, 2024 7:49 pm Why not just create an "empty space" planet?
That's what I've been doing so far. The main problem was that players were able to drop down to it, but when I next have time I'll try hiding it as suggested. I'm not sure what'll happen to the space route when I do, I'll have to see.
Clearly what you do is name the planet "the void of space" and have a script that just kills any player that drops to it. :P
"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark Twain

"True friends stab you in the front." - Oscar Wilde
Post Reply

Return to “Modding interface requests”