Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Created by Krock <mk939@ymail.com>
- # License: CC-BY 3.0, Revision: 180601 13:51
- # Files & Requirements
- # ======================
- # ./convert_terrain.sh (this file)
- # ./drsbuild.exe
- # * From: http://artho.com/age/files/drs.html
- # ./vooblyslpdecode.exe
- # * From: https://github.com/skeletonmage/vooblyslpdecode
- # ./input/
- # ./input/terrain.drs
- # * File to modify. Create backups first.
- # ./input/12345.slp
- # * slp file(s) to patch into terrain.drs
- cd input
- if [ ! -f terrain.drs ]; then
- echo "input/terrain.drs not found!"
- exit
- fi
- for f in *.slp; do
- echo "Converting $f"
- wine ../vooblyslpdecode.exe "$f" "ter$f"
- if [[ $? -ne 0 ]]; then
- cp "$f" "ter$f"
- fi
- done
- if [[ $? -ne 0 ]]; then
- echo "Something went wrong"
- exit $?
- fi
- wine ../drsbuild.exe /r terrain.drs ter*.slp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement