Tapsa / AGE

A program for editing data of genie files.
http://aok.heavengames.com/blacksmith/showfile.php?fileid=11002
GNU General Public License v3.0
92 stars 23 forks source link

[SUGGESTION] Dump to CSV #16

Open Awec4 opened 1 year ago

Awec4 commented 1 year ago

It would be really convenient to have a button or similar for each of the data tabs eg. Units, Techs, Effects which will dump the entire list into a CSV file or something similar, so that the data could be imported into a spreadsheet for easier comparison.

Tapsa commented 1 year ago

I like this idea. I have been experimenting with printing out the whole data into JSON. These days I am too busy with other things though, but if somebody wants to contribute with nicely working solution, that'd be great. I have heard of there being other tools that export the data into text files.

bingbingwangyyds commented 1 year ago

I cannot operate the code in VSCode in order to spawn the AGE exe, please tell me how to debug the code and successfully spawn the AGE exe, can use windows system to do it or must use the Linux system? Looking forward to your reply, thank you very much.

Serpens66 commented 8 months ago

Hi, thank you for your work :)

I was just going to suggest an Export/Import feature, but since this open issue sounds similar, I will for now add my suggestion here to expand on the original idea of OP:

How about to have the option to export all changes a modder made compared to the used vanilla file. In that export only the new values are needed, eg. a berry bush now has 1000 food and something like this (not sure if export will be possible for everything, but for numbers stuff it should be). So we now have an exported file that says, berrybush has 1000 food. Now the game updates to a new game version (which happens frequently on Aoe2DE) and I simply import that exported file to AGE to let them automatically do the same changes based on the new data files (changing the food of berries to 1000).

This would make updating data mods to the latest game version MUCH simpler and in basically no time, instead of hours by manually copy pasting stuff. In addition, if data modders include their exported files into their mods, it will be super easy for anyone to merge different data mods, by simply importing their files to AGE.

Please let me know if I should instead open a new "issue" for this suggestion.

Tapsa commented 8 months ago

Hi, dumping to CSV or another text format is similar issue, but importing that back in, which would be awesome, is another piece of work. Just so you know, I think the serialization code can be upgraded to handle the outputting with not too much trouble, but keeping track of changes is another thing, which could be achieved using an external tool too, comparing the full text output.