Thorburne
Nov 29, 2007, 03:11 PM
O.k, I originally posted this in the Utility thread, but realized that it may have been the wrong place. I am looking for help with a project I have undertaken. Right now, I am pooring over all of the XML files from Vanilla, Warlords, and BTS. I am trying to gather the information so that I can put it all into an Access Database. Right now, I am just going through the files to get the Tags and I am not even halfway done that part yet. As I knew it would be before I started, this is a real time consuming task.
Why am I doing it? Two reasons!
1. Hopefully, once I am able to compile the information into the database, I am hoping that one of you programming geniuses can magically link it to the actual XML files, and to be able to create mod folders, and we could have a full blown editor. It's a pipedream, I know, but it may be worth a shot.
2. All else fails, I may have something that can be used for planning out simple mods. Changing values and adding stuff, etc.
Well, in any case, it is still in it's early stages. What I am doing now is copying all of the xml files to Excel and narrowing down to the seperate tag fields in each file. Once that is done, I plan on building the tables in Access, then putting the default data in for each table. Then I will work on the forms and general layout of the application. That will pretty much be the limit of my ability (if nothing before that throws up a stonewall in front of me).
What would be helpful? Does anybody know if any of the above steps have been completed (even partially) which may assist me in completing this task? Whether it be a compilation of the XML files, or a chart or what have you, whatever can help me with this task would be appreciated. Even some suggestions. I have MS Office 2007, complete with Access 2007. Any tips and suggestions the creation and linking of the Dbase would be appreciated as well. Though Excel and Access has an XML import feature, I can't get it to work. I don't know if it is a limitation of the program, or if I am doing something wrong.
Below,in the spoiler, is my original in case that may offer any more help as to where I am coming from and where I am trying to go with this so that those looking to help may better understand my POV. Or the link to the original post is http://forums.civfanatics.com/showthread.php?t=252421. Though, it may be better if you just post responses here.
Does anybody know if an XML map is available that will show how all of the xml files (including BTS) are related to each other? I'm not a programmer, but thanks to Civ IV, I now have a very basic understanding of the XML structure. However, from what I've seen, the connections form a massive web and it can be dizzying trying to sort it all out. I am trying to put the data from the XML into a database and to see what can be done from there. I wanted to see if anybody has laid it out so that it will be easier to determine relationships between tables and such. I'm sure I could figure it out myself... but that could take some time. And inputting the data will likely be cumbersome in itself as it is. Anyway, any help that can make things smoother will be great.
I have Access 07 and I have tried importing the data directly into Access, but you can only do one file and it does automatically link according to the structure. Excel is the same way when you try to import. Of course, there may be something that I'm missing there.
In any case, I want to see what I can do while I have the time. I'm currently unemployed, so I have a lot of free time at the moment. Of course, that time is limited as I am desperately seeking a job before my money runs out. Either way could hinder me within the next few weeks, but I'll see what I can do. At least it will give me something to do to keep me from sinking too much into despair. (On that note, anybody know of any IT work in the Greater Baltimore Area?)
Anyway, any help (in either area) would be appreciated.
Finally, I think I am going to take a small break from this for a couple days. I've been doing this for a couple days, and it is already starting to burn me out... probably because of the overwhelming nature of the task. I do intend to follow through and at least come up with something.. even if I have to scale down my goals. Other factors may also slow me down (family matter, a new job, relocating), but I hope to have something produced by, say, February. (Another game comes out then that will probably soak up my spare time.)
Thanks in advance for any assistance and have a nice day.
Why am I doing it? Two reasons!
1. Hopefully, once I am able to compile the information into the database, I am hoping that one of you programming geniuses can magically link it to the actual XML files, and to be able to create mod folders, and we could have a full blown editor. It's a pipedream, I know, but it may be worth a shot.
2. All else fails, I may have something that can be used for planning out simple mods. Changing values and adding stuff, etc.
Well, in any case, it is still in it's early stages. What I am doing now is copying all of the xml files to Excel and narrowing down to the seperate tag fields in each file. Once that is done, I plan on building the tables in Access, then putting the default data in for each table. Then I will work on the forms and general layout of the application. That will pretty much be the limit of my ability (if nothing before that throws up a stonewall in front of me).
What would be helpful? Does anybody know if any of the above steps have been completed (even partially) which may assist me in completing this task? Whether it be a compilation of the XML files, or a chart or what have you, whatever can help me with this task would be appreciated. Even some suggestions. I have MS Office 2007, complete with Access 2007. Any tips and suggestions the creation and linking of the Dbase would be appreciated as well. Though Excel and Access has an XML import feature, I can't get it to work. I don't know if it is a limitation of the program, or if I am doing something wrong.
Below,in the spoiler, is my original in case that may offer any more help as to where I am coming from and where I am trying to go with this so that those looking to help may better understand my POV. Or the link to the original post is http://forums.civfanatics.com/showthread.php?t=252421. Though, it may be better if you just post responses here.
Does anybody know if an XML map is available that will show how all of the xml files (including BTS) are related to each other? I'm not a programmer, but thanks to Civ IV, I now have a very basic understanding of the XML structure. However, from what I've seen, the connections form a massive web and it can be dizzying trying to sort it all out. I am trying to put the data from the XML into a database and to see what can be done from there. I wanted to see if anybody has laid it out so that it will be easier to determine relationships between tables and such. I'm sure I could figure it out myself... but that could take some time. And inputting the data will likely be cumbersome in itself as it is. Anyway, any help that can make things smoother will be great.
I have Access 07 and I have tried importing the data directly into Access, but you can only do one file and it does automatically link according to the structure. Excel is the same way when you try to import. Of course, there may be something that I'm missing there.
In any case, I want to see what I can do while I have the time. I'm currently unemployed, so I have a lot of free time at the moment. Of course, that time is limited as I am desperately seeking a job before my money runs out. Either way could hinder me within the next few weeks, but I'll see what I can do. At least it will give me something to do to keep me from sinking too much into despair. (On that note, anybody know of any IT work in the Greater Baltimore Area?)
Anyway, any help (in either area) would be appreciated.
Finally, I think I am going to take a small break from this for a couple days. I've been doing this for a couple days, and it is already starting to burn me out... probably because of the overwhelming nature of the task. I do intend to follow through and at least come up with something.. even if I have to scale down my goals. Other factors may also slow me down (family matter, a new job, relocating), but I hope to have something produced by, say, February. (Another game comes out then that will probably soak up my spare time.)
Thanks in advance for any assistance and have a nice day.