Missing .map problem

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
nexusrebirth
Posts: 21
Joined: November 15th, 2019, 8:54 pm

Missing .map problem

Post by nexusrebirth »

Hello everyone, i tried before and here i am trying gain with 0 computer experience whatsoever. I want to make my own campaign.
Looke dup the guide and everything and managed to do my first scenario without any trouble. So naturally i go forward and try to make a second one. Code looks good everything is set but i am greeted by an error. Naturally i try and look the error message!

and it says

Code: Select all

Impossible de charger cette extension en erreur :
    C:\Users\Nexus Rebirth\Documents\My Games\Wesnoth1.16/data/add-ons/Overlord/_main.cfg

Merci de fournir ces informations à l'auteur ou au mainteneur de cette extension.

Détails :

    Macro/file 'add-ons/Overlord/maps/02_the_master' is missing
    at ~add-ons/Overlord/scenarios/02_The_Master.cfg:22
        included from ~add-ons/Overlord/_main.cfg:35
I go to look at line 22 of my scenario file and it seems in order. I go to line 38 of main_cfg and it's just my scenario macro.
It says the .map file is missing yet i checked multiple times even deleted and stared from scratch, gave it a new name etc... but nothing... I am quite stuck, can anybody save me ?

My main.cfg:

Code: Select all

#textdomain wesnoth-olrd
[textdomain]
	name=wesnoth-olrd
	path="data/add-ons/Overlord/translations"
[/textdomain]
[campaign]
	id=Overlord
	icon="units/undead-skeletal/deathknight-defend-2.png~RC(magenta>red)"
	image="data/add-ons/Overlord/images/campaign_image.png"
	name= _ "Overlord"
	abbrev= _ "OLRD"
	start_year=502 YW
	end_year=517 YW
	first_scenario=01_Hiding
	{CAMPAIGN_DIFFICULTY EASY "units/undead-skeletal/deathblade-dying-2.png~RC(magenta>red)" ( _ "Minion") ( _ "Easy")}
	{CAMPAIGN_DIFFICULTY NORMAL "units/undead-skeletal/deathknight-lead-2.png~RC(magenta>red)" ( _ "Evil Master") ( _ "Normal")} {DEFAULT_DIFFICULTY}
	{CAMPAIGN_DIFFICULTY HARD "units/undead-skeletal/draug-attack2.png~RC(magenta>red)" ( _ "Overlord") ( _ "Difficult")}
	define=Overlord
	description= _ "After queen Asheviere took power over Wesnoth, a mage apprentice and a young squire flee their peaceful life to rebel against the new tyranny. However their escape does not go according to plan. Despite their particular situation, they will try their best to liberate the western lands of the queen's grasp.

(Intermediate level, X scenarios, better played as a 2 players co-op)"

	[about]
		title= _ "Campaign Design and Programming"
		[entry]
			name="Alex (Professor Alexander Nexus)"
		[/entry]
	[/about]
[/campaign]
#ifdef Overlord
	[binary_path]
		path=data/add-ons/Overlord
	[/binary_path]
{~add-ons/Overlord/scenarios}
#endif
The scenario in question :

Code: Select all

