Can you help improve your favourite game? Hardcore C mages, talented artists, and players with any level of experience are welcome!
Gouda
Posts: 2 Joined: Tue Mar 17, 2015 10:54 pm
Post
by Gouda » Fri Mar 20, 2015 9:14 am
Hello all. Here is a Mac OS X bash script file which will convert a .sav file map (base terrain and river overlay) to a self-contained html file using embedded tile graphics at 1/4 size.
View source at PasteBin:
http://pastebin.com/kQLxzvSR
or Download zip file:
http://s000.tinyupload.com/index.php?fi ... 4202750210
Run it in Terminal like so:
Code: Select all
~/Desktop/FreeCiv_map2html.sh /opt/com.bitaxis/share/freeciv/scenario/earth-72x36-v1-1.sav
Here is a picture of the html page:
The Square Cow
Veteran
Posts: 53 Joined: Wed Nov 19, 2014 5:47 pm
Post
by The Square Cow » Sun Mar 22, 2015 2:23 am
Looks good, however I don't have a Mac, so I can't test it.
louis94
Hardened
Posts: 270 Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium
Post
by louis94 » Sun Mar 22, 2015 4:33 pm
The Square Cow wrote: Looks good, however I don't have a Mac, so I can't test it.
I think it would work on Linux too.
The Square Cow
Veteran
Posts: 53 Joined: Wed Nov 19, 2014 5:47 pm
Post
by The Square Cow » Sun Mar 22, 2015 9:42 pm
I tried it on Debian with no modifications and it gave me an error:
"Couldn't get a file descriptor referring to the console"
louis94
Hardened
Posts: 270 Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium
Post
by louis94 » Sun Mar 22, 2015 10:24 pm
The Square Cow wrote: I tried it on Debian with no modifications and it gave me an error:
"Couldn't get a file descriptor referring to the console"
It worked for me on Arch, just got an error at the very last line, but the HTML was created anyway.