Wesnoth's Unit Database

Discussion of all aspects of the website, wiki, and forums, including support requests and new ideas.

Moderators: Forum Moderators, Developers

Wesnoth's Unit Database

Postby Pentarctagon » June 4th, 2017, 3:42 pm

The Wesnoth Units Database, accessible at units.wesnoth.org, provides a way to view all information, such as name, advancement path, terrain movement costs, etc, about mainline and add-on units via a browser.

These web pages are automatically generated via a script that runs weekly. If for some reason units.wesnoth.org is inaccessible, or any of the unit information has not been updated in over a week, or if you have any questions in general about the units database, please post those here.

However, before posting a question about why your add-on is not being displayed correctly, please first check if Wesnoth is reporting any errors in the error log.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2922
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Wesnoth's Unit Database

Postby chol » June 5th, 2017, 10:28 pm

My faction is not shown on the Wesnoth Units database webpage (trunk). I got this error:

The synoptic web page showing errors related to UMC factions and eras gives this WML parser: internal error (1 lines)

Klicking the links got me -> 'eras'

What does that mean? How can I repair this?
I checked: there is no string 'eras' (without ') in my UMC faction .

Is something wrong with my era definition?

Help would be much appreciated! Thank you!
chol
 
Posts: 8
Joined: September 9th, 2015, 11:19 am

Re: Wesnoth's Unit Database

Postby Pentarctagon » June 6th, 2017, 12:13 am

1. Please do not use colors when posting.
2. Please do not post the same thing in multiple places. As such, I have deleted your thread in the WML Workshop, since that is not the place for questions about why units.wesnoth.org is displaying an error.

As far as your problem, I can't say for certain, but I would guess that it has to do with me getting the following text written to the error log when I load Wesnoth after installing Chalifa:
Code: Select all
20170605 19:06:35 warning general: no location found for '~add-ons/Desert_Map-Pack/translations', skipping textdomain
Checking lua scripts... ok
20170605 19:06:37 warning preprocessor: Redefining macro EIv_UNITSTR without explicit #undef at ~add-ons/Chalifa/units/chalifa/f0_Fellah.cfg:14
    included from ~add-ons/Chalifa/units/chalifa.cfg:7
    included from ~add-ons/Chalifa/campaign.cfg:27
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/units/chalifa/f0_Fellah.cfg:4
    included from ~add-ons/Chalifa/units/chalifa.cfg:7
    included from ~add-ons/Chalifa/campaign.cfg:27
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro EIv_PROFILESTR without explicit #undef at ~add-ons/Chalifa/units/chalifa/f0_Fellah.cfg:16
    included from ~add-ons/Chalifa/units/chalifa.cfg:7
    included from ~add-ons/Chalifa/campaign.cfg:27
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/units/chalifa/f0_Fellah.cfg:6
    included from ~add-ons/Chalifa/units/chalifa.cfg:7
    included from ~add-ons/Chalifa/campaign.cfg:27
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro EIv_PORTRAITSTR without explicit #undef at ~add-ons/Chalifa/units/chalifa/f0_Fellah.cfg:18
    included from ~add-ons/Chalifa/units/chalifa.cfg:7
    included from ~add-ons/Chalifa/campaign.cfg:27
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/units/chalifa/f0_Fellah.cfg:8
    included from ~add-ons/Chalifa/units/chalifa.cfg:7
    included from ~add-ons/Chalifa/campaign.cfg:27
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_SWORD without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:18
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:18
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_AXE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:20
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:20
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_CROSSBOW without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:22
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:22
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_BERSERK without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:24
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:24
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_THORNS without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:26
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:26
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_STAFF without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:28
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:28
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_ENTANGLE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:30
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:30
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_ENSNARE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:32
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:32
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_FAERIE_FIRE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:34
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:34
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_SCIMITAR without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:36
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:36
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_FIRE_BREATH without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:38
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:38
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_FIST without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:40
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:40
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_WATER_SPRAY without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:42
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:42
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_DAGGER without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:44
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_KNIFE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:46
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:46
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_FANGS without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:48
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:48
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_BOW without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:50
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:50
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_CLAWS without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:52
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:52
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_CRUSH without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:54
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:54
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_MORNING_STAR without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:56
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:56
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_FIREBALL without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:58
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:58
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_BATTLE_AXE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:60
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:60
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_TENTACLE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:62
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:62
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_PINCERS without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:64
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:64
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_WEB without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:66
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:66
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_TAIL without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:68
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:68
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_PLAGUE_STAFF without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:70
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:70
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_CLUB without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:72
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:72
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_JAVELIN without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:74
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:74
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_SPEAR without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:76
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:76
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_TOUCH without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:78
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:78
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_LIGHTNING without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:80
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:80
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_LIGHTBEAM without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:82
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:82
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_WAIL without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:84
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:84
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro STR_LANCE without explicit #undef at ~add-ons/Ivrim_Nation/macros/mainline-strings.cfg:86
    included from ~add-ons/Ivrim_Nation/campaign.cfg:44
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Chalifa/macros/mainline-strings.cfg:86
    included from ~add-ons/Chalifa/campaign.cfg:24
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro EIv_UNITSTR without explicit #undef at ~add-ons/Ivrim_Nation/units/leviim/mf1d_IVNA_levite_merkava_i.cfg:4
    included from ~add-ons/Ivrim_Nation/units/leviim.cfg:187
    included from ~add-ons/Ivrim_Nation/campaign.cfg:47
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
previously defined at ~add-ons/Ivrim_Nation/units/leviim/h4a_IVNA_navi.cfg:4
    included from ~add-ons/Ivrim_Nation/units/leviim.cfg:187
    included from ~add-ons/Ivrim_Nation/campaign.cfg:47
    included from ~add-ons/Chalifa/campaign.cfg:30
    included from ~add-ons/Chalifa/_main.cfg:26
20170605 19:06:37 warning preprocessor: Redefining macro EIv_UNITSTR without explicit #undef at ~add-ons/Ivrim_Nation/units/leviim/mf1d_IVNA_levite_merkava_i.cfg:4
    included from ~add-ons/Ivrim_Nation/units/leviim.cfg:187
    included from ~add-ons/Ivrim_Nation/campaign.cfg:47
    included from ~add-ons/Ivrim_Nation/_main.cfg:37
previously defined at ~add-ons/Ivrim_Nation/units/leviim/h4a_IVNA_navi.cfg:4
    included from ~add-ons/Ivrim_Nation/units/leviim.cfg:187
    included from ~add-ons/Ivrim_Nation/campaign.cfg:47
    included from ~add-ons/Ivrim_Nation/_main.cfg:37
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_chol_bird encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_chol_bird_experienced encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_darkchol_bird_experienced encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_chol_bird_elder encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_darkchol_bird_elder encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_clod_golem encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_loam_golem encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_clay_golem encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_glow_golem encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_ivri encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_turai encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_segen_mishne encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_operative encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_turai_rishon encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_segen encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_spy encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_nacah_magen encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_nacah_kliy encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_rav_turai encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_segen_rishon encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_agent encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_nacah_magen_rav encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_nacah_kliy_rav encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_seren encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_spy_master encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_field_paramedic encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_field_medic encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_field_surgeon encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_abir encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_abir_rav encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_hasmonee_abir encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_abir_gadol encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_abir_mattityahu encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_ivri_rav encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_samal encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_rav_seren encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_samal_rishon encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_sgan_aluf encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_cornet encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_samal_bakhir encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_aluf encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_field_usher encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_rav_aluf encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_rav encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_posek encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_gaon encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_navi encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_merkava_i encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_merkava_ii encountered.
20170605 19:06:38 error config: Multiple [unit_type]s with id=IVNA_levite_merkava_iii encountered.


If you have any additional questions about the warnings/errors that Wesnoth is displaying in the log, then the WML Workshop would be the place to ask about them.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2922
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Wesnoth's Unit Database

Postby chol » June 6th, 2017, 1:11 pm

Thank you Pentarctagon! That was most helpful, indeed. Not sure where my log is, I will ask in the WML section of the forum, now. :)
chol
 
