• Help, It's my fault this time

    From DesotoFireflite@1:103/705 to Digital Man on Thu Jul 14 14:48:36 2022
    Re: Help, It's my fault this time
    By: Digital Man to DesotoFireflite on Thu Jul 14 2022 11:20 am

    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am

    I've been sucessfully using the below method for about 6 to 8 years to
    let the user choose which bbs of mine thay want to log into. No
    problems what so ever up till about 3 to 4 weeks ago. I changed around
    some security levels, and other things, and now when a user picks
    2,3,4 in the SELECT.BUN, all they get is a simple message on the
    screen in the top left saying "Time's up." (Found It in Text.dat, 549
    TimesUp)

    Bare in mind, selection "1" still works where you continue on to
    synchronet, and the "D" still works for disconnect.

    I'm thinking it's a security level issue, but for the like of
    me, I can't figure it out. Whatever is causing this started
    about 3 to 4 weeks ago. I'm assuming security level issues, but
    I can't figure, because at this point a user is not assigned,
    unless there is a default security in play till the actual user
    is assigned and logged in fully.

    Check SCFG->System->Security Level Values->Level 0->Timer Per Day and Time Per Call. What are they set to?

    That was the golden ticket, both were set to "0". Everything is working great now, Thanks so much. I don't remember ever touching security level 0, but I must have. Anyway, Thanks Again.

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
    A Gamers Paradise - Over 250 Registered Online Game Doors!

    --- Don't eat the yellow snow!
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rampage@1:103/705 to DesotoFireflite on Sat Jul 16 04:40:38 2022
    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23:59

    # Log On To GAP BBS
    COMPARE_KEY 2
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:24
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    firstly, that indention formatting is hard to follow... i would do it like this for better visual flow

    COMPARE_KEY 2
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:24
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    this makes the internal steps easier to see and you can easily see each IF matches with its END_IF... also, i use 2 spaces formatting because that's how i learned pascal... it is the formatting i use to this
    day unless the language requires specific formatting (eg: python)...

    reformatting this one immediately shows the mistake...

    # Hang Up For Now, Called By Mistake
    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    END_IF
    END_CMD

    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    # END_IF this line doesn't belong...
    END_CMD


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From MRO@1:103/705 to Tracker1 on Sat Jul 16 21:06:12 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to DesotoFireflite on Sat Jul 16 2022 02:20 pm

    On 7/16/22 03:29, DesotoFireflite wrote:

    I've put baja aside for now, and started working in js, as it seems
    to be the more prudent thing to do these days...

    100% on that.. JavaScript is a more complex language, but also much more capable than BAJA. I find my biggest hurdles is the language has
    advanced a lot since the version used in SynchroNet and the style has changed even more so.

    There's a few points of JS code in the SynchroNet repository that make
    even configuring code linting and formatting is the experimental syntax
    for for-of expressions and getter/setter (iirc) were standardized differently.

    So would love to replace some of the for-of expressions with maybe

    In most cases with baja you can accomplish the same bbs related things a lot easier with less code that javascript. I know you didn't get into baja so you have your bias. just like i have the opposite bias. with baja you have to get creative, but i've done a lot with it over the years. i even made a (large) rpg game in baja.

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Tracker1@1:103/705 to DesotoFireflite on Sun Jul 24 16:06:02 2022
    On 7/22/22 04:13, DesotoFireflite wrote:

    I love VS Code, but I've found out that it does alter the code
    sometimes if you use Ctrl-A codes in it, so you have to watch it.
    Notepad ++ doesn't change the contents of the file automaticly the way
    VS Code has done on occasion to me.

    This can help...

    https://gist.github.com/tracker1/ac95a8de20366e66d57801e9edc96dbe

    But CP437 support seems to be broken on non-windows... so ymmv there, I usually encode my special characters in JS anyway... "\001" inside the
    string is effectively ctrl-A (as is "\x01" or "\u0001"), though I don't
    think JS in Synchronet supports the unicode escape.

    You can change the auto-formatting behavior... I keep a different config
    in my sbbs directory, which is usually what I open in VS Code (remoting extensions are great, can edit BBS over SSH).

    Keeping the JS Object model docs open is also really helpful.

    Yes, it my stage of learning, the JS Object Model is my bible.

    For Synchronet, need to keep it open all the time... though still often
    need to dig through /exec for practical examples as it's not always clear.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Tracker1@1:103/705 to Nightfox on Sun Jul 24 16:08:56 2022
    On 7/22/22 13:46, Nightfox wrote:
    One caveat that I've found though is that if you're using background
    codes (which are numeric), I ended up splitting the string; otherwise
    it would interpret the nex number wrong.

    For instance, if you want to output a blue background (Ctrl-A + 4),
    then I'd do this in JavaScript:

    "\x01" + "4";

    Otherwise, if you have "\x014", then that would be interpreted as hex
    number 14, which would be interpreted as a different character.

    Have you tried using the octal escape? "\001" instead? Not sure, but I
    don't think I've seen an issue with it.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Tracker1 on Mon Jul 25 16:52:42 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to Nightfox on Sun Jul 24 2022 04:08 pm

    Have you tried using the octal escape? "\001" instead? Not sure, but I don't think I've seen an issue with it.

    Octal values aren't allowed in "strict" mode.
    --
    digital man (rob)

    Synchronet "Real Fact" #45:
    Synchronet External "Plain Old Telephone System" support was introduced in 2007 Norco, CA WX: 83.7øF, 55.0% humidity, 16 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)