I decided to post an update on what is currently happening with this project. I also have some screenshots for you.
The editor now successfully loads all but 3 files plus LSystem files for Vanilla and Warlords. I have not tested BtS yet since I do not yet have it on my computer. Once I have the editor capable of manipulating files and schemas I will add BtS.
I had particular trouble with text files... I had even forgotten about them since I set them aside as files that don't follow any XML schema. (It is not even possible to write a schema for them since they use the same tags names for different kinds of tags). But after working straight for a day and a half, I have them working.
It also loads some mods. It has trouble with mods that are scenario based. Not sure why at this point but I will look into it. For mods that do load (world based mods that do not focus on a specific scenario), it can load all files that I have checked so far.
Here is the mod menu from which you load mods.
A screenshot of the editor with the Genetic Era Mod loaded:
You may notice a few new things. First are the colors of some of the tags. This was functionality I had put in over a year ago but since it wouldn't load Warlords files correctly back then I didn't see it until a few weeks ago. Tags are colored after the edition that introduced them. Original tags are in black. Tags new to warlords are in brown and tags that are new to the Genetic Era (or any mod that is loaded) are in blue.
Second, the status bar at the bottom also color codes the file name based on the edition folder it is loaded from. Files that have updates are color coded after the color of the most recent update. (They follow the same coloring as the tags).
Comments are also colored green.
Finally... let me introduce a particular feature I wanted to include which I have referred to as "Type casting." Basically by following a defined set of rules, the editor recognizes tags that are supposed to be set to a particular info type. (I referred to this feature in one of my most recent posts). Those rules are defined in a text based "settings" file and can be edited both by the user hard-coding... and eventually by the editor itself (once I add the dialogs and menu's that let you set them up).
Tags that are recognized as being associated with an info type are in bold. Clicking on a bold tag will give you a combo box (drop down box) filled with values for the recognized info type as shown below:
Above we have selected to edit a recognized tech node.
Here we have our dropdown list of tech infos.
And our resulting edit change! You may notice the StateReligion is not bolded. Right now only global recognition seems to be working. Rules for specific files don't work yet. I have noticed that this is used in more than one file however so making it recognized in all files will be simple. I will simply move the rule to the global section
Here we are editing a recognized religion node in the BuildingInfo's file:
After removing a recent bug that makes unloading mods cause a crash, Next on the agenda is to be able to save files that have been altered. This functionality shouldn't be too hard to add.
After that I will be finally working on editing functionality beyond simply changing values. Next after saving will be copying infos and creating new ones. That will probably be followed by adding new tag types to the schema!