Help me, problem with scenario

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderator: Forum Moderators

Post Reply
User avatar
Tomsik
Posts: 1401
Joined: February 7th, 2005, 7:04 am
Location: Poland

Help me, problem with scenario

Post by Tomsik »

I try to make i MP scenario (my 2th),
i try run this scenario and showing me comunicate as load game

Code:

Code: Select all

[multiplayer]
	id=war_war_war_war_x
	name= _ "The Warxax"
	map_data="{maps/multiplayer/war}"
	description= _ ""
	turns=90

	{DAWN}
	{MORNING}
	{AFTERNOON}
	{DUSK}
	{FIRST_WATCH}
	{SECOND_WATCH}

	[multiplayer_side]
	side=1
	team_name=Big_1
	canrecruit=1
	controller=human
	[/multiplayer_side]
	[multiplayer_side]
	side=2
	team_name=Big_2
	canrecruit=1
	controller=human
	[/multiplayer_side]
	[multiplayer_side]
	side=3
	team_name=Big_3
	canrecruit=1
	controller=human
	[/multiplayer_side]
	[multiplayer_side]
	side=4
	team_name=Big_4
	canrecruit=1
	controller=human
	[/multiplayer_side]
	
	[event]
	name=prestart
	[set_variable]
	name=kills1
	value=0
	[/set_variable]
	[/event]
	
	[event]
	name=die
	[filter]
	side=2
	[/filter]
	[set_variable]
	name=kills1
	add=1
	[/set_variable]
	[print]
	text=$kills1
	size=24
	red=255
	[/print]

	[/event]

[/multiplayer]
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

You have blended the syntax for [multiplayer] and [scenario].

[multiplayer] is used to define an era. [multiplayer_side] is used in this tag to say what factions each player can choose from.

What you appear to have written is a scenario. [scenario] has most of the tags you included - the map, time of day, and the [event] tags.

Do you intend for this map to be used with existing factions? If so, you should be able to change [multiplayer_side] to [side] and [multiplayer] to [scenario] and it might work. The map should also work without side definitions altogether.

EDIT: I guess I'll be explicit.

Code: Select all

[scenario] 
   id=war_war_war_war_x 
   name= _ "The Warxax" 
   map_data="{maps/multiplayer/war}" 
   description= _ "A big war.  Cant you tell?" 
   turns=90 

   {DAWN} 
   {MORNING} 
   {AFTERNOON} 
   {DUSK} 
   {FIRST_WATCH} 
   {SECOND_WATCH} 

   [side] 
   side=1 
   team_name=Big_1 
   canrecruit=1 
   controller=human 
   [/side] 
   [side] 
   side=2 
   team_name=Big_2 
   canrecruit=1 
   controller=human 
   [/side] 
   [side] 
   side=3 
   team_name=Big_3 
   canrecruit=1 
   controller=human 
   [/side] 
   [side] 
   side=4 
   team_name=Big_4 
   canrecruit=1 
   controller=human 
   [/side] 
    
   [event] 
   name=prestart 
   [set_variable] 
   name=kills1 
   value=0 
   [/set_variable] 
   [/event] 
    
   [event] 
   name=die 
   [filter] 
   side=2 
   [/filter] 
   [set_variable] 
   name=kills1 
   add=1 
   [/set_variable] 
   [print] 
   text=$kills1 
   size=24 
   red=255 
   [/print] 

   [/event] 

[/scenario]
Hope springs eternal.
Wesnoth acronym guide.
User avatar
Tomsik
Posts: 1401
Joined: February 7th, 2005, 7:04 am
Location: Poland

Post by Tomsik »

now game dont see it, if i change "[scenario]" tag to "[multiplayer]" tag is bug as before, its my 2th MP scenario, in first i using '[multiplayer]" tag, events, variables,"[multiplayer_side]" tag and it work :?
User avatar
Elvish_Pillager
Posts: 8137
Joined: May 28th, 2004, 10:21 am
Location: Everywhere you think, nowhere you can possibly imagine.
Contact:

Post by Elvish_Pillager »

tomsik wrote:now game dont see it, if i change "[scenario]" tag to "[multiplayer]" tag is bug as before, its my 2th MP scenario, in first i using '[multiplayer]" tag, events, variables,"[multiplayer_side]" tag and it work :?
Don't use [multiplayer_side]. Do use [multiplayer].
It's all fun and games until someone loses a lawsuit. Oh, and by the way, sending me private messages won't work. :/ If you must contact me, there's an e-mail address listed on the website in my profile.
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

sorry for the bad info
Hope springs eternal.
Wesnoth acronym guide.
User avatar
Tomsik
Posts: 1401
Joined: February 7th, 2005, 7:04 am
Location: Poland

Post by Tomsik »

stiupid map editor :evil: , i replace start positions and now work. :)
Post Reply