Bug: Recalling enemy units.

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
Circon
Posts: 1200
Joined: November 17th, 2003, 4:26 am
Location: Right behind Gwiti, coding

Bug: Recalling enemy units.

Post by Circon »

I spotted this in the Drake Campaign. Elvish Pillager spotted it in the mini-campaign. In several scenarios, enemy units appear on your recall list!

Code: Select all

	[side]
	type=Knight
		description=Arne
#ifdef EASY
		gold=140
#endif
#ifdef HARD
		gold=110
#endif
		side=1
		canrecruit=1
		controller=human
		recruit=Horseman
		team_name=good
	[/side]
	
	[side]
		type=Elvish Outrider
		description=Nil-Galion
		side=2
		canrecruit=1
		recruit=Elvish Scout
		income=-8
#ifdef HARD
		gold=60
#endif
#ifdef EASY
		gold=25
#endif
		team_name=elves
		recruitment_pattern=scout
#define ENEMY_ELF T X Y
[unit]
	side=2
	type={T}
	x={X}
	Y={Y}
[/unit]
#enddef
	{ENEMY_ELF (Elvish Scout) 12 21}
	{ENEMY_ELF (Elvish Scout) 5 16}
	{ENEMY_ELF (Elvish Scout) 7 53}
	{ENEMY_ELF (Elvish Scout) 6 29}
	{ENEMY_ELF (Elvish Fighter) 3 43}
	{ENEMY_ELF (Elvish Scout) 16 40}
		[unit]
			side=2
			type=Elvish Scout
			x=12
			y=21
		[/unit]
		[unit]
			side=2
			type=Elvish Scout
			x=5
			y=16
		[/unit]
		[unit]
			side=2
			type=Elvish Scout
			x=7
			y=53
		[/unit]
		[unit]
			side=2
			type=Elvish Rider
			x=6
			y=29
		[/unit]
		[unit]
			side=2
			type=Elvish Fighter
			x=3
			y=43
		[/unit]
		[unit]
			side=2
			type=Elvish Scout
			x=16
			y=40
		[/unit]
#ifdef HARD
		[unit]
			side=2
			type=Elvish Scout
			x=4
			y=28
		[/unit]
		[unit]
			side=2
			type=Elvish Scout
			x=9
			y=36
		[/unit]
		[unit]
			side=2
			type=Elvish Hero
			x=12
			y=53
		[/unit]
		[unit]
			side=2
			type=Elvish Rider
			x=16
			y=32
		[/unit]
#endif
	[/side]
The enemy units are on the enemy side. I've tried using the macros, and I've tried using the tags. If I use the one, they appear on my list, if I use both, they appear on my list and in the map.

What gives??
Stosswelle
Posts: 166
Joined: June 4th, 2004, 8:18 pm
Location: Atlanta, GA
Contact:

Post by Stosswelle »

ummm technical suppport board?
Hard/Melodic Trance, other Electronica:
http://www.musicv2.com/artist/stosswelle
Play Blood Series Maps!
--- ~WAY~ We Are Yousnoth---
<Li`sar> he likes it when i stand up with the remote held high "I am the princess"
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Can someone please provide a precise sequence of steps to consistently reproduce this bug?

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
MadMax
Posts: 1792
Joined: June 6th, 2004, 3:29 pm
Location: Weldyn, Wesnoth

Post by MadMax »

Play the Drake Campaign until level 7, when you can recall an enemy sea serpent. The bug is obviously in level 6, as that is the only place sea serpents show up. I don't know about the Mini Campaign.
"ILLEGITIMIS NON CARBORUNDUM"

Father of Flight to Freedom
http://www.wesnoth.org/wiki/FlightToFreedom
MadMax
Posts: 1792
Joined: June 6th, 2004, 3:29 pm
Location: Weldyn, Wesnoth

Post by MadMax »

Code: Select all

#ifdef HARD
      gold=60
#endif
#ifdef EASY
      gold=25
#endif
A bug. What if the person is playing on medium? It should be:

Code: Select all

#ifdef EASY
      gold=25
#else
      gold=60
#endif
"ILLEGITIMIS NON CARBORUNDUM"

Father of Flight to Freedom
http://www.wesnoth.org/wiki/FlightToFreedom
Circon
Posts: 1200
Joined: November 17th, 2003, 4:26 am
Location: Right behind Gwiti, coding

Post by Circon »

There is no medium. I wanted to shorten the tags down. Not a bug. I was thinking that #else might try to set a gold amount for medium level, thus causing a bug.
Post Reply