Won't load first scenario
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.
Won't load first scenario
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?
Re: Won't load first scenario
Mismatch:
define="CAMPAIGN_THE_ORCISH_SPIDER"
#ifdef CAMPAIGN_TOS
Re: Won't load first scenario
Thanks but it still doesn't work.
Re: Won't load first scenario
Try changing
the-recruits-part1
to
the_recruits_part1
in both scenario and main.
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
Developer of: Trapped, Five Fates, Strange Legacy, Epical, UR Epic Era
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses, Dwarf Dwarfson Dwarvenminer
Re: Won't load first scenario
That's not the problem. I've already tried changing the name and it worked fine before with the current name.
Re: Won't load first scenario
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.
Re: Won't load first scenario
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
Re: Won't load first scenario
What does that mean? There's obviously a lot of ways how something might "not work".Krake wrote:Thanks but it still doesn't 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).
Re: Won't load first scenario
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:...".
Re: Won't load first scenario
After taking a closer look, there appears to be no such cyclic includes.
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.
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.
Re: Won't load first scenario
Code: Select all
[message]
speaker=Gruk
message= _ "Why would we do that?
[/message]
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.
But perhaps 'maintainer' is too strong a word.
Re: Won't load first scenario
Yes, that's it. I had almost found it already, but you beat me to it.UnwiseOwl wrote:There's no closing quote in this piece of text from "The Sourceress"...that may well be the issue.Code: Select all
[message] speaker=Gruk message= _ "Why would we do that? [/message]
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.
Re: Won't load first scenario
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.zookeeper wrote:Yes, that's it. I had almost found it already, but you beat me to it.UnwiseOwl wrote:There's no closing quote in this piece of text from "The Sourceress"...that may well be the issue.Code: Select all
[message] speaker=Gruk message= _ "Why would we do that? [/message]
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.
Re: Won't load first scenario
No worries. I only recognise the problem because I've made that mistake before.
A few times.
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.
But perhaps 'maintainer' is too strong a word.