Any idea what kind of data type this is? It looks like some kind of a C++ struct or something they made for City of Heroes characters, but lacking the semicolon. I notice there's nesting going on too. Each costumepart is a nested struct.
I'm asking because I want Jerrichas to be able to parse this data (and these files) directly... of course, if I can pull this off in Python =)
https://github.com/Jerricha/jerrichas/issues/3
Costume files are just a hierarchical text format that COH outputs with the costume data. As far as I know, they are no more C++ structs than INI files are.
Arcana posted
a basic python costume loader you could use as a starting point, though you'll probably want to add some sanity and error checking and deal properly with things like quotes, different numbers of blanks between fields, different indentation, and keys that aren't directly supported in the database (like CostumeFilePrefix. Sometimes it contains "male", "female", or "huge" instead of a BodyType key with 0, 1, or 4, so it'd need to be translated. But then sometimes it contains something like that entry for Lord Recluse that Noyjitat posted. I'm not real clear on how it is actually meant to be used, to be honest)