Random issue I can't seem to fix.

Post » Tue May 17, 2011 1:39 pm

Ok first off, I need to try to fix this ASAP. I promised alot of people they could test the mod today, and this issue is going to completely stop that from happening.

Ok my issue is that I have an NPC. He is frozen in a standing position via a script that uses SetActorsAI. Then later via terminal the game plays a cutscene and moves the player around a bunch. During that cutscene it uses SetActorsAI 1 on the NPC, making it so he can idle and move freely and is no longer frozen. This worked perfectly fine, up until a little while ago. I was testing the whole mod today and noticed, so I am not sure how long ago it broke. What happens instead is before the cutscene, the actor is not even there (Almost like he is initially disabled) then during the cutscene when it should make his AI on, it instead seems to enable him, but his AI is still off. He is stuck posed with his fists out, not moving. Its really strange. I have checked everything, the cutscene script, his packages, if he is initially disabled, his script. I cannot figure out what the hell randomly caused this whole thing to mess up. The area is navmeshed, I re-finalized it just incase... If anyone has any suggestions please let me know! Its not a dirty save as I tried with 2 different saves, both of which I have never so much as had the mod active. One with like 10hrs of gameplay, and the one it makes as you leave Vault 101.

I have no clue what is wrong, or why this even got messed up as I havent touched anything related to this in like 2 months...

Gunmaster95
User avatar
Jerry Jr. Ortiz
 
Posts: 3457
Joined: Fri Nov 23, 2007 12:39 pm

Post » Tue May 17, 2011 3:17 am

Have you tried a ResetAI on it after the SetActorsAI?

Edit - also, the NPC script still runs even with the AI off, in case there's something in that causing it.
User avatar
Ronald
 
Posts: 3319
Joined: Sun Aug 05, 2007 12:16 am

Post » Tue May 17, 2011 3:01 pm

You might also need to make it pick a new AI package.
http://cs.elderscrolls.com/constwiki/index.php/EvaluatePackage
User avatar
Jessica Thomson
 
Posts: 3337
Joined: Fri Jul 21, 2006 5:10 am

Post » Tue May 17, 2011 10:50 am

Ingame, yes, in the script, no. I dont think that would help though, as the guy is 'invisible' or disabled or something before ever even using the SetActorsAi. And he shouldnt be, thats part of whats so weird. The guy should at least be there, that would be a great start. But he simply is not there until the script calls SetActorsAi 1 on him. Before that, he is just gone.

Wait, I have an idea what it could be!!!!! I will be back.
User avatar
DeeD
 
Posts: 3439
Joined: Sat Jul 14, 2007 6:50 pm

Post » Tue May 17, 2011 11:02 am

I have figured it out. Turns out one of the more recent packages I added to him had some quest conditions on them. I have intended for them to be GetStage >= 10 and GetStage < 20 but I had the OR box checked on accident. So he was somewhere else, not disabled, and when it moved him there for the cutscene, then set his AI to 1, in the next frame, since he was loaded, it ran the script on him that set his AI back to 0. That is why... So it was mainly just a stupid mistake. God I must be annoying you people, as I seem to be doing that alot lately. Anywho, thanks for the suggestions you too. I am SOOO glad I fixed this as it seemed very odd to have suddenly broken.

Gunmaster95
User avatar
Monique Cameron
 
Posts: 3430
Joined: Fri Jun 23, 2006 6:30 am


Return to Fallout 3