Aller au contenu

Photo

Advice about Item Model Switching


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
Andraste_Reborn

Andraste_Reborn
  • Members
  • 4 808 messages
I'm working on a mod that swaps the default mage robe models in the game for more practical looking outfits, and unfortunately I've run into a bug. With the override item_variations.gda installed, some of the male NPC mages are bugged - male elves suffer from floating head syndrome and male humans have no shoes. It turns out that some of them use the same art resources as the player character and swapping the robe models has unforseen consequences.

The way I see it, there are three ways of fixing this.

A) Find out what equipment each male NPC mage is being assigned and change it to something else. As far as I can tell everyone affected is a named character the player can interact with who must have an outfit designated somewhere. Does anybody know how to change an NPC's outfit?

B) Find out how player equipment is assigned a model. There must be code that tells the Robes of the Void (for example) which model to reference, and that code could theoretically be found for each uniqe set of mage robes and made to reference a different model instead. This would bypass the NPC clothing issue, but randomly generated robes would still have the default appearances.

C) Make new sets of mage robes with with desired models and place them in the game. This is my least preferred option - I don't think there's anything wrong with the stats on the default mage robes, just with how they look, and duplicating all the unique robes with slightly different names and changed models seems redundant. I'd rather have a practical-looking Vestments of the Mystic than another set of robes.

Any suggestions on what's the most practical way forward and any tutorials or guides I should be reading? I am a noob and obviously DAII is not the easiest game in the world to start on, but I want to get this working smoothly!