'When Came out the Shadows' campaign

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

After [/scenario] I now have :

Code: Select all

#ifdef CAMPAIGN_WHEN_CAME_OUT_THE_SHADOWS

### path to external images and sounds

[binary_path]
    path=data/campaigns/When_Came_out_the_Shadows/external_binary_data
[/binary_path]
[binary_path]
    path=data/campaigns/When_Came_out_the_Shadows
[/binary_path]

{@campaigns/When_Came_out_the_Shadows/utils}
{@campaigns/When_Came_out_the_Shadows/scenarios}

[+units]
    {@campaigns/When_Came_out_the_Shadows/units}
[/units]

#endif
But this doesn't work...

Must

Code: Select all

[binary_path]
    path=data/campaigns/When_Came_out_the_Shadows/external_binary_data
[/binary_path]
be outside the #ifdef part?
User avatar
doofus-01
Art Director
Posts: 4180
Joined: January 6th, 2008, 9:27 pm
Location: USA

Re: 'When Came out the Shadows' campaign

Post by doofus-01 »

Correct.
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

Here is the complete _main.cfg :

Code: Select all

#textdomain wesnoth-wcots
# This version forked from 1.4, january 2009.
[textdomain]
    name="wesnoth-wcots"
[/textdomain]

# wmlscope: set export=no
[campaign]
    id=WCotS
    name= _ "When Came out the Shadows"
    abbrev= _ "WCotS"
    rank=200
    first_scenario="01_La_Secte"

    define="CAMPAIGN_WHEN_CAME_OUT_THE_SHADOWS"
    difficulties=EASY,NORMAL,HARD

    difficulty_descriptions={MENU_IMG_TXT2 "data/campaigns/When_Came_out_the_Shadows/images/units/konrad-fighter.png~RC(magenta>red)" _"Fighter" _"(Easy)"} + ";" + {MENU_IMG_TXT2 "data/campaigns/When_Came_out_the_Shadows/images/units/konrad-commander.png~RC(magenta>red)" _"Commander" _"(Normal)"} + ";" + {MENU_IMG_TXT2 "data/campaigns/When_Came_out_the_Shadows/images/units/konrad-lord.png~RC(magenta>red)" _"Lord" _"(Difficult)"}

    icon=../data/core/images/attacks/sword-holy.png~RC(magenta>red)
    image=data/campaigns/When_Came_out_the_Shadows/images/wcots_campaign_image.png

    description= _ "In the year 612 YW, the Prince Konrad, second of the name, son of King Haldric VII, leaves with the army of Wesnoth at the conquest of an archipelago emerged from the waves. His army mysteriously disappears while hordes of orcs invade the islands. Will you be able to clarify this mystery?

Version 1.0.0"

 # [about]...[/about]

[/campaign]

[binary_path]
    path=data/campaigns/When_Came_out_the_Shadows/external_binary_data
[/binary_path]

#ifdef CAMPAIGN_WHEN_CAME_OUT_THE_SHADOWS

### path to external images and sounds

[binary_path]
    path=data/campaigns/When_Came_out_the_Shadows
[/binary_path]

{@campaigns/When_Came_out_the_Shadows/utils}
{@campaigns/When_Came_out_the_Shadows/scenarios}

[+units]
    {@campaigns/When_Came_out_the_Shadows/units}
[/units]

#endif
I created a external_binary_data/images folder with the 4 pictures but it doesn't work... :shock:

Where am I wrong?
User avatar
doofus-01
Art Director
Posts: 4180
Joined: January 6th, 2008, 9:27 pm
Location: USA

Re: 'When Came out the Shadows' campaign

Post by doofus-01 »

You are still telling Wesnoth to look for the image in a place which should not exist.

Changes:

image=data/campaigns/When_Came_out_the_Shadows/images/wcots_campaign_image.png

should be

image=wcots_campaign_image.png

similar for the others.
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

Thank you! It works!

On the other hand, I inform you that the 1.0.0 version is available. It is no longer a Beta.
Perhaps some scenarios need to be better balanced...

Thanks to WYRMY and Thrawn for their help about the translations, and the other from the forum for their different help.
salsaman
Posts: 9
Joined: February 14th, 2009, 9:39 pm

Re: 'When Came out the Shadows' campaign

Post by salsaman »

I just tried this - on normal difficulty I found it too hard - when you land on the first island with two undead leaders, it seems impossible to kill them both in the limited time allowed - given the lack of villages there is not time to heal more than 1 or 2 units before having to rush into attack.

Perhaps make this a little bit easier, increase the time limit by 6 to 8 turns or so and maybe a little gold bonus (100 gold or so found on the island).

That would allow a few more units against each leader, and prevent having to rush into attack unhealed.
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

You're probably right. I didn't play in Normal. Thank you for telling this. :) I'll modify the file when I'll have some more time... :wink:

Please tell me if you found a mistake or something too much hard in the campaign... :)
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

