Page 1 of 1
FreeCiv map to html
Posted: Fri Mar 20, 2015 9:14 am
by Gouda
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:

Re: FreeCiv map to html
Posted: Sun Mar 22, 2015 2:23 am
by The Square Cow
Looks good, however I don't have a Mac, so I can't test it.
Re: FreeCiv map to html
Posted: Sun Mar 22, 2015 4:33 pm
by louis94
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.
Re: FreeCiv map to html
Posted: Sun Mar 22, 2015 9:42 pm
by The Square Cow
I tried it on Debian with no modifications and it gave me an error:
"Couldn't get a file descriptor referring to the console"
Re: FreeCiv map to html
Posted: Sun Mar 22, 2015 10:24 pm
by louis94
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.
Re: FreeCiv map to html
Posted: Mon Mar 23, 2015 2:04 am
by Gouda
Thank you for the feedback, much appreciated. The error on the "last line" is because the "open" command is Mac OS X specific.
https://developer.apple.com/library/mac ... pen.1.html