#textdomain wesnoth-olrd
[scenario]
	[story]
		[part]
			story=_ "With one of them dead and the other freezing only a couple of minutes later, this is where any normal story would have stopped. But not this one."
			background=data/add-ons/Overlord/images/story_5.jpg
		[/part]
		[part]
			story=_ "Just like waking up from a long uncomfortable night, Talzin and Vlad regain conciousness. They can only see the walls of an abandonned mine and feel some sort of magical connection between eachother"
			background=data/add-ons/Overlord/images/story_6.jpg
		[/part]
		[part]
			story=_ "As they finally take a look at themselves they realize what has changed with them. One is kept alive through necromancy and the other, well... Is not alive anymore"
			background=data/add-ons/Overlord/images/story_7.png
			[background_layer]
				image=data/add-ons/Overlord/images/story_6.jpg
			[/background_layer]
		[/part]
	[/story]
	id=02_The_Master
	name=_ "The Master"
	map_data="{add-ons/Overlord/maps/02_the_master}"
	next_scenario=null
	disallow_recall=true
	{UNDERGROUND}
	{DEFAULT_MUSIC_PLAYLIST}
	{TURNS 32 34 18}
	[side]
		type=Skeleton
		name=_ "Vlad"
		id=Vlad
		facing=sw
		side=1
		controller=human
		user_team_name=_ "Good Guys"
		Recruit=Vampire Bat, Skeleton, Skeleton Archer
		shroud=yes
		{GOLD 150 100 75}
	[/side]
	[side]
		type=Dark Adept
		name=_ "Talzin"
		id=Talzin
		facing=sw
		side=1
		controller=human
		user_team_name=_ "Good Guys"
		recruit=Ghost, Walking Corpse, Ghoul
		shroud=yes
		{GOLD 150 100 75}
	[/side]
	[side]
		type=Dark Sorcerer
		name=_ "Malak"
		id=Malak
		facing=e
		side=2
		controller=ai
		user_team_name=_ "Bad Guys"
		recruit=Skeleton, Skeleton Archer, Dark Adept, Walking Corpse
		shroud=no
		{GOLD 200 250 300}
	[/side]
	[event]
		name=start
		[message]
			speaker=Talzin
			message=_ "Vlad, are you here ? it's so.. cold. I can't see you but i feel your presence near me."
		[/message]
		[message]
			speaker=Vlad
			message=_ "Yes, i feel you too... Are a hum well... Are you like me?"
		[/message]
		[message]
			speaker=Talzin
			message=_ "Like you ? What do you mean ? I am, cahnged... Some kind of dark magic is keeping me alive. I have no idea how i got here, i reckon you don't either ?"
		[/message]
		[message]
			speaker=Vlad
			message=_ "I... am a skeleton Talzin... And no, i have no idea how the hell we got here."
		[/message]
		[message]
			speaker=Talzin
			message=_ "I am sorry Vlad, really... We're gonna find the [censored] who did this to us and get the hell out of here. We'll decide on waht to do after that"
		[/message]
		[message]
			speaker=Vlad
			message=_ "You're right. I think that i can use teh magic that flows in me with the bone piles surrounding us to make some soldiers, you can probably do something simillar, try it!"
		[/message]
		[objectives]
			[objective]
				description=_ "Find and defeat the ennemy leader"
				condition=win
			[/objective]
			[objective]
				description=_ "Death of Vlad"
				condition=Lose
			[/objective]
			[objective]
				description=_ "Death of Talzin"
				condition=Lose
			[/objective]
			[objective]
				description=_ "Turn limit reached"
				condition=Lose
			[/objective]
			[gold_carryover]
				bonus=yes
				carryover_percentage=40
			[/gold_carryover]
		[/objectives]
	[/event]
	[event]
		name=sighted
		[filter]
			id=Malak
		[/filter]
		[message]
			speaker=Vlad
			message=_ "That's the one who controls these monsters! Let's kill him !"
		[/message]
		[message]
			speaker=Malak
			message=_ "Renegades ? How did this happen ?! Maybe if i can kill one of them i will regain enogh control to make the other back down..."
		[/message]
	[/event]
	[event]
		name=time over
		[message]
			speaker=Vlad
			message=_ "This is useless, at this rythm he'l kill us before we ever get out of here!"
		[/message]
		[message]
			speaker=Talzin
			message=_ "..."
		[/message]
		[endlevel]
			result=defeat
		[/endlevel]
	[/event]
	[event]
        name=die
		[filter]
			id=Vlad
		[/filter]
        [message]
            speaker=Vlad
            message= _ "I don't think this... Is the kind of death i can come back from..."
        [/message]
		[message]
			speaker=Talzin
			message=_ "No, wait! This can't be happening!"
		[/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
	[event]
        name=die
		[filter]
			id=Talzin
		[/filter]
        [message]
            speaker=Talzin
            message= _ "I think what life was left of me is leaving my body *coughs* Avenge me, my friend"
        [/message]
		[message]
			speaker=Talzin
			message=_ "You wretched wizzard! You will pay for this!"
		[/message]
		[message]
			speaker=Malak
			message=_ "Keep your futile threats to yourself pawn! With your friend out of the way, i can use all my magic power to make sure you obey me... for good this time!"
		[/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
	[event]
        name=die
		[filter]
			id=Malak
		[/filter]
        [message]
            speaker=Vlad
            message= _ "This is what you get for turning us into monsters !"
        [/message]
		[message]
			speaker=Malak
			message=_ "You fool, only I could have made you find a human body again..."
		[/message]
		[message]
			speaker=Talzin
			message=_ "Sounds like a stupid lie, your life ends here, necromancer!"
		[/message]
		[message]
			speaker=Malak
			message=_ "Hahaha *cough cough* you don't seem to realize that you too are now a necromancer... Better think boy haha *cough*"
		[/message]
		[message]
            speaker=Vlad
            message= _ "It is indeed a problem... We'll have time to think about it later. For now, let's try to find a way out of here."
        [/message]
		[message]
			speaker=Talzin
			message=_ "Agreed. And Vlad ?"
		[/message]
		[message]
			speaker=Vlad
			message=_ "..."
		[/message]
		[message]
			speaker=Talzin
			message=_ "I will solve this, i promise !"
		[/message]
        [endlevel]
            result=victory
        [/endlevel]
    [/event]
[/scenario]
and there is the map file witht he path to it:
Image

While i'm here another off topic question: How do i make it so that a village belongs to one side as a start event ?

Thank you in advance ! (i'm sure what i'm missing is as big as house but i'm stuck)
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2364
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: Missing .map problem

Post by Lord-Knightmare »

It says the .map file is missing yet i checked multiple times even deleted and stared from scratch, gave it a new name etc... but nothing... I am quite stuck, can anybody save me ?
Your map file is saved with extension .map and you're trying to load a file called 02_the_master

Try this:

Code: Select all

map_data="{~add-ons/Overlord/maps/02_the_master.map}"
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
nexusrebirth
Posts: 21
Joined: November 15th, 2019, 8:54 pm

Re: Missing .map problem

Post by nexusrebirth »

Lord-Knightmare wrote: June 2nd, 2022, 6:04 am
Try this:

Code: Select all

map_data="{~add-ons/Overlord/maps/02_the_master.map}"
Well there was my simple mistake. Solved it! thank you very much !
Post Reply