Wesnoth's Unit Database
Moderator: Forum Moderators
Re: Wesnoth's Unit Database
Hm, I'll have to double check the code again - maybe the cyclic dependency is causing problems somehow.
Re: Wesnoth's Unit Database
Okay i can temporarily remove it to see if it fixes the problem.
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.
Re: Wesnoth's Unit Database
Just an idea: Can't one run the import script locally to cut out the experimenting on the live system?
- Pentarctagon
- Project Manager
- Posts: 5567
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Wesnoth's Unit Database
It is possible - I've gotten it running locally on my linux PC. I don't know how to get it running on Mac or Windows though. The script ispauxlo wrote:Just an idea: Can't one run the import script locally to cut out the experimenting on the live system?
wmlunits
in data/tools/
, if anyone's interested.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
What add-on size limit is (was?) for older versions? 1.12 for examplePentarctagon wrote:Yeah, I couldn't tell you why it's putting all the units under the portraits add-on, but the errors it reports are all about missing units, so adding the [binary_path] should fix that. Also, the add-on size limit was increased to 100 MBs for 1.13, so going forward you would be able to combine them back into a single add-on.
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
- Pentarctagon
- Project Manager
- Posts: 5567
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Wesnoth's Unit Database
For older versions, there was no size limit.lea wrote:What add-on size limit is (was?) for older versions? 1.12 for examplePentarctagon wrote:Yeah, I couldn't tell you why it's putting all the units under the portraits add-on, but the errors it reports are all about missing units, so adding the [binary_path] should fix that. Also, the add-on size limit was increased to 100 MBs for 1.13, so going forward you would be able to combine them back into a single add-on.
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
Pentarctagon wrote: Also, the add-on size limit was increased to 100 MBs for 1.13
if there was no limit then how could this (apparently non-existent) limit be increased?Pentarctagon wrote:For older versions, there was no size limit.
did I miss something?
![Confused :?](./images/smilies/icon_confused.gif)
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
Re: Wesnoth's Unit Database
A 1.13.x version (I think it was 1.13.5 but I'm not sure) shipped with a rewrite of the network code that resulted in the add-ons server gaining a maximum pack size. The issue was discovered after the release and patched one or two releases later.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Wesnoth's Unit Database
Just a heads-up for people who might be keeping an eye on units.wesnoth.org: the rebuild task might not run this week due to some major pending changes coming from my direction rather than Elias’, for a change. My apologies for any inconveniences this may cause. I’ll make sure to keep you notified of any new developments from that front and figure out the best schedule to run the rebuild as soon as it is all done.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Wesnoth's Unit Database
units.wesnoth.org has been rebuilt and it now has a fix for an issue where
Oh and it also uses the new site design now.
There is an issue where the sidebar menus do not work until the page has fully loaded, which tends to take a lot of time on my end due to the absurd number of images on the unit tree pages. Assuming I don’t get too busy with other stuff, I will rectify this before the next rebuild.
[portrait]
tags (which are gone in 1.13.x and were never intended to be used by the general public in the first place) were used to read unit portraits instead of the profile=
attribute.Oh and it also uses the new site design now.
There is an issue where the sidebar menus do not work until the page has fully loaded, which tends to take a lot of time on my end due to the absurd number of images on the unit tree pages. Assuming I don’t get too busy with other stuff, I will rectify this before the next rebuild.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Wesnoth's Unit Database
this script you are using to build unit database pages - is it available for download?shadowm wrote:units.wesnoth.org has been rebuilt and it now has a fix for an issue where[portrait]
tags (which are gone in 1.13.x and were never intended to be used by the general public in the first place) were used to read unit portraits instead of theprofile=
attribute.
Oh and it also uses the new site design now.
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
Re: Wesnoth's Unit Database
It’s
wmlunits
, which is part of the Wesnoth source code distribution (data/tools/wmlunits
— note that it has several dependencies on the rest of the included scripts). I don’t think I’m the best person to explain how it works, though. There’s a --help
switch, and this is what I use to run it:Code: Select all
./wmlunits --output wmlunits-test --wesnoth `which wesnoth` -C ~/.wesnoth-1.13 -D ~/src/wesnoth -t ~/src/wesnoth/translations --addons ~/.wesnoth-1.13/data/add-ons -L wmlunits.list -B wmlunits.list --timeout 60 --language en_US --reparse
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Wesnoth's Unit Database
shadowm, thanks!
does it also generate css theme?
I want to create unit database with older style, one that was replaced with current style some days ago
does it also generate css theme?
I want to create unit database with older style, one that was replaced with current style some days ago
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
Re: Wesnoth's Unit Database
Before this commit it used a bundled minimal version of Glamdrol (provided aslea wrote:does it also generate css theme?
data/tools/unit_tree/style.css
) that contained additional units.w.o-specific styles. Now it uses the shared site stylesheet and a smaller units.w.o-specific supplement stylesheet, all built from the Wesmere source code but not part of the main repository. So it hasn’t really ever “generated” any CSS other than a few inline style
attributes.I strongly advise against using older versions of
wmlunits
on untrusted data, though (see this commit).Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Wesnoth's Unit Database
shadowm, thanks again for details
I am going to use it only on my own era which contains only my own WML code (no copy-pasting involved) and a few includes from mainline wesnoth so I guess I am safe. thanks for warning thoughshadowm wrote:I strongly advise against using older versions ofwmlunits
on untrusted data, though (see this commit).
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)