Posts: 8
Joined: September 9th, 2015, 11:19 am

Re: Wesnoth's Unit Database

Postby James_The_Invisible » June 8th, 2017, 9:44 am

(I hope that this is a good place to post.)
Some time ago, I have noticed that units.wesnoth.org shows units just for first 2 chapters of my campaign. When processing the third one, it spawns this:
Code: Select all
81028 /home/allefant/1.12/temp/wmlparser_ji81dva6/wmlparser_tyy3bdli.cfg.plain
b'1 /home/allefant/1.12/temp/wmlparser_5q6nb5gv.cfg'
Defines: SKIP_CORE,FOR_POWER_III
First line: {core}{~add-ons}
Battle for Wesnoth v1.13.6+dev
Started on Sat Jun 3 00:48:26 2017
20170603 00:48:26 error preprocessor: Macro/file 'ON_DIFFICULTY' is missing
at ~add-ons/For_Power/./chapter3/./scenarios/07_Back_in_Underground.cfg:418

 included from ~add-ons/For_Power/./chapter3/_main.cfg:55

 included from ~add-ons/For_Power/_main.cfg:59

 included from /home/allefant/1.12/temp/wmlparser_tyy3bdli.cfg:1

and refuses to continue. The said macro is defined in core, more specifically in data/core/macros/utils.cfg. Can anything be done about it? (And btw, it reports version v1.13.6+dev even though it is from 1.12.)
My content: For Power series
Ports: Danse Macabre Story of the Wose
Royal Guard/Silver Mage
User avatar
James_The_Invisible
 
