Era error
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.
Era error
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
i have, honest to god, NO IDEA how to fix this thing
here is how my _main.cfg looks like:
and this is how the eras folder looks like (its a place holder, i wanted to figure out the _main first):
please help T-T
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]
Reason: [code]
Re: Era error
Do not use "+" on names or folders, delete it and try again.
Re: Era error
Spaces are also forbidden. It also sounds like you may have folder named eras instead.
Re: Era error
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
- Lord-Knightmare
- Discord Moderator
- Posts: 2359
- 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
It simply means that the loader cannot find the folder named "era". Try checking for typo. Is it "era" or "eras"?the error says /era is missing
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Re: Era error
also try checking case sensitivity
Wesnoth-related GitHub repos:
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
Re: Era error
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
Re: Era error
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.
Re: Era error
Use same name for the folder in both places.