DickChapman Posted September 1, 2023 Posted September 1, 2023 Hi, I've been having some issues with a weird and overly specific bug, which is that after initiating sex with the same NPC twice in a row, my controls get stuck; I can move the camera, but I can't move or interact with anything, or even open the inventory. The only thing I can do is to open the pause menu and reload an earlier save, but I still want to know what causes this issue. Do note how I mentioned that it only happens after I personally initiate a scene; when the NPCs start the scenes, like for example being r*ped via Peril, this doesn't happen. I've linked my plugin load order (I'm using MO2), hope that can help. loadorder.txt
traison Posted September 1, 2023 Posted September 1, 2023 Never really looked into it but this happens randomly with SL as well. My assumption always was that it's SetVehicle or one of the methods that disable player controls (in one way or another) that had a race condition causing the irregular pattern; as in the way SL was calling them was within a race condition situation. It could also be something built into the animations themselves, as I've observed some idle animations disable controls while others do not. Its interesting that you've apparently found a way to reliably repeat it, this is a first for me. The workaround that doesn't require you to lose progress is to spawn in an alchemy table where you're standing and use it. As for actually figuring out what's causing it, I'd start by disabling all relevant SetVehicle calls as well as the relevant method calls that disable player controls in SL. If the issue persists I'd try to get a hold of the havok tools (rare and illegal files these days, I have a copy) and find any and all probing or decompiling utilities to break those animations into as small bits as possible. Figure out what they consist of and see if there's anything that resembles game instructions in there - I mean something is telling the game to disable controls on some idle animations; could be just a bit field (flags essentially) or something more elaborate like method names or even a script.
anjenthedog Posted September 1, 2023 Posted September 1, 2023 (edited) When I lose controls after, there are a few avenues I follow. Console: player.tai, which, if set to an off condition during the scene (Defeat is notorious in this) or lead up, and isn't reset afterwards. A positive response to the command is "player AI ON" and means that it was turned off programmatically and failed to reset after. If that fails just issue it again to turn it back on. (hitting the wrong proteus hotkey (the one that swaps controls between a targeted NPC and player) can also cause player controls to be turned off via a TAI toggle. Console: enableplayercontrols - usually does little or nothing but it's worth a shot Hotkey 0 - Defeat's default hotkey for cleanup of poorly exited or otherwise screwy defeat situations (defeater leaves, for instance, leaving you paralyzed). Fast travel to use a crafting station. the escape from the crafting station performs a reset, in case it was "overlooked" during the event's exit routine that left you "controlless" Punt and use an earlier save before the player lockup occurred As to why it happens, hain't a clue, (although I speculate from time to time)... I'll leave that aspect to more code-adept folk who enjoy digging into those things. And this is why I leave it to my "betters" to explain: speculation1 - you are attacked while in a defeat "pose" and it breaks the script chain and the event is exited out of sequence, skipping the player control reset speculation2 - you are engaged in a battle and are stunned by certain hard hitting spells or weapons (giant's club for instance), directly breaking the player controls (not sure exactly how, but experientially that's happened to me many times) speculation3 - An impish proto-AI demon resides in every Skyrim instance and loves to f with players. the first two definitely happen to me, and the longer I play Skyrim, the more I'm convinced of the last one as well. Edited September 1, 2023 by anjenthedog
Tlam99 Posted September 1, 2023 Posted September 1, 2023 Besides a debug shout there is a way to fix some things. Change into vampire or werewolf. This resets a couple of things.
DickChapman Posted September 2, 2023 Author Posted September 2, 2023 Y'all must've misread my post, because I said that this happens when I, as the player, start a scene, NOT when I get forced into one via Peril (yes, I use Peril, NOT Defeat, even though I mentioned it nobody here seems to care). Also something I mentioned is that the game won't let me interact with ANYTHING, meaning I can't change into vampire/werewolf or use furniture like the enchanting table. I also said that this only happens when having sex with the same NPC twice in a row, if it's two different NPCs or if enought time passes between the scenes, I don't get the locked up controls.
coolfreaky Posted September 2, 2023 Posted September 2, 2023 enter your Console Commande than type tfc it will bring back the camera to the player character . if after typing tfc your camera get stuck follow this link : Camera stuck after sex scene AE - Technical Support - Skyrim: Special Edition - LoversLab as for explanation : it is a bug with any bethesda (Oblivion , Skyrim , FO ) game when mods enter and exit the flycam specially with sexmods where it is most used and useful .
ProblemsSolutions Posted January 12 Posted January 12 (edited) I know this is totally a necro post, but everything above will not work, what will work is getting forced into a scene and leaving it normally, only if you are in the scenes freecam mode will it fix your issue. if you're in an interior where you can't get forced into one spawn a hostile actor that can initiate one. after you fix it save and reload game to clear any potential additional issues. if all else fails quit game and reload previous save. Edited January 12 by ProblemsSolutions grammar
17skyrim Posted April 1 Posted April 1 `Skyrim player stuck after Sexlab animation SOLUTION: 1) Open MCM menu 2) Select FNIS PCEA2 3) Reset FNIS PCEA2 Animations
traison Posted April 1 Posted April 1 Since this keeps getting necro'd, here's the real cause and fix: It's the activation key that breaks it. There's a couple of locations in SL where it calls DisablePlayerControls. Edit these calls to also disable player activation, and the problem goes away. Also remember to make sure it gets enabled again in the EnablePlayerControls call(s)
NCK30 Posted June 30 Posted June 30 On 4/1/2026 at 11:51 AM, traison said: Since this keeps getting necro'd, here's the real cause and fix: It's the activation key that breaks it. There's a couple of locations in SL where it calls DisablePlayerControls. Edit these calls to also disable player activation, and the problem goes away. Also remember to make sure it gets enabled again in the EnablePlayerControls call(s) Installed the Furniture Framework here from LoversLab and I am getting this often. Even with ordinary sex scenes. It happens a lot more when in tight spaces. Could You explain in detail which files to edit. Because it is literally driving me insane. Never had this in LE.
traison Posted June 30 Posted June 30 4 minutes ago, NCK30 said: Could You explain in detail which files to edit. Because it is literally driving me insane. Never had this in LE. sslActorAlias:UnlockActor() ;Game.EnablePlayerControls(true, true, false, false, false, false, false, false, 0) Game.EnablePlayerControls(true, true, false, false, false, false, true, false, 0) ; Jan 2026 sslActorAlias:LockActor() ;Game.DisablePlayerControls(true, true, false, false, false, false, false, false, 0) Game.DisablePlayerControls(true, true, false, false, false, false, true, false, 0) ; Jan 2026 sslSystemConfig:GetThreadControl(...) ;Game.DisablePlayerControls(true, true, false, false, false, false, false, false, 0) Game.DisablePlayerControls(true, true, false, false, false, false, true, false, 0) ; Jan 2026 1
NCK30 Posted July 1 Posted July 1 (edited) 21 hours ago, traison said: sslActorAlias:UnlockActor() ;Game.EnablePlayerControls(true, true, false, false, false, false, false, false, 0) Game.EnablePlayerControls(true, true, false, false, false, false, true, false, 0) ; Jan 2026 sslActorAlias:LockActor() ;Game.DisablePlayerControls(true, true, false, false, false, false, false, false, 0) Game.DisablePlayerControls(true, true, false, false, false, false, true, false, 0) ; Jan 2026 sslSystemConfig:GetThreadControl(...) ;Game.DisablePlayerControls(true, true, false, false, false, false, false, false, 0) Game.DisablePlayerControls(true, true, false, false, false, false, true, false, 0) ; Jan 2026 Made these changes. Compiled the scripts. Still happening. Maybe somewhat less. That is I changed the second to last to "true instead of false". You don't need both lines, right? You also disabled the top one by making a ";" in front, as I understand coding. Using Sexlab 1.63 on 1.5.97. I use an "Improved Camera" preset for Sexlab. It happens both in 1stperson and 3rdperson view. Edited July 1 by NCK30
traison Posted July 1 Posted July 1 17 minutes ago, NCK30 said: Made these changes. Compiled the scripts. Still happening. Maybe somewhat less. I haven't had the issue since I made those changes back in January. But there is something we need to keep in mind here; if pressing the activate key while attached to a vehicle and playing an idle animation locks your camera, that to me smells like spaghetti code. If there's spaghetti code, it pretty much guarantees that there will be more issues like this. Just as a sanity check, have you tried activating things while in a scene? Bang someone next to another NPC and try talking to them; or next to a door and try to open it. If you can still do this, then something went wrong with the code edits, or you have something else calling EnablePlayerControls/DisablePlayerControls. Note that even without these code changes, you couldn't always talk to nearby NPCs anyways. I do not know whether it's random, or if you have to do something specific to maintain the ability to interract with things.
NCK30 Posted July 1 Posted July 1 4 minutes ago, traison said: I haven't had the issue since I made those changes back in January. But there is something we need to keep in mind here; if pressing the activate key while attached to a vehicle and playing an idle animation locks your camera, that to me smells like spaghetti code. If there's spaghetti code, it pretty much guarantees that there will be more issues like this. Just as a sanity check, have you tried activating things while in a scene? Bang someone next to another NPC and try talking to them; or next to a door and try to open it. If you can still do this, then something went wrong with the code edits, or you have something else calling EnablePlayerControls/DisablePlayerControls. Note that even without these code changes, you couldn't always talk to nearby NPCs anyways. I do not know whether it's random, or if you have to do something specific to maintain the ability to interract with things. I can talk to the NPC I bang. And I can still fix it by using an alchemy lab, armor bench or whatever. Either by moving to a new location or doing it after the animation. I am just sick and tired of always doing this. But it is happening mostly in comfined spaces. Almost never in open spaces like a wall animation in Whiterun. So it could be collision or camera related.
traison Posted July 1 Posted July 1 (edited) 41 minutes ago, NCK30 said: I can talk to the NPC I bang. That's not supposed to work with my code changes. I made a separate mod for myself to re-enable this. You have something else enabling the activation key, or the code edits failed. Modified the wrong scripts? Something overriding your new pex files? Edit: Did you make sure the modified date on the pex files actually changed, i.e. did the compile succeed? Edited July 1 by traison
NCK30 Posted July 1 Posted July 1 (edited) 34 minutes ago, traison said: That's not supposed to work with my code changes. I made a separate mod for myself to re-enable this. You have something else enabling the activation key, or the code edits failed. Modified the wrong scripts? Something overriding your new pex files? I mean to say it worked before your changes. I can try and test it again. According to MO2 I have nothing overriding those 2 files. Edit.: Just tried again. I can't talk to anyone now. But the loss of control still happens. And as I said it is much worse in confined spaces. Edited July 1 by NCK30
traison Posted July 1 Posted July 1 1 hour ago, NCK30 said: Just tried again. I can't talk to anyone now. But the loss of control still happens. Unfortunately I got nothing then. I've not seen this issue in 6 months. I'd have to see this problem for myself to potentially figure it out.
NCK30 Posted July 1 Posted July 1 5 minutes ago, traison said: Unfortunately I got nothing then. I've not seen this issue in 6 months. I'd have to see this problem for myself to potentially figure it out. Thanks for taking the time. I confirmed that it had nothing to do with my Improved Camera mod. I might just have to disable mods one by one. Or it could simply be a problem with Sexlab 1.63.
traison Posted July 1 Posted July 1 3 hours ago, NCK30 said: Or it could simply be a problem with Sexlab 1.63. I have nothing in my notes about this being a problem in 163. Either it was never documented (or enough of a problem to bother) or it appeared in 166b. If we assume flawless testing (probably shouldn't) that in itself already suggests your problem is elsewhere and my patch was never going to work. How about you go through all EnablePlayerControls and DisablePlayerControls in SL's scripts and patch the flags to always enable and disable (respectively) the activation key.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now