Sorry for this question which were probably already asked by somebody else : where can I find a document helping me to modify the WML code of my campaign ? I would want it to be playable with 1.6.

Thank you.
Last edited by domingo on June 10th, 2009, 3:20 pm, edited 1 time in total.
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: 'When Came out the Shadows' campaign

Post by Turuk »

domingo wrote:where can I find a document helping me to modify the WML code of my campaign. I want it to b playable with 1.6.
WML Changes

The above link contains changes to WML in 1.6 that would need to be fixed.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

Thank you !

I have modified the code. Now I have the message "Unkown scenario" when I try the campaign. There is no other bug announced by the game.

:|

Any idea ? I suppose this is an "usual bug"...
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: 'When Came out the Shadows' campaign

Post by Turuk »

domingo wrote:Any idea ? I suppose this is an "usual bug"...
Yes, it does pop up a great deal, but it could also be a large number of things, so it is hard to know where to start to tell you to fix it.

Is the main.cfg set up correctly to look for the campaign? Do the file and map names match each other, and in first_scenario=?
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

Sometimes I have an error message, sometimes I haven't...

I have re-written the _main.cfg file.

Now the games says the [/scenario] is missing in one of my scenarios. :|

You can see here the code :

Code: Select all

#textdomain wesnoth-wcots
[scenario]

	id="09_bis_Les_Plaines_d_Ydrun"
	name= _ "Ydrun Plains"
	map_data="{@campaigns/When_Came_out_the_Shadows/maps/09bis_Les_Plaines_d_Ydrun.map}"
	next_scenario="10_Chemins_Divergents"
	turns=12

	{SCENARIO_MUSIC "knalgan_theme.ogg"}

	{VICTORY_AND_DEFEAT_MUSIC}

    [story]
        [part]
            background=story/the_green_isle.png
            show_title=yes

            [image]
                x,y=680,310
                file=items/gohere.png
            [/image]


        [/part]
    [/story]

	{DAWN}
	{MORNING}
	{AFTERNOON}
	{DUSK}
	{FIRST_WATCH}
	{SECOND_WATCH}


[side]
        side=1
        team_name=konrad
        controller=human
        id="Konrad"
	canrecruit=1
        type=Commander
	recruit=Horseman, Spearman, Bowman, Mage, Cavalryman, Elvish Archer, Elvish Fighter, Elvish Shaman, Elvish Scout,Corporal
	fog=yes

[/side]

[side]
        type=Lich
	id=Balda
	name= _ "Balda"
	canrecruit=1
	side=2
        team_name=liches
        controller=ai
	passive_leader=yes
	{GOLD 200 320 440}
#ifdef EASY
	recruit=Skeleton,Revenant,Blood Bat,Ghost,Bone Shooter
#endif
#ifdef NORMAL
	recruit=Skeleton,Revenant,Chocobone,Blood Bat,Wraith,Bone Shooter,Dark Adept
#endif
#ifdef HARD
	recruit=Skeleton,Revenant,Chocobone,Wraith,Bone Shooter,Dark Adept
#endif

		[ai]
#ifdef EASY
		recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef NORMAL
		recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef HARD
		recruitment_pattern=fighter,fighter,archer,scout
#endif
		[/ai]

[/side]

[side]
        type=Lich
	id=Griga
	name= _ "Griga"
	canrecruit=1
	side=3
        team_name=liches
        controller=ai
	passive_leader=yes
	recruit=Wraith,Walking Corpse
	{GOLD 200 400 600}
		[ai]
#ifdef EASY
		recruitment_pattern=fighter
#endif
#ifdef NORMAL
		recruitment_pattern=fighter
#endif
#ifdef HARD
		recruitment_pattern=fighter,fighter,fighter,scout
#endif
		[/ai]

[/side]

[side]
        type=Lich
	id=Kimaa
	name= _ "Kimaa"
	canrecruit=1
	side=4
        team_name=liches
        controller=ai
	passive_leader=yes
	{GOLD 160 280 400}

#ifdef EASY
	recruit=Walking Corpse,Wraith,Bone Shooter,Revenant,Skeleton
#endif
#ifdef NORMAL
	recruit=Walking Corpse,Wraith,Bone Shooter,Revenant,Skeleton,Dark Adept
#endif
#ifdef HARD
	recruit=Wraith,Chocobone,Bone Shooter,Revenant,Skeleton,Dark Adept
#endif

		[ai]
#ifdef EASY
		recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef NORMAL
		recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef HARD
		recruitment_pattern=fighter,fighter,archer,scout,scout
#endif
		[/ai]

[/side]

[side]
        type=Lich
	id=Mal Huqh
	name= _ "Mal Huqh"
	canrecruit=1
	side=5
        team_name=liches
        controller=ai
	passive_leader=yes
	{GOLD 160 280 400}

#ifdef EASY
	recruit=Walking Corpse,Wraith,Bone Shooter,Revenant,Skeleton
#endif
#ifdef NORMAL
	recruit=Walking Corpse,Wraith,Bone Shooter,Revenant,Skeleton,Dark Adept
