A simple textconv script to print Scripts.rvdata2 (RPG Maker VA) in git diff.
npm i -g @hyrious/rvdata2-textconv
Print contents of Scripts.rvdata2:
rvdata2-textconv Scripts.rvdata2
Add this to your global .gitconfig
or .git/config
per repo:
[diff "rvdata2"]
textconv = rvdata2-textconv
Add this to your .gitattributes
per repo (create one if not exist):
*.rvdata2 diff=rvdata2
Currently I'm not in a hurry to implement features below, if you find this tool helpful and want something new, feel free to raise an issue or make a pull request!
- Add a smarter printer to handle other
.rvdata2
files, for example:- if the file starts with
Scripts
, print it in $RGSS_SCRIPTS format - if the file contains an array of objects, and the first one is
nil
, print it in database format (one item per line) - otherwise, print it in yaml or json format
- if the file starts with
- When the "smart" one not work, add flags to manually select one format:
- e.g. run with
--format=db
- e.g. run with
MIT @ hyrious