Open Jerricha opened 9 years ago
Arcana wrote a very basic parser in Python already: http://www.cohtitan.com/forum/index.php/topic,10956.msg187979.html#msg187979
However, I still think there's an easier way to do this.. Maybe inherit and override the struct
class?
A few years back, someone also wrote a .costume converter in PHP: https://github.com/mcuznz/DEMOlition
@robokitty
It's way easier for the end-user to design their costume in the tailor/character creator, and just save it in the GUI, than using the
/access_level1; /costumesave <str>
technique.Let's solve this problem by parsing
.costume
files, and mapping it toParagonChat.db
schema. The tables that are relevant arecostume
andcostumepart
.The data structure in these
.costume
files might be some kind of C-style struct data type. You might be able to use the Pythonstruct
library to parse this.Criteria for ticket:
TailorCostume
class.costume
file, and maps it to a dict that corresponds to table and column names.ParagonChat.db
(Jerricha can help with this), also manual testing