A problem making a faction

It's not easy creating an entire faction or era. Post your work and collaborate in this forum.

Moderator: Forum Moderators

Post Reply
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

A problem making a faction

Post by blatham90 »

Hi guys,
I'm trying to make a faction but for some reason it says that one of my units in not recognized. Anybody know how to fix this?
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: A problem making a faction

Post by Turuk »

Is your _main.cfg set up to recognize the units correctly? Are you using [unit_type] and not [unit]?
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

Re: A problem making a faction

Post by blatham90 »

I'll have to check that, I'm not on my comp right now, just some other one. I think I used [unit] though.
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: A problem making a faction

Post by Turuk »

Ok, I would look through that first. Some syntax has changed in 1.6.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

Re: A problem making a faction

Post by blatham90 »

Oh really? I'll have to look into that, thanks!
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

Re: A problem making a faction

Post by blatham90 »

I still can't get it to work...

I've got the era set up as well as one faction. It does not seem to recognize my units that I set up to be leaders.
Any help?
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: A problem making a faction

Post by Gambit »

Some code would be nice. It's hard fix a car without being able to see it.
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

Re: A problem making a faction

Post by blatham90 »

Right... man I'm dumb.

#textdomain wesnoth-multiplayer
[multiplayer_side]
id=Greenblades Host
name= _"Greenblade's Host"
image="units/greenblades-host/the-maw.png"
{MAGENTA_IS_THE_TEAM_COLOR}
type=The Maw
leader=The Maw, The Anvil
random_leader=The Maw, The Anvil
recruit=Medium Infantry, Heavy_Infantry
terrain_liked=Gg, Ww, Wo
[ai]
recruitment_pattern=fighter,fighter,fighter,archer,mixed fighter,scout
[team_formula]
rulebase="{ai/formula/recruitment.fai}"
[/team_formula]
[/ai]
[/multiplayer_side]



#textdomain wesnoth-units
[unit_type]
id=The Maw
name= _"The Maw"
race=human
image="units/greenblades-host/the-maw.png"
{MAGENTA_IS_THE_TEAM_COLOR}
hitpoints=60
movement_type=smallfoot
movement=6
experience=65
level=2
alignment=neutral
advances_to=null
cost=30
usage=fighter


#textdomain wesnoth-units
[unit_type]
id=The Anvil
name= _ "The Anvil"
race=human
image="units/greenblades-host/the-anvil.png"
{MAGENTA_IS_THE_TEAM_COLOR}
hitpoints=74
movement_type=smallfoot
movement=6
experience=150
level=2
alignment=neutral
advances_to=null
{AMLA_DEFAULT}
cost=43
usage=fighter


It does not recognize either of the leaders.
User avatar
Akkarin345
Posts: 429
Joined: January 19th, 2008, 6:16 pm
Location: England

Re: A problem making a faction

Post by Akkarin345 »

Erm i'm not very good at WML .( helps if you put it in the code option on the forum for people to read )

But, i think you need to close the unit description with [/unit_type]
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: A problem making a faction

Post by Gambit »

for the main addon cfg do you have it set to recognize these units?

and yeah the [unit_type] thing.

Do some reading of nesting tags.
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

Re: A problem making a faction

Post by blatham90 »

That isn't all the code, just the important parts. If I put it all it would be REALLY long.
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: A problem making a faction

Post by Gambit »

so then at the very end of the unit's cfg files you have clear at the bottom "[/unit_type]"?
blatham90
Posts: 19
Joined: April 14th, 2009, 1:29 pm

Re: A problem making a faction

Post by blatham90 »

I got it to work, finally. I had to fix something in the unit.cfg file.
Post Reply