changes to maps in 1.3.6
Moderator: Forum Moderators
- Bob_The_Mighty
- Posts: 870
- Joined: July 13th, 2006, 1:15 pm
changes to maps in 1.3.6
Hey. I got 1.3.6 but now maps i made in 1.3.2 don't work. In the multiplayer window when creating a game and selecting a map it just says error, map contains invalid character. So i try loading the map with the map editor, but it says it is not a valid map file or something.
I presume this problem is to do with the terrain letters all changing. But do i really have to go through changing each letter manually, wasn't there a script that did this?
I presume this problem is to do with the terrain letters all changing. But do i really have to go through changing each letter manually, wasn't there a script that did this?
My current projects:
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
In a nice little commandline:
wmllint will do all the work of converting stuff. The --help param should give you a list of possible options. It should even work on windows if you have a python interpreter installed, not sure though...
In the wiki you can find more infos about the great tools written by esr:
http://www.wesnoth.org/wiki/Maintenance_tools
I don't know if the page in the wiki is always up to date, but esr works on improving the scripts all the time.
Code: Select all
cd /your/wesnoth_maindir
./data/tools/wmllint --help
In the wiki you can find more infos about the great tools written by esr:
http://www.wesnoth.org/wiki/Maintenance_tools
I don't know if the page in the wiki is always up to date, but esr works on improving the scripts all the time.
- Bob_The_Mighty
- Posts: 870
- Joined: July 13th, 2006, 1:15 pm
Thanks for the speedy response. Only problem is, I don't know how to run wmllint. Where do I type that command line?
I am using windows but i have no python interpreter.
I am using windows but i have no python interpreter.
My current projects:
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
- Bob_The_Mighty
- Posts: 870
- Joined: July 13th, 2006, 1:15 pm
Thanks governor, I'm still having problems though. I don't know what I am doing at all.
I have got the command line to say:
C:\Program Files\Wesnoth 1.3.6\data\tools>
What do i have to type next?
I have got the command line to say:
C:\Program Files\Wesnoth 1.3.6\data\tools>
What do i have to type next?
My current projects:
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
First go to this directory:
C:\Program Files\Wesnoth 1.3.6\>
Then type this command:
"C:\Python2.5\python.exe" data\tools\wmllint --help
(Substitute Python2.5 with the directory you installed python to.)
Then type this command:
"C:\Python2.5\python.exe" data\tools\wmllint -o 1.3.2 userdata\data\campaigns\Bobs_Stuff
(Substitute Bobs_Stuff with your directory of stuff)
C:\Program Files\Wesnoth 1.3.6\>
Then type this command:
"C:\Python2.5\python.exe" data\tools\wmllint --help
(Substitute Python2.5 with the directory you installed python to.)
Then type this command:
"C:\Python2.5\python.exe" data\tools\wmllint -o 1.3.2 userdata\data\campaigns\Bobs_Stuff
(Substitute Bobs_Stuff with your directory of stuff)
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."
I was asked to report that information
As a side note, from version 1.3.5 (if I remember well), there cannot be any map in the previous format under editor/maps/ directory otherwise wesnoth would crash in the multiplayer map selection screen with message (in the command box):Bob_The_Mighty wrote:In the multiplayer window when creating a game and selecting a map it just says error, map contains invalid character.[...]
I presume this problem is to do with the terrain letters all changing.[...]
Code: Select all
wesnoth: terrain_translation.cpp:715: t_translation::t_layer t_translation::string_to_layer_(const std::string&): Assertion `str.size() <= 4' failed.
I suddenly remember I was asked to report that information on IRC but at that moment the forum became unavailable until I forgot
- Bob_The_Mighty
- Posts: 870
- Joined: July 13th, 2006, 1:15 pm
Thanks JB, I tried your trick and it worked.
My current projects:
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves