Crazy AI packages

Post » Sun Aug 30, 2015 2:32 pm

I've been working with AL packages, and have learned quite a lot (IMO anyway :smile:). They can be pretty frustrating even when it seems I've done everything I am supposed to do to make them work.

Now, I'm running into a problem with an NPC who, granted has multiple purposes and many AI packages. He is a mage/wizard. I got most my packages to work with him, including some magic stuff going on in exterior cells, as well as visiting multiple interior cells, etc.

Now the problem. I set up an area in his main work area where he is doing some target spell casts. But the problem is, now none of his other packages work! GRRR.

Is there a limitation on AI packages for npcs, or is that he is doing magic in the AI packages and there's too many of those going on? He is a pretty complex character with his packages.

I know I have to order my packages correctly and make sure that they aren't conflicting, etc.

Insights?

User avatar
vanuza
 
Posts: 3522
Joined: Fri Sep 22, 2006 11:14 pm

Post » Sun Aug 30, 2015 6:36 am

The hearthfire package list for the kids is a dozen or more so I doubt theres a meaningful limit (unless you're doing something silly like hundreds of them). Packages always poll from the top downwards so the one on top gets checked first, then the one underneath, etc etc. If the topmost one is set to run 24hrs a day 7 days a week none of the subset will get a chance to run.

The other possibility is the package simply doesn't function correctly, they're temperamental in my experience and rarely give a warning the npc just... stops. I believe there an error message in the log in that case.

n.b. if you ever manage to edit Object Type (not Object List) in Target Selector, or manage to successfully add a Form List to target selector and get it to function please let me know because I've never been able to make it work. (Object Type is a very limited list)

User avatar
Juan Cerda
 
Posts: 3426
Joined: Thu Jul 12, 2007 8:49 pm

Post » Sun Aug 30, 2015 2:31 am

Is the new package at the top of the stack?

If you've not changed the other packages and just added this new one, It could be that the new package is always firing and therefore the others aren't getting a chance to execute. Might be worth checking the package conditions and making sure they're right

Also, are you setting conditions on the package, the procedures or both? If just the procedures then it's possible that the package is selected, finds that none of its branches apply, but stays loaded anyway

User avatar
George PUluse
 
Posts: 3486
Joined: Fri Sep 28, 2007 11:20 pm

Post » Sun Aug 30, 2015 1:00 pm

Thank you for your quick responses DC and BD. I had pretty much exhausted looking for conflicts with packages, package order, etc. when I finally looked at the navmesh. A cap in the navmesh prevented the npc from crossing out of the area I'd put him in to accomplish the magic routine I'd set up. This gap actually accounts for frustrating sandboxing issues I'd noticed with the npc which I could not figure out. However, I have to say that the npc would cross over the gap before adding this particular package which is why I didn't pick up on this 2 mos ago when I first started creating npcs. What is odd is that the gap created an island of navmesh and I would have thought that running the CK tool that tests for navmesh errors would have identified this problem. It did not.

DC, I never have used the conditions tap on packages, though I'd like to learn how to. For instance, can you stall a package from initiating when it sends an npc outdoors in the rain? I have a farmer. Its silly for him to be outside milling when its pouring rain.

User avatar
Louise Dennis
 
Posts: 3489
Joined: Fri Mar 02, 2007 9:23 pm

Post » Sun Aug 30, 2015 8:30 am

I never tried it, but it should be doable. Add a condition for GetIsCurrentWeather to his package. Then in game you can test it using sw c8220 (which should make it rain) and see if he goes inside.
User avatar
Neko Jenny
 
Posts: 3409
Joined: Thu Jun 22, 2006 4:29 am

Post » Sun Aug 30, 2015 11:45 am

Please explain sw c8220?

User avatar
STEVI INQUE
 
Posts: 3441
Joined: Thu Nov 02, 2006 8:19 pm

Post » Sun Aug 30, 2015 11:06 am

sw = "setWeather" and the number is the form id for a storm.

I just looked them up on one of the wikis.
User avatar
Schel[Anne]FTL
 
Posts: 3384
Joined: Thu Nov 16, 2006 6:53 pm

Post » Sun Aug 30, 2015 12:44 am

Can you link where you found that?

User avatar
JLG
 
Posts: 3364
Joined: Fri Oct 19, 2007 7:42 pm

Post » Sun Aug 30, 2015 1:17 pm

http://elderscrolls.wikia.com/wiki/Console_Commands_%28Skyrim%29/Weather
User avatar
Lizzie
 
Posts: 3476
Joined: Sun Nov 19, 2006 5:51 am


Return to V - Skyrim