• ACS help

    From Christian Sacks@2:250/5 to g00r00 on Sun Jul 11 11:27:54 2021
    Hi g00r00, hope you're well...

    I wish to make a command only run if one or more of either criteria is met;

    User is NOT invisible (ACS !OI)
    User is NOT User ID 1 (ACS u1)

    I have tried making the ACS for the desired item;

    !OI|!u1
    (!OI)|!u1
    (!OI)|(!u1)

    None of the above seem to obey the userid part. I then tried to do the same replacing the u1 with s255 and still the same thing happened, or rather didn't happen.

    What is the correct syntax to use for this?
    Many thanks in advance.

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (2:250/5)
  • From g00r00@1:129/215 to Christian Sacks on Sun Jul 11 10:52:56 2021
    I wish to make a command only run if one or more of either criteria is met;

    I have tried making the ACS for the desired item;

    !OI|!u1

    I just tried this and it seems to be working fine for me. What menu are you using the ACS on?

    ... I put a dollar in one of those change machines. Nothing changed.

    --- Mystic BBS v1.12 A47 2021/07/09 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Christian Sacks@2:250/5 to g00r00 on Sun Jul 11 23:23:40 2021
    I just tried this and it seems to be working fine for me. What menu are youusing the ACS on?

    Prelogin;

    ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ Command Options ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
    º º
    º Command ³ (DD) Exec external program º
    º Data ³ /path/to/some/external/command.sh º
    º Access ³ (!OI|!u1) º
    º Grid Event ³ Selected º
    º º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

    ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ Command Options ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
    º º
    º Command ³ (DD) Exec external program º
    º Data ³ /path/to/some/external/command.sh º
    º Access ³ (!OI|!s255) º
    º Grid Event ³ Selected º
    º º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ


    Neither of these seem to work how I want, it obeys the !OI part but not the !u1 or !s255 part. This is happening on any menu I try to add this to, I gave example above from my prelogin menu item, but I have the same in other menus too, like the goodbye menu or the main menu.

    I have things I don't want to run, if the user is invisible or the user is me regardless of whether I am invisible or not.

    Should I do the !u1 or !s255 part BEFORE the !OI? like
    (!s255|!OI)


    Thanks for your help.

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (2:250/5)
  • From g00r00@1:129/215 to Christian Sacks on Sun Jul 11 21:28:42 2021
    I have things I don't want to run, if the user is invisible or the user
    is me regardless of whether I am invisible or not.

    Should I do the !u1 or !s255 part BEFORE the !OI? like
    (!s255|!OI)

    The problem here is with your logic and I noticed this right after I sent that last message.

    If you break the ACS down using a T and F for true/false for each value you can see what I mean. Lets look at a user who is S255 but not invisible:

    (!s255|!OI)
    (!T|!F)
    (F|T)
    FALSE OR TRUE = TRUE

    So its doing what its supposed to do, which is to evaluate to true. If you stop ORing the logic you should get results like what you're looking for:

    !s255!OI
    !T!F
    FT
    FALSE AND TRUE = FALSE

    You want it to run when they are not s255 and not invisible, since the ACS is defining when it SHOULD run not when it shouldn't. Give that a try and let me know how it goes.

    ... One tequila, two tequila, three tequila, floor.

    --- Mystic BBS v1.12 A47 2021/07/09 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Christian Sacks@2:250/5 to g00r00 on Mon Jul 12 06:48:22 2021
    So its doing what its supposed to do, which is to evaluate to true. If youstop ORing the logic you should get results like what you're looking for:

    !s255!OI
    !T!F
    FT
    FALSE AND TRUE = FALSE

    You want it to run when they are not s255 and not invisible, since the
    ACS isdefining when it SHOULD run not when it shouldn't. Give that a
    try and let meknow how it goes.

    Thanks, that got it I think, thanks for the explanation also.

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (2:250/5)
  • From g00r00@1:129/215 to Christian Sacks on Mon Jul 12 11:24:28 2021
    Thanks, that got it I think, thanks for the explanation also.

    Great to hear!

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

    --- Mystic BBS v1.12 A47 2021/07/11 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)