Wesnoth Unit Database error, units not loading

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
The_Gnat
Posts: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Wesnoth Unit Database error, units not loading

Post by The_Gnat »

Hello i am new to WML and have recently created an era (5 Lords Reign). Unfortunately the Wesnoth unit database log records many errors with my era.

Code: Select all

Warning: No race "I8 magical" found (ROLAir_Avatar).
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Huntsman'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Great'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Warmonger'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Giant'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Predator'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Nightblade'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLDirewolf Rider'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Magical'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Ninja'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Boulderlobber'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLGoblin Ravager'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLGoblin Raider'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Sorcerer'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Supreme'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLNight Stalker'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Assassinator'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Warrior'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Piercer'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Strafer'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLMonumental Djinn'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLColossal Flare'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLFire_God'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLNymph'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLVine Hulk'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLStone Titan'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLLava Behemoth'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLDjinn'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLAir_God'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLLava Giant'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLFaerie Dryad'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Legendary'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Grand Master'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Battle Enchantress'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Prowler'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLAncient Wose Shaman'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Avatar'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Vendicator'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Field Master'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLFaerie Spirit'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Mystic'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Wayfarer'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Runemaster'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLGryphon Knight'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Arbalestier'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Arcanister'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Battlerager'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Hero'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Mountain King'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Loremaster'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Master Dragonguard'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Valiant'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Battleserker'!
Warning: Unit ROLAir_God not found as advancement of 'ROLAir_Avatar'
Warning: Unit ROLAir_God not found.
When i load my modification on my version of Wesnoth 1.12 i don't have any problems and can play all the units fine. Also many of the units from my era do load in the wesnoth unit database, and i didn't do anything differen't with them?

What could the problem be caused by? If anyone has any suggestions they would be much appreciated.

Thank you!
Last edited by The_Gnat on October 22nd, 2016, 2:59 am, edited 2 times in total.
Tad_Carlucci
Inactive Developer
Posts: 503
Joined: April 24th, 2016, 4:18 pm

Re: Wesnoth Unit Database error, units not loading

Post by Tad_Carlucci »

It sounds like you're getting the error on a 1.13 install, and it worked for a 1.12?

If so, you forgot, in 1.13, to install the add-ons your era depends upon.
I forked real life and now I'm getting merge conflicts.
User avatar
The_Gnat
Posts: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Wesnoth Unit Database error, units not loading

Post by The_Gnat »

Thanks for responding! Yeah i thought it might be a version problem at first also, but the era works fine in wesnoth 1.12.

