larzm42 / dom4inspector

Dominions 4 data and mod browser.
23 stars 16 forks source link

how to dump out the newest database ? #36

Open socialloser1 opened 7 years ago

socialloser1 commented 7 years ago

I'd like to start a new project analyze unit data, can anyone tell me how this project dumped out the csv data files in the gamedata folder ? I know there is an original release by Edi, but I'm wondering how this project can always keep game data up to date, manually maintained ?

larzm42 commented 7 years ago

There are two other projects used to create the data dumps. The first is dominions-tools. It is a python project that parses the exe and dumps a lot of the data to a sqllite database. The database tables are then exported to csv files. Another project called dom4-utils creates some of the other data. This is a Java project that parses the exe and creates Excel spreadsheets containing the unit, item, site, event and mercenary data. I then export the data from the spreadsheets to csv files.

Aciho commented 7 years ago

Any plans to update the data for the latest patch? I tried myself but I got lost about half way through.

larzm42 commented 7 years ago

Yeah, I just updated to 4.30 a few days ago.

Aciho commented 7 years ago

I noticed that when I checked git history earlier. I dumb.

socialloser1 commented 6 years ago

thanks larzm42!

socialloser1 commented 6 years ago

since the dominions-tools is not open for issues, I commit it here:

from python 3.5.1 on, the ordered dict object doesn't support vars() now. (https://stackoverflow.com/questions/34166469/did-something-about-namedtuple-change-in-3-5-1 ) the files affected are : dominions/Attribute.py, dominions/Effect.py in that project.