Posts: 397
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces

Re: Wesnoth's Unit Database

Postby Ravana » June 8th, 2017, 1:02 pm

That macro is only conditionally defined: when EASY, NORMAL or HARD is defined.
User avatar
Ravana
Moderator
 
Posts: 1450
Joined: January 29th, 2012, 12:49 am
Location: Estonia

Re: Wesnoth's Unit Database

Postby Pentarctagon » June 8th, 2017, 1:03 pm

I'll see if I can get a better answer for why it's using 1.13.6 on the 1.12 units database. In the mean time though, your campaign uses image paths from the "transparent" folder, which no longer exists and creates a few errors in the error log:
Code: Select all
For_Power/chapter1/_main.cfg:35:   image="data/core/images/portraits/humans/transparent/mage+female.png"
For_Power/multiplayer/_main.cfg:10:   image="data/core/images/portraits/humans/transparent/mage-silver+female.png"
For_Power/chapter2/_main.cfg:35:   image="data/core/images/portraits/humans/transparent/mage-silver+female.png"
For_Power/chapter6/_main.cfg:35:   image="data/core/images/portraits/humans/transparent/dark-adept+female.png"
For_Power/chapter5/_main.cfg:35:   image="data/core/images/portraits/humans/transparent/mage-light+female.png"
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2922
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Wesnoth's Unit Database

Postby James_The_Invisible » June 8th, 2017, 2:21 pm

@Ravana Sure. Maybe there are ways to tell the script/parser about the macro's existence. Because I would prefer to keep this line: {VARIABLE enemies_to_spawn {ON_DIFFICULTY 1 2 2}}. Of course, I know a workaround.
@Pentarctagon Well, in master on GitHub I already use correct paths for Wesnoth 1.13, like this: https://github.com/konecnyjakub/For_Pow ... in.cfg#L35. The thing is that I just did not release a new version in a long time.
My content: For Power series
Ports: Danse Macabre Story of the Wose
Royal Guard/Silver Mage
User avatar
James_The_Invisible
 
Posts: 397
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces

Re: Wesnoth's Unit Database

Postby allefant » June 8th, 2017, 3:31 pm

So where is ON_DIFFICULTY defined or who/when creates it?

@loonycyborg fixed version 1.12 out-of-source builds so units.wesnoth.org should be able to use an 1.12 build to parse the 1.12 addons on the next run.
User avatar
allefant
Units Database Administrator
 
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Re: Wesnoth's Unit Database

Postby Ravana » June 8th, 2017, 3:36 pm

data/core/macros/utils.cfg
Code: Select all
#ifdef EASY
#define ON_DIFFICULTY EASY_VALUE NORMAL_VALUE HARD_VALUE
{EASY_VALUE}#enddef
#endif
#ifdef NORMAL
#define ON_DIFFICULTY EASY_VALUE NORMAL_VALUE HARD_VALUE
{NORMAL_VALUE}#enddef
#endif
#ifdef HARD
#define ON_DIFFICULTY EASY_VALUE NORMAL_VALUE HARD_VALUE
{HARD_VALUE}#enddef
#endif
User avatar
Ravana
Moderator
 
Posts: 1450
Joined: January 29th, 2012, 12:49 am
Location: Estonia

Re: Wesnoth's Unit Database

Postby allefant » June 9th, 2017, 11:30 pm

The problem was that units.wesnoth.org only understood the difficulties=EASY,NORMAL,HARD syntax but would ignore [difficulty] elements. I just updated it to define the very first [difficulty] it finds, so ON_DIFFICULTY works now.
User avatar
allefant
Units Database Administrator
 
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Re: Wesnoth's Unit Database

Postby James_The_Invisible » June 10th, 2017, 7:11 am

Thank you but are you sure about it working now? Because that error was happening on both 1.12 and master. Well, we will see in a week anyway. Edit: Well, probably forget it. The 1.12 version was using master actually.
My content: For Power series
Ports: Danse Macabre Story of the Wose
Royal Guard/Silver Mage
User avatar
James_The_Invisible
 
Posts: 397
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces

Re: Wesnoth's Unit Database

Postby allefant » June 12th, 2017, 2:07 pm

The 1.12 version was using master actually.


The way it is setup is that the master version of the "wmlunits" script is always used. (Mainly because I got tired of having to backport the script changes to 1.12.) But 1.12 will use the 1.12 wesnoth binary to do the WML parsing while master will use the master binary. So yes, the [difficulty] change will also benefit the 1.12 campaigns on the addon server.
User avatar
allefant
Units Database Administrator
 
Posts: 516
Joined: May 6th, 2005, 3:04 pm

Re: Wesnoth's Unit Database

