Package Diagnostics Tips?

Post » Fri Dec 05, 2014 11:34 pm

I'm learning about packages and the package stack right now. I thought I understood what was going on, but I added something to the stack that doesn't appear to be working. Based on some Debug Notifications I put in the begin and end papyrus fragments, I know that it is being run, but it is also 'completing' under conditions that seem totally incorrect to me.

Does anyone have any good advice on how to diagnose this issue?

For example, I'm using a Travel package, and the actor doesn't even move before the package completes. How do I know if that's because the package thinks the actor is at the destination, vs it thinking that something higher on the stack has overridden it?

Any other issues it could be or tips you could give me are most appreciated.

User avatar
Scarlet Devil
 
Posts: 3410
Joined: Wed Aug 16, 2006 6:31 pm

Post » Fri Dec 05, 2014 2:57 pm

can't tell you why your actor won't move (could be stg about your conditions for that pack/procedure, navmesh or a billion other things),

but for your notifications, where'd you put your fragments? note that "onend" only runs when a package _successfully_completes_, in all other cases, onchange runs.

so, say it's your pack's turn in the stack. it starts to run -> start frag runs. it tries to travel to it's loc but can't for some reason. so it quits the pack and -> onchange frag runs. just a scenario how'd you get both notifications without your actor even moving

User avatar
DarkGypsy
 
Posts: 3309
Joined: Tue Jan 23, 2007 11:32 am

Post » Fri Dec 05, 2014 10:01 pm

Thanks for that. Really useful info. The code was put in OnEnd, so I suppose it must think it actually finished.

The region is Whiterun in testing, so the navmesh should be fine. I guess I might just need to go back over the package with a discerning eye and make sure I didn't mess anything up.

User avatar
*Chloe*
 
Posts: 3538
Joined: Fri Jul 07, 2006 4:34 am

Post » Fri Dec 05, 2014 12:51 pm

is your package set to must complete? if not, try this (edit: if you do so, also set the package's travel procedure to "completes package" so it _can_ complete)

and check if your package's target points to the right ref (or whatever it is), and your conditions, too.

you can also try to set "prefer preferred path" to false, often helps

User avatar
Sara Johanna Scenariste
 
Posts: 3381
Joined: Tue Mar 13, 2007 8:24 pm

Post » Fri Dec 05, 2014 9:17 pm

I'll give that a shot! I'm away from my computer for a bit. Will report back later.

"prefer preferred path" What does this even mean?

User avatar
clelia vega
 
Posts: 3433
Joined: Wed Mar 21, 2007 6:04 pm


Return to V - Skyrim