equilateral hexagons for main map?

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

equilateral hexagons for main map?

Post by lea »

is it possible to make a map in BfW that consists of equilateral hexagons?
without changing BfW's C++ source code and recompiling it

currently (and AFAIK since inception of Wesnoth) all maps consist of hexagons which are stretched vertically
(note proportions of minimap for 20x20 or 100x100 or any other map with equal dimensions as measured in number of hexes, also note proportions of area defined for minimap in all mainline UI themes)

obviously it will require custom tileset and/or major overhaul of default tileset, the question is whether it is supported by BfW's engine
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
User avatar
Heindal
Posts: 1354
Joined: August 11th, 2011, 9:25 pm
Location: Germany, Karlsruhe
Contact:

Re: equilateral hexagons for main map?

Post by Heindal »

Unfortunately this is the wrong place to ask such a question, as this is where people are talking about scenarios. You should ask in the WML Workshop part of the forum for an answer (viewforum.php?f=21). Maybe a moderator can move this thread for you.

I don't think it's possible, but it depends on what you want to do. You can break out of the hexagon limits by using some clever mechanics such as inferno8 in "To Lands unknown": viewtopic.php?t=31799

As I said, it depends on what you want to do with equilateral hexagons.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical, UR Epic Era
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses, Dwarf Dwarfson Dwarvenminer
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: equilateral hexagons for main map?

Post by lea »

Heindal wrote: July 24th, 2022, 5:51 pmUnfortunately this is the wrong place to ask such a question, as this is where people are talking about scenarios. You should ask in the WML Workshop part of the forum for an answer (viewforum.php?f=21). Maybe a moderator can move this thread for you.
IMO this question does not match any of forum categories so asking in a place that seems most fitting for questions regarding maps (random map generators are technically scenarios)
AFAIK there is no way to achieve it with WML
Heindal wrote: July 24th, 2022, 5:51 pmI don't think it's possible, but it depends on what you want to do. You can break out of the hexagon limits by using some clever mechanics such as inferno8 in "To Lands unknown": viewtopic.php?t=31799
as far as I can tell, this campaign does not change any core mechanics, instead it bakes some characters into background making them look like they stand "between" hexes
that's what is seen on its first screenshot (the place pictured is reached very early during playthrough)
Heindal wrote: July 24th, 2022, 5:51 pmAs I said, it depends on what you want to do with equilateral hexagons.
all the same things as with stretched ones - want to make square maps visually square-shaped
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
User avatar
Heindal
Posts: 1354
Joined: August 11th, 2011, 9:25 pm
Location: Germany, Karlsruhe
Contact:

Re: equilateral hexagons for main map?

Post by Heindal »

Well, actually the WML Workshop seems to be the best forum to ask this questions as I've put my definitions and example work for random dungeons there and asked question about that topic. There might be a simple solution in case you want to use a square based random level designer. You create squares with the map designer, save them somewhere and then use the dungeon parts.

square.png
so obviously the next square could be like this:

square2.png

So you could connect them. The size is so far 10 * 7, not a real square, but it should work.
Maybe you need to overlap them.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical, UR Epic Era
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses, Dwarf Dwarfson Dwarvenminer
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: equilateral hexagons for main map?

Post by lea »

Heindal wrote: July 25th, 2022, 9:06 pm... ... There might be a simple solution in case you want to use a square based random level designer. ... ...
what you described is changing the shape of tile's imagery without changing its actual shape. 20x20 map made of such tiles will still be about 25%-30% taller visually than it is wide (on minimap and on main map, becomes obvious when main map it is zoomed out so much that entire map is visible on the screen without scrolling), despite having equal number of tiles both vertically (north to south) and horizontally (west to east).

what I am looking for is how to make 20x20 maps visually square-shaped, like they are in almost any other turn-based game with hex-based maps.

it is not for aesthetics but for ability to visually estimate distances without making adjustments for direction (vertically it looks longer than horizontally for the same distance as measured in hexes)
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
Post Reply