Weird scenario freezing the game

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
revansurik
Posts: 534
Joined: October 17th, 2012, 11:40 pm
Location: Brazil
Contact:

Weird scenario freezing the game

Post by revansurik » June 19th, 2013, 3:51 am

Hi folks! I have found a weird problem with a scenario in my campaign: it causes the game (and my PC) to freeze halfway through the campaign's loading. Either that, or it causes the campaign not to load for 'unknown scenario 01_Damsel_In_Distress' (which makes no sense, since the id is right). When I removed this particular scenario from the campaign, it loaded normally. But the thing is, I really don't see what this scenario has that causes it - in fact, I'd never saw this kind of thing happening before...

Here goes the coding of the scenario: the map is done alright, btw.

Code: Select all

#textdomain wesnoth-Soldier_of_Wesnoth
[scenario]
    id=15_Sands_Of_Time
    name= _ "Sands of Time"
    next_scenario=16_Ghosts_Of_The_Ancient
    map_data="{~add-ons/Soldier_of_Wesnoth/maps/15_Sands_Of_Time.map}"
    {TURNS 68 64 60}
    {DEFAULT_SCHEDULE}
	victory_when_enemies_defeated=no
	
    {SCENARIO_MUSIC journeys_end.ogg}   # No story part
    {EXTRA_SCENARIO_MUSIC battle-epic.ogg}
    {EXTRA_SCENARIO_MUSIC breaking_the_chains.ogg}
    {EXTRA_SCENARIO_MUSIC vengeful.ogg}
    {EXTRA_SCENARIO_MUSIC the_king_is_dead.ogg}

	
    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Find the ruins of Oreyand"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Addraryn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Moran"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ceomyr"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Liryn"
                condition=lose
            [/objective]
           [objective]
                description= _ "Death of Orofarnië"
                condition=lose
            [/objective]
			
            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
			
	
        [/objectives]
    [/event]	

    {SANDS_OF_TIME_STORY}
  
    {STARTING_VILLAGES 1 5}

	
    [side]
        {ADDRARYN}
        recruit=
        {GOLD 240 220 200}
		{INCOME 20 15 10}
        team_name=wesnothians
        user_team_name=_"Death-bringer Battalion"
		shroud=yes
		
        {CUSTOM_DG_FLAG}
		
    [/side]



    [side]
        no_leader=yes
        side=2
        canrecruit=yes
        recruit=Arif,Hakim,Naffat,Qatif_al_nar
        team_name=khalifa
        user_team_name=_"Khalifate"
	[ai]
            {ATTACK_DEPTH 2 4 5}
			aggression=0.75
			caution=-0.25
            recruitment_pattern=fighter,fighter,archer,archer,archer,healer,healer
        [/ai]
        {FLAG_VARIANT long}
    [/side]

	{LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Qatif_al_nar) 3}
	
    [side]
        no_leader=yes
        side=3
        canrecruit=yes
        recruit=Arif,Hakim,Naffat,Rami,Jundi,Ghazi,Tabib,Qatif_al_nar,Saree,Muharib
        team_name=khalifa
        user_team_name=_"Khalifate"
	[ai]
            {ATTACK_DEPTH 2 4 5}
			grouping=offensive
			aggression=0.75
			caution=-0.50
            recruitment_pattern=fighter,mixed fighter,mixed fighter,archer,archer,archer,healer,healer
        [/ai]
        {FLAG_VARIANT long}
    [/side]


	{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Ghazi) 3}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Tabib) 2}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Qatif_al_nar) 2}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Saree) 2}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Muharib) 4}


	
    [event]
        name=prestart
		
	
		
		
		
		
		

        [recall]
            id=Moran
            x=9
            y=14
        [/recall]	

        [recall]
            id=Liryn
            x=9
            y=14
        [/recall]	
		
        [recall]
            id=Ceomyr
            x=9
            y=14
        [/recall]
		
        [recall]
            id=Orofarnie
            x=9
            y=14
        [/recall]
		
		[hide_unit]
		  id=Moran
		[/hide_unit]
		
	
    [/event]	




    [event]
        name=start
		

        [message]
            speaker=Liryn
            message= _ "Hey, Addraryn, how's the general doing?"
        [/message]
        [message]
            speaker=Addraryn
            message= _ "No change, apparently; but we need to get going, or the woses and the fairies may catch us again."
        [/message]
        [message]
            speaker=Ceomyr
            message= _ "Then you must lead us all, Addraryn, while General Moran is incapable of doing that."
        [/message]
		
		[unhide_unit]
		   id=Moran
		[/unhide_unit]			
		
        [message]
            speaker=Moran
            message= _ "I am certain Addraryn could replace me satisfactorily, but it won't be necessary, for I have recovered already. I apologize to all of you for faltering like this."
        [/message]
        [message]
            speaker=Liryn
            message= _ "Don't worry, general, you may always count on us."
        [/message]
        [message]
            speaker=Moran
            message= _ "I am sincerely glad to hear that, Liryn. Now, let us think on a way to return to Wesnoth, for the Black Forest is now far too dangerous for our tired army."
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "I think I know the path that is safest for you. Before the beginning of my long slumber, there was a terrible war going on between the elves and the dragons, who lived in the vast desert before your eyes. The city of Oreyand stood on the edge of this desert, and so it was very vulnerable to the dragons. For this reason, the elves hired a troll clan to dig a complex system of tunnels in the Mountains of Peril, to serve as a hiding place if the dragons overwhelmed Oreyand. I don't know which age I am right now, but I doubt that those caves have disappeared."
        [/message]
        [message]
            speaker=Moran
            message= _ "A truly interesting story; however, if this city of Oreyand was in the Black Forest, then the entrance to those caves should be to the north of here, behind the tribes of woses and fairies, am I correct?"
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "Actually, no; what you call the Black Forest, in my time, stretched well into this desert, even encircling the Sleepless Sea, and Oreyand itself existed to the south of the Mountains of Peril. Thus, the entrance to the caves should be in the southern mountains, close to this desert. It would be far easier to find if we stumbled on the ruins of Oreyand, but I do not know whether there is anyone left."
        [/message]		
        [message]
            speaker=Moran
            message= _ "Well, let's give it a try; travelling through the caves should be safer than over the Mountains of Peril, which dangers we don't even know. I just wonder whether we shall actually find the heirs of Oreyand in those caves."
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "That is exactly what I was thinking about. If my slow speed does not trouble you, I would like to go alongside you to those caves."
        [/message]		
        [message]
            speaker=Moran
            message= _ "It certainly brings no problem to have such a wise being with us. Your speed won’t be a problem, we too will have our speed decreased by this desert and later by the caves. Besides, if we do find elves in the caves, we may convince them of our friendliness if we have a friend of theirs amongst us."
        [/message]
        [message]
            speaker=Moran
            message= _ "From now on we must be even more careful. This desert is an uncharted realm; I doubt that any other Wesnothian troop before us has ever come so deep into the south. It's unlikely that there are dragons living here still, but they're not the only monsters that exist in this world."
        [/message]
    [/event]
	
	
	[event]
	
        name=moveto
        [filter]
            x=94-115
            y=10-46
            side=1
        [/filter]


        [message]
            speaker=Addraryn
            message= _ "Look at that rock; it's so dark, I wonder what kind of stone it is."
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "It looks like a volcanic bomb from the Dragon War; the dragons used to hurl large masses of burning liquid rock to knock down the walls of Oreyand. Its ruins must not be far from here."
        [/message]		
        [message]
            speaker=Addraryn
            message= _ "I've only heard of volcanoes; I would really like to give that rock a closer look..."
        [/message]
	[/event]	
		
		
	[event]
	
        name=moveto
        [filter]
            x=94-115
            y=10-46
            id=Addraryn
        [/filter]

        [message]
            speaker=Addraryn
            message= _ "Ooof!!!"
        [/message]
		
        [teleport]
            [filter]
                id=Addraryn
            [/filter]
            x=49
            y=29
        [/teleport]		
		
        [message]
            speaker=Moran
            message= _ "Addraryn! Where have you gone?"
        [/message]
        [message]
            speaker=Liryn
            message= _ "I think he was sucked by the sand, sir!"
        [/message]
		[message]
            speaker=Addraryn
            message=_ "Don't worry folks, I am fine! Seems like the rock is hollow... Now, let's see... Whoa, I see something shiny here... It's some armour, a sword and... Ew, there's a skeleton too..."
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "It must be an elven soldier from the Dragon War! He must have been crushed by the bomb, but his equipment withstood the impact; the elves of Oreyand were famous for the quality of the crafting."
        [/message]
        [message]
            speaker=Addraryn
            message= _ "Sure they were; this blade is fine like no other I've ever seen. I wonder whether it will be disrespectful to take it for myself...?"
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "It currently belongs to none, so pick it. Swords were made to be used after all, not to lie untouched in a hole."
        [/message]
		
                            [object]
                                id=elven_sword
                                name= _ "Oreyand Sword"
                                image=attacks/greatsword-elven.png
                                duration=forever
                                description= _ "This fine blade was forged in ages immemorial by the legendary elven smiths of Oreyand. It combines resiliency with lightness, making its blows both powerful and swift."
                                [effect]
                                    apply_to=remove_attacks
                                    range=melee
                                    type=blade
                                [/effect]		
                                [effect]
                                    apply_to=new_attack
                                    name=sword
                                    description= _ "Oreyand sword"
                                    icon=attacks//greatsword-elven.png
                                    type=blade
                                    range=melee
                                    damage=10
                                    number=6
                                [/effect]
                            [/object]
		
		
		
		
        [message]
            speaker=Addraryn
            message= _ All right, so now I'm going back to the surface; it's lucky that this desert sand is so fine, it's very easy to dig through."
        [/message]
		
        [teleport]
            [filter]
                id=Addraryn
            [/filter]
            x=49
            y=29
        [/teleport]

        [message]
            speaker=Addraryn
            message= _ "I wonder whether there are more rocks here with treasures like this..."
        [/message]
	[/event]
	
	
		
	[event]
	
        name=moveto
        [filter]
            x=94-115
            y=10-46
            side=1
        [/filter]

        [message]
            speaker=unit
            message= _ "Look, it's another of those volcanic bombs! Let's see what kind of treasures it is hiding..."
        [/message]
        [message]
            speaker=narrator
            message= _ "*<i>starts digging</i>*"
        [/message]		
        [delay]
          time=600
        [/delay]		
		
        [message]
            speaker=unit
            message= _ "Um..."
        [/message]
        [message]
            speaker=narrator
            message= _ "*<i>continues digging</i>*"
        [/message]				
        [delay]
          time=600
        [/delay]		
		
		
        [message]
            speaker=unit
            message= _ "Come on, don't tell me it's not hollow..."
        [/message]
		[message]
            speaker=Moran
            message=_ "Stop wasting your time there, soldier, we have no time to lose in this desert."
        [/message]
        [message]
            speaker=Addraryn
            message= _ "Cheer up, maybe in Oreyand's ruins we find something else."
        [/message]	
    [/event]


    [event]
        name=moveto
        [filter]
            side=1
            [filter_location]
                x,y=42,12
                radius=10
            [/filter_location]
        [/filter]
		
        [unit]
            type=Mufariq
            side=2
            x,y=42,12
            id=Abbas
            name=_ "Abbas"
            canrecruit=yes
        [/unit]		
		
		
        [modify_side]
            side=2
            {GOLD 320 350 380}
            {INCOME 20 25 30}
        [/modify_side]				
		
        [move_unit_fake]
            type=Elder Falcon
            x=35,41
            y=14,12
            side=2
        [/move_unit_fake]
		
        [message]
            speaker=Addraryn
            message= _ "A bird... If there are birds here, surely there is an oasis nearby, right?"
        [/message]
        [message]
            speaker=Moran
            message= _ "Not necessarily; maybe it lives in a nest on some distant mountains."
        [/message]
	[/event]	
		

	[event]
	   name=moveto,sighted
        [filter]
            race=khalifate
            [filter_vision]
                side=1
            [/filter_vision]
        [/filter]
		
        [message]
            speaker=Moran
            message= _ "Halt, men! I see some buildings ahead... Can it be that there are humans living here?"
        [/message]
        [message]
            speaker=Abbas
            message= _ "So, Sahina was right about the presence of intruders, but, in the name of the High One, they don't look like our kin, nor any other people we know...! Hail, stranger! I am Abbas, and you have trespassed the frontier of Yussafarstan, paramount amongst the Ostans of the Khalifa! Identify yourself, where you came from, and your business here, or prepare to rot in the sands forever!"
        [/message]
        [message]
            speaker=Moran
            message= _ "We seek no fight, noble Abbas. I am Moran, a General of the Kingdom of Wesnoth, and I am leading my men back to our homeland."
        [/message]
        [message]
            speaker=Abbas
            message= _ "Wesnoth? Where is it? Is it a kingdom that lies beyond the western seas?"
        [/message]
        [message]
            speaker=Moran
            message= _ "No; it lies to the north, many miles beyond those mountains to the north..."
        [/message]		
        [message]
            speaker=Abbas
            message= _ "Northerners, you say? (gets paler) So the cursed ones are now leaving their underworld to attack us, but you have committed a grave mistake by attacking Yussafarstan! Men, prepare for battle! Especially you, Qatif-al-nar, your fire arrows are a bane to those monsters!"
        [/message]
        [message]
            speaker=Addraryn
            message= _ "Uh, did any of you understand what has just happened?"
        [/message]
        [message]
            speaker=Moran
            message= _ "I guess they have somehow mistaken us for undead... They clearly have no knowledge of dark magic, maybe no magic at all. Besides, his comment about 'cursed one leaving their underworld' sounds ominous to me; but let's leave for later, now we must fight. Nevertheless, try to spare their leader; we can’t give them a bad first impression about us Wesnothians. And besides, I really want to know this exotic people better."
        [/message]		
        [message]
            speaker=Ceomyr
            message= _ "Me too... *just to see if they squish like normal humans under my Morningstar...*"
        [/message]		
		
        [objectives]
            side=1
            [objective]
                description= _ "Find the ruins of Oreyand"
                condition=win
            [/objective]
            [objective]
                description= _ "Defeat Abbas"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Addraryn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Moran"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ceomyr"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Liryn"
                condition=lose
            [/objective]
           [objective]
                description= _ "Death of Orofarnië"
                condition=lose
            [/objective]
			
            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
			
	
        [/objectives]		
		
	[/event]	
		
   [event]
        name=last breath
        [filter]
           id=Abbas
        [/filter]
        [filter_second]

        [message]
            speaker=Moran
            message= _ "Abbas, please heed us. We are human just like you, and we sincerely seek no quarrel with your people..."
        [/message]			
        [message]
            speaker=Abbas
            message= _ "You cannot be human like me, if you are from whence you claimed to be! Only monsters dwell in the north: talking trees, mischievous fire-breathing girls and ghastly fleshless monsters..."
        [/message]
        [message]
            speaker=Moran
            message= _ "Ah, I see, they must be undead. We could help you get rid of them, if you just give us a chance..."
        [/message]
        [message]
            speaker=Abbas
            message= _ "Do not try and trick me any further, cursed one, for I shall not yield! Sahina, fly swiftly to Shah Arslan, and deliver him my last message!"
        [/message]
		
        [move_unit_fake]
            type=Elder Falcon
            x=35,41
            y=14,12
            side=2
        [/move_unit_fake]
    [/event]

    [event]
        name=die
        [filter]
            id=Abbas
        [/filter]	
		
        [message]
            speaker=Addraryn
            message= _ "He killed himself! Why did he refuse to believe us so much?"
        [/message]
        [message]
            speaker=Moran
            message= _ "It seems like they had a well-established world view that did not include us, and so our appearance has shattered centuries-old beliefs. Sometimes, people prefer to cling on an easy lie rather than accept a confusing truth. Anyway, we must make haste and find the ruins of Oreyand; we can't fight an entire army, especially on foreign soil."
        [/message
	[/event]	
		

	[event]
	
        name=moveto
        [filter]
            x=94-115
            y=10-46
            side=1
        [/filter]
        [remove_shroud]
            side=1
            x=44-49
            y=4-9
        [/remove_shroud]

        [message]
            speaker=Orofarnie
            message= _ "The glorious city of Oreyand...! To think that it would one day be reduced to dusty ruins... But I guess that only the forests, the oceans and the mountains last forever."
        [/message]
        [message]
            speaker=Moran
            message= _ "Now, Orofarnië, I understand that we must go straight north; do you think you can find the entrance?"
        [/message]				
       [message]
            speaker=Orofarnie
            message= _ "Oh, sure I can. It may just be locked by magical elven glyphs, but if I get near the gates, I should be able to unlock them."
        [/message]
		
		[delay]
		  time=1000
		[/delay]
		[sound]
		   name=horn-2.ogg
		[/sound]
        [delay]
		  time=800
		[/delay]
		
        [message]
            speaker=Addraryn
            message= _ "Uh-oh, I don't like the sound of it..."
        [/message]		
        [message]
            speaker=Liryn
            message= _ "Damn, the friends of that Abbas have come!"
        [/message]
		
        [unit]
            type=Khalid
            side=3
            x,y=42,12
            id=Arslan
            name=_ "Arslan Yussafar"
            canrecruit=yes
        [/unit]
		
        [terrain]
            x=22,23,23,22,21,21
            y=1,2,3,3,3,2
            terrain=Ce
        [/terrain]
        [terrain]
            x,y=22,2
            terrain=Ke
        [/terrain]
		
        [modify_side]
            side=3
            {GOLD 800 840 880}
            {INCOME 40 45 50}
        [/modify_side]

        [remove_shroud]
            side=1
            x=44-49
            y=4-9
        [/remove_shroud]		
		

        {REPLACE_SCENARIO_MUSIC Wesnoth_Horn.ogg}

        [message]
            speaker=Arslan
            image=portraits/arslan.png 
            message= _ "I cannot believe my eyes: Abbas’ letter was true after all, these invaders are not like any other people we know; however, they do not resemble the cursed ones, so it can only mean that... (shouting) Strangers, I am Arslan Yussafar, Shah of this Ostan! In another situation I would have showed you my hospitality and queried you about your land to the north, but you have invaded my land and killed my kin, and so you shall receive no friendship!"
        [/message]
        [message]
            speaker=Moran
            message= _ "I tried to reason with your subordinate, but he refused to listen to us! However, if you want to go on with this, you shall hear not our begging for mercy, but our war cry; for we are the Death-bringer Battalion, slayer of foes far worse than you!"
        [/message]
        [message]
            speaker=Liryn
            message= _ "Way to go, general!"
        [/message]
        [message]
            speaker=Moran
            message= _ "Yes, mine were gallant words, but useless ones in face of such a vastly superior force; Orofarnië, find this entrance and unlock it as soon as possible, that we shall hold off Arslan's army in the ruins of Oreyand!"
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "Alas, not even after its destruction fair Oreyand shall find peace... I shall search for the entrance to the caves, then."
        [/message]
		
		
        [objectives]
            side=1
            [objective]
                description= _ "Move Orofarnië to the gates in the north"
                condition=win
            [/objective]
            [objective]
                description= _ "Hold off Arslan's army"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Addraryn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Moran"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ceomyr"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Liryn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Orofarnië"
                condition=lose
            [/objective]
			
            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
			
	
        [/objectives]		
	[/event]	
	

    [event]
        name=moveto
        [filter]
            x=34
            y=3
            id=Orofarnie
        [/filter]	
	
        [message]
            speaker=Orofarnie
            message= _ "Aha! They are so well hidden beneath the canopy that even elvish eyes would have a hard time sighting them, but not wose eyes. As I thought, they are locked with magical elven glyphs; to unlock them, one must read these glyphs..."
        [/message]		
        [message]
            speaker=Addraryn
            message= _ "Please, tell me that you remember the language of Oreyand!"
        [/message]
        [message]
            speaker=Orofarnie
            message= _ "I do, but... Well, I will remember their meaning, if you just give me some time..."
        [/message]	
        [message]
            speaker=Moran
            message= _ "Then concentrate only in this task; you are well hidden amidst these trees, so the enemy should not bother you. However, do not forget that we can’t resist the enemy forever!"
        [/message]
		

        [objectives]
            side=1
            [objective]
                description= _ "Wait for Orofarnië to unlock the elven gates (8 turns)"
                condition=win
            [/objective]
            [objective]
                description= _ "Hold off Arslan's army"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Addraryn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Moran"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ceomyr"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Liryn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Orofarnië"
                condition=lose
            [/objective]
			
            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
			
	
        [/objectives]				
		
        {VARIABLE resting_tcx 0}		
		
		
	[/event]	
		

	# The following two events have been partly borrowed from scen. 10 of IftU
	
    [event]
        name=new turn
        first_time_only=no
        [if]
            [have_unit]
         	  id=Orofarnie
			  x=
			  y=
    		[/have_unit]
            [then]
                [store_unit]
                    [filter]
                        id=Orofarnie
                    [/filter]
                    kill=no
                    variable=orofarnie_probe
                [/store_unit]
                [if]
                    {VARIABLE_BOOLEAN_EQUALS orofarnie_probe.resting yes}
                    [then]
                        {VARIABLE_INC resting_tcx}
                    [/then]
                    [else]
                      # Reset and wait for new unit rest cycle
                      {VARIABLE resting_tcx 0}
                    [/else]
                [/if]
                   {CLEAR_VARIABLE orofarnie_probe}
            [/then]
        [/if]
    [/event]
    [event]
        name=new turn
        first_time_only=no
        [if]
            {VARIABLE_NUM_GREATER_OR_EQUAL_THAN resting_tcx 3}
            [then]
                [message]
                    speaker=Orofarnie
                    message= _ "Ha, I did it! The gates have been unlocked, little friends, hurry inside!"
                [/message]
                [message]
                    speaker=Addraryn
                    message= _ "At long last! I thought we'd be overwhelmed in these ruins!"
                [/message]
                [message]
                    speaker=Moran
                    message= _ "Men, fall back! We shall continue this battle another day, Arslan Yussafar!"
                [/message]
                [message]
                    speaker=Arslan
                    image=portraits/arslan.png 
                    message= _ "Khalifa, let us not follow them into the underground; the cursed ones may finish them for us. *However, I pray you manage to return to your land safely, Moran; with the proofs I now have of another human kingdom's existence in the north, the Shahenshah shall allow me to lead the armies of the Khalifa, and then we really shall continue this battle!*"
                [/message] 

						

        [endlevel]
            result=victory
            bonus=yes

            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]	



            [/then]
       [/if]
    [/event]
		
		
    [event]
        name=last breath
        [filter]
            id=Addraryn
        [/filter]
        [message]
            speaker=Addraryn
            message= _ "I'm... dying...?"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Moran
        [/filter]
        [message]
            speaker=Moran
            message= _ "Alas, I have fallen..."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Liryn
        [/filter]
        [message]
            speaker=Liryn
            message= _ "No, I can't die like this...!"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]
	
    [event]
        name=last breath
        [filter]
            id=Ceomyr
        [/filter]
        [message]
            speaker=Ceomyr
            message= _ "How can I, the great Ceomyr, fall so eas-"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Orofarnie
        [/filter]
        [message]
            speaker=Orofarnie
            message= _ "Alas, now I think I shall sleep for eternity..."
        [/message]
        [message]
            speaker=Moran
            message= _ "No! We needed him to return to Wesnoth!"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]	
	
	
    [event]
        name=time over
        [message]
            speaker=Arslan
            image=portraits/arslan.png 
            message= _ "These foes were certainly worthy, to force me to call on reinforcements. Still, it wasn't enough to avoid their certain doom."
        [/message]
        [message]
            speaker=Moran
            message= _ "We can't face such a large enemy army! This is our end!"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

