• ATTN: Python Programmers...

    From Ktulu@21:2/122 to All on Monday, November 27, 2017 00:02:19
    Hi All!

    I'm hoping one of you python gurus out there can help me with this:

    In python, when I do:

    thisuser = getuser(0); # read the currently logged in user into thisuser

    What variables are all exposed? I have found
    thisuser["level"]

    But what else is there? Where can I find a list of those?

    Thanks guys!

    --- Mystic BBS v1.12 A35 (Windows/32)
    * Origin: Insane Asylum (21:2/122)
  • From g00r00@21:1/108 to Ktulu on Monday, November 27, 2017 16:28:41
    What variables are all exposed? I have found
    thisuser["level"]

    flags, handle, name, address, city, postal, hphone, dphone, gender, email, info, level, theme, ip, host, menu, opt1, opt2, opt3,

    If there is anything in particular you're looking for let me know. The Python and MPL stuff aren't well documented at this point. MPL has documentation but its a bit outdated.

    With Python I have been trying to add things as they are asked for, mostly... Since I am working on so many different things at once.

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Jon Justvig@21:1/154 to g00r00 on Monday, November 27, 2017 16:44:47
    g00r00,

    I am looking at the Command -> prompt at the main menu and other menus to add the rumors module from the script directory in there and cannot find it in
    the prompt editor. I have looked in the menu and text directory for Command
    and cannot find it. I am wanting to add the rumors just before the prompt
    after the menu is displayed and before the actual command prompt as well as altering the command prompt a little.

    Sincerely,
    Jon Justvig

    --- Mystic BBS v1.12 A36 2017/11/25 (Windows/32)
    * Origin: Raiders Inc BBS -- vintagebbsing.com (21:1/154)
  • From g00r00@21:1/108 to Jon Justvig on Tuesday, November 28, 2017 12:50:59
    I am looking at the Command -> prompt at the main menu and other menus
    to add the rumors module from the script directory in there and cannot find it in the prompt editor. I have looked in the menu and text

    The prompts are just for display items what you want is menus.

    There is a menu editor where you can change anything you want, and you can configure it to run the rumors script every time the menu prompt is shown. There are a few ways to do this but I don't have time to go through a step by step right now so I will just give you a quick overview of what to do conceptually.

    What you'd want to do is probably create a new menu item in the menu you want the script to run, and set the hotkey to "AFTER" so it auto executes after the menu is displayed. Then while editing that item, press TAB to jump to the execution list. Here you define what Mystic actually does when it executes that command. Add a "GX" type command to execute a MPL script. Use the "data" field to specify the rumors script filename and now Mystic should automatically execute that script every time after the menu is displayed.

    You can even do things like using time-based commands so the menu updates itself dynamically as the user just sits at the menu doing nothing, but that is a little more advanced usage of the menu system.

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Jon Justvig@21:1/154 to g00r00 on Tuesday, November 28, 2017 14:23:32
    g00r00,

    On 11/28/17, g00r00 said the following...

    The prompts are just for display items what you want is menus.

    I might get around to customizing the prompts. There are just so many of
    them. However, I was able to solve the rumors issue I was having. I have to use two commands to show the rumors. One with the Hot Key EVERY and Command
    GX rumors show and another with Display text |&1 and Command GX rumors show.
    I tried to put this all in one command combined, it just would not show the rumors. Not sure if it is a bug. That is how I got it to show the rumors.

    ---

    Sincerely,
    Jon Justvig

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/32)
    * Origin: Raiders Inc BBS -- vintagebbsing.com (21:1/154)
  • From Jon Justvig@21:1/154 to g00r00 on Tuesday, November 28, 2017 14:24:44
    Where the text turned blue, it was an internal code | & 1 ...

    ---

    Sincerely,
    Jon Justvig

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/32)
    * Origin: Raiders Inc BBS -- vintagebbsing.com (21:1/154)
  • From g00r00@21:1/108 to Jon Justvig on Tuesday, November 28, 2017 22:58:24
    and Command GX rumors show and another with Display text and Command GX rumors show. I tried to put this all in one command combined, it just would not show the rumors. Not sure if it is a bug. That is how I got
    it to show the rumors.

    I would have to see what you created that didn't work for me to know if there was a software issue or a configuration issue.

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From bcw142@21:1/145.3 to Jon Justvig on Wednesday, November 29, 2017 11:31:51
    On 11/28/17, Jon Justvig said the following...

    Where the text turned blue, it was an internal code | & 1 ...

    The trick there is to double the pipecode so it shows as ||&1 and it should show normally. It's in the mystic.txt and you'll find it in time, I spent a year reading and playing with it before I officially put mine up to find out things like that. There are now a lot of things only documented in the whatsnew.txt, like anything to do with mis2. Not sure how that double
    pipecode shows on other system (sbbs, bbbs and such), but that's how it's
    done for mystic

    --- Mystic BBS v1.12 A36 2017/11/27 (Linux/64)
    * Origin: Workpoint (21:1/145.3)
  • From Jon Justvig@21:1/154 to g00r00 on Wednesday, November 29, 2017 14:19:45
    g00r00,

    I would have to see what you created that didn't work for me to know if there was a software issue or a configuration issue.


    First one:

    Hot Key EVERY
    (GX) Execute MPL program rumors show

    Second one:

    Display Text | & 1 (no spaces)
    (GX) Execute MPL program rumors show

    Sincerely,
    Jon Justvig

    ---

    Sincerely,
    Jon Justvig

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/32)
    * Origin: Raiders Inc BBS -- vintagebbsing.com (21:1/154)
  • From g00r00@21:1/108 to Jon Justvig on Saturday, December 09, 2017 23:18:00
    First one:

    Hot Key EVERY
    (GX) Execute MPL program rumors show

    Second one:

    Display Text | & 1 (no spaces)
    (GX) Execute MPL program rumors show

    Okay I can see that this isn't something that would work. You only need to execute the MPL program once, and that entire second menu command isn't something that would ever execute based on what you're showing here.

    There isn't enough detail here to see what is actually happening, I would probably need to see the actual copy and paste from the menu editor.

    --- Mystic BBS v1.12 A37 2017/12/09 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)