Add a way to prevent the player from leaving the remote controller

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
TBC_x
Inserter
Inserter
Posts: 30
Joined: Sun Sep 10, 2023 5:20 am
Contact:

Add a way to prevent the player from leaving the remote controller

Post by TBC_x »

I've created a mod, where I've stashed the player character away onto a separate surface and let him use only the remote view to interact with the world.

The problem I ran into is that when the player accidentally leaves the remote view, he has to figure out a way to get back.

I thought of just letting the player sit in a space platform hub, but that is not available without the expansion.

I could set the controller back to the remote view in an event handler, but I'm sure the player would not be able to access the game menu.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 479
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: [2.0.69] Add a way to prevent the player from leaving the remote controller

Post by Stringweasel »

TBC_x wrote: Thu Oct 30, 2025 7:38 am I could set the controller back to the remote view in an event handler, but I'm sure the player would not be able to access the game menu.
What do you mean with this? I'm quite sure if you listen to on_player_controller_changed and set it back to remote view if the player left it that it will just work. It has no effect on if the player can access the game menu.
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 479
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Add a way to prevent the player from leaving the remote controller

Post by Stringweasel »

Ah, wait, if you press escape then it goes to character controller, and then you put it back in remote view, so have to press escape again... I see :D
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
Post Reply

Return to “Modding interface requests”