A problem making a faction
Moderator: Forum Moderators
A problem making a faction
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?
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?
Re: A problem making a faction
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
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Re: A problem making a faction
I'll have to check that, I'm not on my comp right now, just some other one. I think I used [unit] though.
Re: A problem making a faction
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
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Re: A problem making a faction
Oh really? I'll have to look into that, thanks!
Re: A problem making a faction
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?
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?
Re: A problem making a faction
Some code would be nice. It's hard fix a car without being able to see it.
Re: A problem making a faction
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.
#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.
- Akkarin345
- Posts: 429
- Joined: January 19th, 2008, 6:16 pm
- Location: England
Re: A problem making a faction
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]
But, i think you need to close the unit description with [/unit_type]
Re: A problem making a faction
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.
and yeah the [unit_type] thing.
Do some reading of nesting tags.
Re: A problem making a faction
That isn't all the code, just the important parts. If I put it all it would be REALLY long.
Re: A problem making a faction
so then at the very end of the unit's cfg files you have clear at the bottom "[/unit_type]"?
Re: A problem making a faction
I got it to work, finally. I had to fix something in the unit.cfg file.