using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Post by lea »

TLDR: before BfW 1.16.x it was possible to make without extra hassle (see this later post in this topic: viewtopic.php?p=675254#p675254), in BfW 1.16.x it must be done differently and requires extra hassle from players

in greater detail:

wesnoth 1.16.x does not allow using UI themes added by UMCs (user-made content, also known as "add-ons") while playing mainline campaigns (EDIT#3: unless they are installed as [modification] and respective modifications must be manually enabled before starting the campaign, on single-palyer campaign selection screen it can be done via dropdown menu located in bottom left corner of the screen)

on 1.14.17 and older versions of BfW it is allowed but apparently UI themes are allowed to use only mainline images for their buttons, panel backgrounds etc

1.14.x silently fails to find images included in UMC causing issues described here: viewtopic.php?p=672336#p672336
and crashes when used with UMC campaigns unless UI theme uses only images available in mainline (EDIT#3: OR [binary_path] tag pointing to root path for respective images is outside of #ifdef MULTIPLAYER preprocessor directive)

1.12.x and earlier versions of BfW show error when trying to start or load mainline campaign while custom UI theme is enabled and exit to main menu unless UI theme uses only images that come preinstalled with wesnoth itself (EDIT#3: OR [binary_path] tag pointing to root path for respective images is outside of #ifdef MULTIPLAYER preprocessor directive)
Last edited by lea on July 23rd, 2022, 3:48 pm, edited 11 times in total.
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)
User avatar
octalot
General Code Maintainer
Posts: 783
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Post by octalot »

Thanks for reporting, does it also affect using a custom UI theme in a campaign from a separate add-on?

I'm wondering if it's a bug in the add-on separation code, similar to #6283.
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

Re: using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Post by lea »

octalot wrote: March 23rd, 2022, 11:25 am Thanks for reporting, does it also affect using a custom UI theme in a campaign from a separate add-on?

I'm wondering if it's a bug in the add-on separation code, similar to #6283.
first post was initially written after testing with mainline campaigns only, edited it to mention that described issues also apply to UMC campaigns
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)
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

Re: using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Post by lea »

Altered Era/Ruleset now contains "Altered Larger Fonts for campaigns" UI theme
it is a more bland version of "Altered Larger Fonts" that uses only images available in mainline and as such should work correctly with campaigns, both mainline and user-made ones
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)
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

Re: using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Post by lea »

edited first post to add an "official workaround" for how to use custom UI theme under Wesnoth 1.16.x, as described by Lord-Knightmare in this post: viewtopic.php?p=674384#p674384

EDIT: edited first post again to reflect clarifications provided by Lord-Knightmare in this post: viewtopic.php?p=674807#p674807
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)
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

Re: using custom UI themes from UMCs/add-ons with mainline campaigns (issues and limitations)

Post by lea »

"Altered Larger Fonts" UI theme contained in Altered Era/Ruleset (AKA "Altera") now works correctly with all campaigns (both user-made and built into BfW)

before Altera 0.8.1 its UI themes worked only in multiplayer games because [binary_path] tag was inside #ifdef MULTIPLAYER preprocessor directive
([binary_path] tag is meant to point BfW to folder where it should look for image/sound/etc files when they are referenced by (for example) UI themes and are not present in BfW itself)

edited first post yet again to mention this finding, these edits are marked as "EDIT#3" in the first post
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)
Post Reply