Page 1 of 1

How to add paperdolls for new NPCs?

Posted: Sun May 29, 2005 6:41 am
by marzo
This is a question whose answer has eluded me so far. Is there a way to add new paperdoll art for new NPCs or that would require a new version of Exult?

By paperdoll art I mean both, the heads in the SI paperdolls (as well as determining if the body should be male/female) and the gump art of standard BG inventories. It would be nice if the face also displays in the status bars.

Can anyone help?

Re: How to add paperdolls for new NPCs?

Posted: Sun May 29, 2005 6:50 am
by Michele
Wish I knew, seeing as this will become crucial in totally new games using these engines.

Re: How to add paperdolls for new NPCs?

Posted: Sun May 29, 2005 7:47 pm
by marzo
The main reason I posted it here is to see if any of the devs can shine some light on it; or anyone who knows how to do it, for that matter...

Re: How to add paperdolls for new NPCs?

Posted: Mon May 30, 2005 6:47 pm
by Colourless
You can't do it without editing the exult source code.

There is a file (paperdoll_gump_info.cc i think) that contains all the data used to display paperdolls

Re: How to add paperdolls for new NPCs?

Posted: Mon May 30, 2005 8:14 pm
by marzo
Yeah, that is what I feared. Which means that there are no new NPCs/games without a new version of Exult.

Maybe the info on paperdoll_gump_info.cc should be moved to an external xml file? And now that I have finally found out where the standard BG gumps are defined (Actor::inventory_shapenum in actors.cc), the information on that function might also be moved to an external file (after all, not everyone has SI...). Perhaps even to the same xml file; a section for gumps (for BG) and another with paperdoll information (for BG and SI).

Should I submit this as a feature request?

Re: How to add paperdolls for new NPCs?

Posted: Mon May 30, 2005 8:41 pm
by Dominus
yes, best submit a feature request.

Re: How to add paperdolls for new NPCs?

Posted: Tue May 31, 2005 5:22 am
by Michele
Go for it Marzo. The idea roxxors :)

Re: How to add paperdolls for new NPCs?

Posted: Tue May 31, 2005 6:02 am
by marzo
It has been submitted. I also submitted (in a separate, even though related, request) a request for moving out data about which items get ready/unready Usecode events. Given that things such as the Belt of Strength and rings of invisibility use such events, it should be obvious why one would like to have this ability...

Re: How to add paperdolls for new NPCs?

Posted: Tue May 31, 2005 9:21 am
by drcode
Thanks. There is a lot of data hard-coded into Exult, since they were also hardcoded into U7 and we were trying to get the games playable as quickly as possible. The main long-term goal for Exult is to get as much as possible into data files. My current thought is that a single .xml file would be the way to go for all the non-text information. Or maybe just a text file.

Re: How to add paperdolls for new NPCs?

Posted: Tue May 31, 2005 10:58 am
by marzo
My opinion is that the xml file would be better -- the information gets better organized that way. Perhaps one data file per game would be best (one for BG, one for SI and more as people make new games).

Re: How to add paperdolls for new NPCs?

Posted: Tue May 31, 2005 8:02 pm
by Gradilla Dragon
And someone should write a program for editing the xml files, as it has been proven than a lot of people has a hard time understanding them. The program could even be used for configuring Exult.

Re: How to add paperdolls for new NPCs?

Posted: Tue May 31, 2005 10:54 pm
by Alun Bestor
Well, there should be graphical applications out there for manipulating XML trees already, since XML is an ubiquitous format and Exult isn't doing anything very out-there with it. Worth hunting around on sourceforge for :)

Re: How to add paperdolls for new NPCs?

Posted: Wed Jun 01, 2005 7:46 am
by Colourless
The XML 'like' files that Exult uses are very much not standard XML files though.

Of course in Pentagram we decided not to use XML files, instead we use INI files simply because they are much simpler for the average user to understand. And they are just easier to read.

Re: How to add paperdolls for new NPCs?

Posted: Wed Jun 01, 2005 12:14 pm
by Alun Bestor
Not to mention easier to edit :)
It did always strike me as a bit silly to go so balls-out with XML that Exult has tags for , and gamma values. Things like that could have been handled with attributes, but I suppose Exult's parser doesn't expect or support those.

Re: How to add paperdolls for new NPCs?

Posted: Sat Jun 04, 2005 8:27 am
by Skutarth
If you can make it so you can change the paperdoll, I can finally solve the problem with spark!

Re: How to add paperdolls for new NPCs?

Posted: Thu Apr 20, 2006 7:48 pm
by PanSola
thread necromancy by spammer!!! o_O"""

Edit by wjp: Freezing this old thread since it's a popular target for spammers.