Trouble Porting form 1.12 to 1.14

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
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Trouble Porting form 1.12 to 1.14

Post by LordAwsomeness »

Hi I am currently attempting to port some scenarios over from 1.12 to 1.14 and I have run into an issue in multiplayer maps where ai defined sides recruit lists are being replaced by multiplayer faction sides. The predefined leader from the side still remains, however the recruit list is completely replaced I believe (at least from using the inspect command it shows it has been). Below is one of the sides that worked in 1.12 but is having the swap in 1.14.

Code: Select all

[side]
	name= _ "Placeholder Name"
	unrenameable=yes
	type=General
	id=Placeholdername
	canrecruit=yes
	fog=no
	shroud=no
	allow_player=no
	gold=100
	hidden=yes
	income=24
	share_maps=no
	share_view=no
	side=4
	team_name="good"
	user_team_name="Humans"
	recruit=Bowman,Cavalryman,Fencer,Heavy Infantryman,Horseman,Mage,Spearman
	{FLAG_VARIANT loyalist}
	profile=portraits/humans/transparent/swordsman-3.png

{UNIT_SPAWN_GUARD "Pikeman" 10 36 4}
{UNIT_SPAWN_GUARD "Pikeman" 9 38 4}
{UNIT_SPAWN_GUARD "Pikeman" 5 40 4}
{UNIT_SPAWN_GUARD "Pikeman" 3 40 4}


[ai]
[avoid]
x=22,23,24,25,26,27,28,29,30,31,32,33,34,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,60,61,61,62,62,63,64,70,71,72,73,74,74,75,75,75,76,76,77,77,78,78,79,79,80,80,80,81,81,82,82,83,83,84,84,85,85,86,86,87,88,89,90
y=32-34,32-37,31-39,32-41,31-42,31-43,30-45,30-46,29-47,29-48,28-48,28-49,27-43,45-50,27-51,26-51,26-52,25-52,25-52,24-51,24-51,24-50,21-50,20-49,20-48,20-47,21-47,24-46,25-46,25-44,25-44,25-43,25-43,25-41,26-41,25-40,25-40,24-39,25-39,24-29,31-38,25-29,33-38,25-28,32-36,33-36,33-35,29-31,28-32,27-32,27-33,9-11,27-34,2-7,9-12,28-35,1-12,28-35,1-12,29-37,0-12,29-37,1-12,30-38,1-3,5-12,30-37,6-12,31-40,6-12,31-40,6-12,32-41,6-11,31-41,7-11,31-44,8-10,29-48,28-49,27-49,27-49,27-48
[/avoid]

[/ai]

	[goal]
		name=target
		[criteria]
			side=5
		[/criteria]
		value=50
	[/goal]


	[village]
		x=2
		y=41
	[/village]
	[village]
		x=3
		y=38
	[/village]
	[village]
		x=10
		y=50
	[/village]
	[village]
		x=12
		y=42
	[/village]
	[village]
		x=16
		y=33
	[/village]
	[village]
		x=16
		y=37
	[/village]
	[village]
		x=18
		y=42
	[/village]
	[village]
		x=19
		y=40
	[/village]
[/side]
Last edited by Inky on May 2nd, 2018, 8:50 pm, edited 1 time in total.
Reason: replaced [c] with [code]
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Trouble Porting form 1.12 to 1.14

Post by LordAwsomeness »

this is a picture from the in-game inspection tool. The inspection tool shows that the side has its faction list overwritten by the factions in the era used.

- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: Trouble Porting form 1.12 to 1.14

Post by Choicerer »

What scenarios?
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Trouble Porting form 1.12 to 1.14

Post by LordAwsomeness »

Custom one I had left in the dust over a year ago. Never uploaded it. It was meant to be a base for creating a buncha macros for future scenarios. I have just started the process of developing the map and lore for my new project, but I had to test the macros in 1.14 to see that they worked without any bugs first.
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: Trouble Porting form 1.12 to 1.14

Post by Choicerer »

Can you send it? I can take a look.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Trouble Porting form 1.12 to 1.14

Post by LordAwsomeness »

Here the scenario is attached below.
Attachments
Valerian_Plains.cfg
(12.28 KiB) Downloaded 278 times
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Trouble Porting form 1.12 to 1.14

Post by LordAwsomeness »

Okay I discovered a workaround! In 1.13 they added a new feature that can be placed under the [side]

faction_lock=yes
faction_from_recruit=no

These solved my issue!
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: Trouble Porting form 1.12 to 1.14

Post by Choicerer »

Glad to hear it!
Post Reply