• Scripts don't work outside of default DIR

    From Gary Ailes@1:229/2 to All on Thursday, May 27, 2021 13:27:16
    From: nospam.Gary.Ailes@f328.n129.z1.fidonet.org

    I've been chasing this problem for awhile.

    I have mystic installed on D:\Mystic
    All of my scripts are in D:\Mystic\themes\default\scripts for all themes. Scripts that are in this directrory work fine.

    However, Some scripts have additional files that are in different directories. RCS's new Game Room is an example. The Game Room menu files are in D:\mystic\themes\default\scripts\rcsmenus.
    The script point to that directory. Under my current setup the script does not work as it can't seem to find the "rcsmenus" directory.

    But... I setup a default Mystic install on C:\Mystic.
    Nothing changed with the RCS GameRoom, same files, same location except under C:\.
    And it works fine!

    The only difference between the 2 is the location of the home Mystic Drive, C:\ vs. D:\. C works, D doesnt.

    It not just this script, it appears to be any script that calls files outside of the script directory.

    Is there any reason Mystic installed on D:\ would cause this? I'm out of ideas. Thanks!

    |01 Ã|06HSM|01Ä|14aka|01Ä|07Ga|08ry|01ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |14 ¿|01³ Mystic|14.|01BBSGameTime|14.|01com|14:|0323|01 ³|14Ú
    ³|01³ ScoobysDoo|14.|01ddns|14.|01net|14:|032023|01 ³|14³
    ³|01ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ|14³

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From g00r00@1:229/2 to All on Friday, May 28, 2021 05:12:22
    From: nospam.g00r00@f215.n129.z1.fidonet.org

    Is there any reason Mystic installed on D:\ would cause this? I'm out of ideas. Thanks!

    I can't tell you what is going on with that mod, but Mystic doesn't have any hard coded directories. I've had my BBS installed on drive D: since Mystic 0.01 (ie easily 25 years now) and it runs scripts all over the place just fine here.

    There isn't enough detail for me to diagnose any issue with the script or how its executed.

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Glenn Rossi@1:229/2 to Gary Ailes on Friday, May 28, 2021 11:25:28
    From: nospam.Glenn.Rossi@f1.n770.z1343.fidonet.org

    On 5/27/2021 1:27 PM, Gary Ailes wrote:

    The script point to that directory. Under my current setup the script does not
    work as it can't seem to find the "rcsmenus" directory.

    But... I setup a default Mystic install on C:\Mystic.
    Nothing changed with the RCS GameRoom, same files, same location except under C:\.
    And it works fine!

    The only difference between the 2 is the location of the home Mystic Drive, C:\
    vs. D:\. C works, D doesnt.


    Sounds like the rcsmenu script has some hardcoding of C: in it.

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Gary Ailes@1:229/2 to All on Tuesday, June 01, 2021 15:19:01
    From: nospam.Gary.Ailes@f328.n129.z1.fidonet.org

    On 28 May 2021, g00r00 said the following...

    Is there any reason Mystic installed on D:\ would cause this? I'm ou ideas. Thanks!

    I can't tell you what is going on with that mod, but Mystic doesn't have any hard coded directories. I've had my BBS installed on drive D: since Mystic 0.01 (ie easily 25 years now) and it runs scripts all over the place just fine here.

    There isn't enough detail for me to diagnose any issue with the script
    or how its executed.

    Hi!
    Here's an example from a script:

    (original)
    rcspath:=AddSlash(CfgMPEPath+'tdta')
    (my fix)
    rcspath:='D:\mystic\themes\default\scripts\rcstdta\'

    The top line is what does not work for me but apparently
    works for everyone else. Scripts that point to a directory outside of the default scripts directory don't load correctly because they can't find the needed files.

    The second line is how I had to correct to make it work on my system.
    This "fix" works on most scripts. With the directory hard coded it works, but shouldn't the original work as well?

    It's definitley something on my end. I had this problem in Linux and it followed me to Windows when I migrated.

    Thanks!

    |01 Ã|06HSM|01Ä|14aka|01Ä|07Ga|08ry|01ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |14 ¿|01³ Mystic|14.|01BBSGameTime|14.|01com|14:|0323|01 ³|14Ú
    ³|01³ ScoobysDoo|14.|01ddns|14.|01net|14:|032023|01 ³|14³
    ³|01ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ|14³

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From g00r00@1:229/2 to All on Wednesday, June 02, 2021 15:54:36
    From: nospam.g00r00@f215.n129.z1.fidonet.org

    (original)
    rcspath:=AddSlash(CfgMPEPath+'tdta')
    (my fix)
    rcspath:='D:\mystic\themes\default\scripts\rcstdta\'

    The top line is what does not work for me but apparently
    works for everyone else. Scripts that point to a directory outside of

    CfgMPEPath is the current theme's script directory. That isn't always where the script runs from through if your theme inherits scripts for the default or a different theme. Its also looking in directory named 'tdta' for some reason, not rcstdta.

    To get the directory where the script is running from you would get it like this:

    RunningFrom := JustPath(ProgName);

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)