Postby The_Gnat » June 23rd, 2017, 9:29 pm

Unfortunately my long persistent unit database problems (for the Reign of the Lords Era) are still causing issues. Oddly enough i now receive a single line error 'eras'.

If anyone has any insight or suggestion that would be appreciated since i would like to see the units i have made in the database!

Thank you!
User avatar
The_Gnat
 
Posts: 1266
Joined: October 10th, 2016, 3:06 am

Re: Wesnoth's Unit Database

Postby Pentarctagon » June 23rd, 2017, 10:46 pm

The_Gnat wrote:Unfortunately my long persistent unit database problems (for the Reign of the Lords Era) are still causing issues. Oddly enough i now receive a single line error 'eras'.

If anyone has any insight or suggestion that would be appreciated since i would like to see the units i have made in the database!

Thank you!


When I started a local match in 1.13, I get this in the error log:
Code: Select all
20170623 17:44:15 warning general: no location found for 'data/add-ons/Reign_of_the_Lords/translations', skipping textdomain
20170623 17:44:15 warning general: no location found for 'data/add-ons/5_Lords_Active_Advance/translations', skipping textdomain
Checking lua scripts... ok
20170623 17:44:26 warning preprocessor: Redefining macro ELEMENTAL_WATER_IDLE_DEATH_ANIM without explicit #undef at ~add-ons/Reign_of_the_Lords/utils/macros/animations.cfg:87
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:15
previously defined at ~add-ons/Reign_of_the_Lords/utils/macros/animations.cfg:73
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:15
20170623 17:44:26 warning preprocessor: Redefining macro MISSILE_FRAME_FAERIE_MYSTIC_FIRE without explicit #undef at ~add-ons/Reign_of_the_Lords/utils/macros/animations.cfg:373
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:15
previously defined at ~add-ons/Reign_of_the_Lords/utils/macros/animation-missile-frame.cfg:177
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:15
20170623 17:44:26 warning preprocessor: Redefining macro RANDOM_SIDE without explicit #undef at ~add-ons/Reign_of_the_Lords/eras/eras.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:18
previously defined at multiplayer/eras.cfg:3
    included from _main.cfg:36
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/utils/macros/transformation.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:15
20170623 17:44:26 warning preprocessor: Redefining macro TRAIT_ELEMENTAL without explicit #undef at ~add-ons/Reign_of_the_Lords/units/elementals.cfg:75
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:21
previously defined at core/macros/traits.cfg:72
    included from core/_main.cfg:19
    included from _main.cfg:18
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/outlaws/Outlaw_Amoured_Highwayman.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:23
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/outlaws/Outlaw_Exterminator.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:23
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/outlaws/Outlaw_Predator.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:23
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/outlaws/Woodsman_Forest_Warden.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:23
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/outlaws/Woodsman_Woodland_Master.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:23
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/undead/Corpse_Abomination.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:24
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/undead/Skele_Dread_Hunter.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:24
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/drakes/Apocalypse.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:25
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/drakes/Conqueror.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:25
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/drakes/Firestorm.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:25
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/drakes/Kensai.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:25
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/drakes/Maelstrom.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:25
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/drakes/Talon.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:25
20170623 17:44:26 warning preprocessor: Redefining macro ELDER_MAGE_LIGHTNING without explicit #undef at ~add-ons/Reign_of_the_Lords/units/magi/Mage_Luminary_of_Fire.cfg:119
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:28
previously defined at core/units/humans/Mage_Elder.cfg:66
    included from core/units.cfg:20
    included from core/_main.cfg:32
    included from _main.cfg:18
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elementals/Air_Whirlwind.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:31
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elementals/Water_God.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:31
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elves/Avatar.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:32
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elves/Battle_Druid.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:32
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elves/Battle_Enchantress.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:32
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elves/Mounted_Expeditionary.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:32
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elves/Mounted_Gryphonier.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:32
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/elves/Mounted_Skymarshal.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:32
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/other/Merman_Retiarius.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:34
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/other/Merman_Spear_Caster.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:34
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/other/Saurian_Clairvoyant.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:34
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/other/Saurian_Damned_Shaman.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:34
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/other/Saurian_Dark_Shaman.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:34
20170623 17:44:26 error config: Skipping over a utf8 BOM at ~add-ons/Reign_of_the_Lords/units/other/Saurian_Diviner.cfg:1
    included from ~add-ons/Reign_of_the_Lords/_main.cfg:34
20170623 17:44:26 error config: Multiple [unit_type]s with id=ROLBanebow encountered.
20170623 17:44:26 error config: Multiple [unit_type]s with id=ROLDraug encountered.
20170623 17:44:26 error config: Multiple [unit_type]s with id=ROLTroll Shaman encountered.


I don't have 1.12 at the moment to test with, unfortunately.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2922
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Next

Return to Website

Who is online

Users browsing this forum: No registered users and 2 guests