Page 1 of 1

Q: How are the NPCs built?

Posted: 02 Jan 2013, 11:27
by Pithorn
How did you built the NPCs and the world with the pictures?
have you decrypt this part of data in the bsa files?

Re: Q: How are the NPCs built?

Posted: 02 Jan 2013, 12:48
by hircine
Pithorn wrote:How did you built the NPCs and the world with the pictures?
have you decrypt this part of data in the bsa files?
We have a library that allows us to decompress and use the files within each BSA.
We then use the information in the Morrowind.ESM file to 'build' each NPC. There is information in the ESM that contains the models and textures we need to use for each NPC, where they are located and what their name is and other personal info.

Sorry, If I misunderstand what you are trying to ask. It's a little bit cryptic.

Re: Q: How are the NPCs built?

Posted: 02 Jan 2013, 14:43
by Pithorn
We have a library that allows us to decompress and use the files within each BSA.
Amazing.
Where's it in the source code?

Re: Q: How are the NPCs built?

Posted: 05 Jan 2013, 04:46
by jhooks1
components/bsa/bsa_archive.cpp and hpp

That part only really allows openmw to grab files from the bsa though (like a zip file sort of).

To actually build NPCs there is quite a bit going on. NPCs are built with body parts connected to a skeleton. Body parts can be classified as skin, armor, or clothing. This is purely to display an NPC. You have a physics collision shape, stats, and a lot of other stuff related to them.

The world is kind of a broad term though and could include a lot of stuff.