It only breaks when its on the unit database (https://units.wesnoth.org/1.12/Reign_of ... lords.html) - half the units don't show up.
Also when i click overview the Reign of the Lords era has 55 error lines. (https://units.wesnoth.org/1.12/Reign_of ... error.html)

And as you can tell from the url this is on the wesnoth 1.12 unit database.

Thanks alot hopefully i can find a solution!
User avatar
The_Gnat
Posts: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Wesnoth Unit Database error, units not loading

Post by The_Gnat »

Hi! I've finally found a solution to this problem!!!

[SOLVED]

Basically a attack icon was incorrectly spelled in a unit file and so every unit after that unit stopped working. I fixed the icon spelling and so next Friday when the unit database updates for 1.12 then all the units should load (hopefully :P )

A similar thing happened when a race name was not properly being loaded. Basically if their is any errors then all units after that will not load.
User avatar
The_Gnat
Posts: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Wesnoth Unit Database error, units not loading

Post by The_Gnat »

[UNSOLVED]

Ok well as it turns out this problem was not actually solved and it still doesn't load half the units??? :doh:

All the error says is there is no unit called "SOMETHING_OR_OTHER" but that isn't possible because when i load the addon it works fine without a single error and all the units load? :o
ERROR MESSAGE

Code: Select all

Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLStone Titan'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLColossal Flare'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLAir_Avatar'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLLava Behemoth'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLLava Giant'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLNymph'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLVine Hulk'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLWhirlwind'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLGryphon Knight'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Valiant'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Mountain King'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Iron Bear'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Hero'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Master Dragonguard'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Loremaster'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Arbalestier'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Battleserker'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Battlerager'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Giant'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Boulderlobber'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Magical'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Grand Master'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Field Master'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Legendary'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Mystic'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Vendicator'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Prowler'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Battle Enchantress'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Wayfarer'!
If anyone has any ideas they would be much appreciated
User avatar
The_Gnat
Posts: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Wesnoth Unit Database error, units not loading

Post by The_Gnat »

Evidently (due to lack of anyone posting) no one else has any idea. I am the same unfortunately but thought to post again on the chance that perhaps someone could tell something from the most recent error log:
Error log

Code: Select all

Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLWrath'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLDread Lich'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLDread Hunter'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLBone Marauder'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLArch Necromancer'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLBlack Crusader'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLDeath Lord'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLDeath Charger'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLBanebow'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLFallen'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLAbyss Rider'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLAncient Lich'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLDraug'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLMaster Of Darkness'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLDeath Knight'!
Error: Era 'era_lords' faction 'darkLegion' references non-existant unit id 'ROLSlither Blade'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLDestroyer'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLJouster'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLCrusader'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLElite Sentinel'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLGrand Master Bowman'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLScythemaster'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLWarmaster'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLArcane Rider'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLApocalypse Rider'!
Error: Era 'era_lords' faction 'loyalistLords' references non-existant unit id 'ROLSiege Trooper'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLInferno'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLSorcerer Of Darkness'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLWizard'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLStone Titan'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLVine Hulk'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLLava Giant'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLAir_Avatar'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLNaiad'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLIce Fang'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLIce Penetrator'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLProphetess of Fire'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLColossal Flare'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLLava Behemoth'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLCelestial Messenger'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLMage of Nature'!
Error: Era 'era_lords' faction 'wizardsElemental' references non-existant unit id 'ROLNymph'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Warmonger'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Strafer'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Emperor'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLGoblin Raider'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Giant'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Pikeman'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Ninja'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Nightblade'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Magical'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Warlock'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Huntsman'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLTroll Boulderlobber'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLOrcish Conjurer'!
Error: Era 'era_lords' faction 'orcishLords' references non-existant unit id 'ROLNight Stalker'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLAncient Wose Shaman'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Vendicator'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLArch Wose'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Legendary'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Battle Enchantress'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Prowler'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Star'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Field Master'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Grand Master'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Wayfarer'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Mystic'!
Error: Era 'era_lords' faction 'elvenLords' references non-existant unit id 'ROLElvish Avatar'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Master Dragonguard'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLGryphon Knight'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Avalanche'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Hero'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Loremaster'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Mountain King'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Metal Worker'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Smith Master'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Arbalestier'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Cave Runner'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Rune Warrior'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Valiant'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Battleserker'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Flamecaster'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Iron Bear'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Sage Futuristic'!
Error: Era 'era_lords' faction 'dwarvishLords' references non-existant unit id 'ROLDwarvish Barrager'!
This, as i have said before ONLY happens on the unit database, in the normal game all the units load correctly!

Thank you very much!

(if it is not appropriate to restart topics that no one has answered i apologize, yet i would really like this fixed)
User avatar
Vyncyn
Forum Regular
Posts: 515
Joined: April 6th, 2013, 5:51 pm

Re: Wesnoth Unit Database error, units not loading

Post by Vyncyn »

I have one idea that might work. Add all folders with units cgf into the _main.cgf file. For example

Code: Select all

[+units]
   	  {~add-ons/Reign_of_the_Lords/units/undead}
    [/units]
I know you already have {~add-ons/Reign_of_the_Lords/units/}, but in my era I included every subfolder and it works. No promises though.
User avatar
The_Gnat
Posts: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Wesnoth Unit Database error, units not loading

Post by The_Gnat »

Thank you! I will give that a try and after the unit database updates next hopefully it will work. :D
Post Reply