script to import worms maps (unix/linux only)

5 replies [Last post]
dcu
User offline. Last seen 6 years 31 weeks ago. Offline
Joined: 2009-04-14
Posts: 8

Hi all,

I just wrote a simple script to import worms' maps

you can download it from: http://pastie.org/471566 ,for example:

Quote:

wget http://pastie.org/471566.txt -O import_wmaps
chmod 755 import_wmaps
sudo mv import_wmaps /usr/local/bin/
import_wmaps /path/to/image.png MyMap

to convert lots of png files you can do:

Quote:

for i in *.png
do
base=`echo $i | cut -d. -f1`
mkdir -p "${base}"
import_wmaps "${i}" "${base}"
done

NOTE: it depends on imagemagick (sudo apt-get install imagemagick)

rbaleksandar
rbaleksandar's picture
User offline. Last seen 9 years 34 weeks ago. Offline
Joined: 2009-01-09
Posts: 685

Can you post a screen shot please? Before I do this I would like to know how it looks like to have hedgehogs on Worms' map. Both games have different graphic style.

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

Smaxx
Smaxx's picture
User offline. Last seen 12 years 50 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

From what I understand (didn't test it) it just imports the map (i.e. where is land, where is sky?) and nothing more (uses Hedgewars' "eyes" theme).

rbaleksandar
rbaleksandar's picture
User offline. Last seen 9 years 34 weeks ago. Offline
Joined: 2009-01-09
Posts: 685

I understand what it does. I just want to see how a character from HW looks on a Worms-font without poking my Ubuntu with scripts. Smile I am a lazy bustard too, you know. Smile

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

dcu
User offline. Last seen 6 years 31 weeks ago. Offline
Joined: 2009-04-14
Posts: 8

@rbaleksandar can you point me a map to import? there're lots of worms' maps with different graphic styles

rbaleksandar
rbaleksandar's picture
User offline. Last seen 9 years 34 weeks ago. Offline
Joined: 2009-01-09
Posts: 685

The Lab map for example. Or the one with the bunch of mokeys. I like that map very much. Smile Thanks for the reply btw. Wink Smiley

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]