#endif
#ifdef HARD
	recruit=Wraith,Chocobone,Bone Shooter,Revenant,Skeleton,Dark Adept
#endif

		[ai]
#ifdef EASY
		recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef NORMAL
		recruitment_pattern=fighter,fighter,archer,scout
#endif
#ifdef HARD
		recruitment_pattern=fighter,fighter,archer,scout,scout
#endif
		[/ai]

[/side]

	{PLACE_IMAGE (items/holy-water.png) 28 23}
	{PLACE_IMAGE (items/holy-water.png) 16 2}

[event]
	name=prestart

		[objectives]
		side=1
			[objective]
			description= _ "Survive for two days"
			condition=win
			[/objective]
			[objective]
			description= _ "Eradicate the Liches (Bonus)"
			condition=win
			[/objective]
			[objective]
			description= _ "Death of Konrad"
			condition=lose
			[/objective]
			[objective]
			description= _ "Death of Cutty Fredd, Merlin or Lyndil-Hoaklyl"
			condition=lose
			[/objective]
			[objective]
			description= _ "Turns run out"
			condition=lose
			[/objective]
		[/objectives]

	[recall]
		id=Cutty Fredd
	[/recall]

	[recall]
		id=Merlin
	[/recall]

	[recall]
		id=Lyndil-Hoaklyl
	[/recall]

[/event]

[event]
        name=start

        [message]
            speaker=Konrad
            message= _ "Shut up! Are you hearing that noise?"
        [/message]

        [message]
            speaker=Merlin
            message= _ "I'm. A dangerous thing is taking place over the fog."
        [/message]

        [message]
            speaker=Cutty Fredd
            message= _ "What sort of mystery are we going to face again?"
        [/message]

        [message]
            speaker=Merlin
            message= _ "These lands are called the Ydrun plains. He was a great warrior in the past according to the Haldric-aged prehistorical literature. But he became corrupted and cruel because of a lich-lord, who possessed him. The kings of the Green Isle fought him during several but merciless years. Finally he was beaten and died here a long time ago, but for a long time before Haldric."
        [/message]

        [message]
            speaker=Merlin
            message= _ "In consequence it is not necessary to say the land is not perfectly pure."
        [/message]

        [message]
            speaker=Cutty Fredd
            message= _ "You want to say we'll have to fight. Well..."
        [/message]

        [message]
            speaker=Konrad
            message= _ "Be careful. Warn the regiments if you see something strange."
        [/message]

        [message]
            speaker=Cutty Fredd
            message= _ "We will carefully progress and return with a new victory."
        [/message]

        [message]
            speaker=Merlin
            message= _ "And so began the Ydrun plains battle..."
        [/message]

[/event]

[event]
	name=turn 3

	[message]
		id=Konrad
		message= _ "100 pieces of gold have been found in the cellars? This is a good new!"
	[/message]

	[gold]
		side=1
		amount=100
	[/gold]

	[sound]
		name=gold.ogg
	[/sound]

	[message]
		image=wesnoth-icon.png
		speaker=narrator
		message= _ "You receive 100 pieces of gold!"
	[/message]

[/event]

[event]
	name=time over

	[message]
		id=Cutty Fredd
		message= _ "The Sun rises again over the plains."
	[/message]
	[message]
		id=Konrad
		message= _ "Victory! The undead are leaving!"
	[/message]

	[endlevel]
		result=victory
	[/endlevel]

[/event]


	{@campaigns/When_Came_out_the_Shadows/utils/deaths.cfg}

[/scenario]
Something should be wrong but I don't know what. Do you ?
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: 'When Came out the Shadows' campaign

Post by Turuk »

Try putting in victory_when_enemies_defeated=no

When you get errors on your scenarios, it is better to take them out and place them back in one and a time so that you can isolate errors one by one.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
domingo
Posts: 63
Joined: August 11th, 2008, 8:42 pm

Re: 'When Came out the Shadows' campaign

Post by domingo »

Hi,

I think I'm not going to continue the campaign. I can't update the code for 1.6 and I have no longer the time to write, verify and try to understand (without success most of the time) why it doesn't work!

So I would like somebody - who has no idea of new campaign, who would like to make one, and who knows WML - take over my campaign and work on... I can give her/him the ideas I had for it...

I don't know if there is any procedure or rules for this... But what I want it's that my campaign be alive and maintened would be better!

Or, in the worst come to the worst, I could continue writing but in that case I would need help from a "WML veteran"!

Could somebody tell me what are the rules for this? And is somebody interested in that?

edit: curently I'm not totally sure to do that. This is just like prospecting!

Thanks
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: 'When Came out the Shadows' campaign

Post by Turuk »

domingo wrote:Could somebody tell me what are the rules for this? And is somebody interested in that?
There are no rules for this, it is between you and whatever interested individual you find. You just have to hope that someone is willing to devote time coding out your ideas, and see who contacts you.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Post Reply