Wesnoth's Unit Database

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

Moderators: Forum Moderators, Developers

User avatar
Site Administrator
Posts: 6505
Joined: November 14th, 2006, 5:54 pm
Location: Chile

Re: Wesnoth's Unit Database

Post by shadowm » August 30th, 2017, 9:31 pm

The units database has been rebuilt again. I disabled the weekly rebuild for a while because I was working on some changes that partially landed on master and took forever to finish up — sorry about that.

One major feature I just added is that add-ons processed by the database build script may check for the __WMLUNITS__ preprocessor symbol using #ifdef in order to, for example, use special code to optimize (or even entirely disable) the unit tree display however they see fit. For example, version 0.9.17 of my add-on After the Storm exposes a single dummy campaign menu item instead of the usual three, skips including all scenarios and some code that is only relevant for scenario code, and lets wmlunits see the full unit tree for all three episodes with some minor exceptions.

Additionally, a number of bugs have been fixed.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Elsewhere: shadowmBlogFollow me on Twitter

User avatar
Posts: 1833
Joined: October 10th, 2016, 3:06 am

Re: Wesnoth's Unit Database

Post by The_Gnat » August 31st, 2017, 8:37 am

That is really good!! A while back i looked around for some way to do this, it is great that you have implemented it. :D Thank you!

User avatar
Posts: 136
Joined: January 18th, 2017, 5:03 pm
Location: japan

Re: Wesnoth's Unit Database

Post by IIIO_METAL » September 12th, 2018, 3:30 am

I tried to fix my add-on error, but I am not sure when I encounter the following errors and what to fix next.
The add-on that caused the error is Mountain_Witch and Castle_of_evil_spirit.

internal error (2 lines)

please report as bug
unorderable types: NoneType() < str()

Does anyone know what kind of mistakes I made?
Creator of "Mountain Witch" & "Castle of evil spirit"

User avatar
Posts: 1929
Joined: January 29th, 2012, 12:49 am
Location: Estonia

Re: Wesnoth's Unit Database

Post by Ravana » September 12th, 2018, 8:10 pm

Message suggests you did not include some required key.

Posts: 7
Joined: February 19th, 2018, 12:01 am

Re: Wesnoth's Unit Database

Post by Prof_Hari_Seldon » December 31st, 2018, 12:00 pm

Many of the images for the To Lands Unknown units are broken: https://units.wesnoth.org/1.12/To_Lands ... known.html

Even though the Era of Magic (the Age that To Lands Unknown uses) images are not broken: https://units.wesnoth.org/1.12/Era_of_M ... magic.html

What is the easiest way to fix this?

Posts: 242
Joined: August 19th, 2017, 6:58 pm

Re: Wesnoth's Unit Database

Post by josteph » December 31st, 2018, 1:52 pm

I replied to your other post https://forums.wesnoth.org/viewtopic.ph ... 45#p636784. Please don't double post. If you have specific questions about the script do ask them here though.

Post Reply