deder Posted June 9, 2022 Posted June 9, 2022 (edited) 1 hour ago, Sailing Rebel said: Move the wait operation so it comes before all the message box calls. Or temporarily comment out the earlier calls. It's these we're are trying to get ahead of. Not sure if unregistering for that mod event will do anything in this context. Things may already be queued up by this point. But move that higher up with the wait operation just in case. Yes, it worked. Thanks a lot for your help! But is "OnPlayerLoadGame()" supposed to work once for the whole game? If I understand correctly, it should activate every time the player loads a save. Or in this case, it allows you not to pollute the save actions of the script? Unlike "OnInit()". Working code: Event OnInit() OnPlayerLoadGame() End event Event OnPlayerLoadGame() RegisterForModEvent("AnimationStart", "PlayerStat") Debug.Messagebox("Start") End event Event PlayerStat(string eventName, string argString, float argNum, form sender) Utility.Wait(5) controller = SexLab.HookController(sexlab.FindPlayerController()) ; Important change. "argString" is "Thread[0]" by default. "sexlab.FindPlayerController()" is the "Thread" in which the player is located. Debug.Messagebox("AnimationStart done") actor[] actorList = SexLab.HookActors(sexlab.FindPlayerController()) CreaturePartner = actorList[1] Debug.Messagebox(actorList) While controller.HasPlayer endWhile Debug.Messagebox("Event end") End event Edited June 9, 2022 by deder
Sailing Rebel Posted June 9, 2022 Author Posted June 9, 2022 2 hours ago, deder said: Yes, it worked. Thanks a lot for your help! But is "OnPlayerLoadGame()" supposed to work once for the whole game? If I understand correctly, it should activate every time the player loads a save. Or in this case, it allows you not to pollute the save actions of the script? Unlike "OnInit()". In your case this OnInit() only fires once when starting a new game ( check the wiki for the other circumstances). OnPlayerLoadGame() will fire every time a save is loaded, but not when starting a new game. By chaining them together like that, you can have the same code run in both situations without having to repeat it all. This is all dependent on the script being attached to an alias of the player, as this is the only actor who receives the OnPlayerLoadGame() event. That While loop needs to go as it will lock up the script instance when the thread involves the player. There are situations where SL will fail to clear actors from threads properly, and this can persist until the game is reloaded. The other thing I would worry about in your code is that the thread controller might become invalid during the wait operation. So you may want to collect the information from it before that, like the actor list and the presence of the player.
deder Posted June 9, 2022 Posted June 9, 2022 51 minutes ago, Sailing Rebel said: In your case this OnInit() only fires once when starting a new game ( check the wiki for the other circumstances). OnPlayerLoadGame() will fire every time a save is loaded, but not when starting a new game. By chaining them together like that, you can have the same code run in both situations without having to repeat it all. This is all dependent on the script being attached to an alias of the player, as this is the only actor who receives the OnPlayerLoadGame() event. That While loop needs to go as it will lock up the script instance when the thread involves the player. There are situations where SL will fail to clear actors from threads properly, and this can persist until the game is reloaded. The other thing I would worry about in your code is that the thread controller might become invalid during the wait operation. So you may want to collect the information from it before that, like the actor list and the presence of the player. My script is in a quest. I guess "OnPlayerLoadGame()" is useless in this case? Thanks for the info about thread cleanup issues. I will change the condition. I've been working with scripts in Skyrim not so long ago, and I probably don't know yet how it's easier and more reliable to get the race of a creature in an animation in which the player is present. I thought I could see how it works in "SLtriggers" (I originally made a beta version of my mod on the functions of this mod), but the scripts do not have a resource there.
Sailing Rebel Posted June 9, 2022 Author Posted June 9, 2022 26 minutes ago, deder said: My script is in a quest. I guess "OnPlayerLoadGame()" is useless in this case? Thanks for the info about thread cleanup issues. I will change the condition. I've been working with scripts in Skyrim not so long ago, and I probably don't know yet how it's easier and more reliable to get the race of a creature in an animation in which the player is present. I thought I could see how it works in "SLtriggers" (I originally made a beta version of my mod on the functions of this mod), but the scripts do not have a resource there. Yes, you should create an alias on the quest filled by the player and attach the script to that alias. You'll find this is how many scripted mods handle initial script execution and maintenance. I'd recommend looking through the documentation in the SexLabFramework.psc which has lots of info on SL functions and events and how to employ them.
noodles1234 Posted June 12, 2022 Posted June 12, 2022 This mod is so good. Is there a way I can make this work while PC is considered a creature? Stuck in my home in whiterun on a full moon, wanted to have some fun with vigilance but he is not interested I turned on debug to make sure, it showed that it failed because I had creature tag
Sailing Rebel Posted June 12, 2022 Author Posted June 12, 2022 3 hours ago, noodles1234 said: This mod is so good. Is there a way I can make this work while PC is considered a creature? Stuck in my home in whiterun on a full moon, wanted to have some fun with vigilance but he is not interested I turned on debug to make sure, it showed that it failed because I had creature tag Creature-on-creature is not supported in Aroused Creatures right now (it's not even technically supported by SexLab). Take a look at OsmelMC's patches linked in the description, which add some C/C support. I'm not sure if that covers transformed PCs. And please keep in mind that if you are using patches for this mod, any support will need to be from the patch author.
Tlam99 Posted June 12, 2022 Posted June 12, 2022 hm, I got horse on horse and deer on deer. Which mod if not this makes this possible ?
Sailing Rebel Posted June 12, 2022 Author Posted June 12, 2022 41 minutes ago, Tlam99 said: hm, I got horse on horse and deer on deer. Which mod if not this makes this possible ? As mentioned, OsmelMC's patches allow this. AFAIK, it's up to the triggering mod to trick SL into using all creatures in an animation. This may be a patched Aroused Creatures or another mod entirely.
noodles1234 Posted June 13, 2022 Posted June 13, 2022 15 hours ago, Sailing Rebel said: Creature-on-creature is not supported in Aroused Creatures right now (it's not even technically supported by SexLab). Take a look at OsmelMC's patches linked in the description, which add some C/C support. I'm not sure if that covers transformed PCs. And please keep in mind that if you are using patches for this mod, any support will need to be from the patch author. This did not work, unfortunately. Just made me the victim in every encounter lol thanks anyway!
Tlam99 Posted June 13, 2022 Posted June 13, 2022 16 hours ago, Sailing Rebel said: Creatures or another mod entirely Guess I got it, quite sure SL approach. Slowly it becomes difficult to keep an overview which mod does what with my setup.
Sailing Rebel Posted June 13, 2022 Author Posted June 13, 2022 7 hours ago, noodles1234 said: This did not work, unfortunately. Just made me the victim in every encounter lol thanks anyway! That's unfortunate, make sure to follow the patch instructions exactly. Beyond that, you'll need to ask in the Tweaks support thread.
pinkfluf Posted June 23, 2022 Posted June 23, 2022 Hi Wondering if it's possible to have a slider under aroused horse bucking "Happy Horse - Chance frustrated horse satisfies himself with player after bucking", eg, chance could be at 100% to always occur. thanks
Sailing Rebel Posted June 23, 2022 Author Posted June 23, 2022 1 hour ago, pinkfluf said: Wondering if it's possible to have a slider under aroused horse bucking "Happy Horse - Chance frustrated horse satisfies himself with player after bucking", eg, chance could be at 100% to always occur. thanks Hm. Seems reasonable. I'll have a think about this. Probably won't be in the next release, as I'm not adding any new features - it's taken long enough already! 1
pinkfluf Posted June 23, 2022 Posted June 23, 2022 10 minutes ago, Sailing Rebel said: Hm. Seems reasonable. I'll have a think about this. Probably won't be in the next release, as I'm not adding any new features - it's taken long enough already! Cheers, had the idea after my horse bucked me and then walked towards my follower to screw her (even though I was stood next to it 50/50 chance I guess). Thought of adding it myself to the buckplayer function in slac.utility but then thought about the slider then I just ended up getting a headache. So thought I'd ask the main man himself . thanks 1
Sailing Rebel Posted June 24, 2022 Author Posted June 24, 2022 2 hours ago, pinkfluf said: Cheers, had the idea after my horse bucked me and then walked towards my follower to screw her (even though I was stood next to it 50/50 chance I guess). Thought of adding it myself to the buckplayer function in slac.utility but then thought about the slider then I just ended up getting a headache. So thought I'd ask the main man himself . thanks Timing is the issue there. When the buck animation is fired, the PC is technically still riding and so any test to see if they are able to be animated by SL will fail - which is a good thing as messing with animations on a mounted PC can break the game completely. I'll need to identify and register an appropriate dismount animation event in the PlayerScript and use that to trigger an engagement test as the animation finishes. 1
incesikurity Posted June 24, 2022 Posted June 24, 2022 For some reason when I tell NPC to take care of creature, after they agree and walk to the creature, message show up that "X is unable to attend to the aroused Y"
Sailing Rebel Posted June 24, 2022 Author Posted June 24, 2022 7 hours ago, incesikurity said: For some reason when I tell NPC to take care of creature, after they agree and walk to the creature, message show up that "X is unable to attend to the aroused Y" When this message appears, go to the Aroused Creatures MCM > Help page and check the recent failure codes. Either Lydia or the horse will have an entry in one of the lists. Highlight the failure code for them to see an explanation at the bottom of the menu. 1
skyrim482 Posted June 24, 2022 Posted June 24, 2022 Ever considered adding some immersion dialogues to tie into the mod that could add some simple minor features like arousal gain? This would be useful before sex Examples Going up to your horse asking " Hey boy you look dirty, would you like a brush?" popup box says player spends 15 minutes brushing the horse and the horse has gained 15 arousal. Asking a dog if they want their belly rubbed + 15 arousal gain More kinky Dialogue to flash creatures ex "hey boy check this out " - Simple popup box says Player drops her pants and shakes her ass in front of the dogs nose for 5 minutes- arousal gain +35 for the dog Sleep options - Player goes up to friendly creature and says " Its very cold out tonight, want cuddle and sleep to stay warm? Player lies down sleeps next to creature maybe awaken to a sex scene or creature nudging you awake. Much higher chance if player is naked. Maybe a chance slider where player might enjoy this as consensual instead of counting as rape. Maybe an option that ask how the player wants to lay down determines the type of sex that could happen. Would you like to lay down in the spooning position or opposite of the creature like a 69 like position. Sample box "Player chooses to lie down opposite of her horse and falls asleep for a few hours then you wake up to a box that reads " You awaken to your partner breathing heavily and you feel something warm laying across your face. as you open your eyes you realize your horse has a massive erection that is lying across your face, what would you like to do?" player has option to provide oral sex to creature or try to ignore it and go back to sleep and see what happens which might lead to rape., which the player might enjoy being awaken to depending on preferences . All this would just start normal sex scenes this was just some ideas to add immersive dialogues and spice up the kinkyness.
WhiteKnightWulf Posted June 27, 2022 Posted June 27, 2022 So having a small problem. I have all the dialogue options checked, but when I go to talk to a target the dialogue option simply isn't there. Any ideas as to why this might be the case?
Violence6884 Posted June 29, 2022 Posted June 29, 2022 Ah, sorry to bother, as this may have been asked before- Are there any recommended settings to avoid having a creature lose interest in the PC, after barely 1-2" of pursuit and actually bumping into the PC? Unless of course that's an indication that I've messed up somewhere while installing, or perhaps in my LO, ETC...
Sailing Rebel Posted June 29, 2022 Author Posted June 29, 2022 On 6/24/2022 at 11:46 PM, skyrim482 said: Ever considered adding some immersion dialogues to tie into the mod that could add some simple minor features like arousal gain? This would be useful before sex Examples Going up to your horse asking " Hey boy you look dirty, would you like a brush?" popup box says player spends 15 minutes brushing the horse and the horse has gained 15 arousal. Asking a dog if they want their belly rubbed + 15 arousal gain More kinky Dialogue to flash creatures ex "hey boy check this out " - Simple popup box says Player drops her pants and shakes her ass in front of the dogs nose for 5 minutes- arousal gain +35 for the dog Sleep options - Player goes up to friendly creature and says " Its very cold out tonight, want cuddle and sleep to stay warm? Player lies down sleeps next to creature maybe awaken to a sex scene or creature nudging you awake. Much higher chance if player is naked. Maybe a chance slider where player might enjoy this as consensual instead of counting as rape. Maybe an option that ask how the player wants to lay down determines the type of sex that could happen. Would you like to lay down in the spooning position or opposite of the creature like a 69 like position. Sample box "Player chooses to lie down opposite of her horse and falls asleep for a few hours then you wake up to a box that reads " You awaken to your partner breathing heavily and you feel something warm laying across your face. as you open your eyes you realize your horse has a massive erection that is lying across your face, what would you like to do?" player has option to provide oral sex to creature or try to ignore it and go back to sleep and see what happens which might lead to rape., which the player might enjoy being awaken to depending on preferences . All this would just start normal sex scenes this was just some ideas to add immersive dialogues and spice up the kinkyness. More interaction would be a good thing, but I really want to stay away from purely narrated results, like pop-up descriptions. Ideally, interactions like these would be fully animated, like actual horse grooming, and dog petting. Not that I plan on doing that kind of animation any time soon. The next version has nothing particularly innovative, just broadening of the existing options, but has already taken me months. At one point I thought I might try my hand with xVASynth to provide actual voices for the dialogue we have right now... nope, not happening, not enough months in the year. On 6/27/2022 at 7:36 AM, WhiteKnightWulf said: So having a small problem. I have all the dialogue options checked, but when I go to talk to a target the dialogue option simply isn't there. Any ideas as to why this might be the case? Is this NPCs or creatures or both? If you have any patches for AC installed, try removing them. Download AC again and check that the archive is whole and uncorrupted (7-zip > Test Archive) before installing it again and ensuring that it overwrites everything. Save your current Aroused Creatures profile and then try returning the settings to default (option in the Profiles page), see if that helps. 56 minutes ago, Violence6884 said: Ah, sorry to bother, as this may have been asked before- Are there any recommended settings to avoid having a creature lose interest in the PC, after barely 1-2" of pursuit and actually bumping into the PC? Unless of course that's an indication that I've messed up somewhere while installing, or perhaps in my LO, ETC... Immediately after this happens, open the Aroused Creatures MCM > Help page and check for recent failure codes for the PC or the creature that was trying to engage them. Select the failure code to see an explanation and possible solution at the bottom of the menu. Failing at the end of a pursuit usually indicates a change in status since the start for one or both actors, such as discovering that they are hostile to each other, or entering a combat state. It's also possible that SLs animation registry is desynced and needs to be reset in SexLab MCM > Rebuild & Clean. 1
pinkfluf Posted June 30, 2022 Posted June 30, 2022 SR, I was at Riften stables when a mob of bandits attacked, leaving the khajit female injured (have all unique npcs as protected) after the fight one of the horses decides to have his way with her and I was thinking "Ah she must be weakened" as she wasn't naked was this a fluke or is there a setting somewhere I've missed cause I kinda like it
Sailing Rebel Posted June 30, 2022 Author Posted June 30, 2022 4 hours ago, pinkfluf said: SR, I was at Riften stables when a mob of bandits attacked, leaving the khajit female injured (have all unique npcs as protected) after the fight one of the horses decides to have his way with her and I was thinking "Ah she must be weakened" as she wasn't naked was this a fluke or is there a setting somewhere I've missed cause I kinda like it The bleedout state should prevent AC auto engagement. Is it possible that the animation was triggered by another mod, like Defeat? Or could the actor have just regenned enough health at that moment to leave bleedout?
pinkfluf Posted June 30, 2022 Posted June 30, 2022 22 minutes ago, Sailing Rebel said: Is it possible that the animation was triggered by another mod, like Defeat? Or could the actor have just regenned enough health at that moment to leave bleedout? She was in bleedout then stood up and a few seconds later the horse had his way. I have yamete but the horse wasn't a combatant so I'm guessing what you said about regenning health hit the nail on the head. How does this sound.... Last Rites (silder based on chance 0-100%) - Your horse/dog companion (keyword based check?) has sensed your imminent demise and has decided to have it's way with you before you die. During combat applies a temp invulnerable cloak to player and horse/dog? Chance to affect npc's or followers only? Sorry I'm getting carried away
Violence6884 Posted June 30, 2022 Posted June 30, 2022 (edited) 16 hours ago, Sailing Rebel said: Immediately after this happens, open the Aroused Creatures MCM > Help page and check for recent failure codes for the PC or the creature that was trying to engage them. Select the failure code to see an explanation and possible solution at the bottom of the menu. Failing at the end of a pursuit usually indicates a change in status since the start for one or both actors, such as discovering that they are hostile to each other, or entering a combat state. It's also possible that SLs animation registry is desynced and needs to be reset in SexLab MCM > Rebuild & Clean. Always very helpful and fast with your replies, that's why I always like noting it ❤️ Without yet having tried the SL animation registry thing, nor checking the Help page, the issue just... Went away after I turned LOS on and off again. Though, if it happens again I'll keep what you suggested in mind. Best to know exactly what happened... I'd do it now, but I have this little odd thing you see, where if it works(Or works again) I kind of not want to look further into it. Mod PTSD I suppose? :3 Edited June 30, 2022 by Violence6884
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