Here are the criteria SE uses to decide whether you can place a vehicle in space:
if is_surface_space(entity.surface) then
if (entity.type == "car")
and (not string.find(entity.name, mod_prefix.."space", 1, true))
and entity.prototype.effectivity > 0 then
return cancel_entity_creation(entity, event.player_index, {"space-exploration.construction-denied-vehicle-in-space"}, event)
end
So viable options are:
-
Prototype the entities on something that isn't a car.
-
Add "space" to the entity names.
-
Ask Earendel for a way to add vehicles that doesn't suck.
Looking at the source of Lex's Aircraft (which does work in space), the aircraft are prototyped on the spidertron. Probably the best option.
So
type = "car",
would become
type = "spider-vehicle",