• Theme/prompt fallbacks and their variables in theme.ini

    From Björn Wiberg@2:201/137 to g00r00 on Sun Jul 4 12:49:12 2021
    Hello again, g00r00!

    Just wanted to check with you how the theme/prompt fallbacks are to be configured. I'm running the latest x86_64 prealpha ()

    On my board, I have "scbbs_en" as the Default Theme for new users. The intention is to inherit anything not explicitly overridden from the stock theme (the theme directory named "default").

    From this, and the comments present in theme.ini, I think I should set:

    Def_Prompt = false
    Def_Text = false
    Def_Menu = false
    Def_Script = false

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

    The false values for Def_* would be to avoid any circular dependencies, as scbbs_en is the Default Theme and certainly annot load any missing prompts from itself.

    But there seems to be something going on when entering and then exiting from the Theme/Prompt Editor.

    A Def_* value of true displays as Fallback: Yes in the Theme/Prompt Editor,
    but after exiting, the value gets emptied (and is then shown as Fallback:
    No).

    Choosing a theme e.g. for Inherit Prompts appears to set this for both Def_Prompt and Prompt (after exiting the Theme/Prompt Editor).

    The values of the Prompt, Text, Menu and Script variables (at least as displayed by the Theme/Prompt Editor) seem to override any values of the Def_Prompt, Def_Text, Def_Menu and Def_Script variables.

    How do all these variables relate to each other, and how are they intended to be used?

    Many thanks in advance!

    Best regards
    Bj”rn

    --- Mystic BBS v1.12 A47 2021/07/03 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Björn Wiberg@2:201/137 to g00r00 on Sun Jul 4 12:51:04 2021
    On 04 Jul 2021, Bj”rn Wiberg said the following...
    configured. I'm running the latest x86_64 prealpha ()

    Oops, accidentally saved the message before filling out the version information.

    That was meant to read "v1.12 A47 compiled 2021/07/03 19:36:39" for x86_64.

    Best regards
    Bj”rn

    --- Mystic BBS v1.12 A47 2021/07/03 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Sun Jul 4 09:22:24 2021
    configured. I'm running the latest x86_64 prealpha ()

    Oops, accidentally saved the message before filling out the version information.

    Make sure you have downloaded the latest version and let me know if you still have any issues. There were many builds committed yesterday so its possible you didn't get the latest as your time stamp does not match mine (although it could also be that I have the time set wrong on my Linux build machine lol).

    ... Youth is glorious, but it isn't a career

    --- Mystic BBS v1.12 A47 2021/07/03 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From g00r00@1:129/215 to Björn Wiberg on Sun Jul 4 09:31:00 2021
    The values of the Prompt, Text, Menu and Script variables (at least as displayed by the Theme/Prompt Editor) seem to override any values of the Def_Prompt, Def_Text, Def_Menu and Def_Script variables.

    Prompt, Text, Menu, Script all define a theme to inherit from if any of those items are missing from the current theme you're editing.

    Def_Prompt, Def_Text, Def_Menu and Def_Script define whether or not to inherit from whatever theme you configured in System Configuration as your default theme if items are missing from the current theme or the theme you've selected for inheritance.

    So if you have "my_new_theme" and you want to inherit any missing menus from "another_theme" then you would set Inherit Menu=another_theme so any menu that cannot be found in my_new_theme will now try to load from "another_theme".

    Then if "another_theme" doesn't have the menu, if you have def_menu=true then Mystic will look to see what you have configured as the default theme and then look in that theme for the menu.

    If you edit in the theme/prompt editor and not the ini it might be more clear as to how it works as there are descriptions that explain what it is doing. The prompts editor will also tell you exactly where it sources a prompt from (theme, inherited theme, default theme, or system prompts) when you use that too.

    For scripts, templates, text, and menus the load logic is this:
    Theme then Inherited Theme then Default Theme (if enabled) then Nothing

    For prompts its:
    Theme then Inherited Theme then Default Theme (if enabled) then System Prompts

    ... Don't sweat the petty things and don't pet the sweaty things

    --- Mystic BBS v1.12 A47 2021/07/03 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Tue Jul 6 09:34:02 2021
    Hello g00r00!

    On 04 Jul 2021, g00r00 said the following...

    Many thanks for the detailed explanation! I'll upgrade to the very latest prealpha and let you know if I spot anything strange.

    Thanks again!

    Best regards
    Bj”rn
    --- Mystic BBS v1.12 A47 2021/07/03 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Björn Wiberg@2:201/137 to g00r00 on Tue Jul 6 10:19:20 2021
    Hello again, g00r00!

    On 06 Jul 2021, Bj”rn Wiberg said the following...
    Many thanks for the detailed explanation! I'll upgrade to the very
    latest prealpha and let you know if I spot anything strange.

    It appears that I was already at the latest prealpha, though:

    87db0ca435a6f0ab106ec1c44eaf612e install_data.mys

    Maybe the (even more) updated builds didn't make it to the online prealpha directory for some reason?

    Anyway, I tried copying a fresh stock theme.ini (from the themes/default directory, which I have copied from a fresh prealpha stock installation) to
    my themes/scbbs_en directory, then entering the Theme/Prompt Editor:

    Ûßßßßßßßßßßßßßßßßßßßßßßßßßß Theme: scbbs_en ßßßßßßßßßßßßßßßßßßßßßßßßßßÜ
    Û Û
    Û Description ³ Default 1: Prompts Û
    ÜÜ Û Author ³ g00r00 2: Menus
    Û²gj!
    ÛÛÜÛ Group ³ Mystic BBS 3: Options ÛÛÜÜ
    °ÛÛÛ Contact ³ www.mysticbbs.com 4: Display Files
    ÛÛÛ±þ
    ß ²ÛÛ ³ 5: Templates
    ÛÛÛÛÛ
    ² ±²Û Display Order ³ 1 6: Percent Bars Û²°
    ²
    ß Û°Û List ACS ³ 7: Box Style 1 ÛÛ°
    ²
    °°²ÛÛ Font Mode ³ <None> 8: Box Style 2 Û
    ÜÜÛ
    ÜÜþ Û Color Mode ³ <None> 9: Box Style 3 Û
    Û°°
    Û ³ Fallback 0: Box Style 4 Û ßÜ
    Û Inherit Prompts ³ <None> > Yes Û
    Û Inherit Text ³ <None> > Yes Û
    Û Inherit Menus ³ <None> > Yes Û
    Û Inherit Scripts ³ <None> > Yes Û
    ßÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛ

    I then edited it to the following (using the Theme/Prompt Editor, not any
    text editor):

    Ûßßßßßßßßßßßßßßßßßßßßßßßßßß Theme: scbbs_en ßßßßßßßßßßßßßßßßßßßßßßßßßßÜ
    Û Û
    Û Description ³ Star Collision BBS (English) 1: Prompts Û
    ÜÜ Û Author ³ Bj”rn Wiberg (Zip) 2: Menus
    Û²gj!
    ÛÛÜÛ Group ³ Star Collision BBS 3: Options ÛÛÜÜ
    °ÛÛÛ Contact ³ https://scbbs.nsupdate.info/ 4: Display Files
    ÛÛÛ±þ
    ß ²ÛÛ ³ 5: Templates
    ÛÛÛÛÛ
    ² ±²Û Display Order ³ 1 6: Percent Bars Û²°
    ²
    ß Û°Û List ACS ³ 7: Box Style 1 ÛÛ°
    ²
    °°²ÛÛ Font Mode ³ <None> 8: Box Style 2 Û
    ÜÜÛ
    ÜÜþ Û Color Mode ³ <None> 9: Box Style 3 Û
    Û°°
    Û ³ Fallback 0: Box Style 4 Û ßÜ
    Û Inherit Prompts ³ default > Yes Û
    Û Inherit Text ³ default > Yes Û
    Û Inherit Menus ³ default > Yes Û
    Û Inherit Scripts ³ default > Yes Û
    ßÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛ

    Then exiting (Esc) and re-entering, it shows:

    Ûßßßßßßßßßßßßßßßßßßßßßßßßßß Theme: scbbs_en ßßßßßßßßßßßßßßßßßßßßßßßßßßÜ
    Û Û
    Û Description ³ Star Collision BBS (English) 1: Prompts Û
    ÜÜ Û Author ³ Bj”rn Wiberg (Zip) 2: Menus
    Û²gj!
    ÛÛÜÛ Group ³ Star Collision BBS 3: Options ÛÛÜÜ
    °ÛÛÛ Contact ³ https://scbbs.nsupdate.info/ 4: Display Files
    ÛÛÛ±þ
    ß ²ÛÛ ³ 5: Templates
    ÛÛÛÛÛ
    ² ±²Û Display Order ³ 1 6: Percent Bars Û²°
    ²
    ß Û°Û List ACS ³ 7: Box Style 1 ÛÛ°
    ²
    °°²ÛÛ Font Mode ³ <None> 8: Box Style 2 Û
    ÜÜÛ
    ÜÜþ Û Color Mode ³ <None> 9: Box Style 3 Û
    Û°°
    Û ³ Fallback 0: Box Style 4 Û ßÜ
    Û Inherit Prompts ³ default > No Û
    Û Inherit Text ³ default > No Û
    Û Inherit Menus ³ default > No Û
    Û Inherit Scripts ³ default > No Û
    ßÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛ

    Notice the "reverted" Fallback: No.

    Looking at theme.ini, it shows:

    [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 = default
    Def_Text = default
    Def_Menu = default
    Def_Script = default

    ; Theme fallback associations: Specify theme directory as its named in root
    ; theme directory. Example: To fallback to theme in /mystic/themes/mytheme
    ; specify "mytheme" (without quotes) as the fallback.

    ; If set to a theme directory name, Mystic will attempt to load any prompts
    ; that are not defined in this theme from another theme, before ultimately
    ; loading the default prompt if no other is found.

    Prompt = default

    ; If set to a theme directory, Mystic will attempt to look at the theme for
    ; display files and template configurations, if they are not found as part
    ; of this theme.

    Text = default

    ; If set to a theme directory, Mystic will attempt to look at the theme for
    ; menu files if the menu file is not found as part of this theme.

    Menu = default

    ; If set to a theme directory, Mystic will attempt to look at the theme for
    ; script files if the script file is not found as part of this theme.

    Script = default

    So it appears the Def_* do not get set to "true" but rather to "default" (my choice of theme fallback). However the Prompt, Text, Menu, Script all appear
    to be set correctly (to "default").

    Best regards
    Bj”rn
    --- Mystic BBS v1.12 A47 2021/07/03 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Tue Jul 6 04:36:34 2021
    It appears that I was already at the latest prealpha, though:

    Sorry I must have compiled new version and forgot to upload it to the website. I have just reuploaded new versions and it should fix the load from the editor.

    ... Honk if you love peace and quiet!

    --- Mystic BBS v1.12 A47 2021/07/06 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Tue Jul 6 14:24:52 2021
    Hello g00r00!

    On 06 Jul 2021, g00r00 said the following...
    Sorry I must have compiled new version and forgot to upload it to the website.

    No worries! =)

    I have just reuploaded new versions and it should fix the load
    from the editor.

    Thanks a lot! Seems to be working fine now!

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2021/07/06 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)