Topic on User talk:Dr. Strangelove

Jump to navigation Jump to search
Line 3: Line 3:
 
Current idea is to use an external parser to convert xml based data to a Lua table. The root element of a logical unit would be based on <defName> and all inherited values would be merged into its subtree. If inherited values are merged for a (let's use Pawns as an example) Pawn, that would duplicate some data but would be more human readable.
 
Current idea is to use an external parser to convert xml based data to a Lua table. The root element of a logical unit would be based on <defName> and all inherited values would be merged into its subtree. If inherited values are merged for a (let's use Pawns as an example) Pawn, that would duplicate some data but would be more human readable.
  
For now, another idea is to filter data that might be deemed unnecessary. This adds a layer of complexity of having to maintain a table for this, but seeing as it would need to be very very rarely... not that big of an issue.
+
For now, another idea is to filter data that might be deemed unnecessary. This adds a layer of complexity of having to maintain a table for this, but seeing as it would need to be done once (for each "category" - if split into them) or very, very rarely... not that big of an issue.
  
 
Another way of doing it could be to remove the need for an external parser, upload the relevant defs and do transforms with Lua. While doable... more work would have to be done with Lua. (Not liking it at the moment.)
 
Another way of doing it could be to remove the need for an external parser, upload the relevant defs and do transforms with Lua. While doable... more work would have to be done with Lua. (Not liking it at the moment.)