• A47 mplc path/file

    From Travis Mehrer@1:134/303 to All on Mon Sep 27 11:36:22 2021
    I'm running the 2021-09-24 PreAlpha on a Pi and I'm having some confusion with mplc.

    According to the help (running ./mplc with no options) I expect to be able to run ./mplc /path/to/file/my.mps and have that compile; however, it seems that running ./mplc with a path and filename still compiles ALL files in themes/default/scripts.

    I've more or less got around this by:
    1. Using -P and saving my scripts to a separate folder (this allows me to compile under Geany)
    2. Using -F filename.mps, leaving my scripts in these/default/scripts for command line.

    ./mide seems to work as expected.

    I must be missing something here. Any help is appreciated.

    Thanks!

    ... I don't have the time for a hobby. I have a computer.

    --- Mystic BBS v1.12 A47 2021/08/29 (Raspberry Pi/32)
    * Origin: New Mystic BBS (1:134/303)
  • From g00r00@1:129/215 to Travis Mehrer on Mon Sep 27 14:36:28 2021
    According to the help (running ./mplc with no options) I expect to be
    able to run ./mplc /path/to/file/my.mps and have that compile; however,
    it seems that running ./mplc with a path and filename still compiles ALL files in themes/default/scripts.

    I use this pretty regularly without any issues. Just tried something here and it works fine for me. Can you provide the command line you're using and validate that you have access?

    me@ubuntu:/a47$ sudo ./mplc temp1/menucmd

    Mystic MPL Compiler v1.12 A47 (Linux/64 2021/09/24 06:39:06)

    Compiling: temp1/menucmd.mps [OK]

    Results: 1 files, 0 errors, 1 directories, 0.00 seconds

    ... That's not a bug, it's an undocumented feature

    --- Mystic BBS v1.12 A47 2021/09/23 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Travis Mehrer@1:134/303 to g00r00 on Mon Sep 27 13:49:08 2021
    I use this pretty regularly without any issues. Just tried something
    here and it works fine for me. Can you provide the command line you're using and validate that you have access?

    Thanks g00r00. It does appear to be something specific to my Pi setup then.

    This is what I'm seeing:

    ullr@rpi402:/mystic $ sudo ./mplc themes/default/scripts/test/bp-tut01
    [sudo] password for ullr:

    Mystic MPL Compiler v1.12 A47 (Raspberry Pi/32 2021/09/24 06:38:54)
    Copyright (C) 1997-2021 By James Coyle. All Rights Reserved.

    Compiling: /mystic/themes/default/scripts/onlyonce.mps [OK] Compiling: /mystic/themes/default/scripts/to-prmpt.mps [OK] Compiling: /mystic/themes/default/scripts/mrc_client.mps [OK] Compiling: /mystic/themes/default/scripts/mrc_stat2.mps [OK] Compiling: /mystic/themes/default/scripts/mailread.mps [OK] Compiling: /mystic/themes/default/scripts/gy-blam.mps [OK] Compiling: /mystic/themes/default/scripts/bulletin.mps [OK] Compiling: /mystic/themes/default/scripts/apply_sample.mps [OK] ...

    I've also confirmed that my user (ullr) in this case is the owner of everything under /mystic.

    Digging into this more, mplc on A46 is doing the same thing to me on this pi. So it seems it's something specific to my setup. I'll keep messing around and hopefully figure out what's going on.

    ... "I am" is the shortest sentence in English. Is 'I do' the longest?

    --- Mystic BBS v1.12 A47 2021/09/24 (Raspberry Pi/32)
    * Origin: New Mystic BBS (1:134/303)
  • From Travis Mehrer@1:134/303 to Travis Mehrer on Mon Sep 27 14:11:11 2021
    I use this pretty regularly without any issues. Just tried something here and it works fine for me. Can you provide the command line you' using and validate that you have access?

    Thanks g00r00. It does appear to be something specific to my Pi setup then.

    ullr@rpi402:/mystic $ sudo ./mplc themes/default/scripts/test/bp-tut01
    Okay, this is really strange. It appears it is the "-t" in my filename bp-tut01.mps that is causing the issue? As if mplc is reading that as "./mplc -t".

    If I rename my file to tut01.mps, btut01.mps, or bptut01.mps it's fine but if I use any combination of "-t" (bp-tut01.mps, b-tut.mps) mplc is running as if I called ./mplc -t.

    ... Just another prisoner of gravity!

    --- Mystic BBS v1.12 A47 2021/09/24 (Raspberry Pi/32)
    * Origin: New Mystic BBS (1:134/303)
  • From g00r00@1:129/215 to Travis Mehrer on Tue Sep 28 11:54:41 2021
    Okay, this is really strange. It appears it is the "-t" in my filename bp-tut01.mps that is causing the issue? As if mplc is reading that as "./mplc -t".

    Yeah that is weird but good eye! I was going to suggest it could be something with the "-" in there and it seems like it is!

    I am at work at the moment so I can't really take a look now but I will see if I can find some time tonight to get this fixed up for you!

    Thanks for the report!

    ... Enter any 12-digit prime number to continue.

    --- Mystic BBS v1.12 A47 2021/09/23 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From g00r00@1:129/215 to Travis Mehrer on Wed Sep 29 16:34:58 2021
    Okay, this is really strange. It appears it is the "-t" in my filename bp-tut01.mps that is causing the issue? As if mplc is reading that as "./mplc -t".

    Hey just wanted to let you know the latest build I uploaded today should have the fix for this in it.

    I haven't done extensive testing outside of my local Windows machine but hopefully it should be fixed in Linux side as well (it was broken for both Windows and Linux).

    ... No honey, I can't eat with the family. My computer gets lonely!

    --- Mystic BBS v1.12 A47 2021/09/23 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Travis Mehrer@1:134/303 to g00r00 on Wed Sep 29 16:10:18 2021
    Hey just wanted to let you know the latest build I uploaded today should have the fix for this in it.

    I haven't done extensive testing outside of my local Windows machine but hopefully it should be fixed in Linux side as well (it was broken for
    both Windows and Linux).

    Sincerely, thank you very much! The new version did the trick for me on the Pi!

    ... Computers are not intelligent. They only think they are.

    --- Mystic BBS v1.12 A47 2021/09/29 (Raspberry Pi/32)
    * Origin: CaNerDUH BBS (1:134/303)