How can I add ageless era units to Wesnoth campaigns?
Moderator: Forum Moderators
-
- Posts: 4
- Joined: January 25th, 2011, 5:33 am
How can I add ageless era units to Wesnoth campaigns?
I want to add the Lavinians to the Western Invasion and in general I just want to have different choices when playing the campaigns. I'm trying to add, change, or something that will let me recruit different units in campaigns but am unsure how to do so. Does someone know how to fix my problem?
Re: How can I add ageless era units to Wesnoth campaigns?
Include this in your _main.cfg:MiamiHeat87 wrote:I want to add the Lavinians to the Western Invasion and in general I just want to have different choices when playing the campaigns. I'm trying to add, change, or something that will let me recruit different units in campaigns but am unsure how to do so. Does someone know how to fix my problem?
#define GET_AE_UNITS RACE
{~add-ons/Ageless_Era/units/{RACE}}
#enddef
[+units]
{~add-ons/Ageless_Era/data/}
{~add-ons/Ageless_Era/units/}
[/units]
Formerly known as the creator of Era of Chaos and maintainer of The Aragwaithi and the Era of Myths.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How can I add ageless era units to Wesnoth campaigns?
you'd also have to add the unit ids the the recruit lists in all the scenarios of the campaign.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 4
- Joined: January 25th, 2011, 5:33 am
Re: How can I add ageless era units to Wesnoth campaigns?
Thanks for the input. Should I put the code at the end of the text file?
Yea, I was aware of the recruit list. I am unsure of the unit ID though. Is it just the name of the unit as it shows in-game?Pentarctagon wrote:you'd also have to add the unit ids the the recruit lists in all the scenarios of the campaign.
Re: How can I add ageless era units to Wesnoth campaigns?
You never use the macro. If it's just Lavinians you're after,LightFighter wrote:Include this in your _main.cfg:
Code: Select all
#define GET_AE_UNITS RACE {~add-ons/Ageless_Era/units/{RACE}} #enddef [+units] {~add-ons/Ageless_Era/data/} {~add-ons/Ageless_Era/units/} [/units]
Code: Select all
{~add-ons/Ageless_Era/units/lavinians}
[+units]
{~add-ons/Ageless_Era/data/}
{~add-ons/Ageless_Era/units/}
[/units]
* In my experience.
"What do you mean, "a dwarvish dragonguard with marksman is overpowered"?"
Story of a Drake Outcast | The Nonsense Era
Played HttT-Underground Channels? Thought it was rubbish? Help us develop it here!
Story of a Drake Outcast | The Nonsense Era
Played HttT-Underground Channels? Thought it was rubbish? Help us develop it here!
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How can I add ageless era units to Wesnoth campaigns?
its whatever comes after the id= key in the unit cfg file.MiamiHeat87 wrote:I am unsure of the unit ID though. Is it just the name of the unit as it shows in-game?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 4
- Joined: January 25th, 2011, 5:33 am
Re: How can I add ageless era units to Wesnoth campaigns?
Ok, i'm pretty sure there is a addon folder somewhere and I figure if I could find that I would be able to guess how this works. However, I couldn't find that folder or where these unit cfg files may be. I have seen the ones for all the regular factions, regular campaigns, and such but I see nothing on the ageless file. What am I missing here? If you can show me where those files are located, I can do the rest. Thanks!Pentarctagon wrote:its whatever comes after the id= key in the unit cfg file.MiamiHeat87 wrote:I am unsure of the unit ID though. Is it just the name of the unit as it shows in-game?
-
- Moderator Emeritus
- Posts: 2232
- Joined: March 26th, 2004, 10:58 pm
- Location: New York, New York
Re: How can I add ageless era units to Wesnoth campaigns?
If you're having difficulty finding your Wesnoth files, check out this Wiki page.
I also strongly recommend making a copy of any core Wesnoth files before editing them, just in case things go wrong.
I also strongly recommend making a copy of any core Wesnoth files before editing them, just in case things go wrong.
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry
-
- Posts: 4
- Joined: January 25th, 2011, 5:33 am
Re: How can I add ageless era units to Wesnoth campaigns?
Oh wow, thanks. I thought Documents only held save games. I think I can handle it from here now, thanks a lot!Sangel wrote:If you're having difficulty finding your Wesnoth files, check out this Wiki page.
I also strongly recommend making a copy of any core Wesnoth files before editing them, just in case things go wrong.
-
- Moderator Emeritus
- Posts: 2232
- Joined: March 26th, 2004, 10:58 pm
- Location: New York, New York
Re: How can I add ageless era units to Wesnoth campaigns?
No worries. Welcome to Wesnoth!
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry