Author Topic: Is there a utility that can extract costumes from a demo file?  (Read 390 times)

chigiabelo

  • Underling
  • *
  • Posts: 4
Assuming there are characters in a demo file and you like one of the costumes, can that portion of the demo file be converted to a costume file?

Tahquitz

  • Titan Moderator
  • Elite Boss
  • *****
  • Posts: 1,802
Re: Is there a utility that can extract costumes from a demo file?
« Reply #1 on: June 08, 2019, 04:21:12 PM »
Not that I'm aware of.  I have been able to "lift" costume parts (Geometries and textures) from a character definition and put those into Paragon Chat's database with some effort, but the costume would face validation: if the geometry isn't available to player characters, the costume becomes "locked" and entering the tailor means losing the invalid parts.

If your costume does validate, then you'd still need to check it in the tailor to see if it meets your expectations.  Just because a costume 'works' according to the database doesn't mean it looks correct.  Assuming all of that, no reason it can't be exported to a .costume file for the live game on another server. :)
"Work is love made visible." -- Khalil Gibran

MyriVerse

  • Prom King 2017
  • Elite Boss
  • *****
  • Posts: 504
Re: Is there a utility that can extract costumes from a demo file?
« Reply #2 on: June 08, 2019, 07:38:20 PM »
Assuming there are characters in a demo file and you like one of the costumes, can that portion of the demo file be converted to a costume file?
What Taqh said about the validation when using the tailor.

But it probably wouldn't be too difficult to parse the text, automatically or manually, into a *.costume file. Just copy the format of existing costume files and insert the different data for each costume part. The colours are in different formats: Demos use hex values while COSTUMES use decimal, but just convert the RGB (red/green/blue) hex values to decimal. Until you learn the format, this might be trial and error, but it's really not too difficult to learn the format.

After that, when you visit the tailor in PChat and load the file, it will tell you whether or not the costume validates. It'll say "cannot find the costume part" for this body part or somesuch, with an option to "fix" the part (fixing will screw up the intended costume in PChat, but won't harm the *.costume file).

For those that don't want to listen to the PChat tailor comes the great world of database "hacking."
aka Majadi | Sugar Cane | Absinthe | Killer Antz | Bogatyra | ...
Best Video Game of 2016 -- Paragon Chat!!!
Codewalker for Mayor of Paragon!