forked from gamingrobot/WotMiniMapMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeMiniMaps.sh
executable file
·45 lines (34 loc) · 1000 Bytes
/
makeMiniMaps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# WoT installation directory, may contain spaces
WOT="/path/to/World of Tanks/"
# remove old files
rm -rf ./mapsRaw/*
rm -rf ./arena_defs/*
rm -rf ./arena_defs_decoded/*
rm -rf ./gridding/in/*
rm -rf ./gridding/out/*
./copyRawMaps.sh "$WOT"
echo
./imgconverter.sh
echo
cp -v "$WOT"res/scripts/arena_defs/* ./arena_defs/
echo
rm -vrf ./arena_defs/_common_.xml
rm -vrf ./arena_defs/_default_.xml
rm -vrf ./arena_defs/_list_.xml
rm -vrf ./arena_defs/00_tank_tutorial.xml
rm -vrf ./arena_defs/59_asia_great_wall.xml # this is exclusively on china's servers
rm -vrf ./arena_defs/109_battlecity_ny.xml # special 8-bit map
rm -vrf ./arena_defs/_deathtrack_10.xml
rm -vrf ./arena_defs/hangar_*.xml
echo Removing more .xml files using a pattern:
find ./arena_defs -type f -name 'h[0-9][0-9]_*.xml' -delete -print
echo
python ./fixdefnames.py
mono xmlconverter.exe arena_defs/ arena_defs_decoded/
echo
python ./makemaps.py
echo
python ./gridding/gridder.py
echo
./compressMaps.sh