New Version!
This version brings two flags/params you can supply when starting the editor to have it batch execute commands. To use it, start the editor like this:
gd-edit.exe -f "gdc-file-path-goes-here" -b "batch-command-file-path-goes-here"
The batch command file should contain a single command on each line. The editor will basically process these lines as if you’ve manually typed them in.
For example, you can supply batch file that looks something like:
level 100
write TestDummy
After the editor starts, it would load up whatever character you specified, take the character to level 100, then save a new copy of it named “TestDummy”.
The editor will send all output to the screen as usual. If you want, you can have the output sent to a text file like so:
gd-edit.exe -f "gdc-file-path-goes-here" -b "batch-command-file-path-goes-here" > "path-to-output-file"
Lastly, although this batch mode technically “works”, I’d expect it to be quite limiting. The editor really was written to be used interactively. Also, I’m not entirely sure how you intend to use this. Restarting the editor over and over to run some commands is likely to be quite slow and tedious. The editor actually loads the entire game DB every time it starts. It could take anywhere from a few seconds to “OMG-WTF-is-this-thing-doing” seconds.
Anyway, lemme know if you need it to be “slightly” enhanced.
That wouldn’t really work. The editor is pretty dumb. It reads and saves the gdc file when you ask it to. The problem is that the game expects it to be the only program that makes changes to the gdc files. This very reasonable assumption means that it is not likely to watch for sudden changes to the character file on the disk. It’s more reasonable for it to not ever read the character file again once a character is loaded.
Anyway… I can look into summarizing item stats again. Can’t promise when I might have that ready though. x_x