Open akuseru opened 4 years ago
Yep, and there can be groups in these or groups of these too, it's a huge mess. Fixing the groups would require them to have a name at least, and then it could be cleaned up a bit but it's pretty disgusting.
I'm not really sure on a good approach for handling these as its all kind of everywhere
How about just parsing it into a fixed-size array, I think that's what SC does
You can't for groups, because a group might repeat say 20 times and have several members, which would look more like
struct BaseParam
{
uint kind;
uint value;
} params[6];
Which isn't something you can do sequentially as is without sacrificing what the data actually is
I think it's not too much of a problem if the groups were named, because then you could generate structures for all of them, but as is, it's kind of just meaningless
Double nested repeat isn't done, nor is crazy shit like this:
{
"sheet": "GCSupplyDuty",
"definitions": [
{
"type": "repeat",
"count": 11,
"definition": {
"type": "repeat",
"count": 3,
"definition": {
"type": "group",
"members": [
{
"name": "Item",
"converter": {
"type": "link",
"target": "Item"
}
},
{
"name": "ItemCount"
}
]
}
}
}
]
}
But the generator has been completely rewritten and correctly supports:
bitsets are gone and are just read by their columns now instead, easier that way
this is currently on develop, will merge into master and publish to nuget probably tomorrow or the day after once I fix a couple weird things
main thing to note: generated structs have moved to their own nuget package, lumina.generated, potentially changing namespace too but not 100% committed to that yet
fyi: all of these changes outlined above are available on nuget now
I'm still conflicted on whether double repeat and whatnot is even worth supporting, it's probably going to be more reasonable to manually implement those sheets as required
https://github.com/ufx/SaintCoinach/blob/master/SaintCoinach/Definitions/Quest.json#L341-L355
more crazy definitions that are missing.