What I'd like to do is take the XML recipe list from Silo's archive for the Make It! extension and use a script to import them into my meta file.
I know how to parse XML with Python well enough, but even after reading Virindi's description of how meta files are layed out I'm still at a loss as to how to get that data into the meta file as new rules. I see basically how some of the data is constructed but there are some odd things.
I created a simple test meta. It has a single rule in the Default state. A Chat Condition and a Chat Command Action just say which is the condition and which is the action to make it clear in the source:
Code: Select all
1
CondAct
5
CType
AType
CData
AData
State
n
n
n
n
n
1
i
4
i
2
s
This is the condition
s
This is the action
s
Default

According to the column names they should go, from left to right, Condition Type, Action Type, Condition Data, Action Data, State.
However, down where the rule rows are it's clearly from left to right a Condition Type, Condition Data, Action Type, Action Data, State.
I'm also not sure what line 1 and 2 are. Virindi's post here says the table count name should be up there. CondAct is the table name? What's the "1"? They seem to be the same across all my metas but some have more than one nested table it appears.
The Record Count row also doesn't make sense based on my understanding of the file layout. I see, from left to right, i, 4, i, 2, s. That's saying there's 4 records for Condition and 2 for Action? And why do the i's and s's not fall in the same column? Should they not all be in the type fields?
What do I have wrong here? Are there any existing scripts to easily manipulate and add or remove data from meta files?