Freeciv-web with Open Streep Map import (Freeciv-Earth)

Web version of freeciv at play.freeciv.org
User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby AndreasR » Sat Jan 09, 2016 4:22 pm

Freeciv-web now supports importing maps from OSM, and can be played here: Freeciv-Earth
Please give it a try and report what you think!

Andreas

User avatar
JTN
Elite
Posts: 472
Joined: Wed Jan 30, 2013 12:15 am

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby JTN » Sat Jan 09, 2016 6:50 pm

That's very cool.

I had to click through about 8 "unresponsive script" warnings in Firefox in my test case (the whole of Iceland).

BTW Glacier terrain seems to be being rendered as Tundra on the main map? (Don't know if that's peculiar to the Earth mode.)

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby AndreasR » Sat Jan 09, 2016 7:53 pm

>I had to click through about 8 "unresponsive script" warnings in Firefox in my test case (the whole of Iceland).

I think this can be improved. The conversion from OSM to Freeciv savegame is done using Javascript in the browser. Perhaps it can be made faster.
I didn't get any such warnings, though.

>BTW Glacier terrain seems to be being rendered as Tundra on the main map? (Don't know if that's peculiar to the Earth mode.)

Freeciv-web doesn't support rendering glacier, so tundra is the fallback. I hope we can fix this sometime. :) However, no end-user ever requested it.

The conversion is quite basic at the moment, if you or anyone wants to help improve it, that would be very welcome: earth.js

SPF50Gault420
Posts: 2
Joined: Thu Jan 14, 2016 11:53 pm

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby SPF50Gault420 » Thu Jan 14, 2016 11:59 pm

I'll have to admit this is a very convenient new feature.

Although I primarily had to get a forum account just to point out a problem I have with terrain generation.
e.g. I ran this while zoomed in on South Georgia (and the South Sandwich Islands) and some of the places which were supposed to have tundra or glacier end up having desert instead. (and vice versa as well.)

Would be nice if the colour configuration was tweaked a bit.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby AndreasR » Sat Jan 30, 2016 3:35 pm

SPF50Gault420 wrote:I'll have to admit this is a very convenient new feature.

Although I primarily had to get a forum account just to point out a problem I have with terrain generation.
e.g. I ran this while zoomed in on South Georgia (and the South Sandwich Islands) and some of the places which were supposed to have tundra or glacier end up having desert instead. (and vice versa as well.)

Would be nice if the colour configuration was tweaked a bit.


I have done some improvements to the way desert and tundra tiles are determined. Now latitude is also a factor used to decide between tundra and desert.

Andreas

SPF50Gault420
Posts: 2
Joined: Thu Jan 14, 2016 11:53 pm

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby SPF50Gault420 » Sun Mar 20, 2016 6:40 pm

AndreasR wrote:
SPF50Gault420 wrote:I'll have to admit this is a very convenient new feature.

Although I primarily had to get a forum account just to point out a problem I have with terrain generation.
e.g. I ran this while zoomed in on South Georgia (and the South Sandwich Islands) and some of the places which were supposed to have tundra or glacier end up having desert instead. (and vice versa as well.)

Would be nice if the colour configuration was tweaked a bit.


I have done some improvements to the way desert and tundra tiles are determined. Now latitude is also a factor used to decide between tundra and desert.

Andreas


Oh thanks! It's (almost) perfect now. :)



Gotta love my late response, I guess.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby AndreasR » Sun Aug 14, 2016 9:20 am

Does anyone have any ideas about how to improve this further?
https://play.freeciv.org/freeciv-earth/

For example, custom map size? Other things to improve?

User avatar
XYZ
Elite
Posts: 369
Joined: Fri Jan 31, 2014 12:00 pm

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby XYZ » Sun Aug 14, 2016 2:45 pm

Just tested it briefly. Is it possible to disable xwrape/ywrape and have a rectangular map instead?

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Freeciv-web with Open Streep Map import (Freeciv-Earth)

Postby AndreasR » Tue Mar 28, 2017 6:56 pm

XYZ wrote:Just tested it briefly. Is it possible to disable xwrape/ywrape and have a rectangular map instead?


This is been fixed now. When loading a map from Mapbox, then the default topology is set to flat, without wrapping. And the 2D version supports rendering the map without wrapping now.