Modular Factions/Eras (UMC)

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
User avatar
Lizard
Posts: 355
Joined: January 19th, 2008, 8:20 am
Location: Hiding in a swamp (gtm +1; DST)

Re: Modular Factions/Eras (UMC)

Post by Lizard »

melinath wrote:So it wouldn't be dependent on any faction or era, but if they existed, you would be able to use them.
I don't think this works though, unless you can include the cfg files and just have nothing happen if some of them don't exist.
You can. It is especially nice if there is a detect.cfg within each era.

Code: Select all

#textdomain wesnoth-Era_of_Strife

#ifndef ERA_OF_STRIFE_INSTALLED
#define ERA_OF_STRIFE_INSTALLED
#enddef

# wmlindent: start ignoring
#define ERA_OF_STRIFE_VERSION
0.23+svn#enddef
#endif
# wmlindent: stop ignoring
You can then add factions to your era if their era exists (ee+eos+eom+d)
Spoiler:
That code won't create any era if one addon is missing, but I'm sure you can tweak it.
~ I'll heal you by 4 hp if you post next to me ~
Have a look at the Era of Strife, featuring Eltireans, Eventide, Minotaurs, Saurians and Triththa
Post Reply