Page 1 of 1

Favorite Tilesets

Posted: Mon Sep 26, 2022 10:11 pm
by Elefant
I was wondering what tilesets are preferred among the freeciv community. Please mark your favorites above. If other, please name your favorite below.

Re: Favorite Tilesets

Posted: Sat Oct 08, 2022 11:04 am
by cazfi
Was this intentionally for square based topologies only? Not that there's great many hex based tilesets beyond hexemplio (the default), toonhex, and alio (for alien ruleset), but hex is still the default topology in freeciv-3.0 and later.

Re: Favorite Tilesets

Posted: Sat Oct 08, 2022 1:26 pm
by Elefant
It wasn't intentional, but as I only ever play with square tilesets, it was perhaps inevitable that I would overlook hex tilesets.

Re: Favorite Tilesets

Posted: Sat Oct 08, 2022 2:08 pm
by cazfi
Elefant wrote: Sat Oct 08, 2022 1:26 pmI only ever play with square tilesets
Good to know. It's not long since I wondered if it was worth the time to implement a feature that makes difference only in square topologies (ability to check if a direction is cardinal or not in lua - all directions are cardinal in hex topologies)

Re: Favorite Tilesets

Posted: Tue Oct 11, 2022 1:42 am
by nef
cazfi wrote: Sat Oct 08, 2022 2:08 pm
Good to know. It's not long since I wondered if it was worth the time to implement a feature that makes difference only in square topologies (ability to check if a direction is cardinal or not in lua - all directions are cardinal in hex topologies)
Can already be done in Lua. No need for more hardcoded tolua.

Code: Select all

function cardinal(t1,t2)
  local dx, dy = math.abs(t1.x - t2.x), math.abs(t1.y - t2.y)
  return dx == 0 and dy == 1 or dy == 0 and dx == 1
end


Re: Favorite Tilesets

Posted: Tue Oct 11, 2022 5:37 am
by cazfi
Can already be done in Lua. No need for more hardcoded tolua.

Code: Select all

function cardinal(t1,t2)
  local dx, dy = math.abs(t1.x - t2.x), math.abs(t1.y - t2.y)
  return dx == 0 and dy == 1 or dy == 0 and dx == 1
end
That checks if two tiles are cardinally adjacent, not if a direction is cardinal. While you can usually make such tiles out from a direction, that might get a bit hard in some cases (edge of the map). Not that discussing the need for the feature is that relevant any more; it was implemented a month ago (over five years after requested, so there was some time to discuss it) : https://forum.freeciv.org/f/viewtopic.p ... 4&start=29