wesnoth/utils/wesnoth-map-diff
doofus-01 033012219e
Add Exif tags to images (#9254)
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
..
font Add Exif tags to images (#9254) 2024-08-25 20:18:16 -07:00
src Try to fix map diff failure when terrain doesn't have an image associated with it 2023-04-13 10:41:38 +02:00
tests map-diff: fix when reading attributes with comments 2022-08-09 14:54:13 +02:00
.eslintignore
.eslintrc.js
.gitignore
babel.config.js
jest.config.js
package-lock.json Bump tough-cookie from 4.0.0 to 4.1.3 in /utils/wesnoth-map-diff 2023-07-09 21:52:13 +00:00
package.json
README.md
setup-jest.d.ts
setup-jest.js
tsconfig-dev.json
tsconfig-prod.json
tsconfig.json

wesnoth-map-diff

🗺 Print the diff between two maps

Setup

1 - Make sure you have Node on your system. If you don't have it, install it. If you are using macOS or Linux, you can install Node using nvm. On Windows, use nvm-windows.

2 - Open the terminal on utils/wesnoth-map-diff folder and run the following command to install the project dependencies:

npm i

3 - Then, run the following command to build it:

npm run build:dev

4 - Finally, run it using node ./build/index.js [path for the old map] [path for the new map] [output filename]. For instance:

node ./build/index.js old.map new.map output.png

Contributing

Run tests:

npm run test

Run lint:

npm run lint