How can I add ageless era units to Wesnoth campaigns?

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
MiamiHeat87
Posts: 4
Joined: January 25th, 2011, 5:33 am

How can I add ageless era units to Wesnoth campaigns?

Post by MiamiHeat87 »

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?
User avatar
Astoria
Inactive Developer
Posts: 1007
Joined: March 20th, 2008, 5:54 pm
Location: Netherlands

Re: How can I add ageless era units to Wesnoth campaigns?

Post by Astoria »

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?
Include this in your _main.cfg:

#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.
User avatar
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?

Post by Pentarctagon »

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
MiamiHeat87
Posts: 4
Joined: January 25th, 2011, 5:33 am

Re: How can I add ageless era units to Wesnoth campaigns?

Post by MiamiHeat87 »

Thanks for the input. Should I put the code at the end of the text file?
Pentarctagon wrote:you'd also have to add the unit ids the the recruit lists in all the scenarios of the campaign.
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?
User avatar
Reepurr
Posts: 1088
Joined: August 29th, 2010, 5:38 pm

Re: How can I add ageless era units to Wesnoth campaigns?

Post by Reepurr »

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]
You never use the macro. If it's just Lavinians you're after,

Code: Select all

{~add-ons/Ageless_Era/units/lavinians}
[+units]
    {~add-ons/Ageless_Era/data/}
    {~add-ons/Ageless_Era/units/}
[/units]
or whatever the ae units folder for Lavinians is called. Though it would be much better just to get Imperial Era and link to that, which is a smaller download and most people who want to play a Lavinian campaign will have it.*

* 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!
User avatar
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?

Post by Pentarctagon »

MiamiHeat87 wrote:I am unsure of the unit ID though. Is it just the name of the unit as it shows in-game?
its whatever comes after the id= key in the unit cfg file.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
MiamiHeat87
Posts: 4
Joined: January 25th, 2011, 5:33 am

Re: How can I add ageless era units to Wesnoth campaigns?

Post by MiamiHeat87 »

Pentarctagon wrote:
MiamiHeat87 wrote:I am unsure of the unit ID though. Is it just the name of the unit as it shows in-game?
its whatever comes after the id= key in the unit cfg file.
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!
Sangel
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?

Post by Sangel »

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.
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry
MiamiHeat87
Posts: 4
Joined: January 25th, 2011, 5:33 am

Re: How can I add ageless era units to Wesnoth campaigns?

Post by MiamiHeat87 »

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.
Oh wow, thanks. I thought Documents only held save games. I think I can handle it from here now, thanks a lot!
Sangel
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?

Post by Sangel »

No worries. Welcome to Wesnoth!
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry
Post Reply