[/scenario]
Author of the Dragon Trilogy.

If you enjoyed A Song of Fire, War of the Jewel, Aria of the Dragon-Slayer and Soldier of Wesnoth, you may like my new project: Star of Chaos, a science-fiction mystery/adventure intended to be a trilogy
;-)

User avatar
Adamant14
Posts: 897
Joined: April 24th, 2010, 1:14 pm

Re: Weird scenario freezing the game

Post by Adamant14 » June 19th, 2013, 4:22 am

There may be more, but this is what I noticed first:

Code: Select all

   [event]
        name=last breath
        [filter]
           id=Abbas
        [/filter]
        [filter_second]
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR

User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: Weird scenario freezing the game

Post by SkyOne » June 19th, 2013, 11:06 am

This is another one I can see (in the die event of Abbas):

Code: Select all

        [message]
            speaker=Moran
            message= _ "It seems like they had a well-established world view that did not include us, and so our appearance has shattered centuries-old beliefs. Sometimes, people prefer to cling on an easy lie rather than accept a confusing truth. Anyway, we must make haste and find the ruins of Oreyand; we can't fight an entire army, especially on foreign soil."
        [/message
   [/event]   
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server

User avatar
Adamant14
Posts: 897
Joined: April 24th, 2010, 1:14 pm

Re: Weird scenario freezing the game

Post by Adamant14 » June 19th, 2013, 5:21 pm

And this:

Code: Select all

        [message]
            speaker=Addraryn
            message= _ All right, so now I'm going back to the surface; it's lucky that this desert sand is so fine, it's very easy to dig through."
        [/message]
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR

User avatar
revansurik
Posts: 534
Joined: October 17th, 2012, 11:40 pm
Location: Brazil
Contact:

Re: Weird scenario freezing the game

Post by revansurik » June 20th, 2013, 5:01 am

Corrected those mistakes (and some others), and now it is running normally... I thought such errors only caused an error message to pop up, I never thought they could freeze the whole game :hmm:
Well, thanks for the aid! :-D
Author of the Dragon Trilogy.

If you enjoyed A Song of Fire, War of the Jewel, Aria of the Dragon-Slayer and Soldier of Wesnoth, you may like my new project: Star of Chaos, a science-fiction mystery/adventure intended to be a trilogy
;-)

Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: Weird scenario freezing the game

Post by Max » June 21st, 2013, 7:13 am

they shouldn't. if you could manage to strip this down to the essential parts (maybe just a single scenario) you can create a bug-report here: http://gna.org/bugs/?func=search&group=wesnoth

Post Reply