Wesnoth's Unit Database
Moderator: Forum Moderators
Re: Wesnoth's Unit Database
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
Additionally, a number of bugs have been fixed.
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.
Re: Wesnoth's Unit Database
That is really good!! A while back i looked around for some way to do this, it is great that you have implemented it. Thank you!
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.
- IIIO_METAL
- Posts: 202
- Joined: January 18th, 2017, 5:03 pm
- Location: japan
Re: Wesnoth's Unit Database
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?
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"
Re: Wesnoth's Unit Database
Message suggests you did not include some required key.
Maintainer of Ageless Era. Ravana's Multiplayer Works
-
- Posts: 9
- Joined: February 19th, 2018, 12:01 am
Re: Wesnoth's Unit Database
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?
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?
Re: Wesnoth's Unit Database
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.
- James_The_Invisible
- Posts: 538
- Joined: October 28th, 2012, 1:58 pm
- Location: Somewhere in the Northlands, fighting dark forces
- Contact:
Re: Wesnoth's Unit Database
I just noticed that 1.14 version does not show units for almost all user-made campaigns and eras, actually even mainline eras are not listed. One can see only all mainline campaigns + 1 user-made one and 3 user-made eras. Build report does not show any error for most add-ons.
1.12 version looks unaffected.
1.12 version looks unaffected.
My content: For Power series
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
Re: Wesnoth's Unit Database
please report as bug
'NoneType' object has no attribute 'rfind'
Maintainer of Ageless Era. Ravana's Multiplayer Works
Re: Wesnoth's Unit Database
I got further in locally running wmlunits than my last attempt. Some observations:
- wmlunits requires installing pyyaml
- seems that it requires addon existing in nonaddons directory, from where it is moved to addons directory. I guess it is to separate irrelevant addons
- it does not accept the preprocessing trickery of core_override_start and core_override_end https://github.com/ProditorMagnus/Agele ... de_end.cfg - Cant replicate issue anymore
- wmlunits must first be called with --list to generate yaml file, and then with --batch to execute that file
- using -A does not skip translations of era mainline era_default. I guess -A must be used with --list
- looks like -T is used for list part only, otherwise batch should have timed out for me, spending over 10 min at Ageless with -T 99. I wonder if I should exclude union era from wmlunits
And I succeeded in running wmlunits
Too late to start looking into release issue today.
- wmlunits requires installing pyyaml
- seems that it requires addon existing in nonaddons directory, from where it is moved to addons directory. I guess it is to separate irrelevant addons
- it does not accept the preprocessing trickery of core_override_start and core_override_end https://github.com/ProditorMagnus/Agele ... de_end.cfg - Cant replicate issue anymore
- wmlunits must first be called with --list to generate yaml file, and then with --batch to execute that file
- using -A does not skip translations of era mainline era_default. I guess -A must be used with --list
- looks like -T is used for list part only, otherwise batch should have timed out for me, spending over 10 min at Ageless with -T 99. I wonder if I should exclude union era from wmlunits
And I succeeded in running wmlunits
Code: Select all
ravana@ravana-think ~/wesnoth/wesnoth-lobby/data/tools $ ./wmlunits -w ~/wesnoth/wesnoth-lobby/wesnoth -a ~/wesnoth/userdata_1_14/data/addons -o ~/tmp/units -D ~/wesnoth/wesnoth-lobby --batch batch.yaml -T 99 -A -l en_US
Maintainer of Ageless Era. Ravana's Multiplayer Works
Re: Wesnoth's Unit Database
So i might have missed it but is this going to be adressed?James_The_Invisible wrote: ↑February 18th, 2019, 8:33 pm I just noticed that 1.14 version does not show units for almost all user-made campaigns and eras, actually even mainline eras are not listed. One can see only all mainline campaigns + 1 user-made one and 3 user-made eras. Build report does not show any error for most add-ons.
1.12 version looks unaffected.
- Pentarctagon
- Project Manager
- Posts: 5586
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Wesnoth's Unit Database
I assume this fix is related.BTIsaac wrote: ↑February 21st, 2019, 6:03 pmSo i might have missed it but is this going to be adressed?James_The_Invisible wrote: ↑February 18th, 2019, 8:33 pm I just noticed that 1.14 version does not show units for almost all user-made campaigns and eras, actually even mainline eras are not listed. One can see only all mainline campaigns + 1 user-made one and 3 user-made eras. Build report does not show any error for most add-ons.
1.12 version looks unaffected.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Wesnoth's Unit Database
hm. now it appears to be back to normal.
- James_The_Invisible
- Posts: 538
- Joined: October 28th, 2012, 1:58 pm
- Location: Somewhere in the Northlands, fighting dark forces
- Contact:
Re: Wesnoth's Unit Database
The bug is back. Is anyone testing things in production?
My content: For Power series
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
Re: Wesnoth's Unit Database
I'm currently busy with translating all the files to Dutch (after 10 years of no-one doing that) and 14-03-2019 the unit nl.po file was updated to 100% done. The unit tree updated last saturday 16-03-2019 but not all the names and/or races are updated according the new dutch translation. What can I do about this? Thanks in advance!
Re: Wesnoth's Unit Database
Just wait for the next update. Your translation was committed a bit after the last update of the unit db.
"If gameplay requires it, they can be made to live on Venus." -- scott