Wesnoth Map Symmetrizer

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderators: Forum Moderators, Developers

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Wesnoth Map Symmetrizer

Post by segfaulthunter »

I have created a program to symmentrize Wesnoth map due to the lack of a working implementation of this in the official map editor.
Required to run this is Python and wxPython
The source of the symmetrizing process is always the left side of the map when it is mirrored vertically or the top when it is mirrored vertically
The tool is licensed under the terms of the Gnu General Public License so feel free to alter it to your needs if you are familar with Python.
If you have any bugreports or feature requests feel free to tell me.

EDIT: Added horizontal mirroring

Now available from: https://gna.org/projects/wesnoth-sym/
Last edited by segfaulthunter on May 18th, 2008, 5:17 pm, edited 3 times in total.

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Please if anyone is interested in this please respond :)

Vecna
Posts: 4
Joined: March 23rd, 2008, 3:57 pm
Location: Savona, Italy
Contact:

Re: Wesnoth Map Symmetrizer

Post by Vecna »

How does it work? :D
«No matter what you are looking for on the Internet, there will be at least one porn site that will respond to your criteria»

W.I.F. Wesnoth Italian Forum

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Vecna wrote:How does it work? :D
You only do a half of the map(either the top when horizontally or the left when vertically) and the other side will be the one side mirrored so the map is fair and symmetrical.
Download Python and wxPython, then open the file(mirror.py), gives you a dialog to select the map, then it asks you whether you want to mirror horizontally or vertically, then you find the done map in the same dir as the original but with _mirrored appended

Vecna
Posts: 4
Joined: March 23rd, 2008, 3:57 pm
Location: Savona, Italy
Contact:

Re: Wesnoth Map Symmetrizer

Post by Vecna »

I would like to tranlaste it into Italian, with your permission, so I can share it in our Italian Forum...of course, I'll do this only if you agree :wink:
«No matter what you are looking for on the Internet, there will be at least one porn site that will respond to your criteria»

W.I.F. Wesnoth Italian Forum

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Vecna wrote:I would like to tranlaste it into Italian, with your permission, so I can share it in our Italian Forum...of course, I'll do this only if you agree :wink:
Of course you may, it is GPL.

Here an image of the recent version:
Image

Here a demonstration of the symmetry:
Image
The map was done by Slithkiller, who was using my tool to create the perfect symmetry of this map

It is attached to this post as a zip file, to run open the "interface.py" file in the folder, some computers which have disabled file extension may only display interface.
Last edited by segfaulthunter on April 20th, 2008, 11:13 am, edited 1 time in total.

Grand Marshal Aditya
Posts: 134
Joined: August 1st, 2007, 1:37 am
Location: In the MOTHERLAND!

Re: Wesnoth Map Symmetrizer

Post by Grand Marshal Aditya »

Very nice...very nice...I see this being implemented very soon...It should be at least...
Light travels faster than sound. This is why some people appear bright until you hear them speak.

bert1
Posts: 240
Joined: December 6th, 2006, 10:39 pm
Location: Morecambe, UK

Re: Wesnoth Map Symmetrizer

Post by bert1 »

Looks like a nice tool for speeding up the initial creation of largely symmetrical maps, especially large ones. Then the mapmaker can un-symmetrise it as s/he wishes.
Good is simply that which is willed. - Eugene Halliday

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Thanks a lot for the postive feedback, of course Wesnoth may use my code to implement this into the official editor.

EDIT: I am just implementing a system wide hotkey(sorry folks, windows only, i'll try and search a linux alternative later) so you do not have to leave the map editor to mirror the map.

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Here we have the new version of the Map Symmetrizer, allowing you to use the hotkey to symmetrize the map once you've entered all the information needed to symmetrize your map.
This is so you can use it from within the Map Editor without changing out of it.
The hotkey is: Ctrl + F12, which seems to be unused but is not hard to type with the right Ctrl key.
Just download it, try it out and report any problems to me.
I hope you like it, if you do please tell me, but also if you do not.

The config file
[default]
file = 0 The default file(with path) that is inserted into the input file, 0 for none
hotkey = 1 1 for hotkey enabled by default, 0 for disabled
source = 0 source of the mirroring process, 0 for no pre selection, may be left, right, top or bottom
direction = vertical axis on which to mirror may be vertical or horizontal
overwrite = 0 1 to overwrite the input file with the output
path = C:\Programme\Wesnoth 1.4\userdata\editor\maps\ default path where the file selection dialog takes you

[config]
appendix = _mirrored the string that is appended to the output file unless overwrite is 1
Last edited by segfaulthunter on April 20th, 2008, 11:12 am, edited 1 time in total.

mameluke
Posts: 175
Joined: January 4th, 2008, 12:37 pm
Location: Switzerland

Re: Wesnoth Map Symmetrizer

Post by mameluke »

Hmm... is this topic on the right place in the multiplayer development? (You also create maps for campaigns I think :eng: )
I think those guys who take care for the map-editor should be informed about this nice initiative?

Cool tool :wink:
I don't see any problems with an elf-woman hitting somebody with a mace...

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

mameluke wrote:Hmm... is this topic on the right place in the multiplayer development? (You also create maps for campaigns I think :eng: )
I think those guys who take care for the map-editor should be informed about this nice initiative?

Cool tool :wink:
Thank you very much ;)

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

I put the Wesnoth Map Symmetrizer onto sourceforge:
https://sourceforge.net/projects/wesnoth-sym

Feel free to post your feedback.

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Update: For those of you seeking for new version here, you should rather look at sourceforge.
I have released a new version and highly recommend everyone to update to it, because a major bug has been fixed and also some cool features have been added.
Check it out here

segfaulthunter
Posts: 17
Joined: March 25th, 2008, 8:58 pm

Re: Wesnoth Map Symmetrizer

Post by segfaulthunter »

Update: New version that should generate a config corresponding to your operating system. Also the Linux version features a BETA feature to check the balance of your maps using the Wesnoth AI.
I would advise anyone to update to this version, if you encounter any problems report them at the Bug Tracker.
For any Linux users i strongly recommend you to update, as a bug with the Tray Icon has been fixed.

Download the new version here

Post Reply