Wesnoth Map Symmetrizer
Moderator: Forum Moderators
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Wesnoth Map Symmetrizer
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/
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.
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
Please if anyone is interested in this please respond
Re: Wesnoth Map Symmetrizer
How does it work?
«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
W.I.F. Wesnoth Italian Forum
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
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.Vecna wrote:How does it work?
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
Re: Wesnoth Map Symmetrizer
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
«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
W.I.F. Wesnoth Italian Forum
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
Of course you may, it is GPL.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
Here an image of the recent version:
Here a demonstration of the symmetry:
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.
-
- Posts: 134
- Joined: August 1st, 2007, 1:37 am
- Location: In the MOTHERLAND!
Re: Wesnoth Map Symmetrizer
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.
Re: Wesnoth Map Symmetrizer
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
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
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.
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.
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
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
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.
Re: Wesnoth Map Symmetrizer
Hmm... is this topic on the right place in the multiplayer development? (You also create maps for campaigns I think )
I think those guys who take care for the map-editor should be informed about this nice initiative?
Cool tool
I think those guys who take care for the map-editor should be informed about this nice initiative?
Cool tool
I don't see any problems with an elf-woman hitting somebody with a mace...
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
Thank you very muchmameluke wrote:Hmm... is this topic on the right place in the multiplayer development? (You also create maps for campaigns I think )
I think those guys who take care for the map-editor should be informed about this nice initiative?
Cool tool
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
I put the Wesnoth Map Symmetrizer onto sourceforge:
https://sourceforge.net/projects/wesnoth-sym
Feel free to post your feedback.
https://sourceforge.net/projects/wesnoth-sym
Feel free to post your feedback.
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
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
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
-
- Posts: 17
- Joined: March 25th, 2008, 8:58 pm
Re: Wesnoth Map Symmetrizer
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
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