Instant loss on entering 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
Rowanthepreacher
Posts: 126
Joined: March 3rd, 2011, 7:14 pm

Instant loss on entering scenario.

Post by Rowanthepreacher »

Hello there. I'm wondering if any of you kind and particularly virile WML types could solve the problem I've been having. Upon loading a particular scenario, the game tells me that I've instantly lost.

I'll put each of the three potentially important files in a spoiler for you kind chaps and chapesses.

The Port Meiran scenario
Spoiler:
Here's the World scenario, the important bit is (obviously) the Port Meiran section
Spoiler:
and attached is the Port Meiran map.

Thanks in advance for the slew of helpful answers.
Attachments
Port_Meiran.map
(26.29 KiB) Downloaded 193 times
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Instant loss on entering scenario.

Post by zookeeper »

Side 1 has no leader, and therefore you lose immediately. Add canrecruit=yes to the [side] tag.
Rowanthepreacher
Posts: 126
Joined: March 3rd, 2011, 7:14 pm

Re: Instant loss on entering scenario.

Post by Rowanthepreacher »

Heh. Cheers, Zookeeper. I wouldn't've noticed that in a million years.

EDIT: But it's not the answer I'm looking for. It's still insta-loss on load.
User avatar
Kapoue_II
Posts: 203
Joined: October 11th, 2010, 9:41 am

Re: Instant loss on entering scenario.

Post by Kapoue_II »

We can't help much without knowing whats in that {HERO_DEATHS} macro-as I didn't see it in anything you posted.
Rowanthepreacher
Posts: 126
Joined: March 3rd, 2011, 7:14 pm

Re: Instant loss on entering scenario.

Post by Rowanthepreacher »

Ah. sorry. I'm doing this on behalf of Melinath. I didn't realise that HERO_DEATHS wasn't a standard macro. Uh... where would I look for it.
User avatar
Mountain_King
Translator
Posts: 569
Joined: May 31st, 2010, 7:54 pm

Re: Instant loss on entering scenario.

Post by Mountain_King »

In one of the campaign folders, most likely labeled "macros" or "utils."
Projects: Ice Age Fun, Japhel's Journey (same link), Shameless Crossover Excuse (Maintainer), and Age of Dinosaurs!
Is cothabhálach an aistriúcháin Gaeilge mé.
EXTERMINATE!!!!
Rowanthepreacher
Posts: 126
Joined: March 3rd, 2011, 7:14 pm

Re: Instant loss on entering scenario.

Post by Rowanthepreacher »

Nevermind. Melinath has already fixed it. I forgot to add player start positions.

Now, here's another one, of the exact opposite. The world map gives you a victory as soon as you end turn 1. What's causing this?
User avatar
Kapoue_II
Posts: 203
Joined: October 11th, 2010, 9:41 am

Re: Instant loss on entering scenario.

Post by Kapoue_II »

Well, having some of those custom macro's (eg/ the {CONTINUE ......} one) would be nice.....
Rowanthepreacher
Posts: 126
Joined: March 3rd, 2011, 7:14 pm

Re: Instant loss on entering scenario.

Post by Rowanthepreacher »

Damn you, Melinath!

*scurries away to find macros*






*scurries back with macro in hand. Well... buffer.*

#define CONTINUE NEXT_SCENARIO
[endlevel]
result=victory
next_scenario={NEXT_SCENARIO}
save=yes
carryover_report=no
carryover_percentage=100
linger_mode=no
bonus=no
[/endlevel]
#enddef

Hmmmm... I'll have a look at all of the instances of "continue". It's possible that there's a continue without a map specified, which might cause a straight win. I don't know why it would kick in at the end of turn, rather than at the moment, like normal.
User avatar
Mountain_King
Translator
Posts: 569
Joined: May 31st, 2010, 7:54 pm

Re: Instant loss on entering scenario.

Post by Mountain_King »

I have experienced similar errors before, mostly related to the non-existence of an enemy leader. Is there a

Code: Select all

victory_when_enemies_defeated=no
somewhere in the scenario file? If not, try adding one and seeing what happens.
Projects: Ice Age Fun, Japhel's Journey (same link), Shameless Crossover Excuse (Maintainer), and Age of Dinosaurs!
Is cothabhálach an aistriúcháin Gaeilge mé.
EXTERMINATE!!!!
Rowanthepreacher
Posts: 126
Joined: March 3rd, 2011, 7:14 pm

Re: Instant loss on entering scenario.

Post by Rowanthepreacher »

My firstborn to you, sir!
Post Reply