A persistent issue with the jetpack mod since 2.0, did not find report so I wish to forward info others have posted. According to others it appears to be a modding API issue. I am just a user of the mod so I am just forwarding information from others.
User covffe on discord:
"It resets the camera zoom to being close up to the player character, whenever the animation for activation of the jetpack has finished, or whenever the animation for deactivating and landing has finished.
So say I'm walking along, zoomed out for visibility, I lift off, the camera cuts to zoomed in on the character. I then have to zoom back out in flight, and then it happens again when i land.
Ive tried assigning new keys for activation just incase it was conflicting with some new feature but it happens regardless.
This has only happened since the recent update and getting Space Age. Never had it happen before."
User Trex in reply:
"This is a problem with Factorio, as there is no API that allows us to change the zoom when the Jetpack is activated to prevent this from happening. Until Factorio updates the Mod API to allow us to do that, this is an unfortunate side effect that we cannot change. (...) I don't believe it was a problem before 2.0, but I believe the behaviour changed specifically to reset the zoom when changing the "controller" the player is using (a technical thing that defines if you're controlling a character, or the remote view, or a few other options)
So that if you were zoomed out in Remote view and switched back to your character, you were not confronted with a similarly zoomed out view of where your character was"
[2.0.15] Add option to NOT reset zoom level when changing characters
-
- Manual Inserter
- Posts: 1
- Joined: Sat Nov 09, 2024 3:28 pm
- Contact:
Add option to NOT reset zoom level when changing characters
I'm working on updating my mod Renai Transportation to the 2.0 API and in some situations I switch the player character for a copy that has no collision so that it doesn't hit/interrupt trains when using the zipline.
Previously, changing the character the player controls just shifted the camera over to the new character, but now the same command (player.character = "NewCharacter") resets the player's zoom level when control transfers to the new character. It's really jarring immersion-wise and unexpected since it wasn't like that before, so it'd be great if there was some way to preserve the zoom level when switching characters.
If there is already a way to do this I couldn't find it
Previously, changing the character the player controls just shifted the camera over to the new character, but now the same command (player.character = "NewCharacter") resets the player's zoom level when control transfers to the new character. It's really jarring immersion-wise and unexpected since it wasn't like that before, so it'd be great if there was some way to preserve the zoom level when switching characters.
If there is already a way to do this I couldn't find it
Re: Add option to NOT reset zoom level when changing characters
It should be possible to do this by reading the zoom from the player before changing the character and then writing it afterwards.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.