Map Mirrorer
Moderator: Forum Moderators
Map Mirrorer
I wrote a [acronym=PHP: Hypertext Preprocessor]PHP[/acronym] script for mirroring wesnoth maps. This could be useful if you are concerned with the balance of a map or to save time in making a map: just make half, then mirror it!
It mirrors maps in a few slightly different ways:
It does not mirror maps with 120 degree radial symmetry like Merkwuerdigliebe.
After using this tool, you will most likely want to touch up the map since many of the mirroring types lose half a tile-length in the dimension the map is growing in and starting positions will have to be updated.
It mirrors maps in a few slightly different ways:
- Parallel over the even horizontal tiles excluding the last row
- Parallel over the odd horizontal tiles excluding the last row
- Anti-parallel over the horizontal tiles including the last row
- Anti-parallel over the even horizontal tiles excluding the last row
- Anti-parallel over the odd horizontal tiles excluding the last row
- Parallel over the vertical tiles excluding the last column
- Anti-parallel over the odd vertical tiles excluding the last column
- Anti-parallel over the even vertical tiles excluding the last column
It does not mirror maps with 120 degree radial symmetry like Merkwuerdigliebe.
After using this tool, you will most likely want to touch up the map since many of the mirroring types lose half a tile-length in the dimension the map is growing in and starting positions will have to be updated.
- Attachments
-
- mirror_map.zip
- (1.47 KiB) Downloaded 143 times
Re: Map Mirrorer
Reminds me of "revmaph and revmapv", "rotate", and "Wesnoth Map Symmetrizer" that are linked from the ExternalUtilities Wiki page...Morath wrote:mirroring wesnoth maps
I'll check out your PHP script to see what exactly it's doing.
Re: Map Mirrorer
sheesh, I really need to get down to writing that guide on how to do this in the new editor using clever copy and paste...
Re: Map Mirrorer
Thanks for showing me to the external utilities page norbert. I did do some looking around for tools similar to the one I made but did not find that page. I tried "Wesnoth Map Symmetrizer" - after figuring out that it required wesnoth to be installed in my program files folder - and it seems to do things similar to what this script does although, as far as I can tell, it only does only anti-parallel mirrorings on full maps (instead of half maps) and of the 4 maps I tried it on, none of them came out quite right. I would guess that it lacks what this script accomplishes with the $flipper variable. Anyways, this script is just another option for people who want to mirror a map.