• Theme fallback to default doesn't work?

    From Lars Kellogg-Stedman@21:1/183 to All on Wed Nov 1 23:00:00 2023
    Howdy,

    I'm trying to create a custom theme for Mystic. Looking at
    "theme.ini" in the default them, I see:

    [Fallback]

    ; Fall back to the "default" theme if there is a missing
    ; prompt, text, menu or script (true or false). Each theme
    ; can also fallback to specific themes using the options
    ; below.

    Def_Prompt = true
    Def_Text = true
    Def_Menu = true
    Def_Script = true

    I thought this meant I could create a theme with only a few
    files, and anything missing would be served from the content
    in the default theme, so I have:

    .
    |-- menus
    |-- scripts
    |-- text
    | |-- newuser1.asc
    | `-- newuser.asc
    `-- theme.ini

    This is in the /mystic/themes/mytheme directory, next to /mystic/themes/default. When I configure mystic with theme
    "mytheme", it seems to work at first when I log in as a new
    user, but then fails with:

    Error loading prelogin.mnu

    ...even though that exists in the default theme.

    Is this a bug, or am I misunderstanding how fallback is
    supposed to work?

    Thanks!

    --- MultiMail/Linux v0.52
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (21:1/183)
  • From Zip@21:1/202 to Lars Kellogg-Stedman on Thu Nov 2 11:12:55 2023
    Hello Lars!

    On 01 Nov 2023, Lars Kellogg-Stedman said the following...
    I'm trying to create a custom theme for Mystic. Looking at
    "theme.ini" in the default them, I see:

    [Fallback]

    Do you also have:

    Prompt = default
    Text = default
    Menu = default
    Script = default

    ...in the [Fallback] stanza?

    Just to be sure that it attempts to use the default theme as the fallback.

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)