yian Posted July 13, 2009 Share Posted July 13, 2009 Well, guys, I have run into more troubles. I made a few custom characters in the construction set, and when I attack them in game the game crashes. Sometimes it crashes, sometimes it does not. But more often than not it crashes. The character is very simple and doesn't have any AI package or script attached. It is in a custom faction I made but the faction has nothing special in it. The character is made essential. The faction is set to evil because I want it to be okay to attack them without guards showing up. The game crashes as soon as I commence attack, and before the NPC makes any kind of response the game says it encounters an error and must quit. I'm pretty sure it is not caused by other mods because it only happens to the characters I have made in my own mod. I tested this by going around the Imperial city and attacked everyone. I killed 49 people without crashing the game once. But When I reloaded the game and attacked my NPCs, the game crashes. Please help. What could be some of the possible causes for this? I know there could be a lot of reasons but let's list them all out for now so I can test them one by one. Link to comment Share on other sites More sharing options...
Dracula420 Posted July 13, 2009 Share Posted July 13, 2009 well i think it needs basic AI packages to function at all even if its just a wander package.just give them the same AI stuff as say the bandits or something. Link to comment Share on other sites More sharing options...
yian Posted July 13, 2009 Author Share Posted July 13, 2009 Here is the thing. I don't want them to do anything other than just standing there. At one point I even went as far as "setunconscious 1" and "skipanim" in a script I attached, but it messed up the pose mod so I decided to have them just stand there. Is not having an AI package the cause of the crash? Because sometimes I attack them, they would fight back for a while then start to run away until they faint (unconscious since they were made essential.) But more often than not the game simply crashes. **EDIT** Okay just tried the game again and now the game crashes without fail as soon as I attack them. I must have done something wrong that when they try to react to an attack the game goes berserk. I am going to try to put in a basic AI package and see how it goes. Link to comment Share on other sites More sharing options...
yian Posted July 13, 2009 Author Share Posted July 13, 2009 I gave them a flee no combat package and the game crashes just the same. I don't think the lack of an AI package was the cause here. Link to comment Share on other sites More sharing options...
Dracula420 Posted July 13, 2009 Share Posted July 13, 2009 just give them a basic wander package and set the radius to 1 and set the npc energy to 0 so they don't try to go anywhere. and check out the wiki page it should be able to help. Link to comment Share on other sites More sharing options...
yian Posted July 14, 2009 Author Share Posted July 14, 2009 Thanks doe the advice. but as I have mentioned, i am more concerned with the crash upon attack issue. I have grounded my NPCs with" setrestrained 1" in a simple script. The problem seems to be caused by some custom clothing I have made. I imported some custom mesh made by other modders and made some new clothing for the NPC. They clothes showed up fine, but I am certain now that they are also causing crashes. If I remove the clothing, I can attack them and the game would run fine. But If I let them wear the custom clothing, they crash the game when I attack the NPCs. Link to comment Share on other sites More sharing options...
Vagrant0 Posted July 14, 2009 Share Posted July 14, 2009 The problem seems to be caused by some custom clothing I have made. I imported some custom mesh made by other modders and made some new clothing for the NPC. They clothes showed up fine, but I am certain now that they are also causing crashes. If I remove the clothing, I can attack them and the game would run fine. But If I let them wear the custom clothing, they crash the game when I attack the NPCs.Yep, clothing and armor meshes have some special settings which are needed to make them handle combat data. This is probably the easiest solved by opening your mesh in nifscope, and transplanting all of the visual elements (none of the bones) into a vanilla clothing.nif which uses the same bones. Link to comment Share on other sites More sharing options...
yian Posted July 14, 2009 Author Share Posted July 14, 2009 Thank you for the info. I shall give this a shot, but I have never done anything like this before. Primarily I have two concerns: 1 - Right now, two of my custom armors are actually made from body meshes. To be more specific, they are made of the upper and lower bodies of HGEC body meshes. The reason for that was that I wanted to give my characters different body types, and since they are not going to be wearing any clothes, I figure it would be the only way to let my NPCs use different body meshes without involving OBSE. Now, if I do as you say and strip all the info except the visual elements, will the skin still remain the same skin tone after I put them onto the NPCs? Right now amazingly, the skin tone remains in sync even though the upper and lower body mesh are actually clothes. Which part of the .nif file is doing that? i need to know so it remains in sync after I have modify the files. 2 - Is there a tutorial somewhere that tells you how to deal with such thing? Just in case if I run into snags? Link to comment Share on other sites More sharing options...
Recommended Posts