Era error

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Luxian02
Posts: 6
Joined: May 11th, 2018, 3:54 pm

Era error

Post by Luxian02 »

So, i was trying to make an era that contains every unit including the special ones (default era + Konrad, lisar, elvish lord, fire dragon, yeti, etc.), yes, i tried both debug mode and the era maker add-on and it doesnt make me spawn special characters like Konrad so i wanted to make a new era. As you can tell this SHOULD be a remarkably easy operation since im not adding anything new and eras are among the easiest things to add.... exept i cant do it, apparently....
You see, in WML tutorial everything is explained: campaigns, creating new units, etc. but it doesnt really explain how to make era, so i basically tried doing some trial and error by watching other add-on files and i reached a pretty good point... then i got THIS stupid error

Code: Select all

The following add-on had errors and could not be loaded:
    C:\Users\Utente-XB\Documents\My Games\Wesnoth1.16/data/add-ons/DEFAULT +/_main.cfg

Please report this to the author or maintainer of this add-on.

Details:

    Macro/file './era' is missing
    at ~add-ons/DEFAULT\ +/_main.cfg:10



i have, honest to god, NO IDEA how to fix this thing
here is how my _main.cfg looks like:


Code: Select all

#textdomain wesnoth-DEFAULT+

[textdomain]
    name="wesnoth-DEFAULT+"
    path="data/add-ons/DEFAULT+/translations"
[/textdomain]

#ifdef MULTIPLAYER

{./era}

#endif

and this is how the eras folder looks like (its a place holder, i wanted to figure out the _main first):


Code: Select all

#textdomain wesnoth-Era_DEFAULT+

    [multiplayer_side]
        id=Random
        name= _"Random"
        image="units/random-dice.png"
        random_faction=yes
    [/multiplayer_side]

#define ERA_DEFAULT+
[era]

    {RANDOM_SIDE}
    {multiplayer/factions/loyalists-default.cfg}
    {multiplayer/factions/rebels-default.cfg}
    {multiplayer/factions/northerners-default.cfg}
    {multiplayer/factions/undead-default.cfg}
    {multiplayer/factions/knalgans-default.cfg}
    {multiplayer/factions/drakes-default.cfg}

	id=DEFAULT+
	name= _ "DEFAULT+"
	require_era=no
    description= _ "yes"

	[multiplayer_side]
		id=DEFAULT+
		name= _ "DEFAULT+"
		image="units/random-dice.png"
		type=random
		leader=Lord
	[/multiplayer_side]
[/era]



please help T-T
Last edited by Pentarctagon on December 7th, 2022, 9:29 pm, edited 1 time in total.
Reason: [code]
User avatar
Toranks
Translator
Posts: 168
Joined: October 21st, 2022, 8:59 pm
Location: Sevilla
Contact:

Re: Era error

Post by Toranks »

Do not use "+" on names or folders, delete it and try again.
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Era error

Post by Ravana »

Spaces are also forbidden. It also sounds like you may have folder named eras instead.
User avatar
Luxian02
Posts: 6
Joined: May 11th, 2018, 3:54 pm

Re: Era error

Post by Luxian02 »

i tried changing the name/removing spaces but that wasnt the problem, the error says /era is missing but i dont get what it wants me to do so im still stuck T-T
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2337
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: Era error

Post by Lord-Knightmare »

the error says /era is missing
It simply means that the loader cannot find the folder named "era". Try checking for typo. Is it "era" or "eras"?
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
User avatar
egallager
Posts: 568
Joined: November 19th, 2020, 7:27 pm
Location: Concord, New Hampshire
Contact:

Re: Era error

Post by egallager »

also try checking case sensitivity
User avatar
Luxian02
Posts: 6
Joined: May 11th, 2018, 3:54 pm

Re: Era error

Post by Luxian02 »

i did try changing the folder name, it doesnt give me any error but simply nothing appears, i checked the datas for the colosseum era and the folder is called "eras" and i named mine that too, with "era" it just ignores everything
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Era error

Post by Ravana »

Wesnoth does not care how your files and folders are named. The only file wesnoth reads from your addon is _main.cfg. Everything after that is up to you what to load. The example you looked includes files from eras folder, but in your files you put {./era} instead.
User avatar
Luxian02
Posts: 6
Joined: May 11th, 2018, 3:54 pm

Re: Era error

Post by Luxian02 »

so what do i do to fix it?
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Era error

Post by Ravana »

Use same name for the folder in both places.
Post Reply