A lot of new maps! (script to import maps from Wormux)
Fri, 2008-06-20 22:38
I have made a script to import maps from Wormux.
1. Download this:
http://download.gna.org/wormux/BonusPack_31Maps_20080614.tar.bz2
Or use the official Wormux maps.
2. Uncompress it.
3. Use this script:
# Use: hedgemaps.sh directory_of_a_wormux_map # Tested with: http://download.gna.org/wormux/BonusPack_31Maps_20080614.tar.bz2 # Requirements: imagemagick # By Daneel # GPL 2.0 CAD="" pattern1='file="*' pattern2='"*' HEDGE=/usr/share/games/hedgewars mkdir listo mkdir "listo/$1" cd "$1" M=$(cat config.xml | grep name=\"map) cd .. for i in $M do CAD="$i#$pattern1" if [ "$CAD" != "$i" ] then CAD="$CAD%$pattern2" echo $CAD break fi #echo $CAD done M=$CAD convert "$1/$M" -resize 2048x1024\! "listo/$1/map.png" cp "$HEDGE/Data/Maps/cheese/map.cfg" "listo/$1/"
like this: sh hedgemap.sh titanoc
Then, copy the map from "listo" directory to HEDGEDATA/Data/Maps/
like this:
sudo cp -R listo/titanoc /usr/share/games/hedgewars/Data/Maps
4. Enjoy!
Conversion of background (themes in Hedgewars) isn't supported, because i can't understand how hedgewars use theme's files (more documentation please!).
Thanks!
Here is a bit deprecated, but still useful description of themes: http://hedgewars.org/node/105
Thanks, another question: support for closed maps (like caves) is planned ?
yes, it's planned, but this feature has low priority