Won't load first scenario

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
Krake
Posts: 16
Joined: December 29th, 2010, 9:42 pm

Won't load first scenario

Post by Krake »

I am making a campaign and have tested the first few scenarios but suddenly it doesn't seem to find the first scenario and I can't figure out why. I haven't changed anything in the scenario or the _main.cfg file so there is no reason why it shouldn't work now when it was working fine before. Any ideas why?
_main.cfg
main file
(1.61 KiB) Downloaded 102 times
the-recruits-part1.cfg
first scenario
(2.93 KiB) Downloaded 97 times
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Won't load first scenario

Post by zookeeper »

Mismatch:
define="CAMPAIGN_THE_ORCISH_SPIDER"
#ifdef CAMPAIGN_TOS
Krake
Posts: 16
Joined: December 29th, 2010, 9:42 pm

Re: Won't load first scenario

Post by Krake »

Thanks but it still doesn't work.
User avatar
Heindal
Posts: 1353
Joined: August 11th, 2011, 9:25 pm
Location: Germany, Karlsruhe
Contact:

Re: Won't load first scenario

Post by Heindal »

Try changing

the-recruits-part1

to

the_recruits_part1

in both scenario and main.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical, UR Epic Era
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses, Dwarf Dwarfson Dwarvenminer
Krake
Posts: 16
Joined: December 29th, 2010, 9:42 pm

Re: Won't load first scenario

Post by Krake »

That's not the problem. I've already tried changing the name and it worked fine before with the current name.
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Won't load first scenario

Post by Dugi »

Seems nobody has any ideas. Try to upload the whole add-on, maybe without pictures, in a zip archive here, so that we could experiment with it.
Krake
Posts: 16
Joined: December 29th, 2010, 9:42 pm

Re: Won't load first scenario

Post by Krake »

Good idea Dugi. Since units usually appear even though the related image is non existing it should be fine but if it is not I can try to fix that.
Attachments
The_Orcish_Spider.zip
(59.16 KiB) Downloaded 101 times
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Won't load first scenario

Post by zookeeper »

Krake wrote:Thanks but it still doesn't work.
What does that mean? There's obviously a lot of ways how something might "not work".

For me, your latest attachment results in the game quitting back to desktop with the last line in stderr.txt being "Ran out of memory. Aborted.". That implies that you have a cyclic WML include somewhere (that is, file A includes file B which includes file A).
Krake
Posts: 16
Joined: December 29th, 2010, 9:42 pm

Re: Won't load first scenario

Post by Krake »

Ok. I'll see if I can find any such code (though I have no idea where to look. I have tried stripping everything out except main and first scenario and it still doesn't work). I didn't get any error message except "error: unknown scenario:...".
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Won't load first scenario

Post by zookeeper »

After taking a closer look, there appears to be no such cyclic includes. :hmm:

However, removing all scenario files except the one for the first scenario allows the campaign to start normally, so whatever is wrong is contained in some of the other scenario files, so you can at least narrow it down to a single file.
User avatar
UnwiseOwl
Posts: 516
Joined: April 9th, 2010, 4:58 am

Re: Won't load first scenario

Post by UnwiseOwl »

Code: Select all

		[message]
			speaker=Gruk
			message= _ "Why would we do that?
		[/message]
There's no closing quote in this piece of text from "The Sourceress"...that may well be the issue.
Maintainer of the Imperial Era and the campaigns Dreams of Urduk, Epic of Vaniyera, Up from Slavery, Fall of Silvium, Alfhelm the Wise and Gali's Contract.
But perhaps 'maintainer' is too strong a word.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Won't load first scenario

Post by zookeeper »

UnwiseOwl wrote:

Code: Select all

		[message]
			speaker=Gruk
			message= _ "Why would we do that?
		[/message]
There's no closing quote in this piece of text from "The Sourceress"...that may well be the issue.
Yes, that's it. I had almost found it already, but you beat me to it. :mrgreen:

Anyway, there's plenty more to fix. The map include path for scenario 7 is wrong, there's two TELEPORT_UNIT calls with only "Livia" as the first argument (should be id=Livia), and both 6 and 7 try to pass ".siege_of_laurelmorogg" as a music track.
Krake
Posts: 16
Joined: December 29th, 2010, 9:42 pm

Re: Won't load first scenario

Post by Krake »

zookeeper wrote:
UnwiseOwl wrote:

Code: Select all

		[message]
			speaker=Gruk
			message= _ "Why would we do that?
		[/message]
There's no closing quote in this piece of text from "The Sourceress"...that may well be the issue.
Yes, that's it. I had almost found it already, but you beat me to it. :mrgreen:

Anyway, there's plenty more to fix. The map include path for scenario 7 is wrong, there's two TELEPORT_UNIT calls with only "Livia" as the first argument (should be id=Livia), and both 6 and 7 try to pass ".siege_of_laurelmorogg" as a music track.
Yeah I noticed. I had missed stuff like that before but this time I got no error messages except the game just quitted. Anyway it seems to work now. Big thanks to all of you, it was really helpful.
User avatar
UnwiseOwl
Posts: 516
Joined: April 9th, 2010, 4:58 am

Re: Won't load first scenario

Post by UnwiseOwl »

No worries. I only recognise the problem because I've made that mistake before.

A few times.
Maintainer of the Imperial Era and the campaigns Dreams of Urduk, Epic of Vaniyera, Up from Slavery, Fall of Silvium, Alfhelm the Wise and Gali's Contract.
But perhaps 'maintainer' is too strong a word.
Post Reply