Problems Loading a Map

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
User avatar
Des
Posts: 116
Joined: November 7th, 2007, 7:58 am
Contact:

Problems Loading a Map

Post by Des »

Hello.

I previously had no trouble loading my multiplayer scenario.

However, now I try to run the map (which it finds in the list of maps, without the overview correctly showing), but I get a map load error.

I'm using the path correctly. The map is located in my userdata folders: /data/campaigns/Training/map/Training.map

Here's the code:

Code: Select all

    [multiplayer]
    id=Multi_Tutorial
    next_scenario=null
    name=_ "Training"
    map_data="{~/campaigns/Training/map/Training.map}"
    turns=26

    {DEFAULT_SCHEDULE}
    {DEFAULT_MUSIC_PLAYLIST}

    [side]
        type=Elvish Fighter
        id=Fighter
        canrecruit=yes
        fog=no
        team_name=Elves
        shroud=no
        side=1
        gold=100
        controller=human
        recruit=Elvish Fighter,Elvish Archer,Elvish Shaman
    [/side]

    [side]
        type=Orcish Warrior
        id=Thrag
        name= _ "Thrag"
        side=2
        fog=no
        team_name=Orcs
        shroud=no
        canrecruit=yes
        recruit=Orcish Grunt,Wolf Rider
        gold=0
        [ai]
            turns=1-6
            # When we unleash you, you *will* attack.
            aggression=1.0
            passive_leader=no
        [/ai]
    [/side]

    [side]
        type=Elvish Captain
        id=teacher
        name=_"Galdrad"
        canrecruit=yes
        fog=no
        shroud=no
        side=3
        team_name=Elves
        gold=100
        controller=human
        recruit=Elvish Fighter, Elvish Archer, Elvish Shaman

    [/side]

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat the Orc Leader"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Konrad"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]
        [/objectives]

        [unit]
            id=Dumbo
            generate_name=yes
            type=Orcish Grunt
            x=8
            y=13
            side=2
            [modifications]
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]
        [/event]

[/multiplayer]
Does anyone know what could be the problem? I spent a great deal of time trying to figure this out without any success.
Redrock Gulch (Winter 2009 Map Contest Submission)

To rely on rustics and not prepare is the greatest of crimes; to be prepared beforehand for any contingency is the greatest of Virtues. - Sun Tzu, The Art of War
User avatar
mnewton1
Posts: 777
Joined: November 12th, 2008, 4:31 am
Location: On my pretty teal horsey.
Contact:

Re: Problems Loading a Map

Post by mnewton1 »

Get rid of the very first dash in your path to the map. Then it should work, as far as i know, fine.
Creator of Ageless Era
Check out Frogatto & Friends, it's made by the same people who created The Battle for Wesnoth!
User avatar
Des
Posts: 116
Joined: November 7th, 2007, 7:58 am
Contact:

Re: Problems Loading a Map

Post by Des »

You mean the ~ right? Tried that.

As well as:

@/campaigns/Training/map/Training.map

@campaigns/Training/map/Training.map

@/campaigns/Training/map/Training

~/campaigns/Training/map/Training.map

/map/Training.map

~/map/Training.map
Redrock Gulch (Winter 2009 Map Contest Submission)

To rely on rustics and not prepare is the greatest of crimes; to be prepared beforehand for any contingency is the greatest of Virtues. - Sun Tzu, The Art of War
User avatar
mnewton1
Posts: 777
Joined: November 12th, 2008, 4:31 am
Location: On my pretty teal horsey.
Contact:

Re: Problems Loading a Map

Post by mnewton1 »

I was wrong there is no problem with your map wml because I just checked it. It worked fine. Can you please post the whole file including the main.cfg. The only difference between mine and yours was the map.
Creator of Ageless Era
Check out Frogatto & Friends, it's made by the same people who created The Battle for Wesnoth!
User avatar
Des
Posts: 116
Joined: November 7th, 2007, 7:58 am
Contact:

Re: Problems Loading a Map

Post by Des »

Got it to work. The problem was the map was named "Training.map." It should just be a map file named "Training."

Sorry for all the posts. In the end it was just a naming issue. Thanks for your help anyway.
Redrock Gulch (Winter 2009 Map Contest Submission)

To rely on rustics and not prepare is the greatest of crimes; to be prepared beforehand for any contingency is the greatest of Virtues. - Sun Tzu, The Art of War
Post Reply