Trouble with map made with 1.3.x on 1.4.x version

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
ced_ne
Posts: 46
Joined: September 18th, 2006, 2:38 am
Location: France

Trouble with map made with 1.3.x on 1.4.x version

Post by ced_ne »

Hi !

Long time I haven't play wesnoth and work on my campaign !
I have got a little trouble with all my map...
I have made them with the editor from the svn 1.3.2 version, and now, I have downloaded the last stable release (1.4.2) and all my map don't work anymore...

First when I have tried to launch my campaign, I get the error : "map with no header".
So I tried to load them with wesnoth_editor, same error... So I have simply create a new empty map with wesnoth_editor, save it, and open the map with a simple text editor, to see what is this missing "header".

I saw this :

Code: Select all

border_size=1
usage=map
I copy/paste this to all my map, then launch the game...
New error : some of my unit created with things like that

Code: Select all

{ADD_UNIT 5 "Orcish Warrior" 3 35}
seems to be out of the map... Oo
Of course it wasn't the case on 1.3.2 version.
Fixing it... And... Noooooooooooooo !
Just notice that all my map tiles are misaligned !!!
So, have the hex coord system changed ??? Looks like it is not the same row that are move up or down than before...

Is there a way of importing old map and export them to 1.4.2 ?
-- please don't blame me about my bad english spoken ! --
User avatar
Geos
Posts: 115
Joined: March 20th, 2008, 1:58 pm
Location: Italy

Re: Trouble with map made with 1.3.x on 1.4.x version

Post by Geos »

Are you sure they are disaligned?
Could be that you are using word wrap in your text editor?

By the way, I would say this
{ADD_UNIT 5 "Orcish Warrior" 3 35}
Goes like
{ADD_UNIT 5 (Orcish Warrior) 3 35}
I passed from 1.3 to 1.4 with my maps and had a couple strange problem until I deleted the cache.
That's ridiculous, dragons have no windows...
ced_ne
Posts: 46
Joined: September 18th, 2006, 2:38 am
Location: France

Re: Trouble with map made with 1.3.x on 1.4.x version

Post by ced_ne »

Hi !
Sorry, it's not related to word wrap...

Anyway, I have found a way to fix it : open the map with wesnoth_editor, and resize the map with +2 width and height, and an offset of -1 for x and y.
For example, I have got a map with a size of 40x40 in the former 1.3.x, but in 1.4.x its size is 38x38 with wrong terrain hex alignement. Performing this little trick restore back a 40x40 map with the right terrain hex alignement.
Now I have to do it for all my map... ... ...

I think it's related with "bordersize", but it looks like I'm the only one concerned...
No one else have noticed this ? :hmm:
If I'm not wrong, in 1.3.x, the border wasn't specify by user, but extrapolate by wesnoth, so I guess there is no longer extrapolation in 1.4.x, and that the first and the last row/column go to border...
-- please don't blame me about my bad english spoken ! --
User avatar
Geos
Posts: 115
Joined: March 20th, 2008, 1:58 pm
Location: Italy

Re: Trouble with map made with 1.3.x on 1.4.x version

Post by Geos »

Sorry about the word wrap, but dumb errors is something that happens to all of us.
Sorry I can't help you more, but I had no problem like that.
If you want to attach 1.3 and 1.4 versions of a Map I could take a look at it
That's ridiculous, dragons have no windows...
vicza
Posts: 238
Joined: January 16th, 2008, 11:40 pm
Location: Moscow

Re: Trouble with map made with 1.3.x on 1.4.x version

Post by vicza »

ced_ne wrote:Anyway, I have found a way to fix it : open the map with wesnoth_editor, and resize the map with +2 width and height, and an offset of -1 for x and y.
There is more easier way: copy your campaign to some directory and run '/data/tools/wmllint.py' with this directory name as an argument. It should convert your maps and scenarios.
ced_ne
Posts: 46
Joined: September 18th, 2006, 2:38 am
Location: France

Re: Trouble with map made with 1.3.x on 1.4.x version

Post by ced_ne »

Thanks a lot, but I have already fixed it for all my map.
But I'll think about it for the next time I update wesnoth ;)
-- please don't blame me about my bad english spoken ! --
Post Reply