Dokkalfr Posted February 18, 2012 Share Posted February 18, 2012 Earlier this week, I released a mod to offer a simple fix for the Lydia loop bug. I noticed in Oblivion that sometimes if an NPC was placed on the upper level in a two-level cell, it would get "confused" about the path grid and end up in strange places. So, I simply moved Lydia downstairs. Instead of going into the player's bedroom and looping in the chair, she started doing alchemy, cooking, drinking, sitting in different chairs ... and not once getting stuck. Easy, right? Well, after receiving feedback from various users, I'm trying to fine tune it, and there are two areas in particular that interest me in trying to make it better, if possible. The first issue was from a tester who said his marriage partner started moving around the house, but Lydia just stood there, still. Since Lydia's location is the only thing I altered, I couldn't understand why it would affect another character's AI. The second issue had to do with a request to make her sleep in her bed. Here is what I found. 1. I checked the X-markers in the house for references or scripting. They are blank, so they are not telling any characters what to do. 2. I checked all the furniture for ownership. Most are blank, but marked as okay for NPC's to use. Lydia's bed is owned by Player Housecarl Faction. The Player's bed is owned by Player Faction. 3. I checked Lydia's faction ranks. She is -1 Whiterun Housecarl, 0 Player Housecarl, and -1 Potential Marriage. I'm guessing the 0 Player Housecarl setting might be why Lydia won't sleep in her own bed. Or at least I've never seen her sleep in her bed, even though she does have sleep-enabled AI. But I don't want to mess with her faction if it means interfering with the quest to gain her as a housecarl. Another interesting note here is that all the other partners listed in the Marriage Faction were ranked at 0. Why Lydia was ranked -1 is beyond me, but she's the only one. Maybe that is what's making her "secondary" to the other partner in terms of being able to move around the house? 4. I tried moving Lydia to another place upstairs. She moved around upstairs only, returned to the bedroom chair, moved to all the other upstairs chairs, but didn't get stuck in the loop again. She just never went downstairs to do other things. Nor did she sleep in her bed. 5. I tried moving Lydia half-way down the stairs. She went back upstairs. See #4. 6. I tried increasing Lydia's editor radius to 1000 and then 5000. (It's originally 512, I think.) It made no difference that I can tell because she remained on whatever level I put her on. 7. I tried adjusting the nav mesh on the stairs, thinking maybe a faulty path grid was preventing her from moving between levels. Didn't seem to make any difference. She stayed on the level she was put on. So, after all that, I'm out of tests to run. Is anyone else more familiar with the factions rankings to know what's going on with the partner benefitting from my moving Lydia downstairs? Or does anyone know of a safe way to get her to sleep in her bed without messing up ownership on the beds or the quest to gain her as a companion? Should I just leave well enough alone? Moving her downstairs does break the loop without breaking anything else that I know of. It's just weird that it would affect another character, or that her AI would enable sleep and she won't do it. Did I miss something? Thanks for any help. Link to comment Share on other sites More sharing options...
Sunnie Posted February 18, 2012 Share Posted February 18, 2012 It's an easy fix, really. kill the "DefaultSandboxEditorLocation512" AI package and add "MarriageSpouseWhiterunSandboxPlayerHouse". This will fix the issue with Lydia hanging around in the chair in the player bedroom. As for sleeping, I rarely ever see any of the Carls or my wife sleeping in any of the player houses, I wouldn't worry too much abotu that. Link to comment Share on other sites More sharing options...
jet4571 Posted February 18, 2012 Share Posted February 18, 2012 Possibly use one of the default sleep packages and set her bed to owned by her and not the faction. Link to comment Share on other sites More sharing options...
Dokkalfr Posted February 18, 2012 Author Share Posted February 18, 2012 (edited) It's an easy fix, really. kill the "DefaultSandboxEditorLocation512" AI package and add "MarriageSpouseWhiterunSandboxPlayerHouse". This will fix the issue with Lydia hanging around in the chair in the player bedroom. As for sleeping, I rarely ever see any of the Carls or my wife sleeping in any of the player houses, I wouldn't worry too much abotu that. Thanks so much for the reply. But will switching Lydia to a marriage package when she isn't the chosen partner allow both Lydia and the wife to move freely about the house, or will there be a conflict with the game thinking there are two spouses? The fix works fine if only Lydia is present. But none of my characters are married, so I have no way of testing how AI changes for Lydia affect being married to another partner while she is present. There was a conflict just by moving her downstairs, so I imagine there would be also be a conflict by creating two partners. In other words, I'd rather not turn Lydia into a spouse just to stop her from sitting in that chair, but I don't understand why moving Lydia's editor location would interfere with a different spouse's AI. But according to one of my testers, that's what happened. I hope that makes sense. >.< Edited February 18, 2012 by Dokkalfr Link to comment Share on other sites More sharing options...
Sunnie Posted February 18, 2012 Share Posted February 18, 2012 But will switching Lydia to a marriage package when she isn't the chosen partner allow both Lydia and the wife to move freely about the house, or will there be a conflict with the game thinking there are two spouses? The fix works fine if only Lydia is present. But none of my characters are married, so I have no way of testing how AI changes for Lydia affect being married to another partner while she is present. There was a conflict just by moving her downstairs, so I imagine there would be also be a conflict by creating two partners. In other words, I'd rather not turn Lydia into a spouse just to stop her from sitting in that chair, but I don't understand why moving Lydia's editor location would interfere with a different spouse's AI. But according to one of my testers, that's what happened. I hope that makes sense. >.< Theres no conflict. AI packages just give the Actor a list of things they can do and when they can do them, they don't affect factions or marriage or anything else like that. I have all my HouseCarls running on the marriage packages and they move about the house doing stuff rather than parking their ass in one spot 24/7. It's actually quite cool to walk into my Proudspire basement and see Jordis and my wife both using the crafting equipment simultaneously! Link to comment Share on other sites More sharing options...
Dokkalfr Posted February 18, 2012 Author Share Posted February 18, 2012 Theres no conflict. AI packages just give the Actor a list of things they can do and when they can do them, they don't affect factions or marriage or anything else like that. I have all my HouseCarls running on the marriage packages and they move about the house doing stuff rather than parking their ass in one spot 24/7. It's actually quite cool to walk into my Proudspire basement and see Jordis and my wife both using the crafting equipment simultaneously! Ah, thanks so much! That's what I needed to know. I don't want to break games for the sake of stopping her loop. >.< Link to comment Share on other sites More sharing options...